/* ============================================================
   Barbara Harmison Permanent Hair Removal
   Luxe spa aesthetic — ivory, champagne, espresso, gold
   ============================================================ */

:root {
  --ivory: #f8f3ea;
  --cream: #efe7d9;
  --champagne: #e2d2b6;
  --gold: #b08d57;
  --gold-deep: #8f6f3f;
  --gold-pale: #d7bd93;
  --espresso: #29201a;
  --espresso-soft: #3a2f26;
  --ink: #241c15;
  --text: #52463a;
  --white: #fffdf9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Avenir Next", Avenir, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-deep); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--espresso); }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lede { font-size: 1.15rem; max-width: 38em; }

em.accent { font-style: italic; color: var(--gold-deep); }

/* ---------- Layout helpers ---------- */

.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--espresso); }
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--dark p { color: #cfc3b2; }

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

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(248, 243, 234, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(176, 141, 87, 0.25);
  padding: 0.7rem 0;
}

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

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  background: rgba(255, 253, 249, 0.6);
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Light-on-dark header over hero */
.header-on-dark:not(.scrolled) .brand-name { color: var(--ivory); }
.header-on-dark:not(.scrolled) .brand-mark { color: var(--gold-pale); background: rgba(41, 32, 26, 0.25); }
.header-on-dark:not(.scrolled) .brand-sub { color: var(--gold-pale); }
@media (min-width: 921px) {
  .header-on-dark:not(.scrolled) .nav a { color: rgba(248, 243, 234, 0.85); }
  .header-on-dark:not(.scrolled) .nav a:hover,
  .header-on-dark:not(.scrolled) .nav a.active { color: var(--white); }
  .header-on-dark:not(.scrolled) .nav a.active::after { background: var(--gold-pale); }
}
.header-on-dark:not(.scrolled) .nav-toggle span { background: var(--ivory); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 0.3rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav a.active { color: var(--ink); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--white); }
.btn--solid { background: var(--gold); color: var(--white); }
.btn--solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--light { border-color: rgba(248, 243, 234, 0.6); color: var(--ivory); }
.btn--light:hover { background: var(--ivory); border-color: var(--ivory); color: var(--espresso); }
.btn--sm { padding: 0.7rem 1.5rem; }

.nav .btn { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 30px; height: 22px;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transition: all 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); background: var(--ink); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  }
  .nav::after {
    content: "";
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 1px;
    background: var(--gold);
  }
  .nav-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a {
    font-family: var(--serif);
    font-size: 1.7rem;
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--ink);
  }
  .nav a.active { color: var(--gold-deep); }
  .nav a::after { display: none; }
  .nav .btn {
    margin-left: 0;
    margin-top: 1.2rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
  }
  .nav a.btn--solid { color: var(--white); }
  /* While the menu is open: freeze the page and strip the header's
     backdrop-filter — it otherwise becomes the containing block for
     the fixed overlay, which breaks its position and lets it scroll. */
  body.nav-open { overflow: hidden; }
  .nav-open .site-header,
  .nav-open .site-header.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .nav-open .site-header .brand { position: relative; z-index: 110; }
  .nav-open .site-header .brand-name { color: var(--ink); }
  .nav-open .site-header .brand-sub { color: var(--gold-deep); }
  .nav-open .site-header .brand-mark { color: var(--gold-deep); background: transparent; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center;
  animation: heroDrift 18s var(--ease) both;
}
@keyframes heroDrift {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(30, 22, 15, 0.62) 0%, rgba(30, 22, 15, 0.28) 55%, rgba(30, 22, 15, 0.12) 100%),
    linear-gradient(to top, rgba(30, 22, 15, 0.85) 0%, rgba(30, 22, 15, 0.22) 48%, rgba(30, 22, 15, 0.28) 100%);
}
.hero-content { padding: 8.5rem 0 clamp(3.5rem, 8vh, 6.5rem); }
.hero h1 { color: var(--white); max-width: 13em; text-shadow: 0 2px 34px rgba(30, 22, 15, 0.45); }
.hero h1 em.accent { color: var(--gold-pale); }
.hero .eyebrow { color: var(--gold-pale); }
.hero .eyebrow::before { background: var(--gold-pale); }
.hero p.lede { color: rgba(248, 243, 234, 0.88); margin: 1.4rem 0 2.4rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero--page { min-height: 62vh; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.card {
  background: var(--white);
  border: 1px solid rgba(176, 141, 87, 0.22);
  padding: 2.4rem 1.9rem 2.1rem;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(41, 32, 26, 0.25);
}
.card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.95rem; }
.card .card-link {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- Pricing ---------- */

.price-list { margin-top: 2.6rem; max-width: 620px; }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(176, 141, 87, 0.3);
}
.price-row .label { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); white-space: nowrap; }
.price-row .dots { flex: 1; border-bottom: 1px dotted rgba(176, 141, 87, 0.55); transform: translateY(-4px); }
.price-row .amount { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-deep); white-space: nowrap; }
.section--dark .price-row .label { color: var(--ivory); }
.section--dark .price-row .amount { color: var(--gold-pale); }
.price-note { margin-top: 1.4rem; font-size: 0.9rem; font-style: italic; }

/* ---------- Imagery ---------- */

.frame {
  position: relative;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(248, 243, 234, 0.55);
  pointer-events: none;
}
.frame--landscape img { aspect-ratio: 3 / 2; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(41, 32, 26, 0.45), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(24, 18, 13, 0.93);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(88vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute; top: 1.4rem; right: 1.8rem;
  background: none; border: 0;
  color: var(--ivory);
  font-size: 2rem;
  font-family: var(--serif);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Quote strip ---------- */

.quote {
  text-align: center;
  max-width: 46em;
  margin-inline: auto;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.section--dark .quote blockquote { color: var(--ivory); }
.quote cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Info strip / visit ---------- */

.info-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.info-cols h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}
.section--dark .info-cols h3 { color: var(--gold-pale); }
.info-cols p, .info-cols a { font-size: 1.02rem; }
.info-cols .big {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
}
.section--dark .info-cols .big { color: var(--ivory); }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(176, 141, 87, 0.35);
  padding: 0.95rem 1.1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.15);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Map ---------- */

.map-embed {
  margin-top: 3rem;
  border: 1px solid rgba(176, 141, 87, 0.3);
  padding: 0.6rem;
  background: var(--white);
}
.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  filter: sepia(0.22) saturate(0.85);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--espresso);
  color: #b9ac9a;
  padding: 4.5rem 0 2.5rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand-name { color: var(--ivory); }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 1.1rem;
}
.site-footer a { color: #cfc3b2; display: inline-block; padding: 0.15rem 0; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(215, 189, 147, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ---------- Misc ---------- */

.gold-rule {
  width: 64px; height: 1px;
  background: var(--gold);
  margin: 1.6rem 0;
}
.center { text-align: center; }
.center .gold-rule, .center .eyebrow { margin-inline: auto; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

::selection { background: var(--champagne); color: var(--espresso); }
