/* =========================================================================
   Luciano's Collision Center — styles.css  (v3: editorial / premium layout)
   Brand red is sampled from the real logo. Fonts (Barlow, Barlow Condensed)
   are self-hosted in /assets/fonts — no third-party font requests.
   ========================================================================= */

/* Self-hosted fonts (SIL Open Font License) */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/barlow-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/barlow-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/barlow-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #D9000D;
  --red-dark: #B3000B;
  --ink: #1B1D21;
  --paper: #F7F6F2;
  --paper-2: #ECEAE4;
  --line: #D8D6D0;
  --muted: #5E5F64;
  --dark: #171719;
  --dark-2: #262629;
  --white: #FFFFFF;
  --focus: #E49126;

  --font-body: 'Barlow', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', Arial, sans-serif;

  --wrap: 1200px;
  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(23, 23, 25, .08);
  --shadow-md: 0 10px 28px rgba(23, 23, 25, .14);

  /* legacy aliases (kept so older rules/pages keep working) */
  --color-accent: var(--red);
  --color-accent-hover: var(--red-dark);
  --color-graphite: var(--ink);
  --color-border: var(--line);
  --color-muted: var(--muted);
  --color-surface: var(--paper-2);
  --color-white: var(--white);
  --color-ink: var(--ink);
}

