/*
 * FILE: assets/css/layout.css
 * PURPOSE: Container, section rhythm, header, footer, breadcrumbs, nav.
 */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---- Section tones ---- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-cream { background: var(--cream); }
.section-sand  { background: var(--sand); }
.section-navy  { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: var(--cream); }

/* ---- Decorative blurred orbs ---- */
.orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}
.orb-green { background: rgba(99, 172, 94, 0.12); width: 24rem; height: 24rem; right: -8rem; top: 0; }
.orb-clay  { background: rgba(201, 112, 79, 0.12); width: 20rem; height: 20rem; left: -6rem; bottom: 0; }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 219, 203, 0.7);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand-mark { height: 2.75rem; width: auto; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--green-deep);
  margin-top: 0.15rem;
}

.primary-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(26, 55, 75, 0.9);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-link:hover { background: var(--sand); }
.nav-link.is-current { color: var(--green-deep); }
.chevron { transition: transform 0.2s var(--ease); }

/* Desktop dropdown */
.dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  width: 14rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 0.5rem;
  box-shadow: var(--shadow-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: all 0.18s var(--ease);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0.25rem);
}
.dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(26, 55, 75, 0.9);
}
.dropdown li a:hover { background: var(--sand); }

.header-ctas { display: none; align-items: center; gap: 0.5rem; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  border-radius: var(--radius-full);
  color: var(--navy);
}
.nav-toggle-bar { width: 22px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer { border-top: 1px solid var(--line); background: var(--cream); }
.mobile-nav { display: flex; flex-direction: column; gap: 0.25rem; padding-block: 1rem; }
.mobile-link, .mobile-group-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}
.mobile-submenu { display: flex; flex-direction: column; margin-left: 0.75rem; padding-left: 0.75rem; border-left: 1px solid var(--line); }
.mobile-submenu a { padding: 0.5rem 1rem; font-size: 0.9rem; font-weight: 700; color: rgba(26, 55, 75, 0.8); border-radius: var(--radius-xl); }
.mobile-group-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.mobile-ctas { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }

/* ============================ BREADCRUMBS ============================ */
.breadcrumbs { background: var(--cream); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding-block: 0.85rem; font-size: 0.82rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumbs a { color: var(--muted); font-weight: 700; }
.breadcrumbs a:hover { color: var(--green-deep); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 800; }
.breadcrumbs .sep { color: var(--line); }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--navy-deep); color: var(--cream); }
.crisis-bar { background: var(--navy); border-bottom: 1px solid rgba(250, 246, 239, 0.1); }
.crisis-bar .container { padding-block: 1rem; text-align: center; font-size: 0.875rem; color: rgba(250, 246, 239, 0.85); }

.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); }
.footer-name-accent { font-family: var(--font-display); font-size: 1.1rem; color: var(--green); margin-top: -0.25rem; }
.footer-tagline { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; color: rgba(250, 246, 239, 0.75); }
.footer-area { margin-top: 0.75rem; font-size: 0.875rem; color: rgba(250, 246, 239, 0.6); }
.footer-heading { color: var(--cream); font-family: var(--font-body); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; }
.footer-links, .footer-contact { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.footer-links a, .footer-contact a { color: rgba(250, 246, 239, 0.75); transition: color 0.15s var(--ease); }
.footer-links a:hover, .footer-contact a:hover { color: var(--green); }
.footer-portal { color: var(--green) !important; font-weight: 800; }
.hours-line { display: block; color: rgba(250, 246, 239, 0.75); }

.footer-legal { border-top: 1px solid rgba(250, 246, 239, 0.1); }
.footer-legal-inner { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; padding-block: 1.5rem; font-size: 0.75rem; color: rgba(250, 246, 239, 0.6); }
.footer-legal-links { display: flex; gap: 1.25rem; }
.footer-legal-links a:hover { color: var(--green); }

/* Cookie / analytics notice */
.cookie-notice {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 60;
  max-width: 30rem;
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-hover);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ink);
}
.cookie-notice p { flex: 1; }
