/* 7FROST — production CSS (Tailwind-compatible tokens + components)
   Rebuild with: npm run build:css when network allows */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-bold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette from logo.avif — icy whites + watercolor blues */
  --ice: #f0f6fc;
  --frost: #aed3f2;
  --ice-blue: #5896e7;
  --accent: #3a72ce;
  --accent-text: #1e4d8c; /* WCAG AA on ice/white backgrounds */
  --deep: #17202f;
  --navy: #2b4260;
  --white: #ffffff;
  --ink: #17202f;
  --muted: #4a6280;
  --ok: #0f766e;
  --err: #b91c1c;
  --radius: 0.5rem;
  --shadow: 0 12px 40px rgba(23, 32, 47, 0.14);
  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--deep);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-text);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--deep);
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  background: var(--deep);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 3rem, var(--max));
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--frost) 70%, transparent);
  background: color-mix(in srgb, #fff 90%, transparent);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(11, 58, 92, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  display: block;
  width: auto;
  height: 2.35rem;
}

@media (min-width: 768px) {
  .logo-img {
    height: 2.75rem;
  }
}

.logo-img--footer {
  height: 2.75rem;
}

.logo-img--hero {
  height: clamp(3.25rem, 10vw, 5.5rem);
  filter: drop-shadow(0 8px 24px rgba(23, 32, 47, 0.35));
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

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

.nav-link {
  border-radius: 0.4rem;
  padding: 0.55rem 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--deep);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--ice);
  color: var(--accent-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frost);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--deep);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
  .btn-header-cta {
    display: inline-flex !important;
  }
}

.btn-header-cta {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--frost);
  background: #fff;
  padding: 0.75rem 0 1rem;
}

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

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--deep);
  text-decoration: none;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(58, 114, 206, 0.28);
}

.btn-primary:hover {
  background: var(--deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--deep);
  border-color: var(--frost);
}

.btn-secondary:hover {
  background: var(--ice);
  color: var(--deep);
  border-color: var(--ice-blue);
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #17202f 0%, #2b4260 42%, #3a72ce 78%, #5896e7 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 32, 47, 0.28) 0%, rgba(23, 32, 47, 0.72) 62%, rgba(23, 32, 47, 0.92) 100%),
    radial-gradient(ellipse at 18% 18%, rgba(88, 150, 231, 0.28), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.25rem;
}

.hero-brand {
  margin: 0 0 1.15rem;
  animation: rise 0.8s ease both;
}

.hero h1 {
  font-size: clamp(1.35rem, 3.8vw, 2.15rem);
  font-weight: 650;
  max-width: 18ch;
  margin: 0 0 1rem;
  animation: rise 0.8s ease 0.08s both;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  animation: rise 0.8s ease 0.16s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.8s ease 0.24s both;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.hero .btn-secondary:hover {
  background: #fff;
  color: var(--deep);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-alt {
  background: #fff;
}

.section-deep {
  background: var(--deep);
  color: #fff;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.section-deep .section-kicker {
  color: #c5dff5;
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 700;
  max-width: 20ch;
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-deep .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
  .split-reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .split-reverse .split-media {
    order: -1;
  }
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: 0.35rem;
  box-shadow: var(--shadow);
  background: var(--frost);
  aspect-ratio: 4 / 3;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--ice-blue);
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

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

.grid-4 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-tile {
  display: block;
  padding: 1.5rem 0;
  border-top: 1px solid var(--frost);
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.service-tile:hover {
  color: var(--accent);
}

.service-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.service-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.option-block {
  padding: 1.5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--frost) 80%, transparent);
}

.option-block h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.gallery {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(9.5rem, 28vw);
}

@media (min-width: 640px) {
  .gallery {
    gap: 0.85rem;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(7.5rem, 11vw);
  }
}

@media (min-width: 1024px) {
  .gallery {
    gap: 1rem;
    grid-auto-rows: minmax(8.5rem, 9.5vw);
  }
}

.gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0.4rem;
  background: linear-gradient(145deg, var(--frost), var(--navy));
  min-height: 0;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s ease;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

/* Mobile: even 2-col tiles */
.gallery__item {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery__item--hero,
.gallery__item--wide,
.gallery__item--tall,
.gallery__item--sq {
  grid-column: span 1;
  grid-row: span 1;
}

@media (min-width: 640px) {
  .gallery__item--hero {
    grid-column: span 4;
    grid-row: span 2;
  }

  .gallery__item--tall {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery__item--wide {
    grid-column: span 3;
    grid-row: span 2;
  }

  .gallery__item--sq {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery__item--sm {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* Compact home gallery: 6 tiles → 2+2 / 3+3 rhythm on desktop */
.gallery--home {
  grid-auto-rows: minmax(10rem, 32vw);
}

@media (min-width: 640px) {
  .gallery--home {
    grid-auto-rows: minmax(8rem, 12vw);
  }
}

@media (min-width: 1024px) {
  .gallery--home {
    grid-auto-rows: minmax(9rem, 10vw);
  }
}

/* Fleet feature gallery */
.gallery--fleet {
  grid-auto-rows: minmax(10rem, 30vw);
}

@media (min-width: 640px) {
  .gallery--fleet {
    grid-auto-rows: minmax(7.5rem, 11vw);
  }
}

@media (min-width: 1024px) {
  .gallery--fleet {
    grid-auto-rows: minmax(8.5rem, 9vw);
  }
}

.stat-row {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  padding-top: 1rem;
  border-top: 2px solid var(--frost);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.cta-band {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  max-width: 18ch;
}

.breadcrumbs {
  padding: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  margin: 0.5rem 0 0.85rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 16ch;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Form */
.form-shell {
  background: #fff;
  border: 1px solid var(--frost);
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .form-shell {
    padding: 1.75rem;
  }
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label,
.fieldset-legend {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--deep);
}

.field input,
.field select,
.field textarea {
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--frost);
  border-radius: 0.4rem;
  font: inherit;
  color: var(--deep);
  background: #fff;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-color: var(--accent);
}

.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid,
.has-error input[type="radio"],
.has-error input[type="checkbox"] {
  border-color: var(--err);
  background: #fff8f8;
}

.field input.is-invalid:focus,
.field textarea.is-invalid:focus {
  outline-color: color-mix(in srgb, var(--err) 40%, transparent);
  border-color: var(--err);
}

.field-error {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--err);
  line-height: 1.35;
}

.req {
  color: var(--err);
  font-weight: 700;
}

.form-hint {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-shell .alert[hidden] {
  display: none !important;
}

.form-shell .alert:not([hidden]) {
  margin-bottom: 1rem;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.fieldset {
  margin: 0;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--frost);
}

.fieldset + .fieldset {
  margin-top: 0.5rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 0.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-ok {
  background: #ecfdf5;
  color: var(--ok);
  border: 1px solid #a7f3d0;
}

.alert-err {
  background: #fef2f2;
  color: var(--err);
  border: 1px solid #fecaca;
}

.contact-aside {
  display: grid;
  gap: 1.25rem;
}

.contact-aside a {
  font-weight: 650;
  text-decoration: none;
}

.temp-input {
  margin-top: 0.5rem;
  max-width: 10rem;
}

.is-hidden {
  display: none !important;
}

.faq details {
  border-top: 1px solid var(--frost);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 650;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--deep);
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frost);
}

.site-footer ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
  }
}

.prose-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.prose-list li + li {
  margin-top: 0.45rem;
}
