/*
Theme Name: TeleTherapyCounsellors
Theme URI: https://teletherapycounsellors.com
Author: Perceived Content
Author URI: https://perceivedcontent.com
Description: Gender-inclusive online therapy platform theme for TeleTherapyCounsellors. Built for licensed Kenyan counsellors serving any individual seeking support — from Nairobi to the diaspora.
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: ttc
Tags: therapy, mental-health, kenya, online-booking, custom-colors, custom-logo, full-site-editing

--- DESIGN TOKENS ---
Primary:    #6B8F71  (Sage green)
Accent:     #C47B5A  (Terracotta)
Background: #FAF8F4  (Cream)
Dark:       #2C2C2C  (Charcoal)
Display:    Playfair Display
Body:       DM Sans
Quote:      Cormorant Garamond
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sage:              #6B8F71;
  --sage-dark:         #557a5b;
  --sage-light:        #EAF0EB;
  --terracotta:        #C47B5A;
  --terracotta-light:  #F7EDE6;
  --cream:             #FAF8F4;
  --charcoal:          #2C2C2C;
  --mid:               #5A5A5A;
  --light:             #8A8A8A;
  --white:             #FFFFFF;
  --border:            #E8E4DC;
  --radius:            10px;
  --radius-lg:         20px;
  --shadow-card:       0 8px 40px rgba(107, 143, 113, 0.12);
  --shadow-sm:         0 4px 16px rgba(0, 0, 0, 0.06);
  --font-display:      'Playfair Display', Georgia, serif;
  --font-body:         'DM Sans', system-ui, -apple-system, sans-serif;
  --font-quote:        'Cormorant Garamond', Georgia, serif;
  --max-width:         1200px;
  --gutter:            5%;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; color: var(--charcoal); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--mid); line-height: 1.75; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.75rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: 80px var(--gutter); }
.section-dark  { background: var(--charcoal); }
.section-sage  { background: var(--sage); }
.section-sage-light { background: var(--sage-light); }
.section-terra { background: var(--terracotta-light); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary   { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--sage-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--sage); border-color: var(--sage); }
.btn-secondary:hover { background: var(--sage); color: var(--white); }
.btn-white     { background: var(--white); color: var(--sage); }
.btn-white:hover { opacity: 0.9; color: var(--sage); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-terra     { background: var(--terracotta); color: var(--white); }
.btn-terra:hover { background: #b06a49; color: var(--white); }
.btn-sm        { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-group     { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--sage-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p  { font-size: 0.9rem; margin-bottom: 1.25rem; }
.card-link {
  color: var(--sage); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem;
}
.card-link:hover { text-decoration: underline; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 var(--border);
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sage);
  text-decoration: none;
}
.site-logo span { color: var(--terracotta); }
#primary-nav ul {
  display: flex; gap: 2rem; list-style: none;
}
#primary-nav a {
  text-decoration: none; color: var(--mid);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
#primary-nav a:hover,
#primary-nav .current-menu-item > a { color: var(--sage); }
.nav-book-btn {
  background: var(--sage); color: var(--white) !important;
  padding: 0.6rem 1.4rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 500;
  text-decoration: none; transition: background 0.2s;
}
.nav-book-btn:hover { background: var(--sage-dark) !important; }
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal); border-radius: 2px; transition: all 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  padding: 100px var(--gutter) 80px;
}
.hero-section h1 em { font-style: italic; color: var(--sage); }
.hero-section .lead {
  font-size: 1.05rem; color: var(--mid);
  line-height: 1.75; margin-bottom: 2rem; max-width: 480px;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
}
.hero-card-label {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--light); margin-bottom: 0.5rem;
}
.session-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.session-row:last-child { border-bottom: none; }
.session-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sage); flex-shrink: 0;
}
.session-dot.orange { background: var(--terracotta); }
.session-dot.blue   { background: #7A9EBF; }
.session-name  { font-size: 0.9rem; font-weight: 500; }
.session-price { font-size: 0.8rem; color: var(--light); margin-left: auto; }
.floating-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--terracotta); color: var(--white);
  border-radius: 14px; padding: 0.85rem 1.25rem;
  font-size: 0.8rem; font-weight: 600;
  box-shadow: 0 4px 16px rgba(196,123,90,0.3);
  text-align: center;
}
.floating-badge strong { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--sage);
  padding: 1.5rem var(--gutter);
}
.trust-strip-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-around;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.trust-item { text-align: center; color: var(--white); }
.trust-item strong { display: block; font-size: 1.6rem; font-weight: 700; font-family: var(--font-display); }
.trust-item span  { font-size: 0.8rem; opacity: 0.85; }

/* ============================================================
   PROBLEM / FEATURES GRID
   ============================================================ */
