/* Kerrie's Salons: shared stylesheet */

:root {
  --bg: #FDF9F7;
  --bg-alt: #F8EEEA;
  --surface: #FFFFFF;
  --ink: #43302E;
  --heading: #2B1D1D;
  --soft: #7A6260;
  --primary: #B76E79;
  --primary-dark: #96525D;
  --gold: #B08A47;
  --border: #ECDCD6;
  --shadow: 0 10px 30px rgba(67, 48, 46, 0.08);
  --shadow-lift: 0 16px 40px rgba(67, 48, 46, 0.14);
  --radius: 14px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 var(--space-2); }

a { color: var(--primary-dark); transition: color 200ms ease; }
a:hover { color: var(--primary); }

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: var(--space-3);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand em {
  font-style: normal;
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.site-nav a:hover { color: var(--primary-dark); }

.site-nav a[aria-current="page"] {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  color: var(--heading);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.btn-primary {
  background: var(--primary-dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--heading);
}

.btn-ghost:hover {
  background: var(--heading);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--heading);
}

.btn-light:hover {
  background: var(--bg-alt);
  color: var(--heading);
  transform: translateY(-2px);
}

:is(a, button):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 18, 20, 0.45), rgba(31, 18, 20, 0.62));
  z-index: -1;
}

.hero h1 { color: #fff; }

.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 560px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.92);
}

.hero .eyebrow { color: #EFD9C3; }

.hero-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

/* ---------- Page hero (sub pages) ---------- */

.page-hero {
  background: var(--bg-alt);
  text-align: center;
  padding: var(--space-6) 0 var(--space-5);
  border-bottom: 1px solid var(--border);
}

.page-hero p {
  max-width: 620px;
  margin-inline: auto;
  color: var(--soft);
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */

.section { padding: var(--space-6) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-5);
}

.section-head p { color: var(--soft); }

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body { padding: var(--space-3); }

.card-body p { color: var(--soft); font-size: 0.95rem; margin-bottom: var(--space-2); }

.card-link {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--primary-dark);
}

/* ---------- Split section ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.split .eyebrow { margin-bottom: var(--space-1); }

/* ---------- Price lists ---------- */

.price-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-3);
}

.price-group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-3);
}

.price-group h3 svg { color: var(--primary); flex: none; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.price-row:last-child { border-bottom: none; }

.price-row .name { font-weight: 500; }

.price-row .note {
  display: block;
  font-size: 0.85rem;
  color: var(--soft);
  font-weight: 400;
}

.price-row .price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary-dark);
  white-space: nowrap;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-2);
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-grid figure:hover img { transform: scale(1.04); }

.gallery-grid figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(31, 18, 20, 0.72), transparent);
}

/* ---------- Testimonials ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}

.quote .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: var(--space-2); }

.quote blockquote {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--heading);
}

.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--soft);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--heading);
  color: #fff;
  text-align: center;
  padding: var(--space-6) 0;
}

.cta-band h2 { color: #fff; }

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto var(--space-3);
}

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

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-3);
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.2);
}

.form-hint { font-size: 0.82rem; color: var(--soft); }

/* ---------- Info blocks (contact page) ---------- */

.info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-3);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h3 svg { color: var(--primary); }

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.hours-row:last-child { border-bottom: none; }
.hours-row .closed { color: var(--soft); }

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

.site-footer {
  background: #241718;
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-5) 0 var(--space-3);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.site-footer h4 { color: #fff; font-size: 1.05rem; }

.site-footer .brand { color: #fff; font-size: 1.4rem; }

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer a:hover { color: #fff; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-3);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .gallery-grid img { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .split, .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .split img { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-2) var(--space-3) var(--space-3);
    display: none;
    box-shadow: var(--shadow-lift);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }

  .site-nav .btn {
    margin-top: var(--space-2);
    text-align: center;
    border-bottom: none;
  }

  .form-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-5) 0; }
}
