:root {
  --navy-950: #123C61;
  --navy-900: #0E2F4D;
  --navy-800: #0B2439;
  --navy-700: #071927;
  --blue-600: #216db0;
  --blue-500: #2E86D8;
  --blue-400: #4da0ec;
  --ice-400: #6FC7E3;
  --ice-100: #EBF7FC;
  --slate-400: #9FB4C4;
  --slate-200: #D2DFE8;
  --gray-50: #F8FAFC;
  --gray-100: #F4F7F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #5B6B73;
  --gray-700: #334155;
  --white: #FFFFFF;
  --amber-600: #D95D12;
  --amber-500: #F2711F;
  --amber-400: #F58B44;
  --amber-100: #FEF3EB;
  --ink-900: #101820;
  --line: rgba(18, 60, 97, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 3px rgba(18, 60, 97, 0.08);
  --shadow-md: 0 4px 14px rgba(18, 60, 97, 0.1);
  --shadow-lg: 0 16px 36px -10px rgba(18, 60, 97, 0.22);
  --shadow-modal: 0 24px 60px -12px rgba(8, 18, 28, 0.65);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy-950);
  line-height: 1.25;
}

.mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 14px rgba(18, 60, 97, 0.05);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-link img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--navy-950);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-950);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.logo-text span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.65rem;
  color: var(--amber-500);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

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

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button.nav-top {
  color: var(--navy-900);
  font-size: 0.92rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links > li > a:hover,
.nav-links > li > button.nav-top:hover,
.nav-links > li.active > a,
.nav-links > li.active > button.nav-top {
  color: var(--amber-500);
}

.nav-links > li.active > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
}

.chev {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}

li.dropdown.open .chev {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  min-width: 270px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: var(--shadow-lg);
  z-index: 210;
}

li.dropdown.open .dropdown-menu,
li.dropdown:hover .dropdown-menu,
li.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--navy-950);
  font-size: 0.9rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--gray-100);
  color: var(--amber-600);
}

.dropdown-menu .item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(46, 134, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber-500);
}

.dropdown-menu .item-title {
  font-weight: 600;
  display: block;
  line-height: 1.3;
}

.dropdown-menu .item-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--gray-500);
  margin-top: 1px;
}

.nav-cta {
  background: var(--amber-500);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(242, 113, 31, 0.28);
}

.nav-cta:hover {
  background: var(--amber-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 113, 31, 0.35);
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-950);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
  border-radius: 2px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO (HOME & SERVICE PAGES)
   ========================================================================== */
.hero-split {
  position: relative;
  background: linear-gradient(155deg, #1B4F7A 0%, var(--navy-950) 55%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-split-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-400);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--amber-500);
  display: inline-block;
  border-radius: 1px;
}

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--amber-400);
}

.hero-copy p.lead {
  color: var(--slate-200);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 30px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(242, 113, 31, 0.35);
}

.btn-primary:hover {
  background: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(242, 113, 31, 0.45);
}

.btn-ghost {
  border: 1px solid var(--line-dark);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  border-color: var(--slate-400);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-dark {
  border: 1px solid var(--gray-300);
  color: var(--navy-950);
  background: var(--white);
}

.btn-dark:hover {
  background: var(--gray-100);
  border-color: var(--navy-950);
  transform: translateY(-1px);
}

/* Home Split photo band */
.hero-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 48px;
  border-top: 1px solid var(--line-dark);
  background: rgba(0, 0, 0, 0.2);
}

.photo-panel {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
}

.photo-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.photo-panel:hover .photo-panel-img {
  transform: scale(1.06);
}

.photo-panel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 36, 57, 0.1) 20%, rgba(7, 25, 39, 0.92) 100%);
  transition: background 0.3s ease;
}

.photo-panel:hover .photo-panel-scrim {
  background: linear-gradient(180deg, rgba(11, 36, 57, 0) 10%, rgba(7, 25, 39, 0.95) 100%);
}

.photo-panel-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
}

.photo-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 6px;
}

.photo-panel h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Service Page Hero */
.page-hero {
  background: linear-gradient(155deg, #1B4F7A 0%, var(--navy-950) 55%, var(--navy-800) 100%);
  color: var(--white);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero .wrap {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--slate-400);
}

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

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  max-width: 720px;
  margin-bottom: 18px;
}

.page-hero p.lead {
  color: var(--slate-200);
  max-width: 580px;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.page-hero-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3.8;
  max-width: 440px;
  margin-left: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-dark);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
section {
  padding: 80px 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: 48px;
}

