/* ============================================
   Anna Biel — Therapist & Coach
   Design tokens derived from brandbook 2026
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Color palette — from brandbook */
  --pink: #FF6EC7;
  --orange: #F89B60;
  --violet: #6B63FF;
  --navy: #2E3B8C;
  --ink: #424242;
  --cream: #FBF5EF;
  --cream-deep: #F3E9DE;
  --white: #FFFFFF;

  /* Gradients */
  --gradient-warm: linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%);
  --gradient-warm-radial: radial-gradient(ellipse at center, var(--pink) 0%, var(--orange) 100%);
  --gradient-cool: linear-gradient(160deg, var(--violet) 0%, var(--pink) 55%, var(--orange) 100%);
  --gradient-deep: linear-gradient(160deg, var(--navy) 0%, var(--violet) 50%, var(--pink) 100%);
  --gradient-soft: linear-gradient(180deg, var(--cream-deep) 0%, var(--pink) 140%);

  /* Type */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --space-2xl: 10rem;

  --max-width: 1200px;
  --radius-soft: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.italic { font-style: italic; }

p { max-width: 62ch; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--pink);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-sm); }
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 245, 239, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(66, 66, 66, 0.08);
}

/* When the mobile menu is open, drop the blur filter on the header.
   backdrop-filter creates a CSS containing block, which breaks
   position:fixed children (the mobile nav panel) on many mobile
   browsers. Removing it while the menu is open avoids that entirely. */
body.nav-open .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--cream);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand img { height: 27px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }

.nav-cta {
  background: var(--gradient-warm);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-size: 0.9rem !important;
  opacity: 1 !important;
  box-shadow: 0 4px 14px rgba(255, 110, 199, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 110, 199, 0.4); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  padding: 0;
  position: relative;
  z-index: 600;
}
.menu-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.menu-toggle span:nth-child(1) { top: 2px; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  body.nav-open { overflow: hidden; }

  .menu-toggle { display: block; }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 500;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-links a { font-size: 1.3rem; opacity: 1; }
}

/* ============ HALO / GRADIENT SIGNATURE ============ */

.halo-section {
  position: relative;
  overflow: hidden;
}

.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.85;
  pointer-events: none;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  background: var(--gradient-cool);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
}

@media (max-width: 640px) {
  .hero { padding: var(--space-xl) 0 var(--space-lg); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-sigil {
  width: 56px;
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.hero h1 {
  max-width: 26ch;
  margin-bottom: 1.8rem;
}

.hero-lede {
  font-size: 1.2rem;
  max-width: 46ch;
  opacity: 0.92;
  margin-bottom: var(--space-lg);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.hero-emblem {
  position: absolute;
  right: 14%;
  top: 50%;
  transform: translateY(-50%);
  height: min(835px, 88%);
  width: auto;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-emblem { display: none; }
}

/* ============ SECTIONS ============ */

section { padding: var(--space-xl) 0; }

.section-tight { padding: var(--space-lg) 0; }

@media (max-width: 640px) {
  section { padding: var(--space-lg) 0; }
  .section-tight { padding: var(--space-md) 0; }
}

.section-head {
  max-width: 46ch;
  margin-bottom: var(--space-lg);
}

.section-head .eyebrow { margin-bottom: var(--space-xs); display: block; }

.section-cream { background: var(--cream); }
.section-deep {
  background: var(--gradient-deep);
  color: var(--white);
}
.section-deep .eyebrow { color: var(--orange); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.2s ease;
}
.link-more:hover { gap: 0.65rem; }

/* ============ HOME: ABOUT TEASER ============ */

.about-teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-teaser-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-soft);
  background: var(--gradient-warm);
  overflow: hidden;
  position: relative;
}
.about-teaser-photo img { width: 100%; height: 100%; object-fit: cover; }

.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  padding: var(--space-md);
}

@media (max-width: 780px) {
  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser-photo { max-width: 320px; margin: 0 auto; }
}

/* ============ TECHNIQUES GRID ============ */

.techniques-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.technique-card {
  position: relative;
  padding: var(--space-md);
  border-radius: var(--radius-soft);
  background: var(--white);
  border: 1px solid rgba(66,66,66,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.technique-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(46,59,140,0.1); }

.technique-card .sigil { width: 32px; margin-bottom: var(--space-sm); opacity: 0.6; }

.technique-card h3 { margin-bottom: 0.6rem; font-size: 1.5rem; }
.technique-card p { font-size: 0.95rem; opacity: 0.85; margin-bottom: var(--space-sm); }

@media (max-width: 720px) {
  .techniques-grid { grid-template-columns: 1fr; }
}

/* ============ TESTIMONIALS ============ */

.testimonial-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

@media (max-width: 900px) {
  .testimonial-scroll { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .testimonial-scroll { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: var(--space-md);
  border: 1px solid rgba(66,66,66,0.08);
}

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

.testimonial-card p {
  font-size: 0.98rem;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: var(--space-sm);
}

.testimonial-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
}

/* Full testimonials grid (testimonials page) */
.testimonials-grid {
  columns: 2;
  column-gap: var(--space-sm);
}
.testimonials-grid .testimonial-card {
  width: 100%;
  break-inside: avoid;
  margin-bottom: var(--space-sm);
}
@media (max-width: 780px) {
  .testimonials-grid { columns: 1; }
}

/* ============ QUOTE BANNER ============ */

.quote-banner {
  text-align: center;
  padding: var(--space-lg) 0;
}
.quote-banner.quote-tight { padding-top: var(--space-md); }
.quote-banner blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-style: italic;
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.3;
}
.quote-banner cite {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ============ PRICING ============ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.price-card {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: var(--space-md) var(--space-sm);
  border: 1px solid rgba(66,66,66,0.08);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--gradient-warm);
  color: var(--white);
  border: none;
  transform: translateY(-8px);
}
.price-card.featured .price-save { color: rgba(255,255,255,0.85); }
.price-card.featured ul li::before { color: var(--white); }

.price-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.price-amount { font-family: var(--font-display); font-size: 2.2rem; margin: 0.6rem 0 0.2rem; }
.price-save { font-size: 0.82rem; opacity: 0.7; margin-bottom: var(--space-sm); }

.price-card ul { list-style: none; margin-bottom: var(--space-md); flex-grow: 1; }
.price-card ul li {
  font-size: 0.88rem;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.55rem;
  opacity: 0.85;
}
.price-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--pink);
}

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.terms-box {
  background: var(--cream-deep);
  border-radius: var(--radius-soft);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}
