/*
 * Layout: container, header, mobile menu, footer, section shells, page
 * bands, sticky mobile CTA. Mobile-first (360px), enhanced with min-width.
 * Breakpoints: 600 (large phones), 900 (tablets), 1200 (desktop).
 */

.se-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 900px) {
  .se-container {
    padding-inline: var(--space-5);
  }
}

/* ---------- Header (dark shell, sticky, blurred) ---------- */

.se-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--on-dark);
  background: var(--blue-900);
  border-bottom: 1px solid var(--line-dark);
}

@supports (backdrop-filter: blur(12px)) {
  .se-header {
    background: rgba(8, 23, 71, 0.86);
    backdrop-filter: saturate(140%) blur(12px);
  }
}

.se-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.se-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.se-logo:hover {
  color: var(--on-dark);
}

.se-logo__image {
  display: block;
  width: clamp(132px, 17vw, 200px);
  height: auto;
  flex: 0 0 auto;
}

.se-logo__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--white);
  color: var(--blue-700);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
}

.se-logo__second {
  font-weight: 500;
  color: var(--blue-200);
}

.se-nav {
  display: none;
}

.se-nav__list {
  list-style: none;
  display: flex;
  gap: var(--space-1);
}

.se-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  color: var(--on-dark-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.se-nav__link:hover {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
}

.se-nav__link[aria-current="page"] {
  color: var(--on-dark);
  box-shadow: inset 0 -2px 0 var(--blue-200);
  border-radius: 0;
}

.se-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.se-header__phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-2);
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.se-header__phone:hover {
  color: var(--blue-200);
}

/* Order request indicator: only rendered when the session cart has items. */
.se-header__order {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--on-dark);
  text-decoration: none;
}

.se-header__order:hover {
  color: var(--blue-200);
}

.se-header__order-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* Two classes so this beats .se-btn's display (components.css loads later). */
.se-header .se-header__cta {
  display: none;
}

.se-menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
}

@media (min-width: 600px) {
  .se-header .se-header__cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .se-nav {
    display: block;
  }

  .se-menu-toggle {
    display: none;
  }

  .se-header__phone {
    display: inline-flex;
  }
}

/* ---------- Mobile menu (full-screen dialog-like overlay) ---------- */

.se-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-4) var(--space-6);
  background: var(--blue-950);
  color: var(--on-dark);
  overflow-y: auto;
}

.se-mobile-menu[hidden] {
  display: none;
}

.se-mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-h) - var(--space-4));
}

.se-mobile-menu__list {
  list-style: none;
  display: grid;
  gap: var(--space-1);
}

.se-mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--space-2);
  color: var(--on-dark);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line-dark);
}

.se-mobile-menu__link[aria-current="page"] {
  color: var(--blue-200);
}

.se-mobile-menu__contact {
  display: grid;
  gap: var(--space-3);
  margin-top: auto;
}

html.se-menu-open {
  overflow: hidden;
}

/* ---------- Sections ---------- */

.se-section {
  padding-block: var(--section-pad);
}

.se-section--paper {
  background: var(--paper);
}

.se-section--dark {
  background: var(--blue-900);
  color: var(--on-dark);
}

.se-section--tight {
  padding-block: clamp(40px, 32px + 3vw, 72px);
}

.se-section-head {
  display: grid;
  gap: var(--space-2);
  max-width: 760px;
  margin-bottom: clamp(32px, 24px + 2vw, 56px);
}

.se-section-head h2 {
  margin: 0;
}

.se-section-head p {
  margin: 0;
  color: var(--slate-600);
}

.se-on-dark .se-section-head p {
  color: var(--on-dark-muted);
}

.se-section-head--row {
  max-width: none;
}

@media (min-width: 900px) {
  .se-section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-6);
  }
}

/* ---------- Page band (inner-page hero) ---------- */

.se-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 28px + 4vw, 88px) clamp(48px, 32px + 4vw, 96px);
  background: var(--blue-900);
  color: var(--on-dark);
  isolation: isolate;
}

.se-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(169, 188, 245, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 188, 245, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 30%, transparent 75%);
}

.se-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  right: -200px;
  top: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 95, 208, 0.45), transparent 65%);
}

.se-band h1 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  max-width: 20ch;
  margin-bottom: var(--space-3);
}

.se-band__lead {
  color: var(--on-dark-muted);
  font-size: var(--fs-lead);
  margin: 0;
  max-width: 60ch;
}

/* Content that overlaps up into a band (shop vehicle bar, contact cards). */
.se-overlap {
  position: relative;
  margin-top: calc(-1 * clamp(28px, 20px + 2vw, 56px));
  z-index: 2;
}

/* ---------- Footer ---------- */

.se-footer {
  background: var(--blue-950);
  color: var(--on-dark-muted);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--fs-small);
}

.se-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.se-footer a:hover {
  color: var(--blue-200);
  text-decoration: underline;
}

.se-footer__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .se-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .se-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

.se-footer__brand p {
  margin-top: var(--space-4);
  max-width: 36ch;
}

.se-footer__heading {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-200);
  margin: 0 0 var(--space-4);
}

.se-footer__list {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.se-footer__list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.se-footer__list .se-icon {
  margin-top: 3px;
  color: var(--blue-200);
}

.se-footer__methods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.se-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
}

.se-footer__bottom p {
  margin: 0;
  max-width: none;
}

.se-footer__notice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--on-dark);
}

/* ---------- Sticky mobile CTA (thumb zone) ---------- */

.se-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(8, 23, 71, 0.1);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease);
}

.se-sticky-cta.is-visible {
  transform: translateY(0);
}

.se-sticky-cta .se-btn--primary {
  flex: 1;
}

@media (min-width: 900px) {
  .se-sticky-cta {
    display: none;
  }
}

/* Keep the footer's last line clear of the sticky bar on phones. */
@media (max-width: 899px) {
  .se-has-sticky .se-footer {
    padding-bottom: calc(var(--space-6) + 76px);
  }
}
