/* ============================================================
   Hair by Kate — Main Stylesheet
   Aesthetic: Luxury editorial — warm ivory, deep charcoal,
   dusty rose accent. Cormorant Garamond + Jost pairing.
   ============================================================ */

:root {
  --ivory:      #FAF7F2;
  --ivory-dark: #F0EBE1;
  --charcoal:   #1C1C1C;
  --warm-grey:  #6B6560;
  --rose:       #C9967A;
  --rose-light: #E8C4B0;
  --rose-dark:  #A67358;
  --gold:       #C8A96E;
  --white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --max-w: 1200px;
  --section-pad: clamp(60px, 8vw, 120px);
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── UTILITIES ────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }
.section { padding: var(--section-pad) 0; }
.w-full { width: 100%; }

/* ── BUTTONS ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.8rem;
  font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 14px 32px; border: 1.5px solid transparent;
  cursor: pointer; transition: var(--transition); border-radius: var(--radius);
  white-space: nowrap;
}
.btn-primary { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.btn-primary:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--ivory); }
/* Ghost button when used on light/white backgrounds (booking wizard) */
.booking-panel .btn-ghost,
.step-nav .btn-ghost {
  color: var(--warm-grey);
  border-color: var(--ivory-dark);
}
.booking-panel .btn-ghost:hover,
.step-nav .btn-ghost:hover {
  color: var(--charcoal);
  background: var(--ivory-dark);
  border-color: var(--charcoal);
}
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); }
.btn-sm { padding: 9px 20px; font-size: 0.72rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── SECTION HEADERS ──────────────────────────── */
.section-label {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.15; color: var(--charcoal);
  margin-bottom: 20px;
}
.section-desc { color: var(--warm-grey); max-width: 520px; }
.section-header { text-align: center; margin-bottom: clamp(40px, 5vw, 70px); }
.section-header .section-desc { margin: 0 auto; }

/* ── HEADER / NAV ─────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0; transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; flex-direction: column; }
.logo-main {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 400; color: var(--ivory); line-height: 1;
  transition: var(--transition);
}
.logo-sub {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); transition: var(--transition);
}
.site-header.scrolled .logo-main { color: var(--charcoal); }
.site-header.scrolled .logo-sub  { color: var(--warm-grey); }

.main-nav { display: flex; gap: 36px; }
.main-nav a {
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  transition: var(--transition); position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--rose);
  transition: var(--transition);
}
.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--ivory); }
.site-header.scrolled .main-nav a { color: var(--warm-grey); }
.site-header.scrolled .main-nav a:hover { color: var(--charcoal); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px; background: var(--ivory);
  transition: var(--transition);
}
.site-header.scrolled .nav-toggle span { background: var(--charcoal); }

/* ── HERO ─────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--charcoal);
}
.hero-bg { position: absolute; inset: 0; }
.hero-grain {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px;
}
.hero-circle {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
}
.c1 { width: 600px; height: 600px; background: var(--rose); top: -100px; right: -100px; }
.c2 { width: 400px; height: 400px; background: var(--gold); bottom: -50px; left: 20%; }
.c3 { width: 300px; height: 300px; background: var(--rose-light); top: 40%; left: -80px; }

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 60px) 80px;
  max-width: 720px; padding-left: clamp(20px, 8vw, 100px);
  animation: heroFade 1.2s ease both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose-light); margin-bottom: 24px;
  animation: heroFade 1.2s ease 0.1s both;
}
.hero-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem); line-height: 1.05;
  color: var(--ivory); margin-bottom: 24px;
  animation: heroFade 1.2s ease 0.2s both;
}
.hero-title em { font-style: italic; color: var(--rose-light); }
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
  animation: heroFade 1.2s ease 0.3s both;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; animation: heroFade 1.2s ease 0.4s both; }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.4); font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; animation: heroFade 1.2s ease 0.6s both;
}
.scroll-line {
  width: 1px; height: 50px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50%       { transform: scaleY(1.2); opacity: 0.8; }
}

/* ── ABOUT ────────────────────────────────────── */
.about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about-image-wrap {
  position: relative; aspect-ratio: 3/4; max-width: 420px;
}
.about-image-bg {
  position: absolute; inset: 20px -20px -20px 20px;
  background: var(--ivory-dark); border-radius: var(--radius);
  z-index: 0;
}
.about-image {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--radius);
}
.about-badge {
  position: absolute; bottom: -16px; right: -16px; z-index: 2;
  background: var(--charcoal); color: var(--ivory);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 20px; border-radius: var(--radius);
}
.about-text p { color: var(--warm-grey); margin-bottom: 16px; }
.about-lead {
  font-family: var(--font-display); font-size: 1.3rem;
  font-style: italic; color: var(--charcoal) !important;
  margin-bottom: 24px !important;
}

