/* ==========================================================================
   Trinity Medical Transportation Corp. — Landing page styles
   Palette: blue & white
   ========================================================================== */

:root {
  --blue-900: #062a63;
  --blue-800: #0b3d91;
  --blue-700: #1152b8;
  --blue-600: #1a6fe0;
  --blue-500: #2f8bf5;
  --blue-100: #e3eefc;
  --blue-50:  #f3f8ff;

  --ink:      #0f1b2d;
  --body:     #46566c;
  --muted:    #71809a;
  --line:     #dde6f3;
  --white:    #ffffff;

  --danger:   #c62828;
  --success:  #1b7a4b;

  --radius:   14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 61, 145, .06);
  --shadow:    0 10px 30px rgba(11, 61, 145, .10);
  --shadow-lg: 0 24px 60px rgba(11, 61, 145, .16);

  --header-h: 108px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue-800); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue-600);
  margin: 0 0 .7rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; fill: currentColor; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--blue-800); border-color: var(--blue-100); }
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-800); }

.btn-light { background: #fff; color: var(--blue-800); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-900); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  width: auto;
  height: 74px;           /* desktop header size */
  max-width: 100%;
  object-fit: contain;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue-600); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--blue-700); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--blue-50); border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--blue-800); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Full-bleed photo backdrop + dark scrim so the white copy stays legible.
   Layers: ::before = photo, ::after = scrim, content sits above both. */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--blue-900);
  padding: clamp(64px, 8vw, 118px) 0 clamp(68px, 8vw, 118px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Photo layer. Focal point sits right-of-centre, so bias the crop that way
   and let the calm left side of the frame carry the headline. */
.hero::before {
  background-image: url("images/hero-bg.jpg");
  background-size: cover;
  background-position: 68% center;
  background-repeat: no-repeat;
}

/* Dark scrim. Heavier on the left where the text lives, lighter on the right
   so the vehicle and staff stay visible. The navy tint keeps it on-brand. */
.hero::after {
  background:
    linear-gradient(100deg,
      rgba(6, 25, 56, .93) 0%,
      rgba(6, 25, 56, .86) 32%,
      rgba(6, 30, 68, .66) 58%,
      rgba(6, 34, 78, .48) 100%),
    linear-gradient(180deg,
      rgba(4, 18, 42, .40) 0%,
      rgba(4, 18, 42, 0) 32%,
      rgba(4, 18, 42, .42) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

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

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

.hero h1 {
  font-size:47px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin-bottom: .34em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(3, 14, 34, .45);
}
.hero h1 .accent { color: var(--blue-500); }

.hero .lede {
  position: relative;
  padding-top: 22px;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  max-width: 52ch;
  margin: 0;
  text-shadow: 0 1px 12px rgba(3, 14, 34, .4);
}
.hero .lede::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 56px; height: 3px; border-radius: 3px;
  background: var(--blue-500);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 34px; }
.hero-actions .btn { border-radius: 999px; padding: 15px 30px; }
.hero-actions .btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 12px 30px rgba(3, 14, 34, .45);
}
.hero-actions .btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  box-shadow: 0 16px 36px rgba(3, 14, 34, .52);
}

/* On the photo the ghost button reads as a white outline rather than a
   translucent white fill. */
.hero .btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .62);
  backdrop-filter: blur(2px);
}
.hero .btn-ghost:hover {
  background: #fff;
  color: var(--blue-900);
  border-color: #fff;
}

