/* ===============================
   GLOBAL RESET & BASE
================================ */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2E2E2E;
  line-height: 1.6;
  background: #FFFFFF;

  /* Offset for fixed header */
  padding-top: 72px;
}

/* ===============================
   LAYOUT CONTAINERS
================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 800px;
}

/* ===============================
   HEADER / NAVIGATION
================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E8EC;

  /* Subtle, professional shadow */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  z-index: 2000;
}

.header-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  color: #1F3A5F;
  line-height: 1;
}

/* ===============================
   BRAND LOGO
================================ */

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 40px;          /* key control – adjust if needed */
  width: auto;
  display: block;
}

/* ===============================
   MAIN NAV LINKS
================================ */

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav a {
  margin-left: 22px;
  text-decoration: none;
  color: #1F3A5F;
  font-weight: 500;
  line-height: 1;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* ===============================
   SERVICES DROPDOWN (HOVER)
================================ */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.services-link {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #FFFFFF;
  border: 1px solid #E5E8EC;
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 3000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #1F3A5F;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #F4F6F9;
}

/* ===============================
   HERO (HOME PAGE)
================================ */

.hero {
  position: relative;
  min-height: 460px;
  padding: 100px 0;
  text-align: center;
  color: #FFFFFF;

  background:
    url("/assets/hero-background.png") center center / cover no-repeat;
}

/* Light global overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 34, 58, 0.25);
  z-index: 1;
}

/* Content above overlay */
.hero .container {
  position: relative;
  z-index: 2;
}

/* Contrast panel behind text */
.hero .container::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: linear-gradient(
    rgba(15, 34, 58, 0.75),
    rgba(15, 34, 58, 0.45)
  );
  border-radius: 12px;
  z-index: -1;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.hero p {
  font-size: 18px;
  max-width: 820px;
  margin: 0 auto 40px;
  color: #F1F4F8;
}

/* ===============================
   BUTTONS
================================ */

.btn-primary {
  background: #2F6FDB;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.btn-primary:hover {
  background: #255DC0;
}

.btn-secondary {
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-left: 12px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ===============================
   TRUST STRIP
================================ */

.trust {
  padding: 40px 0;
}

.trust-grid {
  display: flex;
  justify-content: space-between;
  text-align: center;
  font-weight: 500;
  color: #5F6B7A;
}

/* ===============================
   SECTIONS
================================ */

.section {
  padding: 40px 0;
}

.section.light {
  background: #F4F6F9;
}

.section h2 {
  text-align: center;
  color: #1F3A5F;
  font-size: 32px;
  margin-bottom: 50px;
}

/* ===============================
   SERVICE CARDS
================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #FFFFFF;
  border: 1px solid #E5E8EC;
  padding: 30px;
  border-radius: 8px;
}

.card h3 {
  color: #1F3A5F;
  margin-top: 0;
}

.card ul {
  padding-left: 18px;
}

.card a {
  display: inline-block;
  margin-top: 14px;
  color: #2F6FDB;
  font-weight: 600;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* ===============================
   HOW WE WORK
================================ */

.steps {
  display: flex;
  justify-content: space-around;
  text-align: center;
  font-weight: 500;
}

/* ===============================
   SUPPORT LIST
================================ */

.support-list {
  max-width: 600px;
  margin: 0 auto;
  padding-left: 20px;
}

.support-list li {
  margin-bottom: 10px;
}

/* ===============================
   PAGE HERO (INNER PAGES)
================================ */

.page-hero {
  background: #e4ebf7;
  padding: 40px 0;
  text-align: center;
}

.page-hero h1 {
  color: #1F3A5F;
  font-size: 40px;
}

/* ===============================
   FINAL CTA
================================ */

.cta-final {
  background: #1F3A5F;
  color: #FFFFFF;
  text-align: center;
  padding: 70px 20px;
}

.cta-final h2 {
  color: #FFFFFF;
  margin-bottom: 10px;
}

.cta-final p {
  color: #E6ECF3;
  margin-bottom: 30px;
}

/* ===============================
   FOOTER
================================ */

.footer {
  background: #0F223A;
  color: #FFFFFF;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
}

/* ===============================
   RESPONSIVE REFINEMENTS
================================ */

@media (max-width: 768px) {

  /* Allow header content to wrap without clipping (keeps elements intact) */
  .site-header {
    height: auto;
  }

  /* Match body offset to new header height on small screens */
  body {
    padding-top: 96px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }

  /* Slightly reduce logo size to preserve single-line feel */
  .brand-logo {
    height: 34px;
  }

  /* Let nav wrap and reduce spacing so it doesn’t overflow */
  .main-nav {
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }

  .main-nav a {
    margin-left: 0;
    padding: 10px 10px; /* increases tap target */
  }

  /* Dropdown: keep same behavior, but prevent it from going off-screen */
  .dropdown-menu {
    min-width: 240px;
    max-width: calc(100vw - 40px);
  }

  .dropdown-menu a {
    white-space: normal; /* allow wrap if needed on narrow screens */
  }

  .trust-grid {
    flex-direction: column;
    gap: 16px;
  }

  .steps {
    flex-direction: column;
    gap: 20px;
  }

  /* Hero: tighten spacing + scale text */
  .hero {
    padding: 70px 0;
    min-height: 380px;
  }

  .hero .container::before {
    inset: -16px;
  }

  .hero h1 {
    font-size: 34px;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 26px;
  }

  /* Buttons: stack nicely if they wrap */
  .btn-secondary {
    margin-left: 0;
    margin-top: 10px;
  }

  /* Section headings a bit smaller on mobile */
  .section h2 {
    font-size: 26px;
    margin-bottom: 34px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  /* Cards: slightly reduced padding for small screens */
  .card {
    padding: 22px;
  }
}

/* Extra-small phones */
@media (max-width: 480px) {

  /* Slightly smaller header offset for very small screens */
  body {
    padding-top: 104px; /* small tweak to avoid content peeking under wrapped header */
  }

  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero .container::before {
    inset: -12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
