*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Tuned palette (precise hex values matching the logo colors) */
  --primary: #0b62d6;       /* logo blue */
  --primary-dark: #0846a8;  /* darker blue for depth */
  --accent: #f97316;        /* logo orange */
  --primary-soft: #e6f0ff;  /* light tint of primary */

  /* Backgrounds — biased slightly blue to reduce white dominance */
  --bg: #f3f6fb;            /* page background (soft cool) */
  --section-alt: #f8fbff;   /* alternate section (very light blue) */
  --card-bg: #eef6ff;       /* cards and panels (soft blue instead of pure white) */

  /* Typography */
  --text: #0f1724;          /* stronger dark for contrast */
  --muted: #556077;         /* muted text */

  --radius-lg: 14px;
  --radius-md: 10px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  /* Vibrant gradient header matching logo blue -> orange */
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 45%, var(--accent) 100%);
  color: #ffffff;
  /* slight glassy sheen */
  background-blend-mode: multiply;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 6px 20px rgba(2,8,20,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo {
  width: 90px;
  height: auto;
}

/* Make the header container slightly narrower than the page container
   so the header content looks tighter and the logo stands out more. */
.site-header .container {
  width: 86%;
  max-width: 980px;
  margin: 0 auto;
}

.logo-block h1 {
  font-size: 1.06rem;
  margin: 0;
}

.tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

.main-nav a {
  margin-left: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  transition: background 180ms ease, transform 120ms ease, box-shadow 180ms ease, opacity 120ms ease;
}

.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  text-decoration: none;
  outline: none;
}

.main-nav a:active {
  transform: translateY(0);
}

.main-nav a[aria-current="page"], .main-nav a.active {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(8,20,48,0.12);
}

/* Mobile / Hamburger navigation */
.nav-toggle {
  display: none; /* shown on small screens */
  background: transparent;
  border: none;
  padding: 8px;
  margin-left: 0.5rem;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

/* mobile menu styles */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    display: none; /* hidden until opened */
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: linear-gradient(180deg, rgba(8,70,168,0.98), rgba(9,48,112,0.98));
    padding: 0.6rem 1rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 110;
    box-shadow: 0 12px 30px rgba(2,8,20,0.18);
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.06);
  }

  .main-nav a:hover { background: rgba(255,255,255,0.06); }

  /* ensure header container keeps layout on mobile */
  .site-header .container { width: 95%; max-width: 980px; }
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, var(--primary), var(--primary-dark));
  color: #ffffff;
  padding: 3rem 0 2.7rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 1.5rem;
  max-width: 34rem;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.btn.primary:hover {
  background: #da5f11; /* slightly darker orange on hover */
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.14);
  margin-left: 0.7rem;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Sections */

.section {
  padding: 3rem 0;
  background: var(--bg);
}

.section-alt {
  background: var(--section-alt);
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.section p {
  margin-bottom: 0.8rem;
}

.highlight-text {
  margin-top: 1rem;
  font-weight: 500;
  color: #111827;
}

/* Lists */

.checklist,
.bullets {
  margin-top: 1rem;
  padding-left: 1rem;
}

.checklist li {
  list-style: none;
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.4rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-size: 0.9rem;
}

.bullets li {
  margin-bottom: 0.4rem;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.cards.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 6px 20px rgba(8, 20, 48, 0.06);
  border: 1px solid rgba(11,98,214,0.06);
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-list {
  list-style: none;
  margin-top: 0.8rem;
  padding-left: 0;
}

.contact-list li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 0.7rem;
  cursor: pointer;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Footer */

.site-footer {
  background: #071428;
  color: #c4d9f7;
  padding: 1.4rem 0 1.7rem;
  margin-top: 1rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
}

/* Carousel */
.carousel {
  position: relative;
  margin-top: 1.2rem;
}
.carousel-track {
  display: flex;
  overflow: hidden;
  gap: 0.6rem;
  scroll-snap-type: x mandatory;
}
.carousel-slide {
  min-width: 100%;
  scroll-snap-align: center;
  flex: 0 0 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(8,20,48,0.08);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide img {
  width: 100%;
  height: auto; /* keep natural aspect ratio */
  max-height: 420px; /* limit excessive height */
  object-fit: fill; /* avoid cropping */
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-btn:hover { background: rgba(0,0,0,0.65); }
.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 0.8rem;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
}
.carousel-dots button.active { background: var(--primary); }

/* Toast notifications */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(18px);
  background: rgba(3, 102, 30, 0.95);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(2,8,20,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 260ms ease;
  z-index: 60;
  font-weight: 600;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast.error { background: rgba(139,26,26,0.95); }
.toast.success { background: rgba(6,120,43,0.95); }

@media (max-width: 900px) {
  .carousel-slide img { max-height: 260px; }
}


/* Responsive */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .main-nav a {
    margin-left: 0;
    color: rgba(255,255,255,0.95);
  }

  .main-nav a:hover {
    color: rgba(255,255,255,1);
    text-decoration: none;
    opacity: 0.95;
  }

  .hero-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2.4rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .btn.secondary {  
    margin-left: 0.4rem;
  }

  .site-header {
    position: static;
  }
}