.btn-ghost {
  background: rgba(255,255,255,.75);
  color: var(--blue-800);
  border-color: var(--blue-700);
}
.btn-ghost:hover { background: #fff; color: var(--blue-900); border-color: var(--blue-900); }
.icon-arrow { width: 18px; height: 18px; fill: currentColor; transition: transform .2s; }
.btn-ghost:hover .icon-arrow { transform: translateX(3px); }

.hero-points {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px 28px;
}
.hero-points li {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
  font-size: .95rem; font-weight: 500; line-height: 1.35; color: #fff;
  text-shadow: 0 1px 10px rgba(3, 14, 34, .45);
}
.point-icon {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
}
/* Frosted circles read better than solid pale blue on the photo. */
.hero .point-icon {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  backdrop-filter: blur(3px);
}
.point-icon svg { width: 22px; height: 22px; fill: currentColor; }
/* These glyphs are single paths whose detail is a counter inside a solid
   shape. In blue-on-pale-blue that reads fine, but once icon and circle are
   both white the counter disappears — even-odd keeps it punched out. */
.hero .point-icon svg { fill-rule: evenodd; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--blue-50); }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-sub { color: var(--muted); font-size: 1.03rem; margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* About */
.about-images { position: relative; padding-bottom: 96px; padding-right: 24px; }
.about-img-main {
  display: block; width: 96%; border-radius: 20px; box-shadow: var(--shadow);
  height: auto; object-fit: contain;
  position: relative; z-index: 1;
}
.about-img-sub {
  position: absolute; right: 0; bottom: 0;
  width: 42%; border-radius: 16px;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  height: auto; object-fit: contain;
  z-index: 2;
}

.mission-card {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 0 0 24px;
}
.mission-card h3 { margin-bottom: .4em; color: var(--blue-800); }
.mission-card p { margin: 0; }

/* ---------- Founder ---------- */
.founder-section { background: var(--blue-50); }

.founder-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.founder-portrait {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.founder-badge {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1047 / 1600;
  margin: 0 auto 18px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  box-shadow: var(--shadow);
}
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.founder-name {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.founder-role {
  margin: 0 0 18px;
  color: var(--blue-700);
  font-weight: 600;
  font-size: .95rem;
}
.founder-tags {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px; justify-content: center;
}
.founder-tags li {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-800);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 500;
}

.founder-story p { margin: 0 0 1.05em; }
.founder-lead {
  font-size: 1.12rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.65;
}

.founder-quote {
  margin: 28px 0 0;
  padding: 22px 24px;
  background: var(--white);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.founder-quote p {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--blue-900);
  line-height: 1.55;
}
.founder-quote cite {
  font-style: normal;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
}

/* Founder values */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 5vw, 56px);
}
.value {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.value-icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-100);
  margin-bottom: 14px;
}
.value-icon svg { width: 24px; height: 24px; fill: var(--blue-700); }
.value h3 { margin: 0 0 .4em; font-size: 1.08rem; color: var(--blue-800); }
.value p { margin: 0; font-size: .95rem; }

@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-portrait { position: static; max-width: 420px; margin: 0 auto; }
}

/* Services cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--blue-100); color: var(--blue-700);
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; fill: currentColor; }

.card-cta {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  border-color: transparent;
  color: #e8f1ff;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.card-cta h3 { color: #fff; }
.card-cta p { color: #d6e6ff; }
.card-cta .btn { margin-top: 6px; }

.note { margin: 26px 0 0; text-align: center; font-size: .88rem; color: var(--muted); }

/* Fleet */
.fleet-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
}
.fleet-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.fleet-copy .eyebrow { margin-bottom: .6rem; }
.fleet-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.fleet-points li {
  position: relative;
  padding-left: 32px;
  color: var(--body);
}
.fleet-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.fleet-media {
  margin: 0;
  position: relative;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.fleet-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(11, 61, 145, .18));
}
.fleet-media figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: .88rem;
  color: var(--muted);
}

/* Why choose us */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}
.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit p:last-child { margin-bottom: 0; }
.benefit-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-700); color: #fff;
  margin-bottom: 16px;
}
.benefit-icon svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 30px;
  align-items: start;
}

.contact-info {
  background: linear-gradient(160deg, var(--blue-800), var(--blue-600));
  color: #dce9fb;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.contact-info h3 { color: #fff; margin-bottom: 1.1em; }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(255,255,255,.14); color: #fff;
}
.ci-icon svg { width: 20px; height: 20px; fill: currentColor; }
.ci-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #a9c8f2; }
.contact-list a { color: #fff; font-weight: 500; word-break: break-word; }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.ci-plain { color: #fff; font-weight: 500; }

.notice {
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: .88rem;
  line-height: 1.6;
}
.notice strong { color: #fff; }

/* Form */
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

label {
  display: block;
  font-size: .88rem; font-weight: 600; color: var(--ink);
  margin-bottom: 7px;
}
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder, textarea::placeholder { color: #9fadc4; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47,139,245,.15);
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2371809a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 22px; padding-right: 38px; }

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--danger); }
.field.invalid input:focus,
.field.invalid select:focus,
.field.invalid textarea:focus { box-shadow: 0 0 0 4px rgba(198,40,40,.12); }

.error { display: none; color: var(--danger); font-size: .82rem; margin-top: 6px; }
.field.invalid .error { display: block; }