*, *::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.6;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 76px;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red); }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
a, button { transition: background-color .18s, color .18s, border-color .18s; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.7rem, 5.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link {
  position: absolute; left: 0; top: -100px; z-index: 1000;
  background: #fff; color: var(--ink); padding: .75rem 1rem;
}
.skip-link:focus { top: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
@media (min-width: 900px) { .container { width: min(var(--wrap), calc(100% - 80px)); } }

/* ---------- Eyebrow / lead ---------- */
.eyebrow, .pill {
  display: block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.1rem;
  padding: 0;
  background: none;
  border-radius: 0;
}
.lead { font-size: 1.3rem; line-height: 1.55; color: #4a4b50; max-width: 62ch; }
.section__intro { max-width: 60ch; color: var(--muted); margin-bottom: 2rem; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  font-family: var(--font-body); font-size: .9rem; font-weight: 700; letter-spacing: .02em; line-height: 1.1;
  padding: .95rem 1.35rem;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
}
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--secondary { background: transparent; color: var(--ink); border-color: #8d8b86; }
.btn--secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .7rem 1.05rem; font-size: .85rem; }
.btn--arrow::after { content: "\2197"; font-size: 1.05em; line-height: 1; }
.mobile-bar .btn::after, .form .btn::after { display: none; }

/* ---------- Top info bar ---------- */
.topline { background: var(--dark); color: #d9d9dc; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.topline .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem; }
.topline a { color: #fff; text-decoration: none; font-weight: 600; }
.topline a:hover { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; display: block; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; background: none; color: var(--ink);
  border: 1px solid #8d8b86; border-radius: var(--radius); padding: .5rem .8rem; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 2px; background: var(--ink); position: relative; display: block; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.primary-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.primary-nav ul a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--red); }
.primary-nav a.btn--primary, .primary-nav a.btn--primary:hover { color: #fff; }
.primary-nav a.btn--secondary:hover { color: #fff; }
.header-actions { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; margin-top: 1.1rem; }
.lang-switch { font-weight: 600; white-space: nowrap; }
.header-actions .lang-switch { padding: .4rem 0; }
.header-actions .btn { width: 100%; }

.site-header[data-open="true"] .primary-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: .5rem 20px 1.5rem;
}

@media (min-width: 1080px) {
  .site-header__inner { min-height: 92px; }
  .brand img { height: 52px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; align-items: center; gap: 2rem; }
  .primary-nav ul { flex-direction: row; gap: 1.9rem; }
  .primary-nav ul a { padding: .25rem 0; border: 0; font-size: .95rem; }
  .header-actions { flex-direction: row; align-items: center; gap: 1.5rem; margin: 0; }
  .header-actions .btn { width: auto; }
  .header-actions .lang-switch { padding: 0 0 0 1.5rem; border-left: 1px solid var(--line); font-size: .95rem; }
  .header-call { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.25rem); }
.section--surface { background: var(--paper-2); }
.section--dark { background: var(--dark); color: #e6e6e8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.section-heading { display: grid; gap: 1.25rem; margin-bottom: 1rem; }
.section-heading > p { color: #4a4b50; max-width: 46ch; font-size: 1.1rem; margin: 0; }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .section-heading, .split { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .section-heading > p { padding-top: 2.4rem; }
}

/* ---------- Hero: copy on the left, photo anchored right and faded into the dark panel ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 580px; color: #fff; background: var(--dark); overflow: hidden; }
.hero__bg {
  position: absolute; top: 0; right: 0; bottom: 0; height: 100%;
  width: min(64%, 1040px); object-fit: cover; object-position: 58% 55%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18%);
}
.hero__shade { display: none; }
.hero__content { position: relative; padding-block: 4.5rem; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 1.25rem; }
.hero .eyebrow { color: #f3b3b7; }
.hero__lede { max-width: 40ch; color: #e6e4e2; font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__trust { margin: 1.75rem 0 0; font-size: .95rem; color: #c9c8c6; max-width: 46ch; }
.hero__trust a { color: #fff; }
/* below 1000px the photo becomes a banner above the copy, so nothing overlaps the text */
@media (max-width: 999px) {
  .hero { display: block; min-height: 0; }
  .hero__bg { position: static; width: 100%; height: clamp(210px, 46vw, 380px); -webkit-mask-image: none; mask-image: none; object-position: 62% 55%; }
  .hero__content { padding-block: 2.25rem 3rem; }
  .hero__lede, .hero__trust { max-width: none; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.trust__item { padding: 1.15rem 1rem 1.15rem 0; font-weight: 700; font-size: 1rem; line-height: 1.25; }
.trust__item small { display: block; margin-top: .2rem; font-weight: 400; font-size: .85rem; color: var(--muted); }
.trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
.trust__item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1rem; }
@media (min-width: 900px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .trust__item { padding: 1.5rem 1.5rem 1.5rem 0; }
  .trust__item + .trust__item { border-left: 1px solid var(--line); padding-left: 1.75rem; }
  .trust__item:nth-child(n+3) { border-top: 0; }
}

/* ---------- Numbered service list ---------- */
.service-list { display: grid; gap: 0 4rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-list article { position: relative; display: flex; gap: 1.25rem; border-top: 1px solid var(--line); padding: 1.6rem 0 1.8rem; }
.service-list .number { font-size: .75rem; font-weight: 700; color: var(--red); letter-spacing: .08em; padding-top: .55rem; }
.service-list h3 { font-size: 1.9rem; margin-bottom: .4rem; }
.service-list h3 a { text-decoration: none; }
.service-list h3 a::after { content: ""; position: absolute; inset: 0; }
.service-list p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 44ch; }
.service-list__arrow { margin-left: auto; font-size: 1.6rem; line-height: 1; padding-left: 1rem; }
.service-list article:hover h3 a, .service-list article:hover .service-list__arrow { color: var(--red); }

/* ---------- Principles row ---------- */
.principles { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.principles li { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.principles h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.principles p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .principles { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* ---------- Insurance / dark band ---------- */
.band { background: var(--dark-2); color: #fff; border-left: 8px solid var(--red); padding-block: clamp(3.5rem, 7vw, 6rem); }
.band .eyebrow { color: #f0a4a9; }
.band h2 { color: #fff; max-width: 18ch; }
.band .lead { color: #cfcfd2; max-width: 56ch; }
.band .actions { margin-top: 1.75rem; }

/* ---------- Process ---------- */
.process { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.75rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
.process li { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.process .number { font-size: .75rem; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.process h3 { font-size: 1.5rem; margin: .6rem 0 .35rem; }
.process p { margin: 0; font-size: .98rem; color: var(--muted); }
@media (min-width: 760px) { .process { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 1.75rem 1.5rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: #333; }
.gallery strong { display: block; font-size: 1.1rem; margin-top: .9rem; }
.gallery small { display: block; color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.gallery-note { font-size: .85rem; color: var(--muted); margin: 1.25rem 0 0; }

/* ---------- Location band ---------- */
.location { background: var(--paper-2); }
.map-block { display: grid; gap: 2rem; }
@media (min-width: 900px) { .map-block { grid-template-columns: 1.1fr .9fr; align-items: stretch; gap: 3rem; } }
.map-block__media { border-radius: var(--radius); overflow: hidden; }
.map-block__media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.address-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.address-card dl { margin: 0; display: grid; gap: .5rem; }
.address-card dt { font-weight: 700; color: var(--red); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.address-card dd { margin: 0 0 .6rem; font-size: 1.1rem; }
.address-card h3, .address-card h2 { margin-top: 0; }
.address-card .btn + .btn { margin-top: .5rem; }

/* ---------- Cards (legacy pages: About, services index, related links) ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card h3 { margin-top: 0; font-size: 1.55rem; }
.card p { color: var(--muted); }
.card__icon { display: none; }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card--link:hover { border-color: var(--ink); color: inherit; }
.card--link:hover h3 { color: var(--red); }
.card__cta { margin-top: auto; font-weight: 700; color: var(--red); font-size: .95rem; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.trust-list li { display: flex; gap: .7rem; align-items: flex-start; }
.trust-list .check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .8rem; margin-top: .2rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 0; background: none; border-radius: 0; margin: 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.3rem 0; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding: 0 0 1.4rem; margin: 0; color: var(--muted); max-width: 70ch; }
.faq .container > h2 { margin-bottom: 1.5rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--dark); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1rem; text-align: left; border-left: 8px solid var(--red); }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #cfcfd2; max-width: 56ch; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-start; margin-top: .75rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 680px; background: #fff; border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); }
.form__row { display: grid; gap: .35rem; }
.form label { font-weight: 600; font-size: .95rem; }
.form .req { color: var(--red); }
.form input, .form select, .form textarea {
  padding: .75rem .8rem; border: 1px solid #aaa9a5; border-radius: 0; background: #fafaf8; color: var(--ink); width: 100%; margin-top: .15rem;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.form__hint { font-size: .9rem; color: var(--muted); }
.form__consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400 !important; font-size: .95rem !important; }
.form__consent input { width: 18px; height: 18px; margin-top: .25rem; flex: none; padding: 0; }
.form__honey { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { border-radius: 0; padding: .9rem 1rem; display: none; }
.form-status[data-state="error"] { display: block; background: #FDECEC; border: 1px solid #E4736F; }
.form-status[data-state="success"] { display: block; background: #E7F6EC; border: 1px solid #74C68A; }
.form__sms { background: var(--paper); border: 1px solid var(--line); padding: 1rem 1.1rem; }
.form__sms-title { margin: 0 0 .5rem; }
.form__optional { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-left: .4rem; }

/* ---------- Notices, breadcrumbs ---------- */
.notice { background: #FFF7E6; border: 1px solid #F0C674; border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .95rem; }
.breadcrumbs { font-size: .85rem; padding-top: 1.25rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: .4rem; color: #b9b7b0; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Photos (service heroes, About, Contact) ---------- */
.media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--has-caption { display: flex; flex-direction: column; overflow: visible; background: none; }
.media--has-caption img { border-radius: var(--radius); aspect-ratio: 16 / 9; height: auto; }
.media--has-caption.media--natural img { aspect-ratio: auto; }
.media figcaption { font-size: .82rem; color: var(--muted); padding: .55rem 0 0; background: none; border: 0; }
.page-hero-media { margin-top: 1.75rem; max-width: 1000px; }
.media-stack { display: grid; gap: 1.25rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; }
.legal h1 { margin-bottom: .75rem; }
.legal h2 { font-size: 2rem; margin-top: 2.4rem; scroll-margin-top: 110px; }
.legal h3 { font-size: 1.35rem; margin-top: 1.4rem; }
.legal p, .legal li { color: #3e3f44; }
.legal [id] { scroll-margin-top: 110px; }
.legal .toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 1.5rem 0 0; }
.legal .toc ol { margin: .5rem 0 0; padding-left: 1.2rem; columns: 1; }
@media (min-width: 680px) { .legal .toc ol { columns: 2; column-gap: 2rem; } }
.sms-callout { border-left: 4px solid var(--red); background: #fff; padding: 1rem 1.25rem; margin: 1rem 0; }
.sms-callout p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #c8c8cb; padding-block: 4rem 0; }
.site-footer a { color: #e8e8ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3.5rem; } }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.site-footer p { font-size: .95rem; }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 46px; width: auto; display: block; }
.site-footer__bottom { margin-top: 3rem; padding-block: 1.25rem; border-top: 1px solid #3a3a3e; font-size: .8rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: .5rem; padding: .55rem; background: #fff; border-top: 1px solid var(--line); z-index: 90; }
.mobile-bar .btn { flex: 1; padding: .85rem .5rem; font-size: .9rem; }
@media (min-width: 1080px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Utility ---------- */
.stack > * + * { margin-top: 1rem; }
.stack h2 { margin-top: 2rem; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* service list on the services overview uses h2 (page already has the h1) */
.service-list h2 { font-size: 1.9rem; margin-bottom: .4rem; }
.service-list h2 a { text-decoration: none; }
.service-list h2 a::after { content: ""; position: absolute; inset: 0; }
.service-list article:hover h2 a { color: var(--red); }
.topline__city { display: none; }
@media (min-width: 480px) { .topline__city { display: inline; } }

/* ---------- Opening hours + live status ---------- */
.hours { list-style: none; margin: .7rem 0 0; padding: 0; max-width: 320px; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.hours li:first-child { border-top: 1px solid var(--line); }
.hours li.is-today { font-weight: 700; color: var(--ink); }
.hours li.is-today span:first-child::after { content: " \00b7 today"; font-weight: 600; color: var(--red); font-size: .8em; }
html[lang="es"] .hours li.is-today span:first-child::after { content: " \00b7 hoy"; }
.hours-note { margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }
.open-status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; }
.open-status:empty { display: none; }
.open-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8d8b86; flex: none; }
.open-status.is-open { color: #167a36; }
.open-status.is-open::before { background: #1fa34a; }
.open-status.is-closed { color: #a21d25; }
.open-status.is-closed::before { background: #d9000d; }
.address-card .open-status { display: flex; margin-bottom: .2rem; }
.topline__status { display: none; }
@media (min-width: 760px) {
  .topline__status { display: inline-flex; margin-left: auto; margin-right: 1.5rem; font-size: .72rem; letter-spacing: .08em; }
  .topline .container { gap: 0; }
}
.topline .open-status.is-open { color: #7ee2a1; }
.topline .open-status.is-closed { color: #ffb4b8; }
.site-footer .hours-note { color: #a9a9ad; }
