/* ============================================
   ACADIANA DEMENTIA NAVIGATOR — SHARED STYLES
   ============================================ */

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

:root {
  --navy: #1a3a4a;
  --navy-light: #2a4f63;
  --warm-white: #f7f5f2;
  --off-white: #faf9f7;
  --gray: #555555;
  --gray-light: #888888;
  --gray-border: #e0ddd8;
  --text: #333333;
  --serif: 'Playfair Display', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Lato', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

.nav-cta {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  border: 1.5px solid var(--navy);
  padding: 8px 22px;
  border-radius: 2px;
  letter-spacing: 0.08em !important;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--navy);
  color: #fff !important;
}

/* ---- LAYOUT ---- */
section { scroll-margin-top: 72px; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- TYPE ---- */
.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 16px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.22;
  margin-bottom: 28px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.28;
  margin-bottom: 20px;
}

h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }

/* ---- NATURE DIVIDER ---- */
.nature-divider {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.nature-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 74, 0.50);
}

/* ---- PAGE HEADER WITH NATURE IMAGE ---- */
.page-header {
  padding: 132px 40px 84px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 74, 0.56);
}

.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.page-header .section-label { color: rgba(255,255,255,0.5); }
.page-header h1 { color: #fff; }
.page-header .lead {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  line-height: 1.8;
}

/* ---- FOOTER ---- */
footer {
  background: #0f2330;
  padding: 36px 40px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand { display: flex; align-items: center; }
.footer-brand img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: 0.5; }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.7); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.03em;
}

/* ---- FADE IN ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- DROPDOWN ---- */
.nav-dropdown { position: relative; }

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 9px;
  opacity: 0.5;
  letter-spacing: 0;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--gray-border);
  border-top: 2px solid var(--navy);
  min-width: 210px;
  list-style: none;
  padding: 4px 0;
  z-index: 200;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li { border-bottom: 1px solid var(--gray-border); }
.dropdown-menu li:last-child { border-bottom: none; }

.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.dropdown-menu a:hover {
  color: var(--navy);
  background: var(--warm-white);
}

/* ---- HAMBURGER ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-right: -4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--gray-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 20px;
    backdrop-filter: blur(8px);
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid var(--gray-border); }
  .nav-links li:last-child { border-bottom: none; margin: 12px 20px 0; }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .nav-cta {
    display: block;
    text-align: center;
    padding: 12px 24px !important;
    border: 1.5px solid var(--navy);
  }

  /* Dropdown in mobile hamburger — always expanded */
  .nav-dropdown > a::after { display: none; }

  .dropdown-menu {
    display: block;
    position: static;
    transform: none;
    border: none;
    border-top: none;
    box-shadow: none;
    padding: 0;
    background: var(--warm-white);
    min-width: 0;
  }

  .dropdown-menu li { border-bottom: 1px solid var(--gray-border); }

  .dropdown-menu a {
    padding: 12px 24px 12px 40px;
    font-size: 11.5px;
    color: var(--gray-light);
  }

  .dropdown-menu a:hover { background: none; }

  .nav-inner { padding: 0 20px; }
  .container { padding: 0 20px; }
  .page-header { padding: 112px 20px 64px; }
  .nature-divider { background-attachment: scroll; height: 200px; }
  footer { padding: 28px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
