/* =========================================================
   Karis Hair Salon & Barber — mockup by The Now Designs
   Palette: warm terracotta + soft mauve-rose + deep plum ink
   Type:    Cormorant Garamond (display) + Montserrat (body) — matched to the Hair By Karis logo
   ========================================================= */

:root {
  --ink:        #2B1A1F;   /* deep plum-brown — text */
  --ink-soft:   #5a4046;
  --cream:      #FBF4EC;   /* warm paper */
  --cream-2:    #F4E7DA;   /* card cream */
  --rose:       #E8C7C0;   /* soft mauve-rose */
  --terra:      #C5613F;   /* terracotta — primary accent */
  --terra-deep: #A84B2E;
  --gold:       #C99A4B;   /* warm gold — stars */
  --line:       rgba(43,26,31,0.12);

  --maxw: 1180px;
  --r:    18px;
  --r-lg: 26px;
  --shadow: 0 18px 50px -22px rgba(43,26,31,0.35);
  --shadow-sm: 0 8px 24px -14px rgba(43,26,31,0.4);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

em { font-style: italic; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

::selection { background: var(--terra); color: var(--cream); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  padding: .85em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn .ico { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
.btn-call {
  background: var(--terra);
  color: var(--cream);
  box-shadow: 0 10px 26px -12px rgba(197,97,63,.85);
}
.btn-call:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(168,75,46,.9); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { font-size: 1.05rem; padding: 1em 1.7em; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(251,244,236,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(43,26,31,.5);
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -.01em;
}
.brand-name em { color: var(--terra); }
.nav {
  display: flex;
  gap: 1.6rem;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--terra);
  transition: width .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 16s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(43,26,31,.82) 0%, rgba(43,26,31,.30) 45%, rgba(43,26,31,.15) 100%),
    linear-gradient(to right, rgba(43,26,31,.55), rgba(43,26,31,0) 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--cream);
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra);
}
.hero .eyebrow {
  color: var(--rose);
  background: rgba(43,26,31,.35);
  padding: .4em .9em;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 1rem 0 0;
  color: var(--cream);
}
.hero h1 em { color: var(--rose); font-weight: 400; }
.h1-sub {
  display: block;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
  margin-top: .15em;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 540px;
  margin: 1.3rem 0 0;
  color: rgba(251,244,236,.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 1.8rem 0 0;
}
.hero-actions .btn-ghost { color: var(--cream); border-color: rgba(251,244,236,.45); }
.hero-actions .btn-ghost:hover { border-color: var(--cream); background: rgba(251,244,236,.1); }
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.7rem 0 0;
  font-size: .98rem;
  color: rgba(251,244,236,.9);
}
.hero-trust strong { font-size: 1.1rem; }
.stars { color: var(--gold); letter-spacing: .08em; font-size: 1.05rem; }
.trust-sep { opacity: .5; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: .85rem 0;
  border-block: 1px solid rgba(251,244,236,.08);
}
.marquee-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-track span:not(.dot) { color: var(--cream); }
.marquee .dot { color: var(--terra); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- generic section ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.1rem, 4vw, 2rem);
}
.section-head { max-width: 640px; margin: 0 auto clamp(2.2rem, 5vw, 3.2rem); text-align: center; }
.section-head h2,
.about-copy h2,
.visit-info h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin: .7rem 0 0; }
.section-head h2 em,
.about-copy h2 em,
.visit-info h2 em { color: var(--terra); font-weight: 400; }
.section-lede { font-size: 1.1rem; color: var(--ink-soft); margin: 1rem 0 0; }
.section-lede a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.service-card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: #fff;
}
.service-ico {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: var(--terra-deep);
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.5rem; }
.service-card p { font-size: .96rem; color: var(--ink-soft); margin: .6rem 0 1.1rem; }
.service-card ul { list-style: none; margin: 0; padding: 0; }
.service-card li {
  font-size: .92rem;
  padding: .35rem 0 .35rem 1.3rem;
  position: relative;
  border-top: 1px solid var(--line);
}
.service-card li::before {
  content: "✦";
  position: absolute; left: 0;
  color: var(--terra);
  font-size: .75rem;
  top: .55rem;
}
.services-note { text-align: center; margin: 2.2rem 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.services-note a { color: var(--terra); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reviews ---------- */
.reviews { text-align: center; }
.reviews-stat { margin-bottom: clamp(2rem, 5vw, 3rem); }
.stat-stars { color: var(--gold); font-size: 1.5rem; letter-spacing: .1em; }
.stat-number {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: 1;
  color: var(--terra);
  margin: .1em 0 0;
}
.stat-label { font-size: 1.15rem; color: var(--ink-soft); }
.stat-label strong { color: var(--ink); }
.stat-blurb { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); margin: 1.2rem auto 0; max-width: 480px; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  text-align: left;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.9rem 1.7rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease;
}
.review-card:hover { transform: translateY(-5px); }
.r-stars { color: var(--gold); letter-spacing: .1em; margin-bottom: .9rem; }
.review-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.4;
  color: var(--ink);
}
.review-card figcaption { margin-top: 1.1rem; font-size: .88rem; font-weight: 600; color: var(--terra); }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.g-item {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.07); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.about-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-copy p { color: var(--ink-soft); font-size: 1.05rem; margin: 1.1rem 0 0; }
.about-quote {
  margin: 1.4rem 0 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--terra);
  background: var(--rose);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--ink);
}
.about-cta { margin-top: 1.8rem; }

/* ---------- visit ---------- */
.visit { }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: stretch;
}
.visit-block { margin-top: 1.8rem; }
.visit-block h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
}
.hours { width: 100%; border-collapse: collapse; margin-top: .6rem; max-width: 380px; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { font-family: var(--sans); }
.hours td { color: var(--ink-soft); }
.hours .closed th, .hours .closed td { color: var(--terra-deep); }
.addr { font-size: 1.15rem; margin: .5rem 0; }
.visit-link { color: var(--terra); font-weight: 600; text-decoration: none; }
.visit-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.phone-big {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ink);
  text-decoration: none;
  margin: .4rem 0 1rem;
}
.phone-big:hover { color: var(--terra); }
.visit-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.visit-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}
.visit-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.1rem, 4vw, 2.5rem) 1.5rem;
}
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-name { font-size: 1.5rem; display: block; color: var(--cream); }
.footer-name em { color: var(--rose); }
.footer-brand p { color: rgba(251,244,236,.7); margin: .8rem 0 1.3rem; }
.footer-col h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .7rem;
}
.footer-col p { color: rgba(251,244,236,.78); margin: 0 0 .6rem; line-height: 1.7; }
.footer-col a { color: var(--cream); text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: var(--terra); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(251,244,236,.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .85rem;
  color: rgba(251,244,236,.6);
}
.credit a { color: var(--rose); text-decoration: none; }
.credit a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- mobile sticky call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95rem;
  background: var(--terra);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 -8px 24px -16px rgba(43,26,31,.7);
}
.mobile-call-bar .ico { width: 1.1em; height: 1.1em; fill: currentColor; }

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: .08s; }
[data-d="2"] { transition-delay: .16s; }
[data-d="3"] { transition-delay: .24s; }
[data-d="4"] { transition-delay: .32s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; margin: 0 auto; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
}

@media (max-width: 600px) {
  .header-cta { font-size: .85rem; padding: .7em 1em; }
  .header-cta .ico { display: none; }
  .brand-name { font-size: 1rem; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-bottom { flex-direction: column; }
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 56px; } /* room for sticky bar */
  .hero { min-height: 78vh; }
  .gallery-grid { grid-auto-rows: 160px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-media img { animation: none; transform: none; }
}
