/* ---------------------------------------------------
   Infinity Salon — design tokens
   Espresso (hero/footer bookend), Linen (body surface),
   Lavender (signature accent, from the real logo mark),
   Brass (minor metallic touch), Ink (body text)
--------------------------------------------------- */
:root {
  --espresso: #1a1410;
  --espresso-soft: #261d17;
  --linen: #efe6d6;
  --linen-soft: #f6f0e6;
  --lavender: #9c8ad9;
  --lavender-deep: #5c4d9e;
  --rose: #d3a3b4;
  --ink: #2b241e;
  --ink-soft: #5b5246;
  --white: #fffdf9;

  --font-display: "Fraunces", serif;
  --font-body: "Karla", sans-serif;

  --fs-hero: clamp(2.75rem, 4.2vw + 1.6rem, 5.25rem);
  --fs-h2: clamp(2rem, 1.6vw + 1.5rem, 2.75rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.3125rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.8125rem;

  --maxw: 78rem;
  --pad: clamp(1.25rem, 4vw, 3.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--lavender-deep);
  text-decoration-color: currentColor;
}
a:hover { color: var(--lavender-deep); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  font-weight: 600;
}

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lavender-deep);
  color: var(--white);
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--lavender-deep);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender-deep);
  margin: 0 0 0.9em;
}

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.7rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,15,12,0.6), rgba(20,15,12,0));
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: var(--espresso);
  padding: 1rem var(--pad);
  border-bottom-color: rgba(255,255,255,0.1);
}
.site-header.is-scrolled::before { opacity: 0; }

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  height: 42px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.primary-nav a {
  position: relative;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.4em 0;
}
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 1px;
  background: var(--lavender);
  transition: right 0.35s var(--ease);
}
.primary-nav a:not(.nav-cta):hover { color: var(--white); }
.primary-nav a:not(.nav-cta):hover::after { right: 0; }

.nav-cta {
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--white) !important;
  padding: 0.85em 1.5em !important;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta::after { display: none; }

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.1em 2.2em;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-block { width: 100%; }

.btn-primary {
  background: var(--lavender-deep);
  color: var(--white);
}
/* Highlight rule: purple is the default highlight everywhere.
   The filled primary button is already purple, so its hover highlight is rose to stay distinct.
   The nav CTA is not purple, so its highlight stays lavender. */
.btn-primary:hover,
.nav-cta:hover {
  background: var(--espresso);
  color: var(--white) !important;
}
.btn-primary:hover { border-color: var(--rose); }
.nav-cta:hover { border-color: var(--lavender); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--lavender); color: var(--white); }

.book-confirm .btn-ghost,
.book-panel .btn-ghost {
  color: var(--ink);
  border-color: rgba(43,36,30,0.4);
}
.book-confirm .btn-ghost:hover,
.book-panel .btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 58%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,15,12,0.55) 0%, rgba(20,15,12,0.35) 35%, rgba(15,11,9,0.92) 100%),
    linear-gradient(90deg, rgba(15,11,9,0.85) 0%, rgba(15,11,9,0.25) 65%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8rem var(--pad) 4.5rem;
  width: 100%;
}

.hero-loop {
  display: block;
  margin-bottom: 1.5rem;
  overflow: visible;
}
.hero-loop-path {
  fill: none;
  stroke: var(--lavender);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.js-ready .hero-loop-path {
  stroke-dashoffset: 1;
  animation: draw-loop 1.6s var(--ease) 0.2s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero-loop-path { stroke-dashoffset: 0; animation: none; }
}
@keyframes draw-loop {
  to { stroke-dashoffset: 0; }
}

.hero-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: var(--fs-hero);
  color: var(--white);
  max-width: 18ch;
  margin-bottom: 0.55em;
}

.hero-sub {
  font-size: var(--fs-lead);
  max-width: 38ch;
  color: rgba(255,255,255,0.86);
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.js-ready .hero-fade {
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.8s var(--ease) forwards;
}
.js-ready .hero-fade[data-delay="1"] { animation-delay: 0.5s; }
.js-ready .hero-fade[data-delay="2"] { animation-delay: 0.68s; }
.js-ready .hero-fade[data-delay="3"] { animation-delay: 0.86s; }
.js-ready .hero-fade[data-delay="4"] { animation-delay: 1.04s; }
@keyframes rise-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fade { opacity: 1; transform: none; animation: none; }
}

