/* ============================================================
   LAYOUT — containers, grid, sections, header, footer
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1400px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--surface { background: var(--color-surface-2); }
.section--surface3 { background: var(--color-surface-3); }
.section--navy { background: var(--grad-navy); color: #fff; }
.section--navy h1,.section--navy h2,.section--navy h3,.section--navy h4 { color:#fff; }
.section--navy p { color: var(--navy-100); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.gap-6 { gap: var(--sp-6); }

/* ---- Section heading block ---- */
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.2rem, 4vw, 3.4rem);
  text-align: center;
}
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: var(--fw-semibold);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--orange-500);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--orange-300); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.section-head p { font-size: var(--fs-lead); color: var(--color-muted); }
.section--navy .section-head p { color: var(--navy-100); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  transition: height var(--t-mid) var(--ease), background var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease), backdrop-filter var(--t-mid) var(--ease);
}
.site-header.transparent {
  background: transparent;
}
.site-header.scrolled {
  height: var(--header-h-shrunk);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 6px 26px rgba(20, 28, 55, .10);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.brand {
  display: flex; align-items: center; flex-shrink: 0;
  border-radius: var(--r-md);
  transition: background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), padding var(--t-mid) var(--ease);
}
.brand img { height: 46px; width: auto; display: block; transition: height var(--t-mid) var(--ease); }
.site-header.scrolled .brand img { height: 38px; }
/* One official logo everywhere — a light plate keeps it legible over the dark/transparent hero header */
.site-header.transparent:not(.scrolled) .brand {
  background: rgba(255,255,255,.95);
  box-shadow: var(--sh-sm);
  padding: 8px 16px;
}

.main-nav { display: flex; align-items: center; gap: clamp(.4rem, 1vw, 1.1rem); }
.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: .96rem;
  color: var(--navy-600);
  padding: 10px 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.site-header.transparent .nav-link { color: rgba(255,255,255,.9); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 2px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--orange-500); }
.site-header.transparent .nav-link:hover { color: #fff; }
.site-header.scrolled .nav-link { color: var(--navy-600); }
.site-header.scrolled .nav-link:hover, .site-header.scrolled .nav-link.active { color: var(--orange-500); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link .chev { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.has-mega:hover .chev { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: var(--sp-5); flex-shrink: 0; }

/* Reusable phone-link style (used on contact page, footer, etc.) */
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: .92rem; color: var(--navy-600);
}
.header-phone svg { width: 18px; height: 18px; color: var(--orange-500); }

/* Mega menu */
.has-mega { position: static; }
.mega {
  position: absolute;
  left: 50%; top: calc(100% - 6px);
  transform: translateX(-50%) translateY(10px);
  width: min(1180px, 96vw);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--sp-6);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), visibility var(--t-mid);
  z-index: 20;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-5); }
.mega-col h4 {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-faint); margin-bottom: var(--sp-3);
}
.mega-link {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 8px; border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.mega-link:hover { background: var(--orange-050); transform: translateX(3px); }
.mega-link .mi {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  background: var(--navy-050); color: var(--navy-600);
  display: grid; place-items: center;
}
.mega-link:hover .mi { background: var(--orange-500); color: #fff; }
.mega-link .mi svg { width: 18px; height: 18px; }
.mega-link strong { font-family: var(--font-display); font-size: .87rem; line-height: 1.2; color: var(--navy-600); display: block; }
.mega-link span { font-size: .76rem; color: var(--color-muted); }
.mega-foot {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  margin-top: var(--sp-5); padding-top: var(--sp-5);
  border-top: 1px solid var(--color-border);
}
.mega-foot p { flex: 1 1 260px; font-size: .86rem; color: var(--color-muted); margin: 0; }

.hamburger { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--grad-navy);
  color: var(--navy-100);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-brand);
}
.footer-glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243,79,36,.16), transparent 68%);
  top: -180px; right: -120px; pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  position: relative;
}
.footer-brand .brand-plate {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.95); border-radius: var(--r-md);
  padding: 10px 18px; box-shadow: var(--sh-sm); margin-bottom: var(--sp-4);
}
.footer-brand img { height: 44px; display: block; }
.footer-brand p { color: var(--navy-200); font-size: .92rem; max-width: 320px; margin-bottom: var(--sp-5); }
.footer-col h4 {
  color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--navy-200); font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--orange-400); transform: translateX(3px); }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: var(--sp-4); align-items: flex-start; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--orange-400); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { color: var(--navy-100); font-size: .92rem; }
.footer-newsletter { display: flex; gap: 8px; margin-top: var(--sp-4); }
.footer-newsletter input {
  flex: 1; padding: 12px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff;
}
.footer-newsletter input::placeholder { color: var(--navy-200); }
.footer-newsletter button {
  flex-shrink: 0; width: 46px; height: 46px; padding: 0;
  border-radius: 50%; display: grid; place-items: center;
}
.footer-newsletter button svg { width: 19px; height: 19px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--sp-5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
}
.footer-bottom p { color: var(--navy-200); font-size: .85rem; }
.footer-legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-legal a { color: var(--navy-200); font-size: .85rem; }
.footer-legal a:hover { color: var(--orange-400); }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--navy-600); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all var(--t-mid) var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--orange-500); transform: translateY(-4px); }
.back-to-top svg { width: 22px; height: 22px; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-brand); z-index: calc(var(--z-header) + 1);
  transition: width 80ms linear;
}

/* Breadcrumb */
.breadcrumb { padding: 14px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86rem; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--color-muted); }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--orange-500); }
.breadcrumb li[aria-current] { color: var(--navy-600); font-weight: var(--fw-semibold); }
.breadcrumb .sep { color: var(--color-faint); }
