/* TOZ shared styles — design tokens, base reset, header/nav/mobile-menu/footer.
   Ported from the site-wide header/footer markup baked into each of the
   original Home/About/Services/Contact pages (they were identical apart
   from the active nav link, confirmed by diff 2026-08-07). */

:root {
  --toz-indigo:        #1C244B;
  --toz-indigo-alt:    #141436;
  --toz-black:         #090612;
  --toz-white:         #E5E4EB;
  --toz-teal:          #289e99;
  --toz-teal-bright:   #48cdc5;
  --toz-green-dark:    #1d3e43;
  --toz-green:         #1a5452;
  --toz-mauve:         #311436;
  --toz-teal-on-light: #176b68;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  --max-content: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
  background: var(--toz-indigo);
}
html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 300;
  color: var(--toz-black);
  background: var(--toz-indigo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  overflow-x: hidden;
}

main, section, header, footer, article, aside, figure { margin: 0; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

/* =============================================================================
   HEADER — floating, transparent → frosted glass on scroll
   ============================================================================= */

.toz-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  padding: 24px 48px;
  min-height: 96px;
  display: flex;
  align-items: center;
  border: none;
  transition:
    background 0.4s var(--ease-spring),
    border-bottom-color 0.4s var(--ease-spring);
}
.toz-header.is-scrolled {
  background: rgba(28, 36, 75, 0.35);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
          backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(229, 228, 235, 0.08);
}
/* Pages with no dark hero photo underneath (Privacy, Accessibility) have
   nothing to give the header's light nav text contrast at rest. A
   translucent tint here previously still measured only 3.71:1 against the
   light page background showing through it (short of the 4.5:1 required)
   — the fix is a fully opaque solid background instead of a blend, which
   guarantees contrast regardless of what's behind it and needs no
   is-scrolled distinction (there's no photo reveal to preserve here).
   Deliberately NOT applied to the photo-hero pages (Home/About/Services/
   Contact) — their hero__overlay already provides contrast, and forcing
   this there would flatten the transparent-header-over-artwork effect. */
body.no-hero .toz-header {
  background: var(--toz-indigo-alt);
}
.toz-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}
.toz-header__inner > .toz-logo    { justify-self: start; }
.toz-header__inner > .toz-donate  { justify-self: end; }

.toz-logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.toz-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.toz-logo-invert {
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease-spring);
}

.toz-nav ul { display: flex; justify-content: center; gap: 44px; }
.toz-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--toz-white);
  padding: 4px 0;
  position: relative;
  transition: color 0.3s var(--ease-spring);
}
.toz-nav a:hover { color: var(--toz-teal-bright); }
.toz-nav a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--toz-teal-bright);
}
.toz-nav a:focus-visible {
  outline: 2px solid var(--toz-teal-bright);
  outline-offset: 4px;
  border-radius: 2px;
}

.toz-donate {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s var(--ease-spring);
}
.toz-donate img,
.toz-header__donate img,
header img[alt*="Donate" i] {
  height: 52px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}
.toz-donate:hover { transform: translateY(-1px); }
.toz-donate:focus-visible { outline: 2px solid var(--toz-teal-bright); outline-offset: 4px; }

.toz-menu-toggle {
  display: none;
  width: 40px; height: 40px; padding: 8px;
  background: transparent; border: none; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.toz-menu-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--toz-white);
  transition: transform 0.3s var(--ease-spring), opacity 0.2s;
}
.toz-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.toz-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.toz-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.toz-mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background:
    url('/images/PXL_PORTRAIT_ORIGINAL_Hamburger-mobile.webp')
    center / cover no-repeat var(--toz-indigo);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  padding: 96px 32px 48px;
  display: flex;
  isolation: isolate;
}
.toz-mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(28, 36, 75, 0.68);
  pointer-events: none;
}
.toz-mobile-menu[hidden] { display: none; }
.toz-mobile-menu ul { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.toz-mobile-menu a {
  font-family: 'Karla', sans-serif;
  font-weight: 100;
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--toz-white);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(229, 228, 235, 0.08);
}
.toz-mobile-menu a:hover { color: var(--toz-teal-bright); }
.toz-mobile-menu__donate { margin-top: 16px; color: var(--toz-teal-bright) !important; }

/* =============================================================================
   IMAGE PLACEHOLDER — shared utility for content pages authoring sections
   ahead of real photos. Background/border/label use currentColor so one rule
   works on both light and dark section backgrounds. Label text comes from
   the data-label attribute; once a real <img> is added inside, :has() hides
   the placeholder chrome and lets the photo fill the box.
   ============================================================================= */