/* ---------------------------------------------------
   Section scaffolding
--------------------------------------------------- */
section {
  padding: clamp(3.5rem, 7vw, 7rem) var(--pad);
  scroll-margin-top: 84px;
}
.section-head {
  max-width: 42rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.section-head h2 { font-size: var(--fs-h2); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered reveal for the menu groups and booking fields.
   Hidden state is gated on .js-ready so the page stays visible without JS. */
.js-ready .menu-group,
.js-ready .book-stylist,
.js-ready .book-form .field,
.js-ready .book-form .btn-block {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.menu.is-visible .menu-group,
.book.is-visible .book-stylist,
.book.is-visible .book-form .field,
.book.is-visible .book-form .btn-block {
  opacity: 1;
  transform: none;
}
.menu.is-visible .menu-group:nth-child(1) { transition-delay: 0.06s; }
.menu.is-visible .menu-group:nth-child(2) { transition-delay: 0.16s; }
.menu.is-visible .menu-group:nth-child(3) { transition-delay: 0.26s; }
.menu.is-visible .menu-group:nth-child(4) { transition-delay: 0.36s; }
.book.is-visible .book-stylist { transition-delay: 0.05s; }
.book.is-visible .book-form .field:nth-child(1) { transition-delay: 0.12s; }
.book.is-visible .book-form .field:nth-child(2) { transition-delay: 0.18s; }
.book.is-visible .book-form .field:nth-child(3) { transition-delay: 0.24s; }
.book.is-visible .book-form .field:nth-child(4) { transition-delay: 0.30s; }
.book.is-visible .book-form .btn-block { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .menu-group,
  .book-stylist,
  .book-form .field,
  .book-form .btn-block { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------
   About / Meet Jeni
--------------------------------------------------- */
.about {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--espresso);
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.about-media:hover .about-img { transform: scale(1.04); }

.about-content h2 { margin-bottom: 0.6em; }
.lead {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-style: italic;
  color: var(--lavender-deep);
  line-height: 1.5;
}
.credentials {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  border-top: 1px solid rgba(43,36,30,0.15);
  padding-top: 1.2em;
}
.credentials li {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  font-weight: 600;
  transition: color 0.25s var(--ease);
}
.credentials li:hover { color: var(--ink); }
.credentials li::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--lavender-deep);
  margin-right: 0.7em;
  transform: translateY(-3px);
  transition: width 0.25s var(--ease);
}
.credentials li:hover::before { width: 26px; }

/* ---------------------------------------------------
   Recent work
--------------------------------------------------- */
.work {
  max-width: var(--maxw);
  margin: 0 auto;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, clamp(190px, 19vw, 290px));
  gap: 1rem;
}
.work-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: 100%;
}
.work-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.work-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.work-item:nth-child(3) { grid-column: 2; grid-row: 2; }
.work-item:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.work-item:nth-child(2) img { object-position: 50% 18%; }
.work-item:hover img { transform: scale(1.06); }
.work-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(20,15,12,0.85));
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------------------------------------------------
   Menu
--------------------------------------------------- */
.menu {
  background: var(--espresso);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
}
.menu-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.menu .eyebrow { color: var(--lavender); }
.menu .section-head h2 { color: var(--white); }
.menu-note {
  color: rgba(255,255,255,0.65);
  font-size: var(--fs-small);
  margin-top: 0.6em;
}
.menu-note a { color: var(--lavender); }

.book .menu-note { color: var(--ink-soft); }
.book .menu-note a { color: var(--lavender-deep); }

.menu-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 5vw, 4rem);
}
.menu-group h3 {
  color: var(--rose);
  font-size: var(--fs-h3);
  font-style: italic;
  margin-bottom: 0.9em;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}
.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}
.menu-item-name {
  font-weight: 600;
  transition: color 0.3s var(--ease);
}
.menu-list li:hover .menu-item-name { color: var(--rose); }
.menu-rule {
  flex: 1;
  border-bottom: 1px dotted rgba(255,255,255,0.25);
  transform: translateY(-4px);
  transition: border-color 0.3s var(--ease);
}
.menu-list li:hover .menu-rule { border-bottom-color: rgba(211,163,180,0.6); }
.menu-price {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: color 0.3s var(--ease);
}
.menu-list li:hover .menu-price { color: var(--white); }

