/* ─────────────────────────────────────
   CARING HANDS SA — SHARED STYLES
   Brand: Purple #6B2D8B + Green #78C63D
───────────────────────────────────── */

/* TOKENS */
:root {
  --t: 220ms ease;

  /* NIGHT (default) */
  --bg:       #09061A;
  --bg2:      #0F0B22;
  --bg3:      #150E2E;
  --surface:  #1C1438;
  --card:     #130D28;
  --border:   rgba(155,91,196,0.18);
  --border2:  rgba(255,255,255,0.07);

  --text:     #F0ECF8;
  --text2:    #A89CC0;
  --text3:    #6B5E8A;

  --purple:   #9B5BC4;
  --purple2:  #B078D8;
  --green:    #78C63D;
  --green2:   #8FD952;
  --glow:     rgba(155,91,196,0.10);
  --glow2:    rgba(155,91,196,0.22);
  --glow-g:   rgba(120,198,61,0.12);

  --nav-bg:   rgba(9,6,26,0.88);
  --pill-bg:  rgba(155,91,196,0.12);
}

[data-theme="light"] {
  --bg:       #FDFAFF;
  --bg2:      #F4EFF9;
  --bg3:      #EAE2F3;
  --surface:  #FFFFFF;
  --card:     #FFFFFF;
  --border:   rgba(107,45,139,0.15);
  --border2:  rgba(107,45,139,0.08);

  --text:     #1A0B2E;
  --text2:    #4A3565;
  --text3:    #8A75A8;

  --purple:   #6B2D8B;
  --purple2:  #8B4AB0;
  --green:    #5A9E28;
  --green2:   #6BB535;
  --glow:     rgba(107,45,139,0.06);
  --glow2:    rgba(107,45,139,0.15);
  --glow-g:   rgba(90,158,40,0.08);

  --nav-bg:   rgba(253,250,255,0.92);
  --pill-bg:  rgba(107,45,139,0.08);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background var(--t), color var(--t);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1.15; font-weight: 600; }

/* REFORM BANNER */
.reform-banner {
  background: linear-gradient(90deg, #5B2080, #8B4AB0);
  color: #fff;
  text-align: center;
  padding: 9px 24px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 100;
}
.reform-banner a { color: #B8FF72; text-decoration: underline; text-underline-offset: 2px; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 99;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(155,91,196,0.35));
  transition: filter var(--t);
}
.nav-logo img:hover { filter: drop-shadow(0 0 10px rgba(155,91,196,0.6)); }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  display: none;
}
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 0.86rem; font-weight: 400; color: var(--text2);
  transition: color var(--t); letter-spacing: 0.01em; padding: 4px 0;
  border-bottom: 2px solid transparent; transition: color var(--t), border-color var(--t);
}
.nav-links a:hover, .nav-links a.active { color: var(--purple); border-bottom-color: var(--purple); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav {
  background: var(--purple); color: #fff; border: none;
  border-radius: 7px; padding: 9px 18px;
  font-family: 'DM Sans', sans-serif; font-size: 0.83rem; font-weight: 500;
  cursor: pointer; transition: background var(--t), transform 0.15s; white-space: nowrap;
}
.btn-nav:hover { background: var(--purple2); transform: translateY(-1px); }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: transform 0.2s; flex-shrink: 0;
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.1); }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple); color: #fff; border-radius: 8px;
  padding: 13px 26px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px var(--glow2); border: none;
}
.btn-primary:hover { background: var(--purple2); transform: translateY(-2px); box-shadow: 0 8px 32px var(--glow2); }
.btn-green {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #0D1A06; border-radius: 8px;
  padding: 13px 26px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s; border: none;
}
.btn-green:hover { background: var(--green2); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 26px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 400; transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--purple); background: var(--glow); transform: translateY(-1px); }

/* SECTION BASE */
section { padding: 88px 0; }
.section-eyebrow {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green); margin-bottom: 14px; display: block;
}
.section-heading {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 14px; color: var(--text);
}
.section-heading em { font-style: italic; color: var(--purple); }
.section-sub {
  font-size: 1rem; color: var(--text2); max-width: 560px;
  line-height: 1.75; margin-bottom: 52px; font-weight: 300;
}

/* TRUST BAR */
.trust-bar {
  border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2);
  background: var(--bg2); padding: 28px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 8px 20px; border-right: 1px solid var(--border2); text-align: center; }
.trust-item:last-child { border-right: none; }
.trust-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-bottom: 4px; }
.trust-value { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.trust-desc { font-size: 0.72rem; color: var(--text3); margin-top: 2px; }

/* CARDS */
.card {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 12px; padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: 0 12px 40px var(--glow); }

/* PAGE HERO (inner pages) */
.page-hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border2);
}
.page-hero .breadcrumb {
  font-size: 0.75rem; color: var(--text3); margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--green); }
.page-hero .breadcrumb span { margin: 0 6px; }

/* FOOTER */
footer { background: var(--bg); border-top: 1px solid var(--border2); padding: 52px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border2); margin-bottom: 28px; }
.footer-brand p { font-size: 0.82rem; color: var(--text3); line-height: 1.7; margin-top: 12px; max-width: 300px; font-weight: 300; }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.82rem; color: var(--text3); transition: color 0.2s; }
.footer-links a:hover { color: var(--purple); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--text3); flex-wrap: wrap; gap: 8px; }
.footer-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.footer-badges img { height: 40px; width: auto; opacity: 0.85; }

/* PULL QUOTE */
.pull-quote {
  border-left: 3px solid var(--purple); padding: 16px 24px;
  background: var(--glow); border-radius: 0 8px 8px 0; margin: 28px 0;
}
.pull-quote p { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; font-style: italic; color: var(--text); line-height: 1.5; }

/* TIMELINE */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(to bottom, var(--purple), transparent); }
.timeline-item { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 28px; position: relative; }
.timeline-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--purple); flex-shrink: 0; margin-top: 2px; position: relative; z-index: 1; }
.timeline-dot.active { background: var(--purple); box-shadow: 0 0 16px var(--glow2); }
.timeline-date { font-size: 0.68rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.timeline-title { font-weight: 500; color: var(--text); font-size: 0.9rem; margin-bottom: 4px; }
.timeline-desc { font-size: 0.8rem; color: var(--text2); line-height: 1.6; font-weight: 300; }

/* FORM */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.775rem; font-weight: 500; color: var(--text2); }
.form-input, .form-textarea, .form-select {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 8px; padding: 11px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  color: var(--text); transition: border-color 0.2s; width: 100%; outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text3); }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--purple); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.1s; }
.reveal-2 { transition-delay: 0.2s; }
.reveal-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  section { padding: 60px 0; }
}

/* ANIMATIONS */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.75); } }



/* LOGO SIZING */
.nav-logo img { filter: drop-shadow(0 0 6px rgba(155,91,196,0.4)); }
.footer-brand .chsa-symbol { height: 110px; width: auto; display: block; margin-bottom: 14px; filter: drop-shadow(0 0 8px rgba(155,91,196,0.3)); }
.footer-badges .ndis-badge { height: 90px; width: auto; display: block; }
[data-theme="light"] .nav-logo img,
[data-theme="light"] .footer-brand .chsa-symbol { filter: none; }
