/* Coiffure Mario et Micheline — layout & components. Reads theme.css tokens. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--pj-header-h) + var(--pj-space) * 2); }
body {
  margin: 0;
  background: var(--pj-bg);
  color: var(--pj-fg);
  font-family: var(--pj-font-body);
  font-size: var(--pj-step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pj-brand); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--pj-accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pj-brand); outline-offset: 3px; border-radius: 4px; }
.band--ink :focus-visible, .site-footer :focus-visible { outline-color: var(--pj-accent); }

h1, h2, h3 {
  font-family: var(--pj-font-display);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 calc(var(--pj-space) * 2);
  text-wrap: balance;
}
h1 { font-size: var(--pj-step-5); }
h2 { font-size: var(--pj-step-4); }
h3 { font-size: var(--pj-step-2); }
p { margin: 0 0 calc(var(--pj-space) * 2); max-width: 62ch; text-wrap: pretty; }

.skip {
  position: absolute; left: calc(var(--pj-space) * 2); top: -100px; z-index: 100;
  background: var(--pj-brand); color: var(--pj-brand-ink);
  padding: var(--pj-space) calc(var(--pj-space) * 2); border-radius: var(--pj-radius);
}
.skip:focus { top: calc(var(--pj-space) * 2); }

.wrap {
  width: 100%;
  max-width: calc(var(--pj-maxw) + var(--pj-space) * 8);
  margin-inline: auto;
  padding-inline: calc(var(--pj-space) * 3);
}
@media (min-width: 768px) { .wrap { padding-inline: calc(var(--pj-space) * 5); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--pj-surface) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--pj-border);
}
.bar {
  display: flex; align-items: center; gap: calc(var(--pj-space) * 3);
  min-height: var(--pj-header-h);
}
.logo { display: block; flex: none; line-height: 0; }
.logo img {
  width: 168px; height: 46px;
  object-fit: cover; object-position: 50% 48%;
  mix-blend-mode: multiply;   /* the white of the wordmark melts into the header */
}
.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center; gap: var(--pj-space);
  font: 600 var(--pj-step--1) / 1 var(--pj-font-body);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--pj-fg); background: transparent;
  border: 1px solid var(--pj-border); border-radius: 999px;
  padding: calc(var(--pj-space) * 1.25) calc(var(--pj-space) * 2);
  cursor: pointer;
}
.menu-toggle .bars { width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .25s ease, top .25s ease;
}
.menu-toggle .bars::before { top: 2px; }
.menu-toggle .bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }

.panel {
  flex: 1 1 auto;
  display: flex; align-items: center; gap: calc(var(--pj-space) * 3);
  min-width: 0;
}
.nav { margin-left: auto; }
.nav ul, .lang ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav ul { gap: calc(var(--pj-space) * 2.5); }
.nav a {
  color: var(--pj-fg); text-decoration: none; font-weight: 500; white-space: nowrap;
  padding-block: calc(var(--pj-space) * 0.5);
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--pj-accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--pj-brand); }

.lang ul { gap: var(--pj-space); font-size: var(--pj-step--1); }
.lang li + li::before { content: "·"; color: var(--pj-muted); margin-right: var(--pj-space); }
.lang a { color: var(--pj-muted); text-decoration: none; white-space: nowrap; }
.lang a:hover { color: var(--pj-brand); text-decoration: underline; }
.lang [aria-current] { color: var(--pj-fg); font-weight: 700; white-space: nowrap; }

