/* ================================================
   GLOBAL — My Simple Support
   Shared across all pages
   ================================================ */

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

/* DESIGN TOKENS */
:root {
  --sage: #7B3FAD;
  --sage-light: #EDE6F5;
  --sage-dark: #4B1F80;
  --blush: #F5F0FF;
  --blush-mid: #C4A0DA;
  --warm-cream: #FAF6FF;
  --warm-white: #FDFBFF;
  --text-dark: #1a2433;
  --text-mid: #4b5563;
  --text-light: #9ca3af;
  --green: #8DC63F;
  --radius: 18px;
}

/* BASE */
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--warm-white); color: var(--text-dark); line-height: 1.7; font-size: 16px; }
h1, h2, h3, h4 { font-family: 'Lora', serif; line-height: 1.25; font-weight: 600; }
img { transform: translateZ(0); backface-visibility: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(123,63,173,0.1);
  padding: 0 2rem;
  height: 106px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-mid); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--sage); }
.nav-cta { background: var(--sage) !important; color: white !important; padding: 9px 20px; border-radius: 50px; transition: background 0.2s, color 0.2s !important; }
.nav-cta:hover { background: var(--sage-dark) !important; }

/* NAV DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7em; opacity: 0.7; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  background: white; border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13); border: 1px solid rgba(123,63,173,0.1);
  min-width: 230px; padding: 0.5rem; list-style: none;
  opacity: 0; visibility: hidden; margin-top: -8px;
  transition: opacity 0.2s, visibility 0.2s, margin-top 0.2s; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; margin-top: 0; }
.nav-dropdown-menu a { display: block; padding: 0.5rem 0.875rem; font-size: 0.85rem; color: var(--text-dark) !important; border-radius: 8px; white-space: nowrap; font-weight: 400 !important; transition: background 0.15s, color 0.15s !important; }
.nav-dropdown-menu a:hover { background: var(--sage-light); color: var(--sage-dark) !important; }
.nav-dropdown-menu li:first-child a { font-weight: 600 !important; color: var(--sage-dark) !important; border-bottom: 1px solid rgba(123,63,173,0.1); border-radius: 8px 8px 0 0; margin-bottom: 0.25rem; padding-bottom: 0.75rem; }
.nav-cta--referral { background: transparent !important; color: var(--sage) !important; border: 2px solid var(--sage); }
.nav-cta--referral:hover { background: var(--sage) !important; color: white !important; }

/* BUTTONS */
.btn-primary {
  background: var(--sage); color: white; padding: 14px 30px; border-radius: 50px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent; color: var(--sage-dark); padding: 14px 30px; border-radius: 50px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  border: 1.5px solid var(--sage); transition: background 0.2s; display: inline-block;
}
.btn-secondary:hover { background: var(--sage-light); }

.btn-white {
  background: white; color: var(--sage-dark); padding: 14px 30px; border-radius: 50px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem; display: inline-block;
}
.btn-white:hover { opacity: 0.9; }

/* EYEBROW */
.eyebrow {
  display: inline-block; background: var(--sage-light); color: var(--sage);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px;
}

/* SECTIONS */
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 80px 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.section-header p { color: var(--text-mid); font-size: 1rem; max-width: 560px; margin: 0 auto; font-weight: 300; }

/* PAGE HERO */
.page-hero { background: var(--warm-cream); padding: 164px 2rem 80px; text-align: center; }

/* PAGE HERO — photo background variant */
.page-hero.has-photo { position: relative; overflow: hidden; background: transparent; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.page-hero.has-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(31,41,55,0.38); }
.page-hero.has-photo.brand-tint::after { background: linear-gradient(135deg, rgba(74,32,128,0.78) 0%, rgba(123,63,173,0.62) 100%); }
.page-hero.has-photo .page-hero-inner { position: relative; z-index: 2; }
.page-hero.has-photo .eyebrow { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.25); }
.page-hero.has-photo h1 { color: white; }
.page-hero.has-photo h1 em { color: #8DC63F; }
.page-hero.has-photo p { color: rgba(255,255,255,0.88); }

/* PAGE HERO — gradient + dot pattern variant */
.page-hero.has-pattern { background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%); position: relative; overflow: hidden; }
.page-hero.has-pattern::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1.5px, transparent 1.5px); background-size: 28px 28px; pointer-events: none; }
.page-hero.has-pattern .page-hero-inner { position: relative; z-index: 1; }
.page-hero.has-pattern .eyebrow { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.25); }
.page-hero.has-pattern h1 { color: white; }
.page-hero.has-pattern h1 em { color: #8DC63F; }
.page-hero.has-pattern p { color: rgba(255,255,255,0.88); }

/* PHOTO GALLERY (3-col) */
.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; height: 260px; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem 1.5rem; background: linear-gradient(to top, rgba(31,41,55,0.88), transparent); color: white; font-size: 0.85rem; font-weight: 500; }
@media (max-width: 900px) { .photo-gallery { grid-template-columns: 1fr; } }
.page-hero-inner { max-width: 700px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.02em; margin: 1rem 0; }
.page-hero h1 em { color: var(--sage); font-style: italic; }
.page-hero p { font-size: 1.05rem; color: var(--text-mid); font-weight: 300; line-height: 1.8; max-width: 580px; margin: 0 auto; }

/* CTA BAND */
.cta-band { background: var(--sage-dark); padding: 70px 2rem; text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; color: white; }
.cta-band p { font-size: 1rem; color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 2rem; font-weight: 300; }

/* FOOTER */
footer { background: #2A1060; color: rgba(255,255,255,0.7); padding: 3rem 2rem 2rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand .logo { font-family: 'Lora', serif; font-size: 1.1rem; color: white; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.75; color: rgba(255,255,255,0.5); }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { text-decoration: none; font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: #C4A0DA; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 0.5rem;
}
.ndis-badge { background: rgba(0,166,81,0.2); color: #00A651; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 500; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.6s ease both; }
.fade-up-2 { animation: fadeUp 0.6s ease 0.15s both; }
.fade-up-3 { animation: fadeUp 0.6s ease 0.3s both; }

/* RESPONSIVE — common rules */
@media (max-width: 1100px) {
  .nav-links { gap: 1rem; }
  .nav-cta { padding: 7px 14px; font-size: 0.82rem; }
}
@media (max-width: 900px) {
  nav .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* LUCIDE ICONS — base */
.contact-detail-icon { color: var(--sage); }
.contact-detail-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }
.emergency-banner .icon { color: #d97706; }
.emergency-banner .icon svg { width: 22px; height: 22px; stroke-width: 2; }
.map-icon { display: flex; align-items: center; justify-content: center; }
.map-icon svg { width: 48px; height: 48px; stroke-width: 1.25; }