/* ---------------------------------------------------
   Booking
--------------------------------------------------- */
.book {
  max-width: 56rem;
  margin: 0 auto;
}
.book-panel {
  position: relative;
  background: var(--linen-soft);
  border: 1px solid rgba(43,36,30,0.18);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.book-stylist {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(43,36,30,0.12);
}
.book-stylist-img {
  width: 56px;
  height: 64px;
  object-fit: cover;
  object-position: 78% 35%;
}
.book-stylist-name {
  margin: 0;
  font-weight: 700;
  font-family: var(--font-display);
}
.book-stylist-role {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.book-form { display: flex; flex-direction: column; gap: 1.2rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink);
}
.field input,
.field select {
  font: inherit;
  padding: 0.8em 0.95em;
  border-radius: 0;
  border: 1px solid rgba(43,36,30,0.28);
  background: var(--white);
  color: var(--ink);
}
.field input:focus,
.field select:focus {
  border-color: var(--lavender-deep);
}

.time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75em 1.15em;
  border-radius: 0;
  border: 1px solid rgba(43,36,30,0.28);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}
.chip:hover { border-color: var(--lavender-deep); }
.chip[aria-pressed="true"] {
  background: var(--lavender-deep);
  border-color: var(--lavender-deep);
  color: var(--white);
}

.book-confirm {
  text-align: center;
  padding: 1.5rem 0;
}
.book-confirm svg path { fill: var(--lavender-deep); }
.book-confirm-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  margin: 0.6em 0 0.3em;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer {
  background: var(--espresso);
  color: rgba(255,255,255,0.85);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 2.5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-mark { height: 72px; margin-bottom: 0.9rem; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: var(--fs-small); margin: 0; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lavender);
  margin-bottom: 0.9em;
}
.footer-col p { margin: 0 0 0.5em; }
.footer-col a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-col a:hover { color: var(--lavender); }

.footer-col .btn-primary { color: var(--white); }

.hours { margin: 0; }
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.4em 0.5em;
  margin: 0 -0.5em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  max-width: 16rem;
  transition: background 0.25s var(--ease);
}
.hours-row:hover { background: rgba(156,138,217,0.1); }
.hours-row:last-child { border-bottom: none; }
.hours dt { color: rgba(255,255,255,0.85); }
.hours dd { margin: 0; color: rgba(255,255,255,0.55); }
.about-press {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(43,36,30,0.15);
}
.about-press-label {
  margin: 0 0 1rem;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--lavender-deep);
}
.press-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  flex-wrap: wrap;
}
.about-press .press-logos img {
  height: 28px;
  width: auto;
  filter: brightness(0);
  opacity: 0.5;
  transition: opacity 0.25s var(--ease);
}
.about-press .press-logos img:hover { opacity: 0.85; }

.footer-legal {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  padding: 1.4rem var(--pad) 2rem;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------------------------------------------------
   Mobile pass
--------------------------------------------------- */
@media (max-width: 980px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about-media { aspect-ratio: 16/10; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--espresso);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem var(--pad) 1.25rem;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .primary-nav a {
    padding: 1em 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .primary-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta {
    text-align: center;
    margin-top: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.55) !important;
    padding: 1em !important;
  }
  .nav-toggle { display: flex; }

  .hero { min-height: 100vh; align-items: flex-end; }
  .hero-content { padding: 6rem var(--pad) 3rem; }
  .hero-headline { max-width: 100%; }

  section { padding: 3rem var(--pad); }
  .section-head { margin-bottom: 1.75rem; }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .work-grid > .work-item:nth-child(1),
  .work-grid > .work-item:nth-child(2),
  .work-grid > .work-item:nth-child(3),
  .work-grid > .work-item:nth-child(4) {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 3/4;
    height: auto;
  }

  .menu-groups { grid-template-columns: 1fr; gap: 2rem; }

  .field-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* hidden-guard fix */
[hidden]{display:none!important}