/* ── SERVICES ─────────────────────────────────── */
.services-section { background: var(--ivory); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.service-card {
  background: var(--white); border: 1px solid var(--ivory-dark);
  padding: 32px; border-radius: var(--radius);
  transition: var(--transition); cursor: pointer;
}
.service-card:hover { border-color: var(--rose-light); box-shadow: 0 8px 32px rgba(0,0,0,0.06); transform: translateY(-2px); }
.service-cat {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 10px;
}
.service-name {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 400; margin-bottom: 10px;
}
.service-desc { font-size: 0.88rem; color: var(--warm-grey); margin-bottom: 20px; }
.service-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-top: 16px; border-top: 1px solid var(--ivory-dark);
}
.service-duration { font-size: 0.78rem; color: var(--warm-grey); }
.service-price { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--charcoal); }

/* ── GALLERY ──────────────────────────────────── */
.gallery-section { background: var(--charcoal); }
.gallery-section .section-label { color: var(--rose-light); }
.gallery-section .section-title { color: var(--ivory); }
.gallery-grid {
  columns: 3;
  column-gap: 5px;
  padding: 0 5px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 5px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.gallery-item img {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: white; padding: 40px 16px 14px;
  font-size: 0.8rem; letter-spacing: 0.05em;
  transform: translateY(100%); transition: var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-zoom-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0);
  width: 44px; height: 44px; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: white; font-size: 1.1rem;
}
.gallery-item:hover .gallery-zoom-icon { transform: translate(-50%,-50%) scale(1); }
.gallery-placeholder .placeholder-inner {
  width: 100%; aspect-ratio: 4/5;
  background: rgba(255,255,255,0.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: rgba(255,255,255,0.15);
}
.gallery-placeholder svg { width: 28px; height: 28px; }
.gallery-placeholder span { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw; max-height: 90vh; object-fit: contain;
  transform: scale(0.95); transition: transform 0.3s ease;
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: rgba(255,255,255,0.7); font-size: 2rem; cursor: pointer;
  background: none; border: none; line-height: 1; transition: color 0.2s;
}
.lightbox-close:hover { color: white; }
.lightbox-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.85rem; letter-spacing: 0.08em;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: white;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem;
  cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── BOOKING ──────────────────────────────────── */
.booking-section { background: var(--ivory-dark); }
.booking-wrapper {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 4px 40px rgba(0,0,0,0.06); overflow: hidden;
}
.booking-steps {
  display: flex; align-items: center;
  padding: 28px 40px; background: var(--charcoal); gap: 0;
}
.step {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); transition: var(--transition);
}
.step.active { color: var(--ivory); }
.step.done { color: var(--rose-light); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid currentColor; display: flex;
  align-items: center; justify-content: center;
  font-size: 0.72rem; flex-shrink: 0;
}
.step.done .step-num { background: var(--rose); border-color: var(--rose); color: white; }
.step-line { flex: 1; height: 1px; background: rgba(255,255,255,0.12); margin: 0 8px; }