.form-note { font-size: .83rem; color: var(--muted); margin: 4px 0 18px; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 500;
}
.form-status.show { display: block; }
.form-status.success { background: #e7f6ee; color: var(--success); border: 1px solid #bfe6d1; }
.form-status.error   { background: #fdecec; color: var(--danger);  border: 1px solid #f5c6c6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #b9cdea; padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.site-footer h4 { color: #fff; margin-bottom: 1em; font-size: .95rem; letter-spacing: .02em; }
/* The logo sits on a transparent background; a white plate keeps the blue
   wordmark legible against the dark navy footer. */
.brand-footer {
  display: inline-block;
  background: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.brand-footer .brand-logo { height: 96px; }
.footer-about { font-size: .92rem; max-width: 38ch; margin: 0; }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.footer-links a { color: #b9cdea; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 20px 26px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-disclaimer { color: #8aa6cf; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-700); color: #fff;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .2s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-800); color: #fff; }
.to-top svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  /* Tablet: slightly smaller lockup */
  :root { --header-h: 98px; }
  .brand-logo { height: 66px; }
  .brand-footer .brand-logo { height: 86px; }

  .hero-inner { text-align: left; }
  .hero-copy { max-width: none; }
  .hero-points { gap: 16px 18px; font-size: .9rem; }

  /* Copy now spans the full width, so even out the scrim across the frame. */
  .hero::before { background-position: 72% center; }
  .hero::after {
    background:
      linear-gradient(100deg,
        rgba(6, 25, 56, .93) 0%,
        rgba(6, 25, 56, .88) 45%,
        rgba(6, 30, 68, .74) 100%),
      linear-gradient(180deg,
        rgba(4, 18, 42, .42) 0%,
        rgba(4, 18, 42, .08) 35%,
        rgba(4, 18, 42, .48) 100%);
  }
  .grid-2 { grid-template-columns: 1fr; }
  .about-images { padding-right: 0; padding-bottom: 0; display: grid; gap: 16px; }
  .about-img-main { width: 100%; }
  .about-img-sub { position: static; width: 100%; border-width: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .fleet-grid { grid-template-columns: 1fr; }
  .fleet-media { order: -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .hero-points { grid-template-columns: 1fr 1fr; font-size: .95rem; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 22px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, transform .22s, visibility .22s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .nav-link { display: block; padding: 14px 2px; font-size: 1rem; }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 18px; width: 100%; }
}

@media (max-width: 620px) {
  /* Mobile: keep the stacked lockup readable beside the menu button */
  :root { --header-h: 86px; }
  .brand-logo { height: 58px; }
  .brand-footer { padding: 14px 18px; }
  .brand-footer .brand-logo { height: 76px; }

  body { font-size: 15.5px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { gap: 12px; margin: 26px 0 28px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero-points { grid-template-columns: 1fr; gap: 14px; }
  .hero-points li br { display: none; }

  /* Mobile: serve the lighter crop, and veil it evenly — at this width the
     copy sits over the whole photo, not just its calm left side. */
  .hero::before {
    background-image: url("images/hero-bg-sm.jpg");
    background-position: 76% center;
  }
  .hero::after {
    background: linear-gradient(175deg,
      rgba(5, 22, 50, .93) 0%,
      rgba(5, 24, 56, .88) 50%,
      rgba(5, 26, 62, .90) 100%);
  }
  .point-icon { width: 40px; height: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-form, .contact-info { padding: 24px 20px; }
  .card { padding: 26px 22px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Parallax section background (Services) ---------- */
.section-parallax {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Overscaled image layer: the extra height is the travel room for the shift. */
.section-parallax::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--parallax-overscan) * -1);
  bottom: calc(var(--parallax-overscan) * -1);
  background-image: var(--parallax-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--parallax-shift, 0px), 0);
  will-change: transform;
  z-index: -2;
}

/* Readability veil: keeps body copy and cards clear over the photo. */
.section-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 22, 52, .72) 0%, rgba(4, 22, 52, .58) 45%, rgba(4, 22, 52, .74) 100%),
    linear-gradient(90deg, rgba(6, 42, 99, .22), rgba(6, 42, 99, .08));
  z-index: -1;
}

#services {
  --parallax-image: url("images/services-bg.jpg");
  --parallax-overscan: 90px;
}

/* Cards sit on the photo, so lift them off it a little. */
.section-parallax .card { box-shadow: var(--shadow); }

/* Section copy sits directly on the darkened photo, so flip it to light. */
.section-parallax .section-head h2 { color: #fff; }
.section-parallax .section-head .eyebrow { color: #bcd6ff; }
.section-parallax .section-head .section-sub { color: #e4eeff; }
.section-parallax .note { color: #d8e5fb; }

@media (max-width: 860px) {
  #services { --parallax-overscan: 60px; }
}

/* Touch/narrow viewports: no shift, slightly stronger veil for small text. */
@media (max-width: 620px) {
  #services { --parallax-overscan: 0px; }
  .section-parallax::before { transform: none; will-change: auto; }
  .section-parallax::after {
    background: linear-gradient(180deg, rgba(4, 22, 52, .8) 0%, rgba(4, 22, 52, .72) 50%, rgba(4, 22, 52, .82) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-parallax::before { transform: none !important; will-change: auto; }
}
