/* =========================================================
   West & Co. — Salon stylesheet
   Edit colors, fonts, and spacing in :root below.
   Most other styles cascade from those variables.
   ========================================================= */

:root {
  /* Brand palette — tuned to match the West & Co. logo */
  --color-bg:        #f5efe6;
  --color-surface:   #ffffff;
  --color-ink:       #1f1b18;
  --color-muted:     #6a5f57;
  --color-accent:    #8b5a2b;
  --color-accent-dk: #6e4420;
  --color-line:      #e7ddd2;

  /* Typography */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(31, 27, 24, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 27, 24, 0.10);
}

/* =========================================================
   Reset + base
   ========================================================= */
*,
*::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(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent-dk);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--color-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--color-muted); }
p.lead { font-size: 1.15rem; color: var(--color-ink); }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--color-surface); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
}
.btn-primary {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn-primary:hover {
  background: var(--color-accent-dk);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-outline:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

/* =========================================================
   Navigation (shared desktop top nav + mobile tab bar)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--color-ink);
}
.brand img { height: 56px; width: auto; }

.nav {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
/* Desktop nav items mirror the mobile tab bar: stacked icon + label,
   so the same vocabulary carries across breakpoints. */
.nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  min-width: 64px;
  color: var(--color-muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius);
  transition: color 150ms ease, background 150ms ease;
}
.nav a:hover { color: var(--color-ink); }

/* "Book" is still the primary action; tint it with the brand accent
   so it reads at a glance without breaking the icon-stack rhythm. */
.nav a.nav-book { color: var(--color-accent-dk); }
.nav a.nav-book:hover {
  color: #fff;
  background: var(--color-accent-dk);
}

/* Icons in both nav variants share the same stroke treatment. */
.nav a svg,
.mobile-tabbar a svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Active state fills the pill with the brand accent so the current
   page reads at a glance. Applied to every nav item (including Book)
   so the treatment is consistent across the bar. Declared after
   .nav-book so it wins the specificity tie and the Book label stays
   white when active. The mirror rule for .mobile-tabbar a.active
   lives in the 760px media query, after .mobile-tabbar a.book, for
   the same reason. */
.nav a.active {
  color: #fff;
  background: var(--color-accent-dk);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-ink);
}

/* Mobile bottom tab bar — hidden until the 760px breakpoint below
   turns it on as the primary mobile navigation. */
.mobile-tabbar { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 4rem 0 5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-media {
  --hero-brass: #c6a36a;
  --hero-bone: #f6efe4;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(107, 80, 55, 0.04) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #e7ddd2, #cdb89c);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dk);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}
.hero-media[role="img"] > span {
  padding: 0.5rem 1rem;
  border: 1px dashed var(--color-accent-dk);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
}
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 48%;
  z-index: 0;
}
.hero .eyebrow {
  font-size: 1rem;
  letter-spacing: 0.22em;
  margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Coming Soon type lives inside the hero-media card, not full-bleed. */
.hero-media .hero-coming-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.08) 0%, rgba(12, 10, 8, 0.18) 42%, rgba(12, 10, 8, 0.5) 78%, rgba(12, 10, 8, 0.62) 100%);
  pointer-events: none;
}
.hero-media .hero-coming-copy {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  z-index: 2;
  width: min(92%, 20rem);
  padding: 0 0.75rem;
  text-align: center;
  color: var(--hero-bone);
}
.hero-media .hero-coming-eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hero-brass);
  text-shadow: 0 1px 10px rgba(12, 10, 8, 0.35);
}
.hero-media .hero-coming-title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--hero-bone);
  text-shadow: 0 2px 12px rgba(12, 10, 8, 0.45);
}
.hero-media .hero-coming-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.55rem 0 0.5rem;
  color: var(--hero-brass);
}
.hero-media .hero-coming-rule span {
  display: block;
  width: 2.1rem;
  height: 1px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: currentColor;
  opacity: 0.9;
}
.hero-media .hero-coming-rule i {
  display: block;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.hero-media .hero-coming-script {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.04em;
  color: var(--hero-bone);
  text-shadow: 0 1px 10px rgba(12, 10, 8, 0.4);
}

/* =========================================================
   Feature / service grids
   ========================================================= */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card h3 { color: var(--color-ink); }

/* Stylist cards (grid on the Stylists page) */
.card.stylist { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.stylist .stylist-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.card.stylist .headshot {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--color-line);
}
.card.stylist .stylist-body {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card.stylist h3 { margin-bottom: 0.25rem; }
.card.stylist .stylist-title {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dk);
}
.card.stylist .read-more {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent-dk);
  letter-spacing: 0.02em;
}
.card.stylist:hover .read-more { color: var(--color-ink); }

/* Stylist detail page (stylists/<slug>/index.html) */
.stylist-detail .stylist-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover; display: block; max-width: 360px; margin-inline: auto; object-position: 50% 18%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.stylist-detail .back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Two-column feature section */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
/* Lock Our studio to the original moodboard slot (1200x900). */
.two-col img.studio-window {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.72) contrast(0.88) brightness(1.04);
}
/* Our story jeans: same column slot, taller window so the portrait stays mostly in frame. */
.two-col img.philosophy-window {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: 50% 58%;
}

/* =========================================================
   Contact
   ========================================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.info-grid h3 { color: var(--color-ink); margin-bottom: 0.5rem; }

/* =========================================================
   Map
   ========================================================= */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.hero-grid .map-embed {
  aspect-ratio: 4 / 5;
  max-height: 560px;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 480px) {
  .brand img { height: 48px; }
}

@media (max-width: 760px) {
  /* On mobile we replace the top nav with a bottom tab bar. The old
     hamburger + dropdown markup is left in place so desktop behavior
     is unaffected; we just hide the desktop nav here. */
  .nav { display: none; }

  .section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media .hero-coming-eyebrow { letter-spacing: 0.22em; }
  .hero-media .hero-coming-title {
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }
  .hero-copy { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-media { aspect-ratio: 4 / 3; max-height: 360px; font-size: 1.1rem; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  /* Sections alternate image/text order on desktop for a staggered look.
     On mobile that alternation would put two images (or two text blocks)
     back-to-back at section boundaries. Force the image column below the
     text column so the rhythm is always text -> image -> text -> image.
     Scoped away from .stylist-detail, which has only one two-col and
     should keep the portrait above the bio. */
  section:not(.stylist-detail) .two-col > div:has(> img) { order: 2; }

  .map-embed { aspect-ratio: 4 / 5; }
  .hero-grid .map-embed { aspect-ratio: 4 / 3; max-height: 360px; }

  .mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(247, 242, 236, 0.96);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-top: 1px solid var(--color-line);
    padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: stretch;
  }
  .mobile-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.25rem;
    margin: 0 0.15rem;
    color: var(--color-muted);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    min-height: 48px;
    border-radius: var(--radius);
    transition: color 150ms ease, background 150ms ease;
  }
  .mobile-tabbar a.book { color: var(--color-accent-dk); }
  /* Declared after .book so it wins the specificity tie and the
     Book label stays white when active. */
  .mobile-tabbar a.active {
    color: #fff;
    background: var(--color-accent-dk);
  }

  /* Keep page content clear of the fixed tab bar. */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
