/* =========================================================================
   CommfyCouch — Premium design system (v2)

   Loaded AFTER assets/css/styles.css on every page. This file layers the
   new warm/luxury visual language on top of the existing markup and
   classes — it does not remove or rename anything styles.css defines, so
   nothing here can break the JS that selects by those class names
   (main.js form handling, reveal observer, nav toggle, etc.).
   ========================================================================= */

:root{
  /* ---- Color tokens ---- */
  --cc-warm-white: #FBF9F5;
  --cc-ivory: #F8F4EC;
  --cc-cream: #F6EFE3;
  --cc-sand: #EFE6D6;
  --cc-beige: #EFE2CD;
  --cc-terracotta: #A6472B;
  --cc-terracotta-soft: #F1DED2;
  --cc-sage: #7C9070;
  --cc-sage-soft: #E4EADB;
  --cc-olive: #767A52;
  --cc-rose: #C98D89;
  --cc-rose-soft: #F5E6E3;
  --cc-taupe: #8A7A68;
  --cc-slate: #5B6570;
  --cc-lavender: #9E90C9;
  --cc-lavender-soft: #EAE6F6;
  --cc-charcoal: #2B2723;
  --cc-charcoal-70: rgba(43,39,35,.7);
  --cc-charcoal-50: rgba(43,39,35,.5);
  --cc-line: rgba(43,39,35,.1);
  --cc-line-strong: rgba(43,39,35,.18);

  /* ---- Type ---- */
  --cc-font-display: 'Plus Jakarta Sans', sans-serif;
  --cc-font-body: 'Inter', sans-serif;

  /* ---- Spacing scale ---- */
  --cc-sp-1: 8px;  --cc-sp-2: 16px; --cc-sp-3: 24px;
  --cc-sp-4: 32px; --cc-sp-5: 48px; --cc-sp-6: 64px;
  --cc-sp-7: 96px; --cc-sp-8: 128px;

  /* ---- Radius ---- */
  --cc-r-sm: 12px; --cc-r-md: 20px; --cc-r-lg: 32px; --cc-r-pill: 999px;

  /* ---- Elevation ---- */
  --cc-shadow-sm: 0 14px 34px -18px rgba(43,39,35,.28);
  --cc-shadow-md: 0 30px 70px -30px rgba(43,39,35,.25);
  --cc-shadow-lg: 0 50px 110px -40px rgba(43,39,35,.32);

  /* ---- Motion ---- */
  --cc-ease: cubic-bezier(.2,.8,.2,1);
  --cc-dur-fast: .25s; --cc-dur-base: .45s; --cc-dur-slow: .9s;

  /* Wider content measure on large desktop screens */
  --max-width: 1320px;
}

body{ background: var(--cc-warm-white); }
h1, h2, h3, h4{ font-family: var(--cc-font-display); color: var(--cc-charcoal); letter-spacing: -.01em; }
body, p, li, input, textarea, select, button{ font-family: var(--cc-font-body); }
p{ color: var(--cc-charcoal-70); }

/* ---- Scroll progress ---- */
.cc-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--cc-terracotta), var(--cc-sage));
  z-index: 999; transition: width .1s linear;
}