.problem-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.75rem;
}
.problem-card .icon { font-size: 1.6rem; margin-bottom: 1rem; }
.problem-card h4 { color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.problem-card p  { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.65; }

/* ============================================================
   SERVICES
   ============================================================ */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  padding: 60px 0; border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-tag {
  display: inline-block; background: var(--sage-light); color: var(--sage);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.9rem;
  border-radius: 50px; margin-bottom: 1rem;
}
.service-visual-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; border: 1px solid var(--border);
}
.service-quote {
  font-family: var(--font-quote); font-size: 1.1rem;
  font-style: italic; color: var(--charcoal); line-height: 1.7; margin-bottom: 1rem;
}
.service-quote-attr { font-size: 0.82rem; color: var(--light); }
.service-meta {
  margin-top: 1.75rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.price-label { font-size: 0.75rem; color: var(--light); text-transform: uppercase; letter-spacing: 0.08em; }
.price-val   { font-size: 1.2rem; font-weight: 700; color: var(--sage); font-family: var(--font-display); }
.includes-list { list-style: none; margin: 1.25rem 0; }
.includes-list li {
  font-size: 0.88rem; color: var(--mid); padding: 0.3rem 0;
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.includes-list li::before { content: '✓'; color: var(--sage); font-weight: 700; flex-shrink: 0; }
.includes-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--light); margin-bottom: 0.5rem; }

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage); color: var(--white);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p  { font-size: 0.88rem; line-height: 1.65; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--border);
}
.stars  { color: #E8A838; font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-card blockquote {
  font-family: var(--font-quote); font-size: 1.05rem;
  line-height: 1.7; color: var(--charcoal); font-style: italic; margin-bottom: 1.25rem;
}
.testimonial-author { font-size: 0.85rem; color: var(--light); font-weight: 500; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; border: 2px solid var(--border);
  transition: border-color 0.2s;
}
.pricing-card.featured { border-color: var(--sage); }
.pricing-badge {
  display: inline-block; background: var(--sage); color: var(--white);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.75rem;
  border-radius: 50px; margin-bottom: 1rem;
}
.pricing-price {
  font-size: 1.8rem; font-weight: 700; color: var(--charcoal);
  line-height: 1; margin: 0.75rem 0;
}
.pricing-price sup { font-size: 1rem; vertical-align: top; margin-top: 0.3rem; display: inline-block; }
.pricing-price sub { font-size: 0.8rem; color: var(--light); font-weight: 400; }
.pricing-features { list-style: none; margin: 1rem 0 1.75rem; }
.pricing-features li {
  font-size: 0.88rem; color: var(--mid); padding: 0.35rem 0;
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.pricing-features li::before { content: '✓'; color: var(--sage); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list  { max-width: 720px; }
.faq-item  { border-bottom: 1px solid var(--border); }
.faq-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  text-align: left; padding: 1.25rem 0;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.95rem; color: var(--charcoal);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-trigger::after {
  content: '+'; font-size: 1.2rem; color: var(--sage); flex-shrink: 0; transition: transform 0.2s;
}
.faq-item.open .faq-trigger::after { content: '−'; }
.faq-answer {
  font-size: 0.9rem; color: var(--mid); line-height: 1.7;
  padding-bottom: 1.25rem; display: none;
}
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h2 { margin-bottom: 0.5rem; }
.form-subtitle { font-size: 0.88rem; color: var(--light); margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
label .req { color: var(--terracotta); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%; padding: 0.8rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--charcoal); background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107,143,113,0.12);
}
textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.78rem; color: var(--light); margin-top: 0.3rem; }
.form-submit {
  width: 100%; background: var(--sage); color: var(--white);
  border: none; padding: 1rem; border-radius: 50px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s; margin-top: 0.5rem;
}
.form-submit:hover { background: var(--sage-dark); }
.form-privacy {
  font-size: 0.78rem; color: var(--light);
  text-align: center; margin-top: 0.75rem; line-height: 1.5;
}
.form-privacy a { color: var(--sage); }
.form-divider {
  text-align: center; font-size: 0.82rem;
  color: var(--light); margin: 1.25rem 0; position: relative;
}
.form-divider::before,
.form-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 40%; height: 1px; background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after  { right: 0; }
.alt-contact-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
}
.alt-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--border); text-align: center;
}
.alt-card .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.alt-card h3 { font-size: 0.9rem; margin-bottom: 0.4rem; }
.alt-card p  { font-size: 0.82rem; line-height: 1.55; }
.alt-card a  {
  color: var(--sage); text-decoration: none; font-weight: 600;
  font-size: 0.85rem; display: block; margin-top: 0.75rem;
}