@media (max-width: 1119.98px) {
  .menu-toggle { display: inline-flex; }
  .bar { flex-wrap: wrap; }
  .panel {
    flex: 1 0 100%;
    flex-direction: column; align-items: stretch;
    gap: calc(var(--pj-space) * 3);
    padding: calc(var(--pj-space) * 2) 0 calc(var(--pj-space) * 4);
    border-top: 1px solid var(--pj-border);
  }
  .js .panel { display: none; }
  .js .panel.is-open { display: flex; }
  .nav { margin-left: 0; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a {
    display: block; border-bottom: 1px solid var(--pj-border);
    padding-block: calc(var(--pj-space) * 1.75);
    font-family: var(--pj-font-display); font-size: var(--pj-step-2); font-weight: 650;
  }
  .nav a[aria-current="page"] { color: var(--pj-brand); border-bottom-color: var(--pj-border); }
  .lang ul { font-size: var(--pj-step-0); flex-wrap: wrap; }
  .panel .btn { align-self: flex-start; }
}
@media (max-width: 420px) {
  .logo img { width: 138px; height: 38px; }
}

/* ---------- buttons & CTA rows ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--pj-space);
  font: 600 var(--pj-step-0) / 1.1 var(--pj-font-body);
  text-decoration: none; white-space: nowrap;
  padding: calc(var(--pj-space) * 1.75) calc(var(--pj-space) * 3);
  border-radius: 999px;
  background: var(--pj-brand); color: var(--pj-brand-ink);
  box-shadow: var(--pj-shadow);
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { background: color-mix(in oklab, var(--pj-brand) 85%, var(--pj-fg)); transform: translateY(-1px); text-decoration: none; }
.btn--sm { font-size: var(--pj-step--1); padding: calc(var(--pj-space) * 1.25) calc(var(--pj-space) * 2.25); box-shadow: none; }
.btn--ghost {
  background: transparent; color: var(--pj-fg); box-shadow: none;
  border: 1px solid color-mix(in oklab, var(--pj-fg) 30%, transparent);
}
.btn--ghost:hover { background: var(--pj-accent-soft); }
.band--ink .btn--ghost { color: var(--pj-ink-fg); border-color: color-mix(in oklab, var(--pj-ink-fg) 40%, transparent); }
.band--ink .btn--ghost:hover { background: color-mix(in oklab, var(--pj-ink-fg) 10%, transparent); }

.cta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: calc(var(--pj-space) * 1.5) calc(var(--pj-space) * 3);
  margin-top: calc(var(--pj-space) * 4);
}
.cta .phone { color: var(--pj-fg); font-weight: 500; }
.cta .phone a { color: var(--pj-fg); font-weight: 700; white-space: nowrap; }
.cta .remind {
  flex-basis: 100%;
  font-size: var(--pj-step--1); color: var(--pj-muted);
}
.cta .remind a { color: var(--pj-brand); font-weight: 600; }

.more {
  display: inline-flex; align-items: center; gap: var(--pj-space);
  font-weight: 600; text-decoration: none; color: var(--pj-brand);
  border-bottom: 2px solid var(--pj-accent); padding-bottom: 2px;
}
.more::after { content: "→"; transition: transform .2s ease; }
.more:hover::after { transform: translateX(4px); }
.band--ink .more { color: var(--pj-accent); }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--pj-space);
  font-size: var(--pj-step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pj-brand); margin-bottom: calc(var(--pj-space) * 2.5);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--pj-accent); }
.lead { font-size: var(--pj-step-1); line-height: 1.5; }

/* ---------- sections ---------- */
.section { padding-block: calc(var(--pj-space) * 10); }
@media (min-width: 1024px) { .section { padding-block: calc(var(--pj-space) * 14); } }
.section--tint { background: var(--pj-brand-soft); }
.band--ink { background: var(--pj-ink); color: var(--pj-ink-fg); }
.band--ink a { color: var(--pj-accent); }
.band--ink .eyebrow { color: var(--pj-accent); }

/* hero */
.hero { padding-block: calc(var(--pj-space) * 6) calc(var(--pj-space) * 10); }
.hero__grid, .split {
  display: grid; gap: calc(var(--pj-space) * 5); align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: calc(var(--pj-space) * 8); }
  .split { grid-template-columns: 1fr 1fr; gap: calc(var(--pj-space) * 10); }
  .split--rev > .split__media { order: 2; }
}
.hero h1 { font-size: var(--pj-step-4); }
@media (min-width: 1200px) { .hero h1 { font-size: var(--pj-step-5); } }

