/* =====================================================
   CareBridge Perth — Shared Stylesheet
   Brand: Sage #8BA888 · Navy #1C2B3A · Sand #F5F0E8
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ===================================================== */

/* ── VARIABLES ── */
:root {
  --sage:       #8BA888;
  --sage-light: #C4D4C2;
  --sage-pale:  #EBF0EA;
  --navy:       #1C2B3A;
  --navy-mid:   #2D4054;
  --navy-dark:  #0F1A24;
  --sand:       #F5F0E8;
  --sand-dark:  #E8DFD0;
  --white:      #FDFCFA;
  --text:       #2A2A2A;
  --text-soft:  #5A6272;
  --accent:     #B5825A;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { font-size: 0.9rem; line-height: 1.8; color: var(--text-soft); }

/* ── NAV ── */
nav#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  background: rgba(253,252,250,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139,168,136,0.15);
  transition: padding 0.3s, box-shadow 0.3s;
}
nav#main-nav.scrolled {
  padding: 13px 60px;
  box-shadow: 0 4px 24px rgba(28,43,58,0.08);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 400;
  color: var(--navy); text-decoration: none;
  letter-spacing: 0.02em; flex-shrink: 0;
}
.nav-logo span { color: var(--sage); }
.nav-center { display: flex; gap: 0; list-style: none; align-items: center; }
.nav-center > li { position: relative; }
.nav-center > li > a {
  display: block; padding: 8px 16px;
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-soft);
  text-decoration: none; transition: color 0.2s;
  white-space: nowrap;
}
.nav-center > li > a:hover,
.nav-center > li > a.active { color: var(--sage); }

/* Dropdown */
.has-dropdown > a::after {
  content: ' ▾'; font-size: 0.65rem; opacity: 0.6;
}
.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white); border: 1px solid rgba(139,168,136,0.18);
  border-radius: 6px; padding: 8px 0; list-style: none;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(28,43,58,0.12);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 300;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block; padding: 10px 20px;
  font-size: 0.82rem; color: var(--text-soft);
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover { background: var(--sage-pale); color: var(--navy); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 10px 22px; border-radius: 2px;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--sage); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--white); z-index: 199;
  flex-direction: column; justify-content: center;
  align-items: center; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem; font-weight: 300; color: var(--navy);
  text-decoration: none; padding: 16px 0;
  border-bottom: 1px solid var(--sand-dark); width: 280px;
  text-align: center; transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--sage); }
.mobile-menu .mobile-cta {
  margin-top: 28px;
  background: var(--navy) !important; color: var(--white) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.8rem !important; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 40px !important; border-radius: 2px;
  border: none !important; border-bottom: none !important;
}
.mobile-menu .mobile-cta:hover { background: var(--sage) !important; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--sage); color: var(--white);
  padding: 14px 32px; border-radius: 2px;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3); color: rgba(253,252,250,0.85);
  padding: 14px 32px; border-radius: 2px;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: border-color 0.25s, color 0.25s;
}
.btn-outline:hover { border-color: var(--sage-light); color: var(--white); }

