/* ============================================================
   Garage Casamance — Dakar
   Palette: bleached cream + oxblood + navy
   Type: deliberately wrong weight (thin H1, bold body)
   Layout: full-bleed image gallery
   ============================================================ */

:root {
  --bg: #f4ecdc;
  --bg-deep: #e8dcc4;
  --ink: #1a1b2e;
  --ink-soft: #4a4a5e;
  --accent: #6b1f1a;
  --accent-bright: #8c2a22;
  --secondary: #1e2a4a;
  --line: rgba(26, 27, 46, 0.16);
  --card: rgba(255, 252, 244, 0.62);
  --a: rgba(107, 31, 26, 0.10);
  --b: rgba(30, 42, 74, 0.10);
  --shadow: 0 1px 0 rgba(26, 27, 46, 0.06), 0 18px 40px -28px rgba(26, 27, 46, 0.45);

  --f-display: "Fraunces", "Playfair Display", Georgia, serif;
  --f-body: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --measure: 62ch;
}

html[data-theme="dark"] {
  --bg: #14151f;
  --bg-deep: #0e0f17;
  --ink: #f2e9d8;
  --ink-soft: #b9b2a4;
  --accent: #d4705f;
  --accent-bright: #e88a76;
  --secondary: #8fa6d8;
  --line: rgba(242, 233, 216, 0.18);
  --card: rgba(30, 32, 46, 0.62);
  --a: rgba(212, 112, 95, 0.14);
  --b: rgba(143, 166, 216, 0.12);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -28px rgba(0, 0, 0, 0.8);
}

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

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

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 70% at 0% 0%, var(--a) 0%, transparent 62%),
    radial-gradient(ellipse 80% 60% at 100% 100%, var(--b) 0%, transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  text-wrap: pretty;
  overflow-x: hidden;
}

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

a { color: var(--accent); }

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

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 {
  font-weight: 200;
  font-size: clamp(2.6rem, 1.4rem + 6.4vw, 7rem);
}

h2 {
  font-weight: 300;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.1rem);
}

h3 {
  font-weight: 400;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  letter-spacing: -0.005em;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }

.eyebrow {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand__mark {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.brand__sub {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover { background: var(--card); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.05rem;
  background: var(--accent);
  color: #fdf7ec;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.call-btn:hover { background: var(--accent-bright); transform: translateY(-1px); }
.call-btn svg { width: 15px; height: 15px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  min-height: min(88vh, 780px);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 21, 31, 0.55) 0%, rgba(20, 21, 31, 0.18) 38%, rgba(20, 21, 31, 0.86) 100%),
    linear-gradient(90deg, rgba(107, 31, 26, 0.34) 0%, transparent 62%);
}

.hero__inner {
  padding: clamp(4rem, 14vh, 9rem) var(--pad) clamp(2.5rem, 7vh, 4.5rem);
  color: #f7efe1;
  max-width: 1180px;
}

.hero h1 {
  color: #fbf5e9;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
  max-width: 18ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 200;
  color: #f0c9a8;
}

.hero__lede {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  color: rgba(247, 239, 225, 0.9);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(247, 239, 225, 0.28);
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 239, 225, 0.82);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.4rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--solid { background: var(--accent); color: #fdf7ec; }
.btn--solid:hover { background: var(--accent-bright); transform: translateY(-1px); }

.btn--ghost {
  background: rgba(247, 239, 225, 0.08);
  color: #f7efe1;
  border-color: rgba(247, 239, 225, 0.5);
}

.btn--ghost:hover { background: rgba(247, 239, 225, 0.18); }

.btn svg { width: 16px; height: 16px; }

/* ---------- generic section ---------- */

.section {
  padding: clamp(3.5rem, 9vw, 7rem) var(--pad);
}

.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.section__head {
  max-width: 1180px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .section__head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: end;
    gap: 3rem;
  }
}

/* anchor-positioned scroll labels */
.anchor-host { anchor-name: --heading; }

.scroll-label {
  display: none;
}

@media (min-width: 1100px) {
  @supports (anchor-name: --x) {
    .scroll-label {
      display: block;
      position: absolute;
      position-anchor: --heading;
      position-area: right span-block;
      margin-left: 1.5rem;
      align-self: start;
      font-family: var(--f-mono);
      font-weight: 400;
      font-size: 0.66rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      writing-mode: vertical-rl;
      white-space: nowrap;
      opacity: 0.75;
    }
  }
}

/* ---------- full-bleed gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  width: 100%;
}

.gallery > * { grid-column: 1 / -1; }

.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.gallery figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.86) contrast(1.03);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery figure:hover img { transform: scale(1.02); }

.gallery figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: clamp(1.2rem, 4vw, 2.6rem) var(--pad);
  background: linear-gradient(0deg, rgba(20, 21, 31, 0.82) 0%, transparent 100%);
  color: #f7efe1;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery figcaption strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.05rem, 0.95rem + 0.8vw, 1.6rem);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 0.3rem;
}

@media (min-width: 760px) {
  .gallery > .half { grid-column: span 6; }
  .gallery > .third { grid-column: span 4; }
}

/* ---------- services ---------- */

.services {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 2.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 820px) {
  .service {
    grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.35fr);
    align-items: baseline;
  }
}

.service__num {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.service h3 { margin: 0; }

.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 58ch;
}

/* ---------- split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

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

.split__media { position: relative; min-height: 320px; }

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.split__body {
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card);
  backdrop-filter: blur(6px);
}

.split__body p { color: var(--ink-soft); }

/* ---------- zone / coverage ---------- */

.zones {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.zone {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
}

.zone h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.zone p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-family: var(--f-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ---------- info / hours ---------- */

.info {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .info { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.hours li span:first-child { font-family: var(--f-mono); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.06em; }
.hours li.is-closed span:last-child { color: var(--accent); }
.hours li.is-today { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.hours li.is-today span { font-weight: 700; }

.contact-card {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-card h3 { margin-bottom: 0.9rem; }

.contact-line {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.contact-line:last-of-type { border-bottom: 0; }

.contact-line svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.25rem;
  color: var(--accent);
}

.contact-line a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-line a:hover { color: var(--accent); }

.contact-line strong { display: block; font-size: 1.15rem; letter-spacing: -0.01em; }

.note {
  margin-top: 1.2rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-family: var(--f-mono);
  font-weight: 400;
  line-height: 1.7;
}

/* ---------- quote ---------- */

.quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.quote blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.7rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--f-mono);
  font-weight: 400;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(3rem, 7vw, 5rem) var(--pad) 2rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

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

.footer-grid h3 {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.footer-grid p,
.footer-grid li { font-size: 0.92rem; color: var(--ink-soft); }

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 0.28rem 0; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-grid a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.claim-banner {
  display: block;
  max-width: 1180px;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.claim-banner:hover { color: var(--accent); border-color: var(--accent); }

.attribution {
  max-width: 1180px;
  margin: 1.4rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.attribution a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.attribution a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- reveal on scroll (CSS only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 32%;
    }
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .gallery figure:hover img { transform: none; }
}

/* ---------- small screens ---------- */

@media (max-width: 620px) {
  .site-header { padding-block: 0.55rem; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .nav a { padding: 0 0.55rem; font-size: 0.82rem; }
  .brand__sub { display: none; }
  .hero { min-height: 78vh; }
}
