/* ============================================================
   THEME - change these variables to reskin the whole site.
   Soft / elegant palette, built for hair & beauty salons.
   ============================================================ */
:root {
  --color-bg: #faf5f2;
  --color-surface: #ffffff;
  --color-text: #2b2220;
  --color-text-soft: #8a7b74;
  --color-primary: #4a3238;     /* deep mauve-plum - headings, footer text */
  --color-primary-light: #6b4a52;
  --color-accent: #c9a06a;      /* soft gold - buttons, highlights */
  --color-accent-dark: #a8814f;
  --color-border: #ecdfd8;
  --color-footer-bg: #f5ebe4;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 16px;
  --shadow: 0 8px 24px rgba(74, 50, 56, 0.10);
  --max-width: 1100px;

  /* Dark wash used behind an optional hero photo - see .hero.has-photo below */
  --hero-overlay: linear-gradient(160deg, rgba(74,50,56,0.92) 0%, rgba(107,74,82,0.82) 100%);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-title {
  font-size: 2.1rem;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-weight: 700;
}
.section-subtitle {
  color: var(--color-text-soft);
  margin-bottom: 40px;
  max-width: 620px;
}
.section-header { text-align: center; margin-bottom: 8px; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}
.brand .tagline {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 2px;
  color: var(--color-text-soft);
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  border-color: var(--color-accent);
  color: var(--color-primary);
}
.nav-links a.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 24px;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
  border: none !important;
}
.nav-cta:hover { background: var(--color-primary-light); border-color: transparent; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    border-left: 3px solid transparent;
  }
  .nav-links a:hover, .nav-links a.active {
    border-color: transparent;
    border-left-color: var(--color-accent);
    background: var(--color-bg);
  }
  .nav-links li:last-child { text-align: center; }
  .nav-cta {
    display: inline-block !important;
    width: auto !important;
    margin: 16px 0 !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-primary) 0%, #0a1930 100%);
  color: #fff;
  padding: 110px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(201,160,106,0.22), transparent 55%);
  pointer-events: none;
}
/* Optional hero background photo - toggled by setting SITE.heroImage in
   config.js. Leave that value empty ("") and this rule simply never
   applies, so the plain gradient hero above is the default/fallback. */
.hero.has-photo {
  background-image: var(--hero-overlay), var(--hero-photo-url, none);
  background-size: cover;
  background-position: center;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  text-align: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
  color: #fff;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Editorial split hero (homepage only) ----------
   Overrides the plain gradient .hero above with a light, asymmetric
   photo layout - text on one side, an offset-framed photo on the other. */
.hero.hero-split {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 86px 0 96px;
}
.hero.hero-split::after { display: none; }
.hero-split-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-split .hero-split-text { text-align: left; }
.hero-split .hero-split-text .hero-eyebrow { color: var(--color-accent-dark); }
.hero-split .hero-split-text h1 { color: var(--color-primary); font-style: italic; }
.hero-split .hero-split-text p { color: var(--color-text-soft); margin: 0 0 34px; max-width: 460px; }
.hero-split .hero-split-text .hero-actions { justify-content: flex-start; }
.hero-split-media { position: relative; }
.hero-split-media::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 72%;
  height: 72%;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  z-index: 0;
}
.hero-split-media .img-slot {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -24px rgba(74,50,56,0.4);
}
@media (max-width: 760px) {
  .hero-split-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-split .hero-split-text { text-align: center; }
  .hero-split .hero-split-text p { margin-left: auto; margin-right: auto; }
  .hero-split .hero-split-text .hero-actions { justify-content: center; }
  .hero-split-media { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Back navigation link ----------
   Injected by initBackButton() in script.js on every page except Home.
   Sits between the header and that page's hero section below. */
.back-nav { max-width: var(--max-width); margin: 0 auto 28px; padding: 0 24px; text-align: left; position: relative; z-index: 1; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--color-accent); }

/* Page header for inner pages */
.page-hero {
  background: var(--color-surface);
  color: var(--color-text);
  padding: 70px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; color: var(--color-primary); }
.page-hero p { color: var(--color-text-soft); }

/* ---------- Highlights strip ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.highlight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.highlight-card .icon { font-size: 2rem; margin-bottom: 12px; }
.highlight-card h3 { font-size: 1.02rem; margin-bottom: 6px; font-weight: 700; }
.highlight-card p { font-size: 0.9rem; color: var(--color-text-soft); }

/* ---------- Image slots (drop real photos into /images to replace) ---------- */
.img-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  background: linear-gradient(135deg, #e2e7ee, #c9d2de);
}
.img-slot.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(16,35,63,0.5);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

/* ---------- Two-column layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Services preview (homepage) ---------- */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.services-preview-grid h3 {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* ---------- Full services page (styled as an editorial "the edit" list) ---------- */
.service-category { margin-bottom: 56px; max-width: 640px; }
.service-category h2 {
  color: var(--color-primary);
  border-bottom: none;
  display: block;
  padding-bottom: 0;
  margin-bottom: 24px;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  font-weight: 600;
}
.service-category h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  background: var(--color-accent);
  margin-top: 12px;
}
.service-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-item:last-child { border-bottom: none; }
.service-item-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; }
.service-item-desc { color: var(--color-text-soft); font-size: 0.9rem; margin-top: 4px; }
.service-item-price {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  color: var(--color-accent-dark);
  white-space: nowrap;
}
.service-note {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 40px;
}

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.today td { color: var(--color-accent-dark); font-weight: 700; }

/* ---------- Gallery / Projects ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.projects-grid {
  columns: 280px 3;
  column-gap: 28px;
}
.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 28px;
}
.project-card .img-slot { border-radius: 0; aspect-ratio: auto; }
/* Editorial masonry: vary a couple of frame heights so the gallery
   reads as a curated layout rather than a uniform grid. */
.project-card:nth-child(3n+1) .img-slot { aspect-ratio: 3 / 4; }
.project-card:nth-child(3n+2) .img-slot { aspect-ratio: 1 / 1; }
.project-card:nth-child(3n) .img-slot { aspect-ratio: 4 / 3; }
.project-card-body { padding: 20px 22px 24px; }
.project-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--color-primary); }
.project-card-body p { font-size: 0.9rem; color: var(--color-text-soft); }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.testimonial-card .quote-mark {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-quote { font-size: 0.95rem; color: var(--color-text); margin-bottom: 16px; }
.testimonial-author { font-size: 0.85rem; font-weight: 700; color: var(--color-primary); }

/* ---------- Badges (certifications / service areas) ---------- */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.badge {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-line { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-line .icon { font-size: 1.2rem; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; display: block; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 4px);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ---------- Contact form feedback ---------- */
.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-feedback-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.4);
  color: #15803d;
}
.form-feedback-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.4);
  color: #b91c1c;
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/9;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-text-soft);
  padding: 48px 0 24px;
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-grid a { display: block; padding: 4px 0; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--color-accent-dark); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
  color: var(--color-text-soft);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
