/* ===========================================================
   Wisdom Within — Gunjan Sinha
   Design tokens
   =========================================================== */
:root {
  --ivory: #F7F4ED;
  --paper: #FFFFFF;
  --ink: #2A2826;
  --ink-soft: #5B5650;
  --ink-faint: #8A8478;
  --sage: #5C6E52;
  --sage-deep: #424E3B;
  --rose: #A65142;
  --taupe: #E3DCCF;
  --taupe-line: #DAD2C2;
  --gold: #B9905C;

  --font-display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", -apple-system, "Segoe UI", sans-serif;

  --max: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sage-deep);
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.002em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); line-height: 1.08; }
h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.3; }

em { font-style: italic; color: var(--sage-deep); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 38em;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rose);
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 0.9em 1.8em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color .25s ease;
}
.btn-primary {
  background: var(--sage-deep);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--taupe-line);
}
.btn-ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); transform: translateY(-2px); }

.link-arrow {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sage-deep);
  border-bottom: 1px solid var(--taupe-line);
  padding-bottom: 0.2em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.link-arrow:hover { border-color: var(--sage-deep); color: var(--rose); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  background: rgba(247, 244, 237, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--taupe-line);
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--rose); font-style: normal; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}

.site-nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--ink-soft);
  padding-bottom: 0.3em;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.active { color: var(--ink); border-color: var(--rose); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 0 2.5rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--taupe-line);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { font-size: 1rem; }
  .nav-toggle { z-index: 60; position: relative; }
}

/* ---------- thread / signature motif ---------- */
.thread { width: 100%; display: block; overflow: visible; }
.thread path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.thread-divider { margin: 0 auto; max-width: var(--max); padding: 0 var(--gutter); }
.thread-divider svg { width: 100%; height: 36px; opacity: 0.55; }
.thread-divider.rose path { stroke: var(--rose); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-thread {
  position: absolute;
  top: 8%;
  left: -10%;
  width: 130%;
  z-index: 0;
}
.portrait {
  position: relative;
  z-index: 1;
  width: min(90%, 380px);
  aspect-ratio: 1 / 1;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#blobClip);
}
.hero-sub { max-width: 32em; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; margin-bottom: 1rem; }
  .portrait { width: min(70%, 300px); margin: 0 auto; }
}

/* ---------- credibility strip ---------- */
.credibility-strip {
  padding: clamp(2.2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--taupe-line);
  border-bottom: 1px solid var(--taupe-line);
}
.credibility-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.credibility-strip blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
@media (max-width: 760px) {
  .credibility-strip .wrap { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ---------- intro split / two-col ---------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
}
.split-media img {
  width: 100%;
  border-radius: 18px;
}

/* ---------- service / card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
}
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--taupe-line);
  border-radius: 20px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.card .eyebrow { margin-bottom: 0.6em; }
.card ul {
  list-style: none;
  margin: 1.2em 0 0;
  padding: 0;
}
.card ul li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 0.6em;
  color: var(--ink-soft);
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- featured testimonial ---------- */
.feature-quote {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.feature-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 0.9em;
}
.feature-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- testimonial grid ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 980px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  background: var(--paper);
  border: 1px solid var(--taupe-line);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}
.testi-card p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  flex-grow: 1;
}
.testi-card .mark { color: var(--rose); font-family: var(--font-display); font-size: 1.8rem; line-height: 1; margin-bottom: 0.3rem; }
.testi-card cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.6rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: var(--sage-deep);
  border-radius: 28px;
  padding: clamp(2.8rem, 6vw, 4.5rem) var(--gutter);
  color: var(--ivory);
}
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: #DCE3D6; max-width: 34em; margin: 0 auto 1.6em; }
.cta-band .btn-primary { background: var(--ivory); color: var(--sage-deep); }
.cta-band .btn-primary:hover { background: var(--gold); color: var(--ink); }
.cta-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- services page specifics ---------- */
.service-block {
  background: var(--paper);
  border: 1px solid var(--taupe-line);
  border-radius: 22px;
  padding: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.8rem;
}
.service-block h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage-deep);
  margin: 0 0 0.7em;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 1.6rem;
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- about page specifics ---------- */
.approach-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 800px) { .approach-list { grid-template-columns: 1fr; } }
.approach-item h3 { margin-bottom: 0.4em; }
.approach-item .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose);
  font-size: 1.1rem;
}

/* ---------- page header (non-home) ---------- */
.page-head {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: 1rem;
  max-width: 46em;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--taupe-line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
.footer-nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--rose); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  padding-top: 1.5rem;
  border-top: 1px solid var(--taupe-line);
}

/* ---------- contact page ---------- */
.contact-panel {
  background: var(--paper);
  border: 1px solid var(--taupe-line);
  border-radius: 24px;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.contact-panel .btn { margin-top: 0.8rem; }

/* utility */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