/* the lit-niche frame: arched top like the salon's display alcoves */
.niche {
  margin: 0; position: relative;
  border-radius: var(--pj-niche) var(--pj-niche) var(--pj-radius) var(--pj-radius);
  overflow: hidden; background: var(--pj-surface);
  box-shadow: var(--pj-shadow);
}
.niche img { width: 100%; height: 100%; object-fit: cover; }
.niche::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--pj-fg) 8%, transparent);
}
.frame { margin: 0; border-radius: var(--pj-radius); overflow: hidden; box-shadow: var(--pj-shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }

/* home: three portraits */
.trio {
  display: grid; gap: calc(var(--pj-space) * 2);
  grid-template-columns: repeat(3, 1fr);
  margin-top: calc(var(--pj-space) * 6);
}
.trio .niche { aspect-ratio: 3 / 4; }
.trio .niche:nth-child(2) { transform: translateY(calc(var(--pj-space) * 4)); }
.tags { display: flex; flex-wrap: wrap; gap: var(--pj-space); margin: calc(var(--pj-space) * 3) 0; padding: 0; list-style: none; }
.tags li {
  font-size: var(--pj-step--1); font-weight: 600;
  padding: calc(var(--pj-space) * 0.75) calc(var(--pj-space) * 1.75);
  border: 1px solid var(--pj-border); border-radius: 999px; background: var(--pj-surface);
}

/* ratings */
.ratings {
  display: grid; gap: calc(var(--pj-space) * 2);
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: calc(var(--pj-space) * 5) 0; padding: 0; list-style: none;
}
.ratings li {
  padding: calc(var(--pj-space) * 2.5) calc(var(--pj-space) * 3);
  border-radius: var(--pj-radius);
  border: 1px solid color-mix(in oklab, currentColor 18%, transparent);
}
.ratings strong {
  display: block; font-family: var(--pj-font-display); font-weight: 750;
  font-size: var(--pj-step-3); line-height: 1; letter-spacing: -0.02em;
}
.band--ink .ratings strong { color: var(--pj-accent); }
.ratings strong small { font-size: 0.5em; font-weight: 500; opacity: .8; }
.ratings a, .ratings span { font-size: var(--pj-step--1); }
.section:not(.band--ink) .ratings strong, .hero .ratings strong { color: var(--pj-brand); }
.section:not(.band--ink) .ratings li, .hero .ratings li { background: var(--pj-surface); border-color: var(--pj-border); }

/* quotes */
.quote { margin: 0; }
.quote blockquote {
  margin: 0;
  font-family: var(--pj-font-display); font-weight: 500;
  font-size: var(--pj-step-2); line-height: 1.3; letter-spacing: -0.01em;
  text-wrap: pretty;
}
.quote blockquote p { max-width: 40ch; margin: 0; }
.quote blockquote::before {
  content: "“"; display: block;
  font-size: 2.6em; line-height: 0.6; color: var(--pj-accent);
  margin-bottom: calc(var(--pj-space) * 1.5);
}
.quote figcaption { margin-top: calc(var(--pj-space) * 2.5); font-size: var(--pj-step--1); color: var(--pj-muted); }
.band--ink .quote figcaption { color: color-mix(in oklab, var(--pj-ink-fg) 75%, var(--pj-ink)); }
.quote figcaption a { font-weight: 600; }

.review { display: grid; gap: calc(var(--pj-space) * 4); }
@media (min-width: 900px) { .review { grid-template-columns: 0.8fr 1.2fr; gap: calc(var(--pj-space) * 10); align-items: start; } }
.review h2 { font-size: var(--pj-step-3); }
.review + .review { margin-top: calc(var(--pj-space) * 12); padding-top: calc(var(--pj-space) * 12); border-top: 1px solid var(--pj-border); }
.band--ink .review + .review { border-top-color: color-mix(in oklab, var(--pj-ink-fg) 18%, transparent); }

.oneliners { display: grid; gap: calc(var(--pj-space) * 3); margin-top: calc(var(--pj-space) * 5); }
@media (min-width: 800px) { .oneliners { grid-template-columns: repeat(3, 1fr); } }
.oneliners .quote {
  background: var(--pj-surface); border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius); padding: calc(var(--pj-space) * 4);
}
.oneliners .quote blockquote { font-size: var(--pj-step-1); }