/* ---- Header ---- */
.site-header{
  background: rgba(251,249,245,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s ease, border-color .35s ease;
}
.site-header.cc-scrolled{ box-shadow: 0 8px 30px -18px rgba(43,39,35,.35); border-bottom-color: var(--cc-line); }
.brand{ font-family: var(--cc-font-display); font-weight: 600; color: var(--cc-charcoal); }
.main-nav a{ font-family: var(--cc-font-display); color: var(--cc-charcoal-70); border-bottom-color: transparent; }
.main-nav a:hover, .main-nav a.active{ color: var(--cc-charcoal); border-bottom-color: var(--cc-terracotta); }

/* ---- Eyebrow / badge pills (reused across every page) ---- */
.eyebrow{
  display: inline-block; font-family: var(--cc-font-display);
  background: var(--cc-terracotta-soft); color: var(--cc-terracotta);
  padding: 5px 14px; border-radius: var(--cc-r-pill);
  font-size: .74rem; letter-spacing: .06em; font-weight: 600;
}
.cc-eyebrow-sage{ background: var(--cc-sage-soft); color: var(--cc-sage); }
.cc-eyebrow-lavender{ background: var(--cc-lavender-soft); color: var(--cc-lavender); }
.cc-eyebrow-rose{ background: var(--cc-rose-soft); color: var(--cc-rose); }

.cc-badge{
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.6); border: 1px solid var(--cc-line);
  backdrop-filter: blur(6px);
  padding: 7px 16px 7px 8px; border-radius: var(--cc-r-pill);
  font-family: var(--cc-font-display); font-size: .78rem; font-weight: 600;
  color: var(--cc-charcoal-70); margin-bottom: 22px;
}
.cc-badge .cc-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--cc-sage); flex: none; }

