/* ==========================================================================
   Eclipz Hair Studio — eclipz.hair
   ========================================================================== */

:root {
  --ink: #121014;
  --ink-2: #1c1920;
  --ink-3: #26222b;
  --cream: #f7f2ea;
  --cream-2: #efe6d8;
  --text: #2a2630;
  --muted: #6e6775;
  --gold: #c9a26b;
  --gold-light: #e6c995;
  --gold-dark: #a07d4a;
  --line: rgba(201, 162, 107, .28);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --header-h: 76px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: inherit;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.6rem; }
p  { margin: 0 0 1.2em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: var(--ink); padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201, 162, 107, .35); }
.btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(247, 242, 234, .45); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); box-shadow: none; }

.btn-light { background: var(--cream); border-color: var(--cream); }

.btn-small { padding: 10px 18px; font-size: .74rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--gold-dark);
}
.link-arrow::after { content: "\2192"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 14px 2px rgba(230, 201, 149, .55);
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, var(--gold-light) 0 18%, transparent 19%);
}
.logo-text {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--cream);
}
.logo-text small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .32em;
  color: var(--gold);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(18, 16, 20, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; }

.site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  color: var(--cream);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--cream); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(201, 162, 107, .14), transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; color: rgba(247, 242, 234, .8); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-eclipse {
  position: absolute; z-index: 1;
  right: -6vw; top: 50%;
  width: min(62vw, 640px); aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.corona {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 201, 149, .9) 0 46%, rgba(201, 162, 107, .35) 50%, transparent 68%);
  filter: blur(6px);
  animation: pulse 7s ease-in-out infinite;
}
.moon {
  position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1f1b22, #0b0a0c 70%);
  box-shadow: inset -8px -8px 30px rgba(0, 0, 0, .6);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes pulse { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes drift { from { transform: translate(-2%, 1%); } to { transform: translate(2%, -1%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head p:last-child { color: var(--muted); }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.service-card {
  grid-column: span 2;
  background: #fff;
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(18, 16, 20, .08); border-color: var(--line); }
.service-card p { color: var(--muted); font-size: 1rem; }
.service-card.featured {
  background: linear-gradient(160deg, var(--ink), var(--ink-3));
  color: var(--cream);
  border-color: var(--ink);
}
.service-card.featured p { color: rgba(247, 242, 234, .75); }
.service-card.featured .link-arrow { color: var(--gold-light); }

.service-icon { width: 52px; height: 52px; color: var(--gold); margin-bottom: 22px; }
.service-icon svg { width: 100%; height: 100%; }

/* ---------- Features ---------- */
.feature { background: var(--cream-2); }
.feature-alt { background: var(--cream); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}
.feature-grid.reverse .feature-visual { order: 2; }

.feature-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink), var(--ink-3));
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.feature-visual::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  top: -18%; right: -22%;
  background: radial-gradient(circle, rgba(230, 201, 149, .4), transparent 65%);
}

.swatch-stack { display: flex; flex-direction: column; gap: 10px; width: 62%; position: relative; }
.swatch-stack span {
  display: block; height: 44px; border-radius: 22px;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 70%, #fff));
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.swatch-stack span:nth-child(odd) { margin-left: 12%; }

.strands { display: flex; gap: 12px; height: 72%; align-items: flex-start; position: relative; }
.strands span {
  width: 14px; border-radius: 7px;
  background: linear-gradient(180deg, #3a271c, #8a5c3b 45%, var(--gold-light));
  height: 60%;
  animation: grow 3.5s ease-in-out infinite alternate;
}
.strands span:nth-child(2) { animation-delay: .3s; }
.strands span:nth-child(3) { animation-delay: .6s; }
.strands span:nth-child(4) { animation-delay: .9s; }
.strands span:nth-child(5) { animation-delay: 1.2s; }
.strands span:nth-child(6) { animation-delay: 1.5s; }
.strands span:nth-child(7) { animation-delay: 1.8s; }
@keyframes grow { to { height: 100%; } }

.checklist { list-style: none; padding: 0; margin: 0 0 2rem; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: radial-gradient(circle, var(--gold) 0 30%, transparent 32%);
}

/* ---------- About ---------- */
.about { background: var(--ink); color: var(--cream); text-align: center; }
.about-wrap { max-width: 780px; }
.about .eyebrow { color: var(--gold); }
.about p { color: rgba(247, 242, 234, .78); font-size: 1.1rem; }
.about .about-note { font-size: .95rem; font-style: italic; color: rgba(247, 242, 234, .6); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line);
}
.stats strong { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: var(--gold-light); line-height: 1; }
.stats span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(247, 242, 234, .6); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--gold-dark), var(--gold) 50%, var(--gold-light)); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0; color: var(--ink); font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta-band .btn-light:hover { box-shadow: 0 10px 28px rgba(18, 16, 20, .2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.info-block { padding: 22px 0; border-bottom: 1px solid var(--cream-2); }
.info-block:last-child { border-bottom: 0; }
.info-block h3 { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.info-block p { margin: 0; }
address { font-style: normal; font-size: 1.15rem; margin-bottom: .6em; }
.phone { font-family: var(--serif); font-size: 2rem; text-decoration: none; color: var(--ink); }
.phone:hover { color: var(--gold-dark); }

.map-wrap { min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--cream-2); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247, 242, 234, .65); padding: 56px 0 96px; text-align: center; font-size: .95rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-inner .logo { margin-bottom: 12px; }
.site-footer a:not(.logo) { color: var(--gold-light); text-decoration: none; }
.site-footer a:not(.logo):hover { text-decoration: underline; }
.copyright { font-size: .8rem; letter-spacing: .06em; opacity: .7; margin: 0; }

/* ---------- Mobile sticky call ---------- */
.mobile-call {
  display: none;
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  align-items: center; justify-content: center; gap: 10px;
  padding: 15px; border-radius: 40px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink); text-decoration: none;
  font-size: .85rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.mobile-call svg { width: 18px; height: 18px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(4) { grid-column: auto; }
  .service-card.featured { grid-column: 1 / -1; }
}

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

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(18, 16, 20, .98);
    max-height: 0; overflow: hidden;
    transition: max-height .4s ease;
  }
  .site-nav.open { max-height: 100vh; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 28px; }
  .site-nav li { border-bottom: 1px solid rgba(201, 162, 107, .15); }
  .site-nav li:last-child { border: 0; padding-top: 20px; }
  .site-nav a:not(.btn) { display: block; padding: 16px 0; font-size: .9rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { display: block; text-align: center; }

  .site-header { background: rgba(18, 16, 20, .94); }

  .hero-eclipse { width: 90vw; right: -35vw; opacity: .55; }

  .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature-grid.reverse .feature-visual { order: 0; }
  .feature-visual { aspect-ratio: 16 / 10; }
  .strands { height: 80%; }

  .mobile-call { display: flex; }
}

@media (max-width: 600px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .container { padding: 0 20px; }
  .logo-text { font-size: 1.2rem; }

  .hero { text-align: left; }
  .hero-eclipse { width: 120vw; right: -60vw; top: 30%; opacity: .4; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 30px 24px; }

  .stats { grid-template-columns: 1fr; gap: 28px; }

  .cta-inner { flex-direction: column; text-align: center; }

  .map-wrap, .map-wrap iframe { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
