/* Hair By Anya — mobile first */
:root {
  --cream: #f6f0e8;
  --sand: #ece2d5;
  --caramel: #b07b4f;
  --caramel-dark: #8a5c37;
  --espresso: #2a1f19;
  --ink: #3d322b;
  --muted: #7c6d61;
  --white: #fffdfa;
  --wa: #1f9d55;
  --radius: 18px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--espresso); margin: 0; line-height: 1.05; }
h1 em, h2 em, .brand em { font-style: italic; color: var(--caramel); }
h2 { font-size: 2.6rem; margin-bottom: .6rem; }
p { margin: 0 0 1rem; }
.center { text-align: center; }
.eyebrow {
  font: 500 .72rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: .9rem;
}
.section { padding: 4.5rem 1.4rem; }
.section-sub { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 54px; padding: 0 1.4rem;
  border-radius: 999px;
  font: 500 .95rem/1 var(--sans); letter-spacing: .03em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-line { border: 1px solid rgba(42,31,25,.3); color: var(--espresso); }
.btn-whatsapp { background: var(--wa); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(.85rem + var(--top)) 1.2rem .85rem;
  background: rgba(246,240,232,.0);
  transition: background .25s ease, box-shadow .25s ease;
}
.topbar.is-scrolled {
  background: rgba(246,240,232,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(42,31,25,.08);
}
.brand { font: 500 1.55rem/1 var(--serif); color: var(--espresso); text-decoration: none; margin: 0; }
.topbar .brand { color: var(--white); text-shadow: 0 1px 12px rgba(0,0,0,.25); transition: color .25s; }
.topbar.is-scrolled .brand { color: var(--espresso); text-shadow: none; }
.topbar-book {
  font: 500 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: .7rem 1.1rem; border-radius: 999px;
  background: var(--white); color: var(--espresso);
}
.topbar.is-scrolled .topbar-book { background: var(--espresso); color: var(--cream); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-photo { position: relative; height: 78vh; height: 78svh; min-height: 460px; overflow: hidden; touch-action: pan-y; background: var(--sand); }
.hero-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.25,.8,.25,1); will-change: transform; }
.hero-track.is-dragging { transition: none; }
.hero-slide { flex: 0 0 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; user-select: none; -webkit-user-drag: none; }
.hero-dots {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 6.6rem;
  display: flex; justify-content: center; gap: .1rem;
}
.hero-dot {
  width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.hero-dot::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-radius: 99px;
  transform: translate(-50%, -50%); background: rgba(255,255,255,.55); transition: width .3s, background .3s;
}
.hero-dot.is-active::after { width: 20px; background: #fff; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 140px;
  background: linear-gradient(rgba(0,0,0,.35), transparent);
  pointer-events: none;
}
.hero-card {
  position: relative; z-index: 2;
  margin: -5.5rem 1rem 0; padding: 2rem 1.5rem 1.6rem;
  background: var(--cream); border-radius: var(--radius) var(--radius) var(--radius) var(--radius);
  box-shadow: 0 20px 50px -25px rgba(42,31,25,.35);
}
.hero-card h1 { font-size: 3.4rem; margin-bottom: .8rem; }
.hero-lede { font-size: 1.08rem; color: var(--muted); margin-bottom: 1.6rem; }
.hero-actions { display: grid; gap: .7rem; }

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; }
.about-photo { position: relative; width: 72%; margin: 0 auto; }
.about-photo::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--caramel); border-radius: 50% 50% var(--radius) var(--radius);
}
.about-photo img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 50% 50% var(--radius) var(--radius); }
.about-text { text-align: center; }

/* ---------- Services ---------- */
.services { background: var(--white); }
.service-group { margin-top: 2rem; }
.service-group h3 {
  font: 500 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); padding-bottom: .8rem; border-bottom: 1px solid var(--sand);
}
.service-list { list-style: none; margin: 0; padding: 0; }
.service {
  width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 1rem; text-align: left;
  padding: 1.1rem .2rem; background: none; border: 0; border-bottom: 1px solid var(--sand);
  font: inherit; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background .2s;
}
.service:active { background: var(--cream); }
.service-name { font: 500 1.55rem/1.1 var(--serif); color: var(--espresso); }
.service-note { grid-column: 1; font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.chev {
  grid-column: 2; grid-row: 1 / span 2;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--sand); position: relative;
}
.chev::after {
  content: ""; position: absolute; top: 50%; left: 46%; width: 8px; height: 8px;
  border-top: 1.5px solid var(--caramel); border-right: 1.5px solid var(--caramel);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; grid-auto-flow: dense; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 14px; cursor: zoom-in; aspect-ratio: 3/4; }