/* ---- Buttons — calm, welcoming sage tone + gentler font, used everywhere ---- */
.btn{
  font-family: var(--cc-font-body); font-weight: 500; letter-spacing: .01em;
}
.btn-primary{
  background: linear-gradient(135deg, #93A886, #7A9070);
  color: #fff; box-shadow: 0 10px 26px -14px rgba(122,144,112,.4);
  transition: transform var(--cc-dur-base) var(--cc-ease), box-shadow var(--cc-dur-base) ease, background var(--cc-dur-base) ease;
}
.btn-primary:hover{
  background: linear-gradient(135deg, #9FB394, #86A17C);
  box-shadow: 0 14px 32px -14px rgba(122,144,112,.5);
  transform: translateY(-2px);
}
.btn-outline{
  border-color: #9FB394; color: #5E7052; background: transparent;
  transition: transform var(--cc-dur-base) var(--cc-ease), background var(--cc-dur-base) ease, color var(--cc-dur-base) ease;
}
.btn-outline:hover{ background: #EDF1E8; color: #4C5C42; border-color: #86A17C; }

/* ---- Decorative blobs (used inside a `position:relative;overflow:hidden` section) ---- */
.cc-blob{ position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0; }
@media (prefers-reduced-motion: no-preference){
  .cc-blob{ animation: ccDrift 18s ease-in-out infinite; }
  .cc-blob.cc-blob-rev{ animation-direction: reverse; }
  @keyframes ccDrift{
    0%,100%{ transform: translate(0,0) scale(1); }
    50%{ transform: translate(26px,20px) scale(1.1); }
  }
}

/* ---- Reveal system (progressive enhancement over the existing .reveal
   mechanism in main.js — GSAP takes over in premium.js when available) ---- */
.cc-reveal{ opacity: 0; transform: translateY(28px); }
.cc-reveal.cc-in{ opacity: 1; transform: translateY(0); transition: opacity .9s var(--cc-ease), transform .9s var(--cc-ease); }
@media (prefers-reduced-motion: reduce){
  .cc-reveal{ opacity: 1; transform: none; }
}

/* ---- Premium card ---- */
.cc-card{
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-r-md);
  padding: 34px 30px;
  transition: transform var(--cc-dur-base) var(--cc-ease), box-shadow var(--cc-dur-base) ease, border-color var(--cc-dur-fast) ease;
  will-change: transform;
}
.cc-card:hover{ box-shadow: var(--cc-shadow-md); border-color: rgba(166,71,43,.25); }
.cc-card .cc-icon{
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.cc-card .cc-icon svg{ width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.cc-icon-terracotta{ background: var(--cc-terracotta-soft); color: var(--cc-terracotta); }
.cc-icon-sage{ background: var(--cc-sage-soft); color: var(--cc-sage); }
.cc-icon-lavender{ background: var(--cc-lavender-soft); color: var(--cc-lavender); }
.cc-icon-rose{ background: var(--cc-rose-soft); color: var(--cc-rose); }

/* ---- Section background tints (drop onto any <section> to vary rhythm) ---- */
.cc-tint-cream{ background: var(--cc-cream); }
.cc-tint-sand{ background: var(--cc-sand); }
.cc-tint-sage{ background: var(--cc-sage-soft); }
.cc-tint-charcoal{ background: var(--cc-charcoal); }
.cc-tint-charcoal, .cc-tint-charcoal h1, .cc-tint-charcoal h2, .cc-tint-charcoal h3{ color: #F8F4EC; }
.cc-tint-charcoal p{ color: rgba(248,244,236,.72); }

/* ---- Curved section divider ---- */
.cc-curve{ display: block; width: 100%; height: 64px; margin-bottom: -2px; }
.cc-curve path{ fill: var(--cc-warm-white); }
.cc-curve-charcoal path{ fill: var(--cc-charcoal); }

/* ---- Footer — full-bleed dark bar, content stays centred inside it ---- */
.site-footer-wrap{
  background: var(--cc-charcoal);
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.site-footer{
  background: transparent;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 24px;
  border-radius: 0;
}
.footer-brand-name, .site-footer h4{
  font-family: 'Calibri', 'Candara', 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
}
.footer-brand-name{ font-size: 1.3rem; margin-bottom: 6px; }
.site-footer h4{ font-size: 1.05rem; }
.social-row a{ color: var(--cc-warm-white); transition: background var(--cc-dur-fast) ease, transform var(--cc-dur-fast) ease; }
.social-row a:hover{ background: var(--cc-sage); transform: translateY(-2px); }

/* ---- Forms: premium focus + card treatment (structure/names untouched) ---- */
.form-card{
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--cc-line);
  box-shadow: var(--cc-shadow-sm);
}
.form-card input, .form-card textarea, .form-card select{
  border: 1px solid var(--cc-line-strong);
  border-radius: 12px;
  transition: border-color var(--cc-dur-fast) ease, box-shadow var(--cc-dur-fast) ease;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus{
  outline: none;
  border-color: var(--cc-terracotta);
  box-shadow: 0 0 0 4px var(--cc-terracotta-soft);
}
.form-card .form-success{ background: var(--cc-sage-soft); color: #3E4F35; }
.form-card .form-error{ background: var(--cc-rose-soft); color: #7A2E28; }

/* ---- Scroll cue ---- */
.cc-scroll-cue{
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .72rem; color: var(--cc-charcoal-50); z-index: 1; text-decoration: none;
}
.cc-scroll-cue .cc-mouse{ width: 22px; height: 34px; border: 1.5px solid var(--cc-charcoal-50); border-radius: 12px; position: relative; }
.cc-scroll-cue .cc-mouse::after{ content:""; position: absolute; top: 6px; left: 50%; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--cc-charcoal-50); }
@media (prefers-reduced-motion: no-preference){
  .cc-scroll-cue .cc-mouse::after{ animation: ccScroll 1.8s ease-in-out infinite; }
  @keyframes ccScroll{ 0%{ opacity:1; top:6px;} 60%{ opacity:0; top:16px;} 100%{ opacity:0; top:6px;} }
}

@media (max-width: 900px){
  .cc-float-card{ left: 12px !important; bottom: 12px !important; }
}

/* ---- Split section baseline (index/about/volunteer all use this layout) ---- */
.split-section{ padding: 90px 0; position: relative; }
.split-section img{ border-radius: var(--cc-r-lg); box-shadow: var(--cc-shadow-md); }
.split-section h2{ font-size: 2.2rem; margin: 16px 0 20px; }

/* ---- Page banner (used on services / volunteer / research) ---- */
.page-banner{
  position: relative; overflow: hidden;
  background-color: var(--cc-cream);
}
.page-banner h1{ color: var(--cc-charcoal); font-weight: 800; position: relative; z-index: 1; }
.page-banner .container{ position: relative; z-index: 1; }

/* ---- Legal pages (Privacy / Terms) — lighter touch, readability first ---- */
.legal-content h1{ font-weight: 800; font-size: 2.2rem; }
.legal-content h2{ font-size: 1.3rem; margin-top: 40px; color: var(--cc-terracotta); }
.legal-content .meta{
  background: var(--cc-cream); border-radius: var(--cc-r-sm);
  padding: 16px 20px; font-size: .88rem;
}

/* ---- Counsellor bio pages ---- */
.bio-hero{
  position: relative; overflow: hidden;
  padding: 70px 24px 50px; text-align: center;
  background:
    radial-gradient(600px 320px at 12% -10%, var(--cc-terracotta-soft) 0%, rgba(241,222,210,0) 60%),
    var(--cc-cream);
  border-radius: var(--cc-r-lg);
}
.bio-hero h1{ font-weight: 800; font-size: 2.6rem; }
.bio-hero .subtitle{ font-family: var(--cc-font-display); color: var(--cc-charcoal-70); }
.bio-quote{
  font-family: var(--cc-font-display); font-style: italic; font-size: 1.2rem;
  color: var(--cc-terracotta); text-align: center; margin: 28px 0;
}
.tag-row{ display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 28px; }
.tag-row .tag{
  background: var(--cc-sage-soft); color: var(--cc-sage);
  padding: 6px 14px; border-radius: var(--cc-r-pill); font-size: .82rem; font-weight: 600;
}

/* ---- Service detail pages ---- */
.service-detail img{ border-radius: var(--cc-r-lg); box-shadow: var(--cc-shadow-md); }
.service-detail h1{ font-weight: 800; }
.service-detail .subtitle{ font-family: var(--cc-font-display); color: var(--cc-charcoal-70); font-size: 1.1rem; }
.service-detail .price-line{ color: var(--cc-terracotta); font-weight: 600; font-size: 1.1rem; }
.service-detail .format-line{
  display: inline-block; background: var(--cc-sage-soft); color: var(--cc-sage);
  padding: 4px 12px; border-radius: var(--cc-r-pill); font-size: .82rem; font-weight: 600;
}

/* ---- Blog ---- */
.blog-hero{
  position: relative; overflow: hidden;
  background:
    radial-gradient(640px 360px at 88% -10%, var(--cc-rose-soft) 0%, rgba(245,230,227,0) 60%),
    var(--cc-cream);
  padding: 70px 0 60px; text-align: center;
}
.blog-hero h1{ font-weight: 800; font-size: 2.6rem; }
.blog-card{
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-r-md);
  box-shadow: var(--cc-shadow-sm);
  overflow: hidden;
  transition: transform var(--cc-dur-base) var(--cc-ease), box-shadow var(--cc-dur-base) ease;
}
.blog-card:hover{ transform: translateY(-6px); box-shadow: var(--cc-shadow-md); }
.blog-card h3{ font-family: var(--cc-font-display); }
.blog-readmore{ color: var(--cc-terracotta); font-weight: 600; }

/* ---- Single post ---- */
.post-hero{
  background: var(--cc-cream);
}
.post-note{
  background: var(--cc-sage-soft);
  border-left: 3px solid var(--cc-sage);
  border-radius: 0 var(--cc-r-sm) var(--cc-r-sm) 0;
}

/* ---- Service cards (services.html — regenerated by site-config.js, so
   styling stays CSS-only; no markup assumptions) ---- */
.service-card{
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-r-md);
  box-shadow: var(--cc-shadow-sm);
  transition: transform var(--cc-dur-base) var(--cc-ease), box-shadow var(--cc-dur-base) ease;
}
.service-card:hover{ box-shadow: var(--cc-shadow-md); }
.service-card h3{ font-family: var(--cc-font-display); }
.service-card .service-price{ color: var(--cc-terracotta); font-weight: 600; }
