/* ======================================================
   DESIGN TOKENS
   ====================================================== */

:root {
  --background: hsl(240 10% 96%);
  --foreground: hsl(240 10% 10%);

  --card: hsl(0 0% 100%);
  --primary: hsl(262 60% 55%);
  --accent: hsl(262 60% 90%);
  --muted: hsl(240 6% 92%);
  --border: hsl(240 6% 85%);

  --destructive: hsl(0 75% 55%);

  --radius: 0.75rem;

  --text-4xl: 2.25rem;
  --text-3xl: 1.875rem;
  --text-xl: 1.25rem;
  --text-base: 1rem;
  --text-sm: 0.875rem;
}

/* ======================================================
   BASE
   ====================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: url("../images/watercolour-bg.png") no-repeat center / cover fixed;
  color: var(--foreground);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======================================================
   LAYOUT
   ====================================================== */

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ======================================================
   HEADER + NAV (SINGLE SOURCE OF TRUTH)
   ====================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
  flex-wrap: nowrap;
}

/* LOGO */
.logo {
  flex-shrink: 0;
}

.logo img {
  height: 64px; /* FINAL DESKTOP SIZE */
  width: auto;
}

/* NAV */
.main-nav {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--foreground);
}

.main-nav a:hover {
  color: var(--primary);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: rgba(255,255,255,0.95);
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  padding: 1rem;
  text-decoration: none;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

/* ======================================================
   SECTIONS / CARDS
   ====================================================== */

.section {
  background-color: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  padding: 3rem;
  margin: 3rem 0;
  backdrop-filter: blur(3px);
}

/* ======================================================
   FOOTER (FIGMA PARITY)
   ====================================================== */

.site-footer {
  margin-top: 5rem;
  padding: 4rem 0 2rem;
  background-color: rgba(235,228,255,0.9);
  backdrop-filter: blur(4px);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 3rem;
  align-items: start;
}

.footer-logo img {
  max-width: 220px;
}

.footer-links,
.footer-contact {
  font-size: 0.9rem;
}

.footer-links a {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-ndis img {
  max-width: 140px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: #444;
}

/* ======================================================
   CONTACT PAGE
   ====================================================== */

.contact-form {
  background-color: rgba(235,228,255,0.75);
  border-radius: var(--radius);
  padding: 3rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
}

/* CRISIS SUPPORT */
.crisis-box {
  background-color: rgba(220,38,38,0.1);
  border: 2px solid rgba(220,38,38,0.45);
  border-radius: var(--radius);
  padding: 2rem;
}

.crisis-box h3 {
  color: rgb(185,28,28);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu.open {
    display: flex;
  }

  .logo img {
    height: 48px; /* FIXED MOBILE SIZE */
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* ===============================
   GLOBAL LAYOUT STABILITY FIX
   =============================== */

.container,
.page-container,
main,
section > .inner,
.site-wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
/* ===============================
   CRISIS SUPPORT CARD (FIGMA MATCH)
   =============================== */

.value-card.crisis {
  border: 2px solid #e53935;
  background: rgba(229, 57, 53, 0.08);
}

.value-card.crisis h3,
.value-card.crisis strong {
  color: #e53935;
}

.value-card.crisis p {
  line-height: 1.6;
}

/* ===============================
   HEADER & LOGO CONTROL
   =============================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
}

.site-logo img {
  height: 90px;
  width: auto;
  max-width: none;
}

/* Tablet */
@media (max-width: 1024px) {
  .site-logo img {
    height: 72px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .site-logo img {
    height: 56px;
  }
}

/* ===============================
   NAV MENU FIX
   =============================== */

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.site-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* ===============================
   CONTACT SUCCESS POPUP
   =============================== */

.success-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.success-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.success-box h3 {
  margin-top: 0;
  color: #6b4ea0;
}

.success-box button {
  margin-top: 1.25rem;
  background: #6b4ea0;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
}

.success-box button:hover {
  opacity: 0.9;
}
.site-logo {
  height: 64px;
  width: auto;
  max-width: 100%;
  display: block;
}

header .logo,
header .logo a,
header .logo img {
  display: flex;
  align-items: center;
}

.logo img {
  height: 110px;
  width: auto;
}

header {
  padding: 8px 32px;
}

@media (max-width: 768px) {
  .logo img {
    height: 80px;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 30px;
  padding: 20px 0;
  font-size: 0.9rem;
}
.team-image img {
  width: 50%;
  max-width: 260px;
  height: auto;
}

@media (max-width: 768px) {
  .team-image img {
    width: 70%;
  }
}