.tile-tall { grid-row: span 2; aspect-ratio: auto; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; background: var(--sand); }
.tile:active img, .tile:active video { transform: scale(1.03); }
.tile.is-extra { display: none; }
.gallery.show-all .tile.is-extra { display: block; }
.video-badge {
  position: absolute; top: .6rem; right: .6rem; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.video-badge::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff;
}
.more-wrap { display: flex; justify-content: center; margin-top: 1.4rem; }
.more-wrap .btn { min-width: 220px; }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2rem .8rem .7rem;
  font: 400 .78rem/1.2 var(--sans); letter-spacing: .06em; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}

.social-cta { text-align: center; margin-top: 2.6rem; }
.social-cta > p { color: var(--muted); }
.social-buttons { display: grid; gap: .7rem; }
.social {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--sand);
  text-decoration: none; text-align: left;
}
.social svg { width: 30px; height: 30px; color: var(--caramel); flex: none; }
.social span { font: 500 1.35rem/1.1 var(--serif); color: var(--espresso); }
.social small { display: block; font: 300 .85rem/1.4 var(--sans); color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-top: 1rem; }
.contact-card {
  background: var(--espresso); color: var(--sand);
  border-radius: 24px; padding: 2.4rem 1.6rem 2rem; text-align: center;
}
.contact-card h2 { color: var(--cream); }
.contact-card .eyebrow { color: #d6a77d; }
.contact-card .btn { margin: 1.6rem 0 1.2rem; }
.contact-alt { font-size: .92rem; margin: 0; }
.contact-alt a { color: #e5bf99; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 2.5rem 1.4rem calc(7rem + var(--bottom)); }
.footer-links { display: flex; justify-content: center; gap: 1.4rem; margin: 1rem 0; }
.footer-links a { font-size: .9rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--sand); }
.small { font-size: .8rem; color: var(--muted); }

/* ---------- Sticky action bar ---------- */
.actionbar {
  position: fixed; z-index: 25; left: .8rem; right: .8rem; bottom: calc(.8rem + var(--bottom));
  display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
  padding: .45rem; border-radius: 999px;
  background: rgba(255,253,250,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -10px rgba(42,31,25,.35);
  transform: translateY(150%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.show-actionbar .actionbar { transform: none; }
.ab {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 48px; border-radius: 999px; text-decoration: none;
  font: 500 .92rem/1 var(--sans);
}
.ab svg { width: 20px; height: 20px; }
.ab-wa { color: var(--wa); }
.ab-book { background: var(--espresso); color: var(--cream); }

/* ---------- Service sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(42,31,25,.45);
  opacity: 0; transition: opacity .25s;
}
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0;
  display: grid; gap: .7rem;
  padding: .8rem 1.4rem calc(1.4rem + var(--bottom));
  background: var(--cream); border-radius: 24px 24px 0 0;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.sheet-open .sheet-backdrop { opacity: 1; }
.sheet-open .sheet { transform: none; }
.sheet-handle { width: 42px; height: 4px; border-radius: 4px; background: var(--sand); margin: 0 auto .8rem; }
.sheet h3 { font-size: 2rem; text-align: center; margin-bottom: .6rem; }
.sheet-close { background: none; border: 0; font: 400 .95rem var(--sans); color: var(--muted); padding: .8rem; cursor: pointer; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20,15,12,.96);
  display: flex; align-items: center; justify-content: center;
  padding: calc(3.5rem + var(--top)) .6rem calc(3.5rem + var(--bottom));
}
.lightbox[hidden] { display: none; }
.lightbox video { max-height: 100%; max-width: 100%; border-radius: 10px; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 10px; }
.lb-close, .lb-nav {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 300 2.4rem/1 var(--sans); width: 52px; height: 52px;
}
.lb-close { top: calc(.4rem + var(--top)); right: .4rem; }
.lb-nav { top: 50%; transform: translateY(-50%); opacity: .7; }
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-caption {
  position: absolute; left: 0; right: 0; bottom: calc(1rem + var(--bottom));
  text-align: center; color: rgba(255,255,255,.75); font-size: .85rem; margin: 0;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Larger screens (still works nicely on desktop) ---------- */
@media (min-width: 760px) {
  body { font-size: 18px; }
  .section { padding: 6rem 2rem; max-width: 1080px; margin: 0 auto; }
  .services { max-width: none; }
  .services > * { max-width: 720px; margin-left: auto; margin-right: auto; }
  .hero-photo { height: 88vh; }
  .hero-dots { bottom: 10rem; }
  .hero-card { max-width: 560px; margin: -9rem auto 0; padding: 2.6rem; }
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 4rem; }
  .about-photo { width: 100%; }
  .about-text { text-align: left; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .social-buttons { grid-template-columns: 1fr 1fr; max-width: 640px; margin: 0 auto; }
  .contact-card { max-width: 720px; margin: 0 auto; padding: 3.5rem; }
  .contact-card .btn { display: inline-flex; }
  .actionbar { left: auto; right: 1.5rem; width: 360px; }
}
