/* =========================================================================
   Studio 55 Hair Salon — site styles
   Plain CSS, no build step. Custom properties → layout → components.
   ========================================================================= */

:root {
  /* Palette: warm espresso interior, bone type, the logo red as the accent */
  --ink:        #14100d;
  --ink-2:      #1c1713;
  --ink-3:      #262019;
  --line:       #352c24;
  --bone:       #f4eee6;
  --muted:      #a4968a;
  --brand:      #d4212c;
  --brand-soft: #e8555e;
  --brass:      #c9a15a;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --shell: 76rem;      /* max content width */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 11vw, 9rem);

  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

::selection { background: var(--brand); color: #fff; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.h-xl { font-size: clamp(2.75rem, 9vw, 6.5rem); }
.h-lg { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
.h-md { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.eyebrow {
  /* also used on <h2> (stylist specialities), so restate the body font
     that the h1..h4 rule would otherwise override */
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::after {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.lede {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  color: #ddd2c6;
  line-height: 1.65;
}

.dim { color: var(--muted); }

/* ---------- layout ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.shell--wide { --shell: 92rem; }

.section { padding-block: var(--section); }
.section--tint { background: var(--ink-2); }

.stack > * + * { margin-top: 1.15rem; }
.stack-lg > * + * { margin-top: 2rem; }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--brand-soft); transform: translateY(-2px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border: 1px solid rgba(244, 238, 230, .32);
}
.btn--ghost:hover { --btn-bg: var(--bone); --btn-fg: var(--ink); border-color: var(--bone); }

/* Underlined text link with a sweeping rule */
.link {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  padding-bottom: .35rem;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size .35s var(--ease), color .3s var(--ease);
}
.link:hover { color: var(--brand-soft); background-size: 0% 1px; }

/* =========================================================================
   Header
   ========================================================================= */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding-block: 1.4rem;
  transition: background-color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-stuck {
  background: rgba(20, 16, 13, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: .85rem;
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img {
  width: auto;
  height: clamp(38px, 5vw, 54px);
  transition: height .4s var(--ease);
}
.header.is-stuck .brand img { height: clamp(34px, 4vw, 42px); }

.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.4vw, 2.6rem); }

.nav__link {
  position: relative;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  padding-block: .3rem;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: #fff; }

.nav__cta { margin-left: .6rem; padding: .7rem 1.4rem; }

/* Mobile menu button */
.burger {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  position: relative;
  z-index: 2;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px; height: 1px;
  background: var(--bone);
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  /* keep the logo above the full-screen menu */
  .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font-size: .9rem; letter-spacing: .3em; }
  .nav__cta { margin-left: 0; }
  body.nav-open { overflow: hidden; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  place-items: center;
  padding-block: 9rem 5rem;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink-2) center/cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 24s var(--ease) forwards;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(20,16,13,.28), rgba(20,16,13,.78) 74%),
    linear-gradient(to bottom, rgba(20,16,13,.75), rgba(20,16,13,.2) 38%, rgba(20,16,13,.92));
}
@keyframes heroDrift { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__media { animation: none; transform: none; } }

.hero h1 { margin: 0; line-height: 0; }

.hero__logo {
  width: min(340px, 62vw);
  margin-inline: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.55));
}

.hero__quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.5vw, 2.35rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 24ch;
  margin-inline: auto;
  color: #f0e7dc;
}

.hero__note {
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
}

/* thin scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  translate: -50% 0;
  width: 1px; height: 54px;
  background: linear-gradient(var(--brass), transparent);
  opacity: .8;
}

/* Page header for interior pages */
.pagehead {
  position: relative;
  padding: clamp(9rem, 16vw, 13rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 78% 0%, rgba(201,161,90,.14), transparent 62%);
  pointer-events: none;
}
.pagehead__inner { position: relative; }
.pagehead .h-lg { margin-top: 1.1rem; }

/* =========================================================================
   Generic split / feature blocks
   ========================================================================= */
.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}

.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
/* brass hairline frame, offset behind the photo */
.split__media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid rgba(201,161,90,.35);
  border-radius: var(--radius);
  z-index: -1;
}

/* stat / detail row */
.facts {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.fact__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--brass);
  line-height: 1;
}
.fact__label {
  margin-top: .5rem;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================================
   Services
   ========================================================================= */
.cards {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3.5rem;
}
.card {
  background: var(--ink);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: background-color .4s var(--ease);
}
@media (min-width: 620px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card:hover { background: var(--ink-3); }
.card__index {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--brass);
  letter-spacing: .1em;
}
.card h3 { margin: .9rem 0 .7rem; font-size: 1.55rem; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* =========================================================================
   Team
   ========================================================================= */
.team-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  margin-top: 3.5rem;
}

.person {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-3);
}
.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(.55) contrast(1.02);
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.person:hover img, .person:focus-visible img { transform: scale(1.05); filter: grayscale(0); }