.pull {
  border-left: 3px solid var(--pj-accent);
  padding-left: calc(var(--pj-space) * 3);
  margin-top: calc(var(--pj-space) * 4);
}

/* cards (services) */
.cards { display: grid; gap: calc(var(--pj-space) * 3); }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.card {
  background: var(--pj-surface); border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius); padding: calc(var(--pj-space) * 5);
  display: flex; flex-direction: column;
}
.card h2 { font-size: var(--pj-step-3); }
.card .frame { margin-top: auto; }
.card--media { padding: 0; overflow: hidden; }
.card--media .card__body { padding: calc(var(--pj-space) * 5); }
.card--media .frame { border-radius: 0; box-shadow: none; }

/* wordmark showcase */
.wordmark {
  margin: 0; background: var(--pj-surface);
  border-radius: var(--pj-radius); border: 1px solid var(--pj-border);
  padding: calc(var(--pj-space) * 6) calc(var(--pj-space) * 4);
  display: grid; place-items: center;
}
.wordmark img { width: min(100%, 520px); mix-blend-mode: multiply; }

/* hours */
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; max-width: 420px; }
.hours dt, .hours dd {
  margin: 0; padding-block: calc(var(--pj-space) * 1.25);
  border-bottom: 1px solid color-mix(in oklab, currentColor 15%, transparent);
}
.hours dt { font-weight: 600; padding-right: calc(var(--pj-space) * 4); }
.hours dd { text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--pj-muted); }
.band--ink .hours .closed { color: color-mix(in oklab, var(--pj-ink-fg) 70%, var(--pj-ink)); }

.info-grid { display: grid; gap: calc(var(--pj-space) * 6); }
@media (min-width: 900px) { .info-grid { grid-template-columns: 1fr 1fr; gap: calc(var(--pj-space) * 10); } }
.address { font-style: normal; font-size: var(--pj-step-1); line-height: 1.45; margin-bottom: calc(var(--pj-space) * 3); }

.contact-lines { list-style: none; padding: 0; margin: calc(var(--pj-space) * 3) 0 0; display: grid; gap: var(--pj-space); }
.contact-lines a { font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--pj-ink); color: var(--pj-ink-fg); padding-block: calc(var(--pj-space) * 10) calc(var(--pj-space) * 5); font-size: var(--pj-step--1); }
.site-footer a { color: var(--pj-ink-fg); }
.site-footer a:hover { color: var(--pj-accent); }
.footer-grid { display: grid; gap: calc(var(--pj-space) * 5); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo img {
  width: 220px; height: 60px; object-fit: cover; object-position: 50% 48%;
  filter: invert(1); mix-blend-mode: screen;   /* reversed wordmark on the dark band */
}
.site-footer h2 { font-size: var(--pj-step-0); font-family: var(--pj-font-body); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pj-accent); margin-bottom: calc(var(--pj-space) * 2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--pj-space) * 0.75); }
.site-footer .hours { max-width: 300px; }
.site-footer .hours dt, .site-footer .hours dd { padding-block: calc(var(--pj-space) * 0.5); }
.footer-base {
  margin-top: calc(var(--pj-space) * 8); padding-top: calc(var(--pj-space) * 3);
  border-top: 1px solid color-mix(in oklab, var(--pj-ink-fg) 18%, transparent);
  display: flex; flex-wrap: wrap; gap: calc(var(--pj-space) * 2) calc(var(--pj-space) * 4); justify-content: space-between;
}
.footer-base p { margin: 0; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
