/* Willow Rose Foundation for Diabetes — willowrosefoundation.org.au */
:root {
  --primary: #1D3557;
  --primary-hover: #2A4B7C;
  --secondary: #E07A5F;
  --secondary-hover: #C96549;
  --accent: #81B29A;
  --bg: #FAF9F6;
  --bg-alt: #F3F1EA;
  --text: #2B2D42;
  --muted: #4A5568;
  --border: #E2E8F0;
  --radius: 1rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--primary); }
h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 3vw, 1.45rem); font-weight: 600; }
p { color: var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--primary); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section-alt { background-color: var(--bg-alt); }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}
.section-intro { max-width: 46rem; color: var(--muted); margin-top: 0.9rem; font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Compliance strip */
.compliance-strip {
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.55rem 1rem;
}
.compliance-strip strong { color: #F2CC8F; font-weight: 600; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--primary);
  line-height: 1.15;
}
.brand-sub { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--secondary); }
.main-nav a.active { color: var(--primary); border-bottom-color: var(--secondary); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 1.15rem;
  color: var(--primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: 9999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary { background-color: var(--secondary); color: #fff; }
.btn-primary:hover { background-color: var(--secondary-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--bg-alt); }
.nav-cta { padding: 0.6rem 1.35rem; font-size: 0.9rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,53,87,0.72) 0%, rgba(29,53,87,0.55) 100%); }
.hero-content { position: relative; max-width: 46rem; padding: 5rem 0; }
.hero-content h1, .hero-content p { color: #fff; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 9999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.4rem;
}
.hero-content .lead { color: rgba(255,255,255,0.92); margin-top: 1.2rem; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* Page hero (inner pages) */
.page-hero { background-color: var(--primary); color: #fff; padding: 4.5rem 0 4rem; }
.page-hero h1, .page-hero p { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.88); margin-top: 1rem; max-width: 44rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.9); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.card {
  background-color: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -8px rgba(29,53,87,0.16); }
.card img { height: 210px; width: 100%; object-fit: cover; }
.card-body { padding: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.card-body p { color: var(--muted); font-size: 0.97rem; }
.card-link { margin-top: auto; font-weight: 600; color: var(--secondary); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Stats */
.stats-band { background-color: var(--primary); color: #fff; padding: 3.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.stat-value { font-family: 'Outfit', sans-serif; font-size: 2.6rem; font-weight: 700; color: #F2CC8F; }
.stat-label { font-size: 0.95rem; color: rgba(255,255,255,0.85); margin-top: 0.3rem; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-top: 2.5rem; }
.split img { border-radius: var(--radius); box-shadow: 0 18px 40px -14px rgba(29,53,87,0.25); width: 100%; height: 400px; object-fit: cover; }
.split-text p + p { margin-top: 1rem; }
.split-text p { color: var(--muted); }
.split-text ul { margin: 1rem 0 0 1.2rem; color: var(--muted); }
.split-text li { margin-bottom: 0.5rem; }

/* CTA band */
.cta-band { background-color: var(--secondary); padding: 4.5rem 0; text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { max-width: 40rem; margin: 1rem auto 0; color: rgba(255,255,255,0.94); }
.cta-band .btn { margin-top: 2rem; }

/* Checklist */
.check-list { list-style: none; margin-top: 1.5rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.9rem; color: var(--muted); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* News */
.article { max-width: 50rem; margin: 0 auto; padding: 3rem 0; border-bottom: 1px solid var(--border); }
.article:last-child { border-bottom: none; }
.article-meta { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 0.6rem; }
.article h2 { margin-bottom: 1rem; }
.article p { color: var(--muted); margin-bottom: 1rem; }
.tag { display: inline-block; background: var(--bg-alt); border: 1px solid var(--border); color: var(--primary); border-radius: 9999px; padding: 0.25rem 0.85rem; font-size: 0.78rem; font-weight: 600; margin-right: 0.4rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; margin-top: 2.5rem; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; }
.info-card h3 { margin-bottom: 0.6rem; }
.info-card p { color: var(--muted); }
.info-card a { color: var(--secondary); font-weight: 600; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

form.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; }
.form-row { margin-bottom: 1.3rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--primary); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--bg);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

/* Legal pages */
.legal-content { max-width: 48rem; }
.legal-content h2 { margin: 2.4rem 0 0.8rem; }
.legal-content h3 { margin: 1.6rem 0 0.5rem; }
.legal-content p, .legal-content li { color: var(--muted); margin-bottom: 0.8rem; }
.legal-content ul { margin-left: 1.3rem; }
.legal-updated { font-size: 0.85rem; color: var(--muted); font-style: italic; margin-top: 0.8rem; }

/* Footer */
.site-footer { background-color: #22243a; color: rgba(255,255,255,0.82); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: 1rem; }
.site-footer h4 { font-size: 1rem; }
.site-footer p { font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.footer-abn { margin-top: 1.2rem; font-weight: 600; color: #F2CC8F !important; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: #F2CC8F; }
.footer-contact p { margin-bottom: 0.7rem; }
.footer-contact a { color: #F2CC8F; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.75); text-decoration: none; margin-left: 1.2rem; }
.footer-bottom a:hover { color: #F2CC8F; }

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 66vh; }
}
