/* MON PARENT Automobile — Thiès
   Palette: warm earth editorial. Type: Fraunces + DM Sans.
   Layout: broadsheet columns. Motion: one-shot page-load. */

:root {
  --bg: #f5efe4;
  --bg-alt: #efe6d6;
  --surface: #fbf7ef;
  --ink: #2b1e14;
  --ink-soft: #5c4a3a;
  --ink-mute: #8a7767;
  --accent: #c25a37;
  --accent-deep: #9d4527;
  --secondary: #6a7a4a;
  --line: #ded1bd;
  --warm-light: rgba(226, 168, 106, 0.30);
  --glow-y: 12%;
  --shadow: 0 1px 2px rgba(43, 30, 20, 0.05), 0 12px 32px -18px rgba(43, 30, 20, 0.35);
  --radius: 4px;
  --wrap: 1180px;
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1410;
    --bg-alt: #221a14;
    --surface: #241c15;
    --ink: #f2e8da;
    --ink-soft: #cdbda9;
    --ink-mute: #9c8b78;
    --accent: #e07a52;
    --accent-deep: #f0936c;
    --secondary: #9aab74;
    --line: #3a2e24;
    --warm-light: rgba(200, 120, 60, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -18px rgba(0, 0, 0, 0.8);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Soft light source that drifts with scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% var(--glow-y), var(--warm-light) 0, transparent 62%);
  transition: background-position 0.4s linear;
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

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

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 2.5rem);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 0.7rem 1.1rem; z-index: 99;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-height: 44px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.08rem; letter-spacing: 0.02em; }
.brand-text em { font-style: normal; font-size: 0.74rem; color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase; }

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 0.6rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  min-height: 44px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.call-btn:hover { background: var(--accent-deep); color: #fff; }

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem); }

.kicker {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title { position: relative; margin-bottom: 1.4rem; max-width: 20ch; }
.hero-title .default,
.hero-title .alt { display: block; transition: opacity 0.35s ease; }
.hero-title .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: var(--accent);
  pointer-events: none;
}
.hero-title:hover .default,
.hero-title:focus-within .default { opacity: 0; }
.hero-title:hover .alt,
.hero-title:focus-within .alt { opacity: 1; }

.hero-sub { font-size: 1.14rem; color: var(--ink-soft); max-width: 58ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1.2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-note { font-size: 0.9rem; color: var(--ink-mute); margin: 0; }

/* ---------- Band ---------- */

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-alt) 70%, transparent);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.band-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.band-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.band-item p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

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

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: color-mix(in srgb, var(--bg-alt) 55%, transparent); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.lede { font-size: 1.08rem; color: var(--ink-soft); }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service {
  background: var(--surface);
  padding: 1.5rem 1.4rem;
}
.service h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.service-line { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.service-price {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--secondary);
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

/* ---------- Broadsheet ---------- */

.broadsheet {
  column-count: 3;
  column-gap: 3rem;
  column-rule: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.broadsheet p { font-size: 1.02rem; }
.broadsheet p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 0.82;
  float: left;
  padding: 0.1em 0.12em 0 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 900px) {
  .broadsheet { column-count: 2; column-gap: 2rem; }
}
@media (max-width: 620px) {
  .broadsheet { column-count: 1; column-rule: none; }
}

/* ---------- Figures ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.figure { margin: 0; }
.figure-wide { grid-column: span 2; }
.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.92) contrast(1.02);
}
.figure-wide img { aspect-ratio: 16 / 9; }
.figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: 0.6rem;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .figure-wide { grid-column: span 1; }
}

/* ---------- Quotes ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.quote {
  margin: 0;
  padding: 1.6rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.quote p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
.quote cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.03em;
}

/* ---------- Hours / zone ---------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.hours th, .hours td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; color: var(--ink-soft); width: 45%; }
.hours td { font-variant-numeric: tabular-nums; }
.hours tr.closed td { color: var(--accent); font-weight: 700; }
.hours-note { font-size: 0.88rem; color: var(--ink-mute); margin-top: 1rem; }

.zone-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.zone-list li {
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.98rem;
}
.zone-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15rem;
  width: 7px; height: 7px;
  background: var(--secondary);
  border-radius: 50%;
}
.zone-note { font-size: 0.88rem; color: var(--ink-mute); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.contact-card:hover { border-color: var(--accent); color: var(--ink); }
.contact-card-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.contact-card-primary:hover { color: var(--bg); border-color: var(--accent); }

.contact-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-card-primary .contact-label { color: color-mix(in srgb, var(--bg) 70%, transparent); }

.contact-value { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.contact-hint { font-size: 0.85rem; color: var(--ink-mute); }
.contact-card-primary .contact-hint { color: color-mix(in srgb, var(--bg) 65%, transparent); }

.contact-foot { margin-top: 1.8rem; font-size: 0.92rem; color: var(--ink-mute); }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-alt) 80%, transparent);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  font-size: 0.94rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand strong { font-family: var(--serif); font-size: 1.15rem; display: block; }
.footer-brand p { margin: 0.2rem 0; color: var(--ink-soft); font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--accent); }

.claim-banner {
  display: inline-block;
  margin: 1.5rem 0 1rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--line) 45%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.claim-banner:hover { color: var(--accent); border-color: var(--accent); }

.muted { font-size: 0.8rem; color: var(--ink-mute); margin: 0; }
.attribution a { color: var(--ink-mute); }

/* ---------- One-shot page-load orchestration ---------- */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typeIn {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

.site-header { animation: dropIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .kicker { animation: riseIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.hero-title { animation: typeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both; }
.hero-sub { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both; }
.hero-actions { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both; }
.hero-note { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero-title .default, .hero-title .alt { transition: none; }
}
