@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Josefin+Sans:wght@100;200;300&display=swap');

/* ─── TOKENS ───────────────────────────── */
:root {
  --bg:        #FAF6EF;
  --bg-warm:   #F5ECD8;
  --flame:     #C4622D;
  --amber:     #E8973A;
  --blush:     #F2D4B6;
  --ink:       #2C1810;
  --ink-soft:  #6B3F28;
  --gold:      #B8824A;
  --gold-dim:  rgba(184,130,74,0.35);

  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'Cormorant Garamond', Georgia, serif;
  --f-label:   'Josefin Sans', sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── FIXED MANDALA BACKGROUND ─────────── */
.mandala-bg {
  position: fixed;
  top: -12rem;
  width: 100%;
  height: auto;
  animation: mandala-spin 240s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  filter: sepia(0.6) saturate(0.8) brightness(0.95);
  will-change: transform;
}

@keyframes mandala-spin {
  to { transform: rotate(360deg); }
}

/* ─── SITE WRAPPER ─────────────────────── */
.site { position: relative; z-index: 1; }

/* ─── NAV ──────────────────────────────── */
nav#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s, padding 0.4s;
}

nav#nav.solid {
  background: rgba(250,246,239,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--blush);
  padding: 1.25rem 4rem;
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--flame);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-links a {
  font-family: var(--f-label);
  font-weight: 200;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active { color: var(--flame); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--flame);
  transition: all 0.3s;
}

/* ─── HERO ──────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
}

.hero-eyebrow {
  font-family: var(--f-label);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 1.2s var(--ease-out) 0.2s forwards;
}

.hero-name {
  font-family: var(--f-display);
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 0.4em;
  opacity: 0;
  animation: rise 1.4s var(--ease-out) 0.5s forwards;
}

.hero-name em {
  color: var(--flame);
  font-style: italic;
}

.hero-sub {
  font-family: var(--f-body);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: rise 1.4s var(--ease-out) 0.8s forwards;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: rise 1.2s var(--ease-out) 1s forwards;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.hero-divider::after {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.hero-divider span {
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.3em;
}

.hero-cta {
  opacity: 0;
  animation: rise 1.2s var(--ease-out) 1.2s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ───────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--f-label);
  font-weight: 200;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 1rem 2.8rem;
  border: 1px solid var(--flame);
  color: var(--flame);
  background: transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.4s;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}

.btn:hover { color: var(--bg); }
.btn:hover::before { transform: scaleX(1); }

.btn-amber {
  border-color: var(--amber);
  color: var(--amber);
}
.btn-amber::before { background: var(--amber); }

/* ─── SECTION BASE ──────────────────────── */
section {
  position: relative;
  padding: 7rem 2rem;
  z-index: 1;
  isolation: isolate;
}

.section-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--f-label);
  font-weight: 200;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-rule {
  width: 48px;
  height: 1px;
  background: var(--amber);
  margin-bottom: 3.5rem;
  opacity: 0.6;
}

/* ─── SERVICES ──────────────────────────── */
.services { background: var(--bg-warm); }

.services-list {
  list-style: none;
}

.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: start;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(184,130,74,0.2);
  transition: background 0.3s;
  cursor: default;
}

.service-row:first-child { border-top: 1px solid rgba(184,130,74,0.2); }

.service-num {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--blush);
  line-height: 1;
  padding-top: 0.2rem;
  transition: color 0.4s;
}

.service-row:hover .service-num { color: var(--amber); }

.service-body h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.service-row:hover .service-body h3 { color: var(--flame); }

.service-body p {
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

.service-arrow {
  font-size: 1.2rem;
  color: var(--blush);
  padding-top: 0.4rem;
  transition: color 0.3s, transform 0.3s;
}

.service-row:hover .service-arrow {
  color: var(--flame);
  transform: translateX(4px);
}

/* ─── ABOUT STRIP ───────────────────────── */
.about-strip {
  background: var(--bg);
  text-align: center;
}

.about-strip .section-wrap {
  max-width: 680px;
}

.about-quote {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.about-attribution {
  font-family: var(--f-label);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 3rem;
}

/* ─── TESTIMONIALS ──────────────────────── */
.testimonials { background: var(--bg-warm); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(184,130,74,0.3);
}

.testimonial-mark {
  font-family: var(--f-display);
  font-size: 3rem;
  color: var(--blush);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.testimonial-text {
  font-family: var(--f-body);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.testimonial-name {
  font-family: var(--f-label);
  font-weight: 200;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
}

/* ─── CTA BAND ──────────────────────────── */
.cta-band {
  background: var(--flame);
  text-align: center;
  padding: 6rem 2rem;
}

.cta-band .section-label { color: rgba(250,246,239,0.6); }

.cta-band h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--bg);
  margin-bottom: 1rem;
}

.cta-band p {
  font-family: var(--f-body);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(250,246,239,0.75);
  margin-bottom: 3rem;
  font-weight: 300;
}

.btn-light {
  border-color: var(--bg);
  color: var(--bg);
}
.btn-light::before { background: var(--bg); }
.btn-light:hover { color: var(--flame); }

/* ─── FOOTER ────────────────────────────── */
footer {
  background: var(--ink);
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.footer-logo {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--blush);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tag {
  font-family: var(--f-label);
  font-weight: 200;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  display: block;
  margin-bottom: 2.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  list-style: none;
}

.footer-nav a {
  font-family: var(--f-label);
  font-weight: 200;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,212,182,0.5);
  transition: color 0.3s;
}

.footer-nav a:hover { color: var(--blush); }

.footer-copy {
  font-family: var(--f-label);
  font-weight: 200;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: rgba(184,130,74,0.35);
}

/* ─── SCROLL REVEAL ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ─── SKIP LINK ─────────────────────────── */
.skip-link {
  position: absolute;
  top: -60px; left: 1rem;
  background: var(--flame);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  font-family: var(--f-label);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  z-index: 10000;
  transition: top 0.3s;
}
.skip-link:focus { top: 1rem; }

/* ─── BACK TO TOP ───────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 40px; height: 40px;
  border: 1px solid var(--gold-dim);
  background: var(--bg);
  color: var(--flame);
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.back-to-top:hover { border-color: var(--flame); }
.back-to-top.show { display: flex; }

/* ─── FOCUS ─────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ─── RESPONSIVE ────────────────────────── */
@media (max-width: 860px) {
  nav#nav { padding: 1.5rem 2rem; }
  nav#nav.solid { padding: 1rem 2rem; }

  .testimonials-grid { grid-template-columns: 1fr; gap: 0; }

  .service-row { grid-template-columns: 3rem 1fr; }
  .service-arrow { display: none; }
}

@media (max-width: 600px) {
  nav#nav { padding: 1.25rem 1.5rem; }
  nav#nav.solid { padding: 0.9rem 1.5rem; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 0.9rem; letter-spacing: 0.3em; }

  .nav-toggle { display: flex; z-index: 101; }

  section { padding: 5rem 1.5rem; }

  .service-row {
    grid-template-columns: 2.5rem 1fr;
    gap: 1.25rem;
    padding: 2rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mandala-bg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