.btn-outline-dark {
  display: inline-block;
  border: 1px solid rgba(28,43,58,0.25); color: var(--navy);
  padding: 12px 28px; border-radius: 2px;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: border-color 0.25s, background 0.25s;
}
.btn-outline-dark:hover { border-color: var(--sage); background: var(--sage-pale); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff;
  padding: 13px 28px; border-radius: 2px;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s;
}
.btn-whatsapp:hover { background: #1DA851; }
.btn-whatsapp svg { width: 18px; height: 18px; fill: currentColor; }

/* ── SECTION HELPERS ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 60px; }
.section-label {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 18px; display: block;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 72px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 0.88rem; line-height: 1.8; }

/* ── TRUST STRIP ── */
.trust-strip {
  background: var(--navy);
  padding: 18px 60px;
  display: flex; justify-content: center; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-strip span {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sage-light); display: flex; align-items: center; gap: 8px;
}
.trust-strip span::before {
  content: ''; width: 5px; height: 5px;
  background: var(--sage); border-radius: 50;
  flex-shrink: 0;
}

/* ── AHPRA DISCLAIMER BOX (for condition pages) ── */
.disclaimer-box {
  background: #fffbf5;
  border: 1px solid rgba(181,130,90,0.35);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text);
}
.disclaimer-box strong { color: var(--accent); display: block; margin-bottom: 6px; }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  padding: 64px 60px 36px;
  color: rgba(253,252,250,0.45);
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
}
.footer-brand .nav-logo { display: block; margin-bottom: 14px; color: var(--white); }
.footer-brand p { font-size: 0.8rem; line-height: 1.7; max-width: 240px; }
.footer-col h5 {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(253,252,250,0.55); margin-bottom: 18px; font-family: 'DM Sans', sans-serif; font-weight: 500;
}
.footer-col a {
  display: block; font-size: 0.8rem;
  color: rgba(253,252,250,0.38); text-decoration: none;
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--sage-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.73rem;
}
.footer-bottom a { color: rgba(253,252,250,0.3); text-decoration: none; }
.footer-disclaimer {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px; padding: 18px 22px;
  font-size: 0.72rem; line-height: 1.7;
  color: rgba(253,252,250,0.3); margin-top: 32px;
}
.footer-disclaimer strong { color: rgba(181,130,90,0.8); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible { transition: none; opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--sand-dark); padding: 26px 0; }
.faq-q {
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
  font-weight: 400; color: var(--navy); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-q::after {
  content: '+'; font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem; color: var(--sage); flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 0.87rem; line-height: 1.85; color: var(--text-soft);
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 14px; }

/* ── PILL TAGS ── */
.pill {
  display: inline-block;
  background: rgba(139,168,136,0.12);
  border: 1px solid rgba(139,168,136,0.3);
  color: var(--sage-light);
  padding: 5px 14px; border-radius: 100px;
  font-size: 0.72rem; letter-spacing: 0.07em;
}
.pill-dark {
  background: var(--sage-pale); color: var(--sage);
  border: 1px solid rgba(139,168,136,0.25);
  padding: 5px 14px; border-radius: 100px;
  font-size: 0.72rem; letter-spacing: 0.07em; display: inline-block;
}

/* ── PROCESS STEPS ── */
.process-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 22px; left: calc(33.33% + 0px);
  right: calc(33.33% + 0px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage-light), transparent);
  pointer-events: none;
}
.step-num {
  width: 44px; height: 44px; border: 1px solid var(--sage);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
  color: var(--sage-light); margin-bottom: 22px; flex-shrink: 0;
}
.step-num.dark {
  border-color: rgba(139,168,136,0.5); color: var(--sage-light);
}

/* ── NOT-DO LIST ── */
.not-do-box {
  background: var(--sand); border-radius: 8px;
  padding: 40px 48px; border-left: 4px solid var(--accent);
}
.not-do-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; margin-bottom: 20px; color: var(--navy);
}
.not-do-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.not-do-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.87rem; color: var(--text-soft); line-height: 1.6;
}
.not-do-list li::before {
  content: '✕'; color: var(--accent); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

/* ── BADGE ── */
.badge-popular {
  display: inline-block; background: var(--sage); color: var(--white);
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; font-weight: 500;
  vertical-align: middle; margin-left: 8px;
}
.badge-soon {
  display: inline-block; background: var(--sand-dark); color: var(--accent);
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; font-weight: 500;
}

/* ── CRED LIST (about / who) ── */
.creds-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.creds-list li {
  display: flex; gap: 10px; font-size: 0.83rem;
  color: rgba(253,252,250,0.55); line-height: 1.6; align-items: flex-start;
}
.creds-list li::before { content: '—'; color: var(--sage); flex-shrink: 0; margin-top: 2px; }
.creds-list a { color: var(--sage-light); text-decoration: none; transition: color 0.2s; }
.creds-list a:hover { color: var(--white); }

/* ── NOTICE / REG BAR ── */
.notice-bar {
  background: rgba(181,130,90,0.1);
  border: 1px solid rgba(181,130,90,0.3);
  border-radius: 6px; padding: 14px 18px; margin-top: 20px;
  font-size: 0.78rem; color: rgba(253,252,250,0.55); line-height: 1.6;
}
.notice-bar strong { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  nav#main-nav, nav#main-nav.scrolled { padding: 18px 32px; }
  .container { padding: 0 40px; }
  .trust-strip { padding: 16px 32px; }
  footer { padding: 48px 40px 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
  nav#main-nav, nav#main-nav.scrolled { padding: 15px 20px; }
  .container { padding: 0 24px; }
  .trust-strip { padding: 14px 20px; gap: 20px; }
  .trust-strip span { font-size: 0.68rem; }
  footer { padding: 40px 24px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .process-steps { grid-template-columns: 1fr; gap: 36px; }
  .process-steps::before { display: none; }
}