@media (max-width: 640px) {
  .terms-box { padding: var(--space-md); }
}
.terms-box h3 { margin-bottom: var(--space-sm); }
.terms-box ul { list-style: none; }
.terms-box ul li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.9rem;
  font-size: 0.97rem;
}
.terms-box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
}

/* ============ FAQ ============ */

.faq-item {
  border-bottom: 1px solid rgba(66,66,66,0.12);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--pink);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.25s ease; }
.faq-item.open .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg) scaleX(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding-bottom: var(--space-sm);
  font-size: 0.97rem;
  opacity: 0.82;
}

/* ============ CONTACT ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: var(--space-md);
  border: 1px solid rgba(66,66,66,0.08);
  margin-bottom: var(--space-sm);
}
.contact-card .label { font-size: 0.82rem; opacity: 0.6; margin-bottom: 0.3rem; }
.contact-card .value { font-family: var(--font-display); font-size: 1.4rem; }
.contact-card a.value:hover { color: var(--pink); }

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.footer-brand img { height: 30px; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; opacity: 0.7; }

.footer-links { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.55;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
  opacity: 0.85;
}
.footer-col a:hover { opacity: 1; color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: 0.82rem;
  opacity: 0.55;
}

/* ============ PAGE HEADER (subpages) ============ */

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { max-width: 20ch; margin-bottom: 1.6rem; }

@media (max-width: 640px) {
  .page-hero { padding: var(--space-lg) 0 var(--space-md); }
}
.page-hero .hero-lede { color: var(--ink); opacity: 0.75; }
.page-hero .eyebrow { margin-bottom: var(--space-sm); display: block; }

/* ============ ANIMATIONS ============ */

section.section-pull { padding-top: var(--space-md); }
section.section-pull-bottom { padding-bottom: var(--space-md); }
section.section-gap-top { padding-top: var(--space-lg); }
.anchor-target { scroll-margin-top: 96px; }

.method-block p,
.method-section > .container > p {
  line-height: 1.55;
  margin-bottom: 1.55rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============ UTILITIES ============ */

.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: var(--space-lg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; gap: var(--space-md); } }

.disclaimer {
  font-size: 0.82rem;
  opacity: 0.6;
  max-width: 70ch;
  margin-top: var(--space-md);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  z-index: 200;
}
.skip-link:focus { left: var(--space-sm); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

/* ============ BACK TO TOP ============ */

.back-to-top {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(66, 66, 66, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, visibility 0.25s;
  z-index: 90;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: rgba(66, 66, 66, 0.85); }

@media (max-width: 640px) {
  .back-to-top {
    right: var(--space-sm);
    bottom: var(--space-sm);
    width: 42px;
    height: 42px;
  }
  .back-to-top svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s ease, visibility 0.2s; transform: none; }
}

/* ============ LANGUAGE SWITCHER ============ */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.2rem;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0.45rem 0.7rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(66, 66, 66, 0.22);
  color: var(--ink);
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.lang-switch a:hover { opacity: 0.85; border-color: rgba(66, 66, 66, 0.45); }

.lang-switch a.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  opacity: 1;
  pointer-events: none;
}

@media (max-width: 860px) {
  .lang-switch { margin-left: 0; margin-top: 0.4rem; }
  .lang-switch a { min-width: 52px; padding: 0.55rem 0.9rem; font-size: 0.9rem; }
}
