/* ==========================================================================
   Valenti Style — salon de coiffure, Nice
   Composition: black/white + one colour per section, stacked headline,
   broken bento, drag-to-scroll band, patterned SVG background.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink: #0a0a0a;
  --paper: #f6f4ef;
  --red: #e10600;
  --blue: #003c8a;
  --acid: #f4ff33;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: rgba(10, 10, 10, 0.62);
  --line: rgba(10, 10, 10, 0.16);
  --surface: #ffffff;

  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.25vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.2rem);
  --step-3: clamp(2rem, 1.4rem + 3vw, 3.6rem);
  --step-4: clamp(2.6rem, 1.4rem + 6.4vw, 6.4rem);

  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --maxw: 1240px;
  --radius: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f6f4ef;
    --muted: rgba(246, 244, 239, 0.66);
    --line: rgba(246, 244, 239, 0.2);
    --surface: #141414;
  }
}

:root[data-theme="light"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: rgba(10, 10, 10, 0.62);
  --line: rgba(10, 10, 10, 0.16);
  --surface: #ffffff;
}

:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #f6f4ef;
  --muted: rgba(246, 244, 239, 0.66);
  --line: rgba(246, 244, 239, 0.2);
  --surface: #141414;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
}

/* patterned SVG tile over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><circle cx='1.5' cy='1.5' r='1.1' fill='%230a0a0a' fill-opacity='0.16'/><path d='M11 0v22M0 11h22' stroke='%230a0a0a' stroke-opacity='0.05' stroke-width='1'/></svg>");
  background-size: 22px 22px;
}

@media (prefers-color-scheme: dark) {
  body::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><circle cx='1.5' cy='1.5' r='1.1' fill='%23f6f4ef' fill-opacity='0.18'/><path d='M11 0v22M0 11h22' stroke='%23f6f4ef' stroke-opacity='0.06' stroke-width='1'/></svg>");
  }
}

:root[data-theme="dark"] body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><circle cx='1.5' cy='1.5' r='1.1' fill='%23f6f4ef' fill-opacity='0.18'/><path d='M11 0v22M0 11h22' stroke='%23f6f4ef' stroke-opacity='0.06' stroke-width='1'/></svg>");
}

:root[data-theme="light"] body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><circle cx='1.5' cy='1.5' r='1.1' fill='%230a0a0a' fill-opacity='0.16'/><path d='M11 0v22M0 11h22' stroke='%230a0a0a' stroke-opacity='0.05' stroke-width='1'/></svg>");
  }
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

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

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

.skip-none { position: absolute; }

/* ---------- shell ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { position: relative; z-index: 1; }

section { position: relative; }

/* ---------- header ---------- */
.site-head {
  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);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.brand__name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.head-nav {
  display: none;
  gap: 1.4rem;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.head-nav a { text-decoration: none; border-bottom: 1px solid transparent; padding-block: 0.2rem; }
.head-nav a:hover { border-bottom-color: currentColor; }

.head-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
}

.theme-toggle:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

:root[data-theme="dark"] .call-btn { background: var(--acid); color: var(--ink); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .call-btn { background: var(--acid); color: var(--ink); }
}

.call-btn:hover { transform: translateY(-1px); }

@media (min-width: 860px) {
  .head-nav { display: flex; }
}

/* ---------- section colour rotation ---------- */
.sec {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  background: var(--sec-bg, transparent);
  color: var(--sec-fg, var(--fg));
  border-bottom: 1px solid var(--line);
}

