/*
 * Weave — Centre for Integrative Psychiatry
 * weave.clinic
 *
 * Design tokens: Warm Earth palette
 * Typography: Source Serif 4 (headings) + Plus Jakarta Sans (body)
 * Built: 2026-03-25
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&display=swap');

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */

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

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #3D3228;
  background-color: #FAF7F2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #6B8F6B; text-decoration: none; transition: color 250ms ease; }
a:hover { color: #4A6E4A; }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.25;
  color: #5B4A3F;
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; color: #6B8F6B; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; max-width: 720px; }
p:last-child { margin-bottom: 0; }

/* Remove p max-width inside cards, profiles, FAQ, forms, and compact containers */
.card p,
.profile p,
.faq p,
.form p,
.nudge-box p,
.contact-block p,
.crisis-box p,
.principle p,
.exception p,
.protection-card p,
.right-card p,
.right-card__text,
.timeline p,
.footer p,
.step p,
.numbered-list p,
.icon-list p,
.doctor-story p,
.philosophy-layer p {
  max-width: none;
}

strong { font-weight: 600; color: #5B4A3F; }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-width {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: #F5EDE3;
}

.section--cream {
  background-color: #FAF7F2;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E8DDD0;
  height: 72px;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #5B4A3F;
  letter-spacing: -0.01em;
}

.nav__logo span {
  display: block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  color: #A89B8C;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #7A6B5D;
  transition: color 250ms ease;
}

.nav__links a:hover {
  color: #5B4A3F;
}

.nav__cta {
  background: #6B8F6B;
  color: #FFFFFF !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 250ms ease, transform 150ms ease;
}

.nav__cta:hover {
  background: #4A6E4A;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Nav links always visible on desktop */
@media (min-width: 769px) {
  .nav__links {
    display: flex !important;
  }
  .nav__toggle {
    display: none !important;
  }
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #5B4A3F;
  margin: 5px 0;
  transition: transform 250ms ease;
}

/* ═══════════════════════════════════════════
   HERO — Two-column layout on desktop
   ═══════════════════════════════════════════ */

.hero,
.article-hero {
  padding: 3rem 0 3rem;
  background: linear-gradient(135deg, #F5EDE3 0%, #FAF7F2 50%, #FAF7F2 100%);
  overflow: hidden;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__illustration {
  flex: 0 0 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* Compact images (square logos, small illustrations) need extra size */
.hero__img--lg {
  max-width: 540px;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 1.5rem;
  font-size: 3.25rem;
}

.hero__sub {
  font-size: 1.25rem;
  color: #7A6B5D;
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero .btn-group {
  justify-content: flex-start;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #EFF5EF;
  color: #4A6E4A;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(107, 143, 107, 0.2);
  margin-bottom: 2rem;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #6B8F6B;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ═══════════════════════════════════════════
   SECTION CENTERING (desktop)
   ═══════════════════════════════════════════ */

/* All section headings centered by default */
.section > .container > h2,
.section > .container > .content-width > h2,
.section > .container > .fade-in > h2,
.section > .container > .fade-in > .content-width > h2 {
  text-align: center;
}

/* Paragraphs directly in .container should auto-center for max-width */
.section > .container > p {
  margin-left: auto;
  margin-right: auto;
}

.section--centered {
  text-align: center;
}

.section--centered h2 {
  margin-left: auto;
  margin-right: auto;
}

.section--centered p {
  margin-left: auto;
  margin-right: auto;
}

.section--centered .card,
.section--centered .profile,
.section--centered .learn-card {
  text-align: left;
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 250ms ease;
  text-decoration: none;
}

.btn--primary {
  background: #6B8F6B;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(107, 143, 107, 0.25);
}

.btn--primary:hover {
  background: #4A6E4A;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(107, 143, 107, 0.3);
}

.btn--secondary {
  background: transparent;
  color: #6B8F6B;
  border: 1.5px solid #6B8F6B;
}

.btn--secondary:hover {
  background: #EFF5EF;
  color: #4A6E4A;
  border-color: #4A6E4A;
}

.btn--whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.btn--whatsapp:hover {
  background: #1EBE57;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */

.card {
  background: #FFFFFF;
  border: 1px solid #E8DDD0;
  border-radius: 12px;
  padding: 2rem;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(61, 50, 40, 0.12);
}

.card__title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #5B4A3F;
  margin-bottom: 0.75rem;
}

.card__text {
  color: #7A6B5D;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

/* ═══════════════════════════════════════════
   LININGS — Silver & Gold
   ═══════════════════════════════════════════ */

.lining--silver {
  border: 1.5px solid #B8B8B0;
  box-shadow: 0 0 0 1px #D4D4CC, 0 2px 12px rgba(184, 184, 176, 0.15);
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAF9 100%);
}

.lining--gold {
  border: 1.5px solid #C9A96E;
  box-shadow: 0 0 0 1px #E0C992, 0 2px 16px rgba(201, 169, 110, 0.18);
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF5 100%);
}

/* Kill all one-sided border styles globally */
.article blockquote {
  border-left: 3px solid #6B8F6B;
  border-right: none;
  border-top: none;
  border-bottom: none;
}

/* Philosophy/feature boxes — full gold border */
.box--gold {
  border: 1.5px solid #C9A96E;
  border-radius: 12px;
  padding: 2rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF5 100%);
  box-shadow: 0 2px 12px rgba(201, 169, 110, 0.12);
}

.box--sage {
  border: 1.5px solid #6B8F6B;
  border-radius: 12px;
  padding: 2rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #F5FAF5 100%);
  box-shadow: 0 2px 12px rgba(107, 143, 107, 0.12);
}

/* ═══════════════════════════════════════════
   DUAL PRACTICE — Doctor Accents (full border, not one-sided)
   ═══════════════════════════════════════════ */

.doctor--wilfred {
  border: 1.5px solid #C75B39;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF6F3 100%);
}

.doctor--wilfred .card__accent {
  color: #C75B39;
}

.doctor--niharika {
  border: 1.5px solid #6B8F6B;
  background: linear-gradient(135deg, #FFFFFF 0%, #F5FAF5 100%);
}

.doctor--niharika .card__accent {
  color: #6B8F6B;
}

/* ═══════════════════════════════════════════
   "IS THIS YOU?" PROFILES
   ═══════════════════════════════════════════ */

.profile {
  padding: 2rem;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E8DDD0;
  margin-bottom: 1.25rem;
}

.profile__title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #5B4A3F;
  margin-bottom: 0.5rem;
}

.profile__text {
  color: #7A6B5D;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   STEPS (How it Works)
   ═══════════════════════════════════════════ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #6B8F6B;
  color: #FFFFFF;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step__title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #5B4A3F;
  margin-bottom: 0.5rem;
}

.step__text {
  color: #7A6B5D;
  font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */

.faq {
  max-width: 100%;
}

.faq__item {
  border-bottom: 1px solid #E8DDD0;
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #5B4A3F;
  text-align: left;
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  color: #6B8F6B;
  font-weight: 300;
  transition: transform 250ms ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq__item.active .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease, padding 400ms ease;
}

.faq__item.active .faq__answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq__answer p {
  color: #7A6B5D;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   PRICING TABLE
   ═══════════════════════════════════════════ */

.pricing-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  table-layout: fixed;
}

.pricing-table td,
.pricing-table th {
  word-wrap: break-word;
}

.pricing-table thead {
  display: table-header-group;
}

.pricing-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8B7355;
  border-bottom: 2px solid #D4C4B0;
}

.pricing-table td {
  padding: 1rem;
  border-bottom: 1px solid #E8DDD0;
  font-size: 0.9375rem;
}

.pricing-table td:first-child {
  font-weight: 600;
  color: #5B4A3F;
}

.pricing-note {
  font-size: 0.875rem;
  color: #7A6B5D;
  font-style: italic;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════ */

.form {
  max-width: 100%;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5B4A3F;
  margin-bottom: 0.375rem;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  color: #3D3228;
  background: #FFFFFF;
  border: 1.5px solid #D4C4B0;
  border-radius: 8px;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: #6B8F6B;
  box-shadow: 0 0 0 3px rgba(107, 143, 107, 0.1);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form__radio {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  font-size: 0.9375rem;
}

.form__radio input[type="radio"] {
  accent-color: #6B8F6B;
}

/* ═══════════════════════════════════════════
   FINAL CTA SECTION
   ═══════════════════════════════════════════ */

.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(180deg, #FAF7F2 0%, #F5EDE3 100%);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  margin: 0 auto 2rem;
  color: #7A6B5D;
  font-size: 1.0625rem;
  max-width: 720px;
}

.cta-section .btn-group {
  justify-content: center;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  background: #5B4A3F;
  color: #D4C4B0;
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer__brand {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FAF7F2;
  margin-bottom: 0.5rem;
}

.footer__sub {
  font-size: 0.8125rem;
  color: #A89B8C;
  margin-bottom: 1rem;
}

.footer__links a {
  display: block;
  color: #D4C4B0;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer__links a:hover {
  color: #FAF7F2;
}

.footer__crisis {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 196, 176, 0.2);
  text-align: center;
  font-size: 0.8125rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer__crisis strong {
  color: #D4A574;
}

.footer__copy {
  text-align: center;
  font-size: 0.75rem;
  color: #A89B8C;
  margin-top: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════
   ARTICLE / LEARN PAGES
   ═══════════════════════════════════════════ */

.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.article h1 {
  margin-bottom: 1rem;
}

.article h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article h3 {
  margin-top: 2rem;
  color: #5B4A3F;
}

.article p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: none;
}

.article ul, .article ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #7A6B5D;
}

.article blockquote {
  border-left: 3px solid #6B8F6B;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #EFF5EF;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #5B4A3F;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .hero, .article-hero { padding: 2rem 0 2rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero__sub { font-size: 1.0625rem; }

  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #FAF7F2;
    border-bottom: 1px solid #E8DDD0;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(61, 50, 40, 0.12);
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
  }
  .hero__content {
    text-align: center;
  }
  .hero h1 {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__illustration {
    flex: 0 0 auto;
    max-width: 250px;
  }
  .hero .btn-group {
    justify-content: center;
  }

  .grid-2, .grid-3, .steps {
    grid-template-columns: 1fr;
  }

  .section { padding: 3rem 0; }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .pricing-table {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero__sub { font-size: 1rem; }
  .container { padding: 0 1rem; }
}

/* ═══════════════════════════════════════════
   FULL-WIDTH SINGLE ITEMS & ODD-COUNT GRIDS
   ═══════════════════════════════════════════ */

/* Single cards/boxes should fill available width */
.card:only-child,
.profile:only-child {
  max-width: 100%;
}

/* Utility class for explicit full-width elements */
.full-width-card {
  max-width: 100%;
  width: 100%;
}

/* Last item in a 2-col grid with odd count: center it */
.grid-2 > *:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
}

/* Last item in a 3-col grid alone on its row: center it */
.grid-3 > *:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   ACCESSIBILITY — Focus styles
   ═══════════════════════════════════════════ */

a:focus-visible,
.btn:focus-visible,
.faq__question:focus-visible,
.nav__links a:focus-visible,
.learn-card:focus-visible {
  outline: 2px solid #6B8F6B;
  outline-offset: 3px;
  border-radius: 4px;
}

.nav__toggle:focus-visible {
  outline: 2px solid #6B8F6B;
  outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #6B8F6B;
  outline-offset: 1px;
}

