/* ==========================================================================
   Just Right Automotive - Bristol, CT
   Vintage American service station, modernized.
   Palette: deep navy / signal red / warm cream (from the shop sign)
   Type: Barlow Condensed (display) · Barlow (body) · Yellowtail (script)
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-condensed-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Yellowtail';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/yellowtail-400.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #0a0f2c;
  --navy-900: #10173f;
  --navy-800: #151d4e;
  --navy-700: #20295e;
  --navy-100: #dde2f1;
  --red-700: #a81824;
  --red-600: #c4202e;
  --red-500: #d92632;
  --cream: #f7f4ec;
  --cream-deep: #efeadd;
  --white: #ffffff;
  --ink: #1b2240;
  --muted: #5b6280;
  --steel: #9aa3c7;
  --line: #e2dccc;
  --line-navy: #2a3469;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;
  --font-script: 'Yellowtail', cursive;

  --container: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 6px rgba(16, 23, 63, 0.06), 0 12px 32px rgba(16, 23, 63, 0.08);
  --shadow-lift: 0 6px 14px rgba(16, 23, 63, 0.10), 0 22px 48px rgba(16, 23, 63, 0.14);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: var(--red-600); }
a:hover { color: var(--red-700); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red-600);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

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

/* Script accent + section eyebrows */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.eyebrow {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  color: var(--red-600);
  margin-bottom: 0.35rem;
  transform: rotate(-2deg);
  transform-origin: left bottom;
}
.on-dark .eyebrow { color: var(--red-500); }

.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { transform: rotate(-2deg); }
.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  color: var(--navy-800);
}
.on-dark .section-head h2 { color: var(--white); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.on-dark .section-head p { color: var(--steel); }

/* Red pinstripe rule - echoes the sign border */
.pinstripe {
  border: 0;
  height: 7px;
  width: 76px;
  margin: 1.1rem 0 0;
  border-top: 2px solid var(--red-600);
  border-bottom: 2px solid var(--red-600);
}
.section-head.centered .pinstripe { margin-inline: auto; }

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.bg-white { background: var(--white); }
.bg-navy { background: var(--navy-900); color: var(--navy-100); }
.bg-navy-deep {
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(48, 62, 138, 0.45), transparent 60%),
    var(--navy-950);
  color: var(--navy-100);
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--navy-950);
  color: var(--steel);
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.utility-bar a { color: var(--navy-100); text-decoration: none; font-weight: 600; }
.utility-bar a:hover { color: var(--white); }
.utility-bar .util-hours { display: none; }
@media (min-width: 720px) {
  .utility-bar .util-hours { display: block; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-navy);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(7, 10, 30, 0.45); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
}

/* Logo lockup */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 1;
  text-decoration: none;
  padding: 0.15rem 0;
}
.brand img {
  display: block;
  width: min(15.5rem, 58vw);
  height: auto;
}

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-100);
  text-decoration: none;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--white); border-bottom-color: var(--red-500); }
.main-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--red-500); }

.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.25s var(--ease-snap), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .brand img { width: min(13.25rem, 56vw); }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line-navy);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line-navy);
    font-size: 1.2rem;
  }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line-navy); color: var(--red-500); }
  .nav-cta { margin-top: 1rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.78rem 1.6rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease-snap), box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-red {
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(196, 32, 46, 0.35);
}
.btn-red:hover {
  background: var(--red-500);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(196, 32, 46, 0.45);
}

.btn-ghost { border-color: var(--steel); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }

.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); transform: translateY(-2px); }

.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 80% -120px, rgba(53, 68, 150, 0.55), transparent 62%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 26px),
    var(--navy-950);
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem);
}
/* inset red pinstripe frame, like the sign */
.hero::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(217, 38, 50, 0.38);
  border-radius: 8px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero .eyebrow { font-size: clamp(1.7rem, 3vw, 2.2rem); }

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 4.9rem);
  color: var(--white);
  margin-bottom: 0.35em;
}
.hero h1 .script {
  display: block;
  color: var(--red-500);
  font-size: 0.92em;
  margin-top: 0.08em;
  transform: rotate(-2deg);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--steel);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}
.hero-sub strong { color: var(--navy-100); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-100);
}
.hero-points svg { color: var(--red-500); flex: none; }

/* Hero photo card */
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  margin: 0;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 2px solid var(--red-600);
  border-radius: var(--radius-lg);
  opacity: 0.85;
}
.hero-photo img {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(4, 7, 22, 0.6);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero-badge {
  position: absolute;
  bottom: -26px;
  left: -18px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--cream);
  color: var(--navy-800);
  border-radius: 12px;
  padding: 0.7rem 1.15rem 0.7rem 0.8rem;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
.hero-badge svg { width: 44px; height: 44px; flex: none; }
.hero-badge .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  display: block;
}
.hero-badge .lbl {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 880px) {
  .hero-photo { margin-top: 0.5rem; }
  .hero-badge { left: 10px; bottom: -22px; }
}

/* ---------- Marquee service strip ---------- */
.marquee {
  background: var(--red-600);
  color: var(--white);
  overflow: hidden;
  padding: 0.62rem 0;
  border-top: 3px solid var(--navy-950);
  border-bottom: 3px solid var(--navy-950);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 135s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 1.1rem;
}
.marquee-track span::after { content: '•'; margin-left: 2.2rem; opacity: 0.65; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track span:nth-child(n+7) { display: none; }
}