.img-ph {
  margin: 0;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.img-ph::before {
  content: attr(data-label);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.45;
  padding: 0 16px;
}
.img-ph:has(img) {
  background: none;
  border: none;
}
.img-ph:has(img)::before {
  content: none;
}
.img-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================================
   JUMP LINKS — on-page section nav, sits directly under a hero. Currently
   used on About; kept here (not page-scoped CSS) since it's a generic
   pattern any long content page could reuse.
   ============================================================================= */

.jump-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 20px 24px;
  background: var(--toz-indigo);
  color: var(--toz-white);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.jump-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 5px;
  color: var(--toz-white);
}
.jump-links a:hover { color: var(--toz-teal-bright); }
.jump-links a:focus-visible {
  outline: 2px solid var(--toz-teal-bright);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =============================================================================
   FOOTER (nav left, logo right, copyright below)
   ============================================================================= */

.toz-footer {
  background: var(--toz-indigo);
  color: var(--toz-white);
  padding: 48px 40px 32px;
}
.toz-footer__logo {
  display: block;
  width: fit-content;
  margin: 0 auto;
}
.toz-footer__logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.toz-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 20px auto 0;
  border-radius: 50%;
  color: var(--toz-white);
  transition: color 0.2s var(--ease-spring), background 0.2s var(--ease-spring);
}
.toz-footer__social:hover { color: var(--toz-teal-bright); background: rgba(229, 228, 235, 0.08); }
.toz-footer__social:focus-visible {
  outline: 2px solid var(--toz-teal-bright);
  outline-offset: 2px;
}
.toz-footer__social svg { width: 24px; height: 24px; }

.toz-footer__land {
  max-width: 760px;
  margin: 56px auto 0;
  padding-top: 32px;
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--toz-white);
  opacity: 0.85;
  text-align: center;
}
.toz-footer__land::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 1px;
  background: var(--toz-teal-bright);
}
.toz-footer__land-label {
  display: block;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--toz-teal-bright);
  margin-bottom: 14px;
}

.toz-footer__base {
  max-width: 1600px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(229, 228, 235, 0.08);
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--toz-white);
  opacity: 0.55;
}
.toz-footer__base p { margin: 0; }
.toz-footer__base a { text-decoration: underline; text-underline-offset: 2px; }
.toz-footer__base a:hover { color: var(--toz-teal-bright); }
.toz-footer__base a:focus-visible {
  outline: 2px solid var(--toz-teal-bright);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =============================================================================
   RESPONSIVE HEADER — was duplicated identically in all 4 page CSS files
   (leftover from the original per-page authoring, same class of bug as the
   other duplicates found this session); consolidated here as the single
   source of truth.
   ============================================================================= */

@media (max-width: 1024px) {
  .toz-header { padding: 20px 32px; min-height: 84px; }
  .toz-logo img { height: 46px; }
  .toz-nav ul { gap: 32px; }
  .toz-nav a { font-size: 14px; letter-spacing: 0.16em; }
}

@media (max-width: 768px) {
  .toz-header { padding: 14px 24px; min-height: 64px; }
  .toz-header.is-scrolled {
    background: rgba(28, 36, 75, 0.92);
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
  }
  /* Switched from the desktop 3-column grid (logo/nav/donate) to flex.
     With nav+donate hidden on mobile, only the logo and hamburger toggle
     remain — the grid's leftover "auto" middle track (sized for the now-gone
     nav) was catching the toggle by auto-placement instead of the true
     right-hand track, leaving it off-center and starving the logo's track of
     width (visibly squishing the logo). Flex + space-between puts the logo
     and toggle at opposite ends with no leftover-track ambiguity. */
  .toz-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .toz-nav, .toz-donate { display: none; }
  .toz-menu-toggle { display: inline-flex; }
  .toz-logo { gap: 10px; }
  .toz-logo img { height: 36px; }
}

/* =============================================================================
   PROSE — plain long-form text pages (Privacy, Accessibility statement).
   Light background/indigo text regardless of the rest of the page's dark
   theme, since these are read-heavy reference pages, not visual sections.
   ============================================================================= */

.prose {
  background: var(--toz-white);
  color: var(--toz-indigo);
  padding: 160px 24px 96px;
  min-height: 70vh;
}
.prose__inner {
  max-width: 760px;
  margin: 0 auto;
}
.prose h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 32px;
}
.prose h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  margin: 40px 0 12px;
}
.prose p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
}
.prose ul { list-style: disc; padding-left: 24px; margin: 0 0 16px; }
.prose li { font-family: 'Poppins', sans-serif; font-size: 16px; line-height: 1.7; margin-block: 10px; }
.prose a { color: var(--toz-teal-on-light); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--toz-indigo); }

@media (max-width: 768px) {
  .prose { padding-top: 120px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