.sec--ink { --sec-bg: #0a0a0a; --sec-fg: #f6f4ef; --line: rgba(246, 244, 239, 0.22); }
.sec--red { --sec-bg: #e10600; --sec-fg: #ffffff; --line: rgba(255, 255, 255, 0.3); }
.sec--blue { --sec-bg: #003c8a; --sec-fg: #ffffff; --line: rgba(255, 255, 255, 0.28); }
.sec--acid { --sec-bg: #f4ff33; --sec-fg: #0a0a0a; --line: rgba(10, 10, 10, 0.22); }

.sec--ink, .sec--red, .sec--blue, .sec--acid { position: relative; z-index: 1; }

.sec--ink .muted, .sec--red .muted, .sec--blue .muted { color: rgba(255, 255, 255, 0.72); }
.sec--acid .muted { color: rgba(10, 10, 10, 0.66); }

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  font-weight: 600;
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: end;
}

.hero__title {
  grid-column: 1 / -1;
  font-size: var(--step-4);
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

.hero__title span { display: block; }
.hero__title span:nth-child(2) { margin-left: 0.9em; color: var(--red); }
.hero__title span:nth-child(3) { margin-left: -0.18em; }

.hero__lede {
  grid-column: 1 / -1;
  max-width: 46ch;
  font-size: var(--step-1);
  color: var(--muted);
}

.hero__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__photo {
  grid-column: 1 / -1;
  position: relative;
  margin-top: 1.5rem;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.92) contrast(1.04);
}

.hero__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--acid);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  max-width: 78%;
}

@media (min-width: 900px) {
  .hero__title { grid-column: 1 / 5; }
  .hero__lede { grid-column: 1 / 4; }
  .hero__meta { grid-column: 1 / 4; }
  .hero__photo { grid-column: 4 / 7; margin-top: 0; }
}

/* ---------- broken bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.9rem, 2vw, 1.6rem);
}

.bento > * { min-width: 0; }

.card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.4vw, 1.9rem);
}

.sec--ink .card, .sec--red .card, .sec--blue .card {
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

.sec--acid .card { background: rgba(255, 255, 255, 0.55); }

.card h3 {
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.card p { color: inherit; opacity: 0.86; }

.card__price {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}

/* irregular spans — the anti-grid */
.bento .b1 { grid-column: 1 / -1; }
.bento .b2 { grid-column: 1 / -1; }
.bento .b3 { grid-column: 1 / -1; }
.bento .b4 { grid-column: 1 / -1; }
.bento .b5 { grid-column: 1 / -1; }
.bento .b6 { grid-column: 1 / -1; }

@media (min-width: 820px) {
  .bento .b1 { grid-column: 1 / 4; }
  .bento .b2 { grid-column: 4 / 7; margin-top: 2.6rem; }
  .bento .b3 { grid-column: 2 / 6; }
  .bento .b4 { grid-column: 1 / 3; }
  .bento .b5 { grid-column: 3 / 7; margin-top: -1.6rem; }
  .bento .b6 { grid-column: 4 / 7; }
  /* one cell deliberately left blank: column 1-3 of the last row */
}

/* ---------- drag band ---------- */
.band-sec { padding-block: clamp(3rem, 8vw, 6rem); }

.band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-bottom: 1.6rem;
}

.band-head h2 { font-size: var(--step-3); }

.band-hint {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.band {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.band::-webkit-scrollbar { display: none; }
.band.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.band.is-dragging * { user-select: none; }

.band__track {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  width: max-content;
  padding-inline: var(--gutter);
}

.tile {
  width: clamp(230px, 62vw, 330px);
  flex: 0 0 auto;
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  pointer-events: none;
}

.tile figcaption {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  line-height: 1.45;
}

.tile strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--step-1);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.tile span { color: var(--muted); }

/* ---------- hours ---------- */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}

.hours-grid__col { grid-column: 1 / -1; }

@media (min-width: 820px) {
  .hours-grid__col--left { grid-column: 1 / 4; }
  .hours-grid__col--right { grid-column: 4 / 7; margin-top: 3.2rem; }
}

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

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

.hours-list .day { font-weight: 600; letter-spacing: 0.02em; }
.hours-list .time { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--step--1); text-align: right; }
.hours-list .closed { opacity: 0.55; }

.hours-list li.is-today {
  background: color-mix(in srgb, currentColor 12%, transparent);
  padding-inline: 0.6rem;
  margin-inline: -0.6rem;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

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

@media (min-width: 820px) {
  .contact-grid .c1 { grid-column: 1 / 4; }
  .contact-grid .c2 { grid-column: 4 / 7; margin-top: 2.4rem; }
}

.big-phone {
  display: inline-block;
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--step-3);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 4px solid currentColor;
  padding-bottom: 0.1em;
  margin-bottom: 1rem;
  word-break: break-word;
}

.big-phone:hover { opacity: 0.78; }

.addr {
  font-style: normal;
  font-size: var(--step-1);
  line-height: 1.5;
}

.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1rem;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.note {
  font-size: var(--step--1);
  color: var(--muted);
  border-left: 3px solid currentColor;
  padding-left: 0.9rem;
}

/* ---------- footer ---------- */
.site-foot {
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  position: relative;
  z-index: 1;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
  align-items: start;
}

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

@media (min-width: 820px) {
  .foot-grid .f1 { grid-column: 1 / 3; }
  .foot-grid .f2 { grid-column: 3 / 5; }
  .foot-grid .f3 { grid-column: 5 / 7; }
}

.foot-grid h4 {
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.foot-grid p, .foot-grid a { font-size: var(--step--1); }
.foot-grid a { text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-grid a:hover { border-bottom-color: currentColor; }

.foot-bottom {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 0.5rem 0.8rem;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--muted);
}

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

.attribution {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

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

/* ---------- motion ---------- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sec, .band-sec {
      animation: fadeRise 420ms cubic-bezier(.2, .7, .1, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}

@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;
  }
}
