/* =========================================================
   CROWN & CLAW — SHARED STYLESHEET
   Used by: index.html, hair.html, nails.html, about.html, contact.html

   TABLE OF CONTENTS
   1. Fonts + Design Tokens (colors, spacing, type scale)
   2. Reset + Base Styles
   3. Typography
   4. Layout Utilities
   5. Navigation
   6. Buttons
   7. Hero
   8. Service Tiles (homepage)
   9. Leaf Divider (signature element)
   10. About Teaser Strip
   11. Footer
   12. Page-specific accent overrides (hair = sage, nails = terracotta)
   13. Responsive
   ========================================================= */

/* -----------------------------------------------------------
   1. FONTS + DESIGN TOKENS
   Change colors/fonts here and they update across every page.
----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Work+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Core palette — agreed "botanical neutral" direction */
  --color-bg: #FAF6F0;          /* warm cream background */
  --color-bg-alt: #F1EAE0;      /* slightly deeper cream, for alternating sections */
  --color-text: #3A3733;        /* soft charcoal */
  --color-text-muted: #7A7469;  /* lighter charcoal for secondary text */
  --color-sage: #9CAF88;        /* Hair accent */
  --color-sage-deep: #7E9470;   /* Hair accent, hover/dark state */
  --color-terracotta: #C97D5D;  /* Nails accent */
  --color-terracotta-deep: #B0623F; /* Nails accent, hover/dark state */
  --color-taupe: #D8CFC0;       /* dividers, borders */
  --color-white: #FFFFFF;

  /* Default accent — overridden per page in section 12 */
  --color-accent: var(--color-sage);
  --color-accent-deep: var(--color-sage-deep);

  /* Type scale */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Shape */
  --radius: 6px;
  --radius-pill: 999px;
}

/* -----------------------------------------------------------
   2. RESET + BASE STYLES
----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* Visible keyboard focus everywhere — accessibility floor */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* -----------------------------------------------------------
   3. TYPOGRAPHY
----------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { margin: 0 0 var(--space-sm); color: var(--color-text); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  display: block;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 42ch;
}

/* -----------------------------------------------------------
   4. LAYOUT UTILITIES
----------------------------------------------------------- */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* -----------------------------------------------------------
   5. NAVIGATION
----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-taupe);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: 1140px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-taupe);
  flex-shrink: 0;
}

.nav-logo svg { width: 22px; height: 22px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--color-accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active { color: var(--color-accent-deep); font-weight: 500; }

.nav-toggle { display: none; }

/* -----------------------------------------------------------
   6. BUTTONS
----------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-accent-deep); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-accent-deep);
  color: var(--color-accent-deep);
}

/* -----------------------------------------------------------
   7. HERO
----------------------------------------------------------- */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Full-bleed hero photo with a soft cream wash so the headline
   stays readable while the real space still reads through. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 240, 0.5);
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero .lede {
  margin: 0 auto var(--space-md);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Soft ambient leaf shapes behind the hero text — quiet, not literal photography */
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-ambient svg { position: absolute; opacity: 0.5; }
.hero-ambient .leaf-1 { top: -40px; left: -60px; width: 220px; color: var(--color-sage); }
.hero-ambient .leaf-2 { bottom: -60px; right: -50px; width: 260px; color: var(--color-terracotta); }

/* -----------------------------------------------------------
   8. SERVICE TILES (homepage)
----------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.tile {
  background: var(--color-white);
  border: 1px solid var(--color-taupe);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(58, 55, 51, 0.35);
}

.tile-icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-sm);
}

.tile--hair .tile-icon { color: var(--color-sage); }
.tile--nails .tile-icon { color: var(--color-terracotta); }

.tile h3 { margin-bottom: 0.4rem; }

.tile p { color: var(--color-text-muted); margin-bottom: var(--space-sm); }

.tile--hair .btn-primary { background: var(--color-sage); }
.tile--hair .btn-primary:hover { background: var(--color-sage-deep); }

.tile--nails .btn-primary { background: var(--color-terracotta); }
.tile--nails .btn-primary:hover { background: var(--color-terracotta-deep); }

/* -----------------------------------------------------------
   9. LEAF DIVIDER — signature element
   A single sprig motif marks the seam between sections, standing
   in for the two businesses meeting in one shared, planted space.
----------------------------------------------------------- */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}

.leaf-divider::before,
.leaf-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: var(--color-taupe);
}

.leaf-divider svg { width: 20px; height: 20px; color: var(--color-taupe); }

/* -----------------------------------------------------------
   10. ABOUT TEASER STRIP (homepage)
----------------------------------------------------------- */
.about-teaser {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.about-teaser .btn { margin-top: var(--space-sm); }

/* -----------------------------------------------------------
   11. FOOTER
----------------------------------------------------------- */
.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-lg) 0 var(--space-md);
}

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

.footer-grid h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 var(--space-xs);
  color: var(--color-bg);
}

.footer-grid p, .footer-grid a { color: #C9C3B8; font-size: 0.92rem; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a:hover { color: var(--color-bg); }

.footer-bottom {
  border-top: 1px solid #56514A;
  padding-top: var(--space-sm);
  font-size: 0.82rem;
  color: #A39C8F;
  text-align: center;
}

/* -----------------------------------------------------------
   12. PAGE-SPECIFIC ACCENT OVERRIDES
   hair.html adds class="accent-hair" to <body>
   nails.html adds class="accent-nails" to <body>
----------------------------------------------------------- */
body.accent-hair {
  --color-accent: var(--color-sage);
  --color-accent-deep: var(--color-sage-deep);
}

body.accent-nails {
  --color-accent: var(--color-terracotta);
  --color-accent-deep: var(--color-terracotta-deep);
}

/* -----------------------------------------------------------
   14. PHOTO FRAME
   Applied to every non-hero photo (provider shots, gallery grids)
   for a neater, consistent edge.
----------------------------------------------------------- */
.photo-frame {
  border: 6px solid var(--color-white);
  box-shadow: 0 6px 18px -8px rgba(58, 55, 51, 0.28);
}

/* -----------------------------------------------------------
   15. BOOKING MODAL
   Triggered by "Book Now" buttons on hair.html / nails.html.
   Collects service + date + time, then hands off to WhatsApp.
----------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(58, 55, 51, 0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: var(--space-md);
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px -20px rgba(58, 55, 51, 0.4);
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
}

.modal h3 { margin-bottom: 0.3rem; }
.modal p.modal-sub { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: var(--space-sm); }

.modal-field { margin-bottom: var(--space-sm); }
.modal-field label { display: block; margin-bottom: 0.3rem; font-size: 0.9rem; }
.modal-field select,
.modal-field input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--color-taupe);
  border-radius: var(--radius);
  font-family: var(--font-body);
  background: var(--color-white);
  font-size: 0.95rem;
}

.modal-submit { width: 100%; text-align: center; border: none; }

/* -----------------------------------------------------------
   16. RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 720px) {
  .nav-links { gap: var(--space-sm); font-size: 0.85rem; }
  .tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); text-align: center; }
  .hero-ambient { display: none; }
}

@media (max-width: 480px) {
  .nav-links { gap: 0.6rem; }
  :root { --space-xl: 4.5rem; --space-lg: 2.5rem; }
}