/* ============================================================
   STATS / CONTEXT STRIP
   ============================================================ */
.stat-strip-item {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; display: flex; gap: 1.25rem; align-items: center;
  margin-bottom: 1.25rem;
}
.stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--terracotta); line-height: 1; flex-shrink: 0;
}

/* ============================================================
   PAGE HERO BANNER
   ============================================================ */
.page-hero-banner {
  background: var(--sage); padding: 80px var(--gutter); text-align: center;
}
.page-hero-banner h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero-banner p  { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 2rem; }
.page-hero-banner .eyebrow { color: rgba(255,255,255,0.7); }

/* ============================================================
   VALUES
   ============================================================ */
.value-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--border);
}
.value-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-card p  { font-size: 0.88rem; line-height: 1.65; }

/* ============================================================
   MISSION BLOCK
   ============================================================ */
.mission-block { max-width: 860px; margin: 0 auto; text-align: center; }
.mission-block blockquote {
  font-family: var(--font-quote);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  color: var(--white); line-height: 1.6; font-style: italic; margin-bottom: 1.25rem;
}
.mission-block p { color: rgba(255,255,255,0.8); line-height: 1.7; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { padding: 80px var(--gutter); text-align: center; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p  { max-width: 520px; margin: 0 auto 2rem; }
.cta-band.dark h2 { color: var(--white); }
.cta-band.dark p  { color: rgba(255,255,255,0.75); }
.cta-band.sage h2 { color: var(--white); }
.cta-band.sage p  { color: rgba(255,255,255,0.85); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--charcoal); color: rgba(255,255,255,0.6);
  padding: 60px var(--gutter) 30px;
}
.footer-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.85rem; line-height: 1.7;
  margin-top: 0.75rem; max-width: 280px;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; color: var(--sage);
}
.footer-col h4 {
  color: var(--white); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.footer-col ul  { list-style: none; }
.footer-col li  { margin-bottom: 0.5rem; }
.footer-col a   { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .service-block { grid-template-columns: 1fr; gap: 2rem; }
  .service-block.reverse { direction: ltr; }
  .form-row { grid-template-columns: 1fr; }
  #primary-nav .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-section .hero-visual { display: none; }
  .trust-strip-inner { justify-content: center; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid-4, .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