/* ---------- Promise cards ---------- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
@media (max-width: 1020px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .promise-grid { grid-template-columns: 1fr; } }

.promise-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.promise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red-600);
}
.promise-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--white);
  margin-bottom: 1.1rem;
}
.promise-card h3 { font-size: 1.45rem; color: var(--navy-800); margin-bottom: 0.4rem; }
.promise-card p { font-size: 0.98rem; color: var(--muted); margin: 0; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1020px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.3rem 1.3rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s var(--ease-snap), box-shadow 0.22s ease, border-color 0.22s ease;
}
.service-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--red-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-snap);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

.service-card .icon { color: var(--red-600); }
.service-card h3 { font-size: 1.3rem; color: var(--navy-800); margin: 0; }
.service-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.service-card .more {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-600);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-snap);
}
.service-card:hover .more { opacity: 1; transform: translateX(0); }

.service-card.featured {
  background: var(--navy-800);
  border-color: var(--navy-700);
}
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: var(--steel); }
.service-card.featured .icon { color: var(--red-500); }

.services-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Real work gallery ---------- */
.gallery-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 30vw, 360px);
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1.4rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--red-600) var(--navy-800);
}
.gallery-scroller figure {
  margin: 0;
  scroll-snap-align: start;
  background: var(--navy-800);
  border: 1px solid var(--line-navy);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-scroller img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-scroller figcaption {
  padding: 0.8rem 1rem 0.9rem;
  font-size: 0.92rem;
  color: var(--steel);
}
.gallery-scroller figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.gallery-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--steel);
  margin: 0.2rem 0 0;
}

/* ---------- About teaser / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.framed-photo {
  position: relative;
  margin: 0;
}
.framed-photo::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--red-600);
  border-radius: var(--radius-lg);
  opacity: 0.55;
}
.framed-photo img {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.framed-photo.landscape img { aspect-ratio: 4 / 3; }

.split h2 { font-size: clamp(2.1rem, 4vw, 2.9rem); color: var(--navy-800); }
.on-dark .split h2 { color: var(--white); }
.split .lead { font-size: 1.15rem; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: 0.6rem;
}
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; }
.checklist svg { color: var(--red-600); flex: none; margin-top: 0.22rem; }
.on-dark .checklist svg { color: var(--red-500); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy-800);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--red-600);
  flex: none;
  line-height: 1;
  transition: transform 0.2s var(--ease-snap);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.35rem 1.2rem; color: var(--muted); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Visit / contact ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: stretch;
}
@media (max-width: 880px) { .visit-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.9rem;
}
.info-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--red-600);
  margin: 1.5rem 0 0.5rem;
}
.info-card h3:first-child { margin-top: 0; }
.info-card p { margin: 0 0 0.3rem; }
.info-card a { text-decoration: none; font-weight: 600; color: var(--navy-800); }
.info-card a:hover { color: var(--red-600); }
.info-card .phone-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.03em;
}

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours-table td { padding: 0.32rem 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy-800); }
.hours-table tr.closed td:last-child { color: var(--muted); font-weight: 400; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 380px;
  display: grid;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 26px),
    var(--navy-900);
  color: var(--white);
  text-align: center;
  border-top: 3px solid var(--red-600);
  border-bottom: 3px solid var(--red-600);
}
.cta-band h2 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.2rem); }
.cta-band .script { color: var(--red-500); }
.cta-band p { color: var(--steel); max-width: 540px; margin: 0 auto 1.8rem; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--steel);
  padding: 3.5rem 0 0;
  border-top: 6px double var(--red-600);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3 {
  color: var(--white);
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--steel); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-brand .brand { padding: 0; margin-bottom: 0.9rem; }
.footer-brand .brand img { width: min(13.5rem, 70vw); }
.footer-brand p { max-width: 30ch; }

.social-row { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-navy);
  display: grid;
  place-items: center;
  color: var(--navy-100);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-snap);
}
.social-row a:hover {
  background: var(--red-600);
  border-color: var(--red-600);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--line-navy);
  padding: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.footer-bottom .script { color: #ee6a73; font-size: 1.1rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 420px at 80% -120px, rgba(53, 68, 150, 0.5), transparent 62%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 26px),
    var(--navy-950);
  color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(217, 38, 50, 0.3);
  border-radius: 8px;
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); color: var(--white); margin-bottom: 0.2em; }
.page-hero p { color: var(--steel); font-size: 1.15rem; max-width: 46rem; margin: 0; }

/* ---------- Service detail rows ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.2rem, 5vw, 3.5rem) 0;
  border-bottom: 1px dashed var(--line);
  scroll-margin-top: 110px;
}
.service-detail:last-of-type { border-bottom: 0; }
.service-detail.reverse > .service-media { order: 2; }
@media (max-width: 760px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse > .service-media { order: 0; }
}
.service-detail h2 { font-size: 1.9rem; color: var(--navy-800); display: flex; align-items: center; gap: 0.7rem; }
.service-detail h2 .icon { color: var(--red-600); flex: none; }
.service-detail p { color: var(--muted); }
.service-media { margin: 0; }
.service-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service-detail .plain { background: var(--cream-deep); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.95rem; }
.service-detail.no-media { grid-template-columns: 1fr; max-width: 780px; }

/* ---------- Scroll reveal (only when JS is available) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-snap);
}
.reveal.in-view { opacity: 1; transform: none; }
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease-snap);
}
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.54s; }
.reveal-stagger.in-view > *:nth-child(n+9) { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .social-row a { transition: none; }
}

/* ---------- Mobile call FAB ---------- */
.call-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: var(--red-600);
  color: var(--white);
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(196, 32, 46, 0.5);
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 880px) {
  .call-fab { display: inline-flex; }
}
