/* ===========================
   CSS VARIABLES
   =========================== */

:root {
  /* Brand */
  --navy: #071b33;
  --navy-light: #0d2b4f;
  --blue: #0f3f70;
  --orange: #f47c20;
  --orange-dark: #d96512;
  --white: #ffffff;
  /* Backgrounds */
  --soft: #f5f8fb;
  --light-gray: #f4f7fa;
  /* Text */
  --gray: #66717f;
  --dark: #101820;
  /* UI */
  --border: #dce3ea;
  --shadow: 0 16px 45px rgba(5, 23, 43, 0.16);
  --green: #68e39b;
}

/* ===========================
   RESET & BASE
   =========================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ===========================
   LAYOUT
   =========================== */

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.btn.secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

/* ===========================
   TOP UTILITY BAR
   =========================== */

.utility-bar {
  background: #041426;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.utility-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 38px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.utility-links a:hover {
  color: var(--white);
}

/* ===========================
   SITE HEADER
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(5, 23, 43, 0.06);
}

.nav-container {
  width: min(1180px, calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ===========================
   DESKTOP MENU
   =========================== */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link,
.dropdown-trigger {
  min-height: 86px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link:hover,
.dropdown-trigger:hover,
.nav-item:focus-within > .dropdown-trigger {
  color: var(--orange);
}

.dropdown-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-trigger::after,
.nav-item:focus-within .dropdown-trigger::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

/* ===========================
   DROPDOWNS
   =========================== */

.dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  width: 270px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-wide {
  width: 600px;
  padding: 22px;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}

.dropdown-heading {
  margin: 4px 10px 10px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.dropdown a:hover,
.dropdown a:focus {
  color: var(--orange);
  background: #fff5ec;
  transform: translateX(3px);
  outline: none;
}

.dropdown-description {
  display: block;
  margin-top: 3px;
  color: var(--gray);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.featured-link {
  margin-top: 10px;
  padding: 15px !important;
  color: var(--white) !important;
  background: var(--navy) !important;
}

.featured-link:hover {
  color: var(--white) !important;
  background: var(--navy-light) !important;
}

/* ===========================
   NAV CTA
   =========================== */

.nav-cta {
  padding: 13px 18px;
  border-radius: 7px;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 7px 18px rgba(244, 124, 32, 0.25);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(244, 124, 32, 0.32);
}

/* ===========================
   MOBILE TOGGLE
   =========================== */

.mobile-toggle {
  display: none;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 22px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: 0.2s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

/* ===========================
   MOBILE MENU
   =========================== */

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-inner {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 14px 0 26px;
}

.mobile-menu > div > a {
  display: block;
}

.mobile-link,
.mobile-section-button {
  width: 100%;
  padding: 15px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  background: transparent;
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-section-button::after {
  content: "+";
  color: var(--orange);
  font-size: 22px;
  font-weight: 400;
}

.mobile-section-button[aria-expanded="true"]::after {
  content: "−";
}

.mobile-submenu {
  display: none;
  padding: 8px 0 12px 14px;
  border-bottom: 1px solid var(--border);
}

.mobile-submenu.is-open {
  display: block;
}

.mobile-submenu a {
  display: block;
  padding: 10px 4px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 700;
}

.mobile-submenu a:hover {
  color: var(--orange);
}

.mobile-cta {
  margin-top: 18px;
  display: block;
  padding: 15px 18px;
  border-radius: 7px;
  color: var(--white);
  background: var(--orange);
  text-align: center;
  font-weight: 800;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background: #061423;
  color: #c8d7e7;
  padding: 50px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

footer h4 {
  color: var(--white);
  margin-top: 0;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li { margin: 8px 0; }

.footer-legal {
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-top: 38px;
  padding-top: 22px;
}

.footer-legal p { margin: 0; }

.footer-legal nav {
  display: flex;
  gap: 22px;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

.footer-legal a:hover { color: var(--orange); }

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1080px) {
  .desktop-nav,
  .desktop-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-container {
    min-height: 74px;
  }

  .utility-bar {
    display: none;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-container {
    width: calc(100% - 28px);
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}