.section-head.center {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head .eyebrow {
  color: var(--blue-500);
}

.section-head .eyebrow::before {
  background: var(--blue-500);
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--gray-500);
  font-size: 1.02rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 12px;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(46, 134, 216, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-500);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-item h4 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: var(--navy-950);
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* Process Steps */
.process-row {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step .pnum {
  font-family: var(--font-mono);
  color: var(--amber-500);
  font-size: 1.1rem;
  font-weight: 600;
}

.process-step h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.process-step p {
  color: var(--gray-500);
  font-size: 0.92rem;
}

/* Qualifications Row */
.cert-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.cert-badge-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
}

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-band h3 {
  color: var(--white);
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.cta-band p {
  color: var(--slate-200);
  font-size: 0.98rem;
}

.offers-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.offers-split-grid > div {
  display: flex;
  flex-direction: column;
}

.offers-split-grid > div .carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offers-split-grid > div .carousel .carousel-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-container {
  max-width: 580px;
  margin: 0 auto;
}

/* ==========================================================================
   CAROUSEL
   ========================================================================== */
.carousel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.carousel-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-200);
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel.carousel-promo .carousel-slide {
  aspect-ratio: 4 / 5;
  background: #0f243c;
}

.carousel.carousel-promo .carousel-slide img {
  object-fit: contain;
  background: #0f243c;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 60, 97, 0.75);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  z-index: 5;
  transition: background-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: var(--amber-500);
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-btn.prev {
  left: 14px;
}

.carousel-btn.next {
  right: 14px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
  padding: 4px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.carousel-dot.active {
  background: var(--amber-500);
  width: 22px;
  border-radius: 5px;
}

.carousel-empty {
  padding: 56px 28px;
  text-align: center;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.8;
  background: var(--gray-50);
}

.carousel-empty strong {
  color: var(--navy-950);
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .carousel-track {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--navy-950);
  border-top: 1px solid var(--line-dark);
  padding: 56px 0 28px;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-col p,
.footer-col a {
  color: var(--slate-400);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--amber-400);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p,
.footer-bottom a {
  color: var(--slate-400);
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

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

/* ==========================================================================
   MODAL DEVIS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 20, 32, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  max-width: 580px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px 32px;
  color: var(--white);
  position: relative;
  box-shadow: var(--shadow-modal);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--slate-400);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.modal-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.modal-box h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.modal-box .modal-sub {
  color: var(--slate-400);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.82rem;
  color: var(--slate-200);
  font-family: var(--font-mono);
  font-weight: 500;
}

input, textarea, select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  width: 100%;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #748c9e;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--amber-500);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(242, 113, 31, 0.2);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239FB4C4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 14px) center;
  background-size: 12px 8px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

select option {
  color: var(--ink-900);
  background: var(--white);
}

.form-note {
  font-size: 0.78rem;
  color: var(--slate-400);
  margin-top: 14px;
  line-height: 1.45;
}

.form-success, .form-error {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.45;
}

.form-success {
  background: rgba(242, 113, 31, 0.15);
  border: 1px solid var(--amber-500);
  color: var(--amber-400);
}

.form-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* ==========================================================================
   404 ERROR PAGE STYLING
   ========================================================================== */
.error-page-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.error-card {
  max-width: 580px;
  margin: 0 auto;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 700;
  color: var(--amber-500);
  line-height: 1;
  margin-bottom: 12px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .hero-photos {
    grid-template-columns: 1fr;
  }
  .photo-panel {
    aspect-ratio: 16 / 9;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .offers-split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page-hero-media {
    max-width: 380px;
    margin: 12px auto 0;
  }
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 73px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 24px 40px;
    gap: 6px;
    transform: translateY(-110%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-top: 1px solid var(--gray-200);
    overflow-y: auto;
    z-index: 199;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-links > li:last-child {
    border-bottom: none;
  }
  .nav-links > li > a,
  .nav-links > li > button.nav-top {
    width: 100%;
    padding: 14px 0;
    justify-content: space-between;
    font-size: 1.05rem;
  }
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: none;
    background: var(--gray-100);
    box-shadow: none;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }
  li.dropdown.open .dropdown-menu {
    pointer-events: auto;
    max-height: 400px;
    padding: 8px;
    margin-bottom: 10px;
  }
  .nav-cta {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
    display: flex;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }
  .burger {
    display: block;
  }
}

@media (max-width: 580px) {
  .wrap {
    padding: 0 18px;
  }
  .nav {
    padding: 10px 18px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  section {
    padding: 56px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cta-band {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px;
    text-align: center;
  }
  .cta-band .btn {
    width: 100%;
  }
  .modal-box {
    padding: 28px 20px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .carousel-slide {
    aspect-ratio: 4 / 3;
  }
}