.booking-panel { display: none; padding: clamp(24px, 4vw, 48px); }
.booking-panel.active { display: block; animation: panelIn 0.4s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.booking-panel h3 {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 300; margin-bottom: 28px;
}
.booking-services { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.bs-option { cursor: pointer; }
.bs-option input { display: none; }
.bs-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border: 1.5px solid var(--ivory-dark);
  border-radius: var(--radius); transition: var(--transition);
}
.bs-option input:checked + .bs-card {
  border-color: var(--rose); background: rgba(201,150,122,0.06);
}
.bs-card:hover { border-color: var(--rose-light); }
.bs-info { display: flex; flex-direction: column; gap: 2px; }
.bs-info strong { font-weight: 400; }
.bs-info small { font-size: 0.78rem; color: var(--warm-grey); }
.bs-price { font-family: var(--font-display); font-size: 1.1rem; color: var(--charcoal); }

/* Calendar */
.calendar-wrap {
  background: var(--ivory); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px; max-width: 380px;
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.cal-month { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; }
.cal-nav {
  background: none; border: 1.5px solid var(--ivory-dark);
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; font-size: 1.1rem; color: var(--charcoal);
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.cal-nav:hover { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-day-name { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-grey); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; border-radius: 50%; cursor: pointer; transition: var(--transition);
}
.cal-day.empty { cursor: default; }
.cal-day.past  { color: var(--ivory-dark); cursor: default; }
.cal-day.unavailable { color: rgba(0,0,0,0.2); cursor: default; }
.cal-day.available:hover { background: var(--ivory-dark); }
.cal-day.selected { background: var(--charcoal); color: var(--ivory); }
.cal-day.has-slots::after {
  content: ''; display: block; width: 4px; height: 4px;
  background: var(--rose); border-radius: 50%; position: absolute; bottom: 2px;
}
.cal-day.available { position: relative; }

.timeslots-wrap { margin-bottom: 24px; }
.timeslots-title { font-family: var(--font-display); font-size: 1rem; margin-bottom: 14px; }
.timeslots { display: flex; flex-wrap: wrap; gap: 10px; }
.timeslot {
  padding: 10px 18px; border: 1.5px solid var(--ivory-dark);
  border-radius: 30px; font-size: 0.82rem; cursor: pointer; transition: var(--transition);
}
.timeslot:hover { border-color: var(--rose-light); }
.timeslot.selected { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.timeslot.booked { color: var(--ivory-dark); cursor: not-allowed; text-decoration: line-through; }

.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warm-grey); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--ivory-dark); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem;
  background: var(--ivory); color: var(--charcoal);
  transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--rose); background: var(--white); }

/* Booking summary */
.booking-summary {
  background: var(--ivory); border-radius: var(--radius);
  padding: 28px; margin-bottom: 28px;
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--ivory-dark);
  font-size: 0.92rem;
}
.summary-row:last-child { border-bottom: none; font-weight: 500; }
.summary-row span:first-child { color: var(--warm-grey); }

#booking-result { margin-top: 20px; }
.result-msg {
  padding: 16px 20px; border-radius: var(--radius);
  font-size: 0.9rem;
}
.result-msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.result-msg.error   { background: #fdecea; color: #c62828; border: 1px solid #ffcdd2; }

/* ── CONTACT ──────────────────────────────────── */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-info p { color: var(--warm-grey); margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.cd-item { display: flex; align-items: center; gap: 14px; }
.cd-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--rose); }
.cd-item span { font-size: 0.9rem; color: var(--warm-grey); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
#contact-result { margin-top: 10px; }

/* ── FOOTER ───────────────────────────────────── */
.site-footer { background: var(--charcoal); padding: 40px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; color: var(--ivory); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer-nav a:hover { color: var(--ivory); }

/* ── MOBILE ───────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 320px; margin: 0 auto; }
  .contact-grid  { grid-template-columns: 1fr; }
  .gallery-grid  { columns: 2; column-gap: 4px; padding: 0 4px; }
  .gallery-item  { margin-bottom: 4px; }
}
@media (max-width: 700px) {
  .main-nav { display: none; flex-direction: column; position: fixed; inset: 0; top: 0;
    background: rgba(28,28,28,0.97); align-items: center; justify-content: center; gap: 40px; z-index: 99; }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1.1rem; color: var(--ivory) !important; }
  .nav-toggle { display: flex; z-index: 101; position: relative; }
  .booking-steps { padding: 16px 20px; overflow-x: auto; }
  .step-lbl { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid  { columns: 2; column-gap: 3px; padding: 0 3px; }
  .gallery-item  { margin-bottom: 3px; }
  .lightbox-nav  { width: 36px; height: 36px; font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}