.person__body {
  position: absolute;
  inset: auto 0 0;
  padding: 2.2rem 1.35rem 1.25rem;
  background: linear-gradient(to top, rgba(12,9,7,.95), rgba(12,9,7,.72) 45%, transparent);
}
.person__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
}
.person__role {
  display: block;
  margin-top: .3rem;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
}
.person__more {
  display: block;
  margin-top: .55rem;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.person:hover .person__more, .person:focus-visible .person__more { opacity: .85; transform: none; }

/* Single stylist page */
.profile { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .profile { grid-template-columns: minmax(260px, 380px) 1fr; align-items: start; } }
.profile__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.profile__bio p + p { margin-top: 1.1rem; }

.callbox {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--brand);
  background: var(--ink-2);
  border-radius: var(--radius);
}
.callbox__label {
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.callbox__num {
  display: inline-block;
  margin-top: .35rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.callbox__num:hover { color: var(--brand-soft); }

/* =========================================================================
   Gallery
   ========================================================================= */
.gallery {
  display: grid;
  gap: clamp(.6rem, 1.2vw, 1rem);
  grid-template-columns: 1fr;
  margin-top: 3.5rem;
}
.shot {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-3);
  aspect-ratio: 4 / 3;
  display: block;
  width: 100%;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s var(--ease);
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,16,13,.28);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.shot:hover img { transform: scale(1.06); }
.shot:hover::after { opacity: 1; }
@media (min-width: 620px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 8, 6, .95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.lightbox__count {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  translate: -50% 0;
  font-size: .72rem;
  letter-spacing: .24em;
  color: var(--muted);
}
.lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,238,230,.22);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.lb-btn:hover { background: rgba(244,238,230,.1); border-color: rgba(244,238,230,.5); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: clamp(.5rem, 2vw, 2rem); top: 50%; translate: 0 -50%; }
.lb-next { right: clamp(.5rem, 2vw, 2rem); top: 50%; translate: 0 -50%; }

/* =========================================================================
   Hours / contact
   ========================================================================= */
.hours { border-top: 1px solid var(--line); }
.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.hours__day { letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; color: var(--muted); }
.hours__time { font-family: var(--font-display); font-size: 1.2rem; }
.hours__row.is-closed .hours__time { color: var(--muted); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--font-sans); }
.hours__row.is-today { background: linear-gradient(90deg, rgba(201,161,90,.09), transparent); }
.hours__row.is-today .hours__day { color: var(--brass); }

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.detail + .detail { margin-top: 2rem; }
.detail__label {
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
}
.detail__value {
  margin-top: .45rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  text-decoration: none;
  display: inline-block;
  transition: color .3s var(--ease);
}
a.detail__value:hover { color: var(--brand-soft); }

/* Call-the-team list */
.dial {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.5rem;
}
.dial__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: 1.1rem 1.4rem;
  background: var(--ink);
  text-decoration: none;
  transition: background-color .3s var(--ease);
}
.dial__row:hover { background: var(--ink-3); }
.dial__who { font-family: var(--font-display); font-size: 1.3rem; }
.dial__who span { font-family: var(--font-sans); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-left: .75rem; }
.dial__num { font-size: .95rem; color: var(--muted); letter-spacing: .06em; }
.dial__row:hover .dial__num { color: var(--bone); }

/* CTA band */
.band {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
  text-align: center;
  background: var(--ink-2);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 140% at 50% 100%, rgba(212,33,44,.16), transparent 70%);
}
.band > * { position: relative; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; background: var(--ink); }
.footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.footer__logo { width: 190px; margin-bottom: 1.25rem; }
.footer h2 {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; }
.footer li + li { margin-top: .6rem; }
.footer a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .3s var(--ease); }
.footer a:hover { color: var(--bone); }
.footer address { font-style: normal; color: var(--muted); font-size: .95rem; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .06em;
}

/* =========================================================================
   Reveal on scroll (JS adds .is-in)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
/* Never leave content hidden if JS fails */
.no-js .reveal { opacity: 1; transform: none; }

/* visually hidden (available to screen readers and crawlers) */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* skip link */
.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .7rem 1.2rem;
  background: var(--bone);
  color: var(--ink);
  text-decoration: none;
  font-size: .8rem;
  transition: top .25s var(--ease);
}
.skip:focus { top: 1rem; }
