/* ============================================================
   UNITED STYLING SERVICES — Dakar
   Palette: cafe warmth (latte base, coffee ink, burgundy, olive)
   ============================================================ */

:root {
  --bg: #f4ead8;
  --bg-2: #efe2cb;
  --bg-3: #e6d6ba;
  --ink: #3a2415;
  --ink-soft: #5c4331;
  --accent: #6b1f1a;
  --secondary: #5a5e3a;
  --paper: #fbf5e9;
  --rule: rgba(58, 36, 21, 0.22);
  --shadow-hard: 4px 4px 0 rgba(58, 36, 21, 0.85);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1240px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  transition: background-color 420ms ease;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

.sr-only {
  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; z-index: 100;
  background: var(--accent); color: var(--paper);
  padding: 0.75rem 1rem; text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- shared bits ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 1rem;
}
.kicker--light { color: #d9c3a3; }

.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section-head h2 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-lede {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

section { padding: clamp(3.5rem, 9vw, 7rem) 0; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  border-radius: 3px;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.topnav {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.callbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 3px;
  white-space: nowrap;
}
.callbtn:hover { color: var(--paper); background: var(--ink); }
.callbtn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e8c9a0;
  flex: none;
}

@media (min-width: 900px) {
  .topnav { display: flex; }
}

/* ============================================================
   HERO — oversized display serif + diagonal split
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-split {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.split-a, .split-b {
  position: absolute;
  inset: -10% -5%;
  will-change: transform;
}
.split-a {
  background: linear-gradient(160deg, rgba(107, 31, 26, 0.10), rgba(107, 31, 26, 0));
  clip-path: polygon(0 0, 100% 0, 100% 46%, 0 62%);
}
.split-b {
  background: linear-gradient(200deg, rgba(90, 94, 58, 0.12), rgba(90, 94, 58, 0));
  clip-path: polygon(0 62%, 100% 46%, 100% 100%, 0 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(3.25rem, 17vw, 15rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: -0.18em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-body {
  position: relative;
  z-index: 3;
  max-width: 40rem;
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid var(--ink);
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  box-shadow: var(--shadow-hard);
}
.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translate(-2px, -2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-note {
  font-size: 0.875rem;
  color: var(--secondary);
  font-weight: 500;
}

.hero-figure {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: 0 var(--pad);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(58, 36, 21, 0.85);
}
.hero-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--secondary);
  letter-spacing: 0.02em;
}

/* ============================================================
   SERVICES — index card stack
   ============================================================ */
.card-stack {
  list-style: none;
  max-width: var(--maxw);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: 0 var(--pad);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-hard);
  transform: rotate(-0.8deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.card:nth-child(even) { transform: rotate(0.9deg); }
.card:hover {
  transform: rotate(0deg) translate(-3px, -3px);
  box-shadow: 8px 8px 0 rgba(58, 36, 21, 0.85);
}

.punch {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--ink);
}

.card-no {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 0.5rem;
}

.card h3 {
  font-size: clamp(1.375rem, 3.4vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.card-price {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--rule);
}
.card-price span {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.15rem;
}

@media (min-width: 700px) {
  .card-stack { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (min-width: 1080px) {
  .card-stack { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   ATELIER
   ============================================================ */
.atelier-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

.atelier-text h2 {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.atelier-text p { max-width: 52ch; color: var(--ink-soft); }

.facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}
.facts li { display: flex; flex-direction: column; }
.facts strong {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.facts span {
  font-size: 0.8125rem;
  color: var(--secondary);
  margin-top: 0.35rem;
}

.atelier-media {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.media-card {
  margin: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 0.75rem;
  box-shadow: var(--shadow-hard);
  transform: rotate(0.7deg);
}
.media-card--offset { transform: rotate(-1deg); }
.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-card figcaption {
  font-size: 0.8125rem;
  color: var(--secondary);
  padding-top: 0.6rem;
}

@media (min-width: 900px) {
  .atelier-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ============================================================
   ZONE / STEPS
   ============================================================ */
.steps {
  max-width: var(--maxw);
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  padding: 0 var(--pad);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}
.step-no {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.step h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.step p { font-size: 0.9375rem; color: var(--ink-soft); }

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.zone-grid {
  max-width: var(--maxw);
  margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  padding: 0 var(--pad);
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
.zone-sub {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
}
.zone-text p { color: var(--ink-soft); max-width: 50ch; }

.zone-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}
.zone-list li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--ink);
}
.zone-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  background: var(--secondary);
}

.zone-note {
  font-size: 0.875rem;
  color: var(--secondary);
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
}

.zone-figure {
  margin: 0;
  align-self: start;
}
.zone-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(58, 36, 21, 0.85);
}
.zone-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--secondary);
}

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

/* ============================================================
   HORAIRES
   ============================================================ */
.hours-wrap {
  max-width: var(--maxw);
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  padding: 0 var(--pad);
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
}
.hours th, .hours td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.9375rem;
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hours td {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}
.hours-sunday th, .hours-sunday td { background: rgba(90, 94, 58, 0.10); }

.hours-aside {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}
.hours-aside h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.hours-aside ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.hours-aside li { margin-bottom: 0.6rem; }

@media (min-width: 900px) {
  .hours-wrap { grid-template-columns: 1.15fr 0.85fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--paper);
}
.contact-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
.contact h2 {
  font-size: clamp(2.25rem, 6.5vw, 4.75rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--paper);
}
.contact-lede {
  color: #d9c3a3;
  max-width: 44ch;
}

.phone-big {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 1.75rem 0 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  border: 2px solid var(--paper);
  box-shadow: 6px 6px 0 rgba(244, 234, 216, 0.35);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.phone-big:hover {
  color: var(--paper);
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(244, 234, 216, 0.35);
}
.phone-label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: #e8c9a0;
}
.phone-number {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}
.contact-alt { font-size: 0.875rem; color: #d9c3a3; }
.contact-alt a { color: #e8c9a0; }

.contact-card {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--paper);
  padding: 1.75rem 1.5rem;
  box-shadow: 8px 8px 0 rgba(244, 234, 216, 0.28);
  align-self: start;
}
.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.contact-card address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.contact-card-note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--rule);
  padding-top: 1rem;
}
.map-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-3);
  border-top: 2px solid var(--ink);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-line {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.footer-line--muted { color: var(--secondary); font-size: 0.875rem; }

.claim-banner {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  background: rgba(58, 36, 21, 0.07);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-soft);
  text-decoration: none;
}
.claim-banner:hover { background: rgba(58, 36, 21, 0.13); color: var(--ink); }

.attribution {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
}
.attribution a { color: var(--secondary); }
.muted { color: var(--secondary); }

/* ============================================================
   MOTION — view transitions + scroll-driven split
   ============================================================ */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out 320ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
::view-transition-new(root) {
  animation: vt-in 380ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes vt-out {
  to { opacity: 0; transform: translateY(-14px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(18px); }
}

/* scroll-driven reveal for section heads */
@supports (animation-timeline: view()) {
  .section-head h2,
  .atelier-text h2,
  .contact h2 {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 34%;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@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;
  }
  .card, .media-card { transform: none !important; }
  .split-a, .split-b { transform: none !important; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}
