/* ============================================================
   Terre Sattva Thérapies — Design system
   Palette drawn from logo-v2 (cream, copper, sage, ochre, charcoal)
   ============================================================ */

:root {
  /* Surfaces — dark sage & warm brown (logo palette), not beige */
  --cream: #6B6E58;
  --cream-deep: #5A5D4A;
  --parchment: #4A4D3C;
  --paper: #6B6E58;
  --white-soft: #F0E8DE; /* light parchment for text on copper */
  --surface: #5A5D4A;
  --surface-raised: #7A7D62;
  --surface-muted: #4A4D3C;
  --sage-wash: rgba(138, 141, 115, 0.35);
  --ochre-wash: rgba(198, 139, 79, 0.22);
  --copper-wash: rgba(157, 107, 66, 0.28);

  /* Accents from logo */
  --copper: #B8845A;
  --copper-deep: #9D6B42;
  --bronze: #C68B4F;
  --sage: #8A8D73;
  --sage-deep: #6B6E58;
  --olive: #7A7D62;
  --ochre: #C68B4F;
  --terracotta: #B87A4A;
  --sun: #C9944E;

  /* Text — light on dark */
  --charcoal: #F0E8DE;
  --charcoal-soft: #E8DFD2;
  --muted: #CDBFAE;
  --ink-light: #A09080;
  /* UI */
  --border: rgba(184, 132, 90, 0.35);
  --border-strong: rgba(184, 132, 90, 0.55);
  --shadow: 0 8px 32px rgba(62, 50, 43, 0.10);
  --shadow-soft: 0 4px 18px rgba(62, 50, 43, 0.07);
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1120px;
  --header-h: 4.5rem;

  /* Type */
  --font-serif: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-script: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: #3E322B;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(157, 107, 66, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(107, 110, 88, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, #4A4D3C 0%, #3E322B 45%, #2F2A24 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.2s ease; }
a:hover { color: var(--terracotta); }
a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.25rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--charcoal-soft);
  line-height: 1.55;
}

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

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--ochre);
}
.divider::before,
.divider::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: var(--border-strong);
}
.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ochre);
  flex-shrink: 0;
}

/* Layout */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

main { flex: 1; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(62, 50, 43, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand:hover { color: inherit; }
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--charcoal);
}
.nav-toggle-bars {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--copper-deep);
  background: var(--copper-wash);
}
.site-nav .nav-cta {
  margin-left: 0.35rem;
  background: var(--copper);
  color: var(--white-soft) !important;
  padding: 0.5rem 1.1rem;
}
.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  background: var(--copper-deep);
  color: var(--white-soft) !important;
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream-deep);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.is-open { max-height: 20rem; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.15rem;
  }
  .site-nav .nav-cta { margin-left: 0; text-align: center; margin-top: 0.35rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(198, 139, 79, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, transparent 100%);
}

.hero-logo {
  width: min(280px, 72vw);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 6px 20px rgba(62, 50, 43, 0.1));
  border-radius: 8px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: var(--charcoal-soft);
  margin: 0.5rem 0 0;
  max-width: 28em;
  margin-inline: auto;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-services span:not(:last-child)::after {
  content: "•";
  margin-left: 0.5rem;
  color: var(--ochre);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: transparent;
}
.section-alt {
  background:
    linear-gradient(180deg, #4A4D3C 0%, #3E322B 100%);
  border-block: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(138, 141, 115, 0.15);
}
.section-warm {
  background: var(--cream);
}
.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background:
    linear-gradient(165deg, var(--cream) 0%, var(--cream-deep) 100%);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:nth-child(even) {
  border-top-color: var(--ochre);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--copper);
  border-top-color: var(--copper);
}
.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  color: var(--copper);
  background: var(--sage-wash);
  border-radius: 10px;
  padding: 0.45rem;
  box-sizing: border-box;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 0.5rem; }
.card p {
  color: var(--charcoal-soft);
  font-size: 0.98rem;
  flex: 1;
}
.card-link {
  margin-top: 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--copper-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card-link::after { content: "→"; transition: transform 0.2s; }
.card-link:hover::after { transform: translateX(3px); }

/* Intro / prose */
.prose {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--charcoal-soft);
}
.prose-wide { max-width: 46rem; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  background:
    linear-gradient(135deg, rgba(198, 139, 79, 0.16), rgba(138, 141, 115, 0.18)),
    var(--parchment);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  margin: 0.5rem 0 1rem;
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p {
  color: var(--charcoal-soft);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--copper);
  color: var(--white-soft);
  border-color: var(--copper);
}
.btn-primary:hover {
  background: var(--copper-deep);
  border-color: var(--copper-deep);
  color: var(--white-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--copper-deep);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--copper-wash);
  color: var(--copper-deep);
}

/* ---------- Services detail ---------- */
.service-block {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem 1.25rem;
  margin: 0 -0.25rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.service-block:hover {
  background: rgba(107, 110, 88, 0.35);
}
.service-block:last-of-type { border-bottom: none; }
.service-block:first-of-type { padding-top: 0; }

@media (min-width: 720px) {
  .service-block {
    grid-template-columns: 4.5rem 1fr;
    gap: 1.75rem;
    align-items: start;
  }
}

.service-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--ochre);
  line-height: 1;
  opacity: 0.85;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--sage-wash);
  color: var(--sage-deep);
  border: 1px solid rgba(138, 141, 115, 0.35);
}

.service-list {
  margin: 1rem 0 0;
  padding: 0 0 0 1.15rem;
  color: var(--charcoal-soft);
}
.service-list li { margin-bottom: 0.4rem; }
.service-list li::marker { color: var(--ochre); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.info-card {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
.info-card h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.2rem;
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-list .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.info-list .value {
  color: var(--charcoal);
  font-size: 1.05rem;
}
.placeholder-mark {
  font-style: italic;
  color: var(--muted);
  background: rgba(157, 107, 66, 0.25);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.95em;
}

.contact-form {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--ochre);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
.contact-form h2 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.15rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
}
.form-group .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--border-strong);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(157, 107, 66, 0.18);
  outline: none;
  background: var(--cream);
}
.form-group textarea { min-height: 8rem; resize: vertical; }
.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 520px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  background: rgba(138, 141, 115, 0.2);
  color: var(--sage-deep);
  border: 1px solid rgba(138, 141, 115, 0.35);
}
.form-status.is-visible { display: block; }

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.page-hero h1 { margin-bottom: 0.4rem; }
.page-hero .lead { max-width: 36rem; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding: 2.5rem 0 1.75rem;
  background: var(--charcoal);
  color: rgba(248, 244, 240, 0.82);
  border-top: 3px solid var(--copper);
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--cream);
}
.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 0.25rem 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.footer-nav a {
  color: rgba(248, 244, 240, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--ochre); }
.footer-copy {
  font-size: 0.82rem;
  opacity: 0.65;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(248, 244, 240, 0.12);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
