/* ============================================================
   AUSTIN LIGHTHOUSE FOR THE BLIND — styles.css
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  --navy-900: #0C1D30;
  --navy-700: #1D4670;
  --navy-500: #214D7C;
  --navy-300: #7097C1;
  --navy-100: #E6ECF3;
  --red-700:  #7B211D;
  --red-300:  #D28C88;
  --gold:     #FFCB21;
  --white:    #FAF8F5;
  --mist:     #F5F4F2;
  --ink:      #1C1917;
  --slate:    #44403C;
  --fog:      #D6D3D1;
  --stone:    #635D59;

  /* Layout */
  --content-max: 1400px;
}

/* --- SKIP LINKS --- */
.skip-links {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
}

.skip-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 12px 24px;
  background: var(--navy-900);
  color: var(--white);
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-decoration: underline;
  white-space: nowrap;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  z-index: 9999;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 18px;
  color: var(--ink);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

address {
  font-style: normal;
}

fieldset {
  border: none;
}

/* --- SHARED UTILITY --- */

/* Screen-reader-only text — visually hidden but announced by assistive tech */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.gold {
  color: var(--gold);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  padding: 16px 40px;
  border-radius: 32px;
  border: 3px solid transparent;
  cursor: pointer;
  text-align: center;
  min-width: 240px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-contact {
  background-color: var(--navy-100);
  border-color: var(--navy-300);
  color: var(--navy-900);
}

/* dark text on light bg → dark bg, white text */
.btn-contact:hover,
.btn-contact:focus-visible {
  background-color: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.btn-donate {
  background-color: var(--red-700);
  border-color: var(--red-300);
  color: var(--white);
}

/* red primary → white tertiary with red text */
.btn-donate:hover,
.btn-donate:focus-visible {
  background-color: var(--white);
  border-color: var(--red-700);
  color: var(--red-700);
}

.btn-outline {
  background-color: var(--white);
  border-color: var(--navy-900);
  color: var(--navy-700);
  min-width: 0;
  width: 100%;
}

/* white tertiary → light blue secondary with dark navy text */
.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--navy-100);
  border-color: var(--navy-300);
  color: var(--navy-900);
}

/* ============================================================
   HEADER NAV
   ============================================================ */
.header-nav {
  position: relative;
  height: 204px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: max(40px, calc((100% - var(--content-max)) / 2 + 40px));
}

/* Nav sits full-width behind the logo */
.nav-stack {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
}

.top-nav {
  background-color: var(--navy-700);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
  padding: 16px max(40px, calc((100% - var(--content-max)) / 2 + 40px));
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.search-btn img {
  width: 37px;
  height: 37px;
}

.global-nav {
  background-color: var(--mist);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  padding: 16px max(40px, calc((100% - var(--content-max)) / 2 + 40px)) 16px 0;
  border-radius: 0 0 8px 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 70px;
  padding: 0 16px;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--navy-900);
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 6px;
}

/* dark text on light bg → dark bg, white text */
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
  background-color: var(--navy-900);
  outline: none;
}

/* ============================================================
   SERVICES DROPDOWN
   ============================================================ */

/* Wrapper — stretches to fill the full nav-bar height so the
   dropdown anchors exactly to the nav's bottom edge */
.nav-item {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  padding: 33px 58px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  white-space: nowrap;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 150;
  /* Hidden with smooth fade-in */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

/* Show on hover (mouse) or when button is explicitly expanded (keyboard) */
.nav-item:hover .nav-dropdown,
.nav-link[aria-expanded="true"] ~ .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown links */
.dropdown-item {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--navy-900);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
  padding: 8px 12px;
  margin: -8px -12px;
  border-radius: 6px;
}

/* dark text on white bg → dark bg, white text */
.dropdown-item:hover,
.dropdown-item:focus-visible {
  color: var(--white);
  background-color: var(--navy-900);
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Logo overlaps the nav */
.header-logo {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 362px;
  height: 165px;
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.section-hero {
  position: relative;
  height: 782px;
  display: flex;
  align-items: center;
  padding-left: 40px;
  padding-right: 100px;
  overflow: hidden;
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Decorative visual layer — fixed at design dimensions, scaled from top-right */
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 1440px;
  height: 782px;
  pointer-events: none;
  transform-origin: top right;
  transform: scale(tan(atan2(100vw, 1440px)));
}

.hero-ellipse-large {
  position: absolute;
  left: 860px;
  top: 34px;
  width: 750px;
  height: 714px;
  background: url('images/decorative/hero_ellipse_large.svg') center / cover no-repeat;
}

.hero-ellipse-small {
  position: absolute;
  left: 651px;
  top: 257px;
  width: 419px;
  height: 419px;
  background: url('images/decorative/hero_ellipse_small.svg') center / cover no-repeat;
}

/* Photo clipped to ellipse mask — container matches the mask's natural 686×642 dimensions */
.hero-photo-mask {
  position: absolute;
  left: 746px;
  top: 70px;
  width: 686px;
  height: 642px;
  -webkit-mask-image: url('images/decorative/hero_mask.svg');
  mask-image: url('images/decorative/hero_mask.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-photo-mask img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Text content */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 712px;
  display: flex;
  flex-direction: column;
}

.hero-content h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 88px;
  line-height: 1.1;
  color: var(--ink);
  height: clamp(200px, 28vw, 444px);
  display: flex;
  align-items: center;
}

.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px;
  max-width: 441px;
}

.hero-sub p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.hero-cta {
  width: 100%;
}

/* ============================================================
   IMPACT SECTION
   ============================================================ */
.section-impact {
  background-color: var(--navy-700);
  display: flex;
  min-height: 488px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.impact-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(40px, 7.2vw, 104px);
}

.impact-copy-inner {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.impact-copy h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--white);
}

.impact-copy p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
}

.impact-stats {
  background-color: var(--white);
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px clamp(32px, 4.4vw, 64px);
}

.stats-grid {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

#impact-statistics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  list-style: none;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 32px 12px 0;
}

.stat-item.border-right {
  border-right: 1px solid var(--fog);
}

.stat-number {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--navy-700);
  display: block;
  line-height: 1;
}

.stat-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--navy-700);
  display: block;
  line-height: 1.4;
}

.stat-desc {
  font-size: 18px;
  line-height: 1.4;
  color: var(--slate);
}

/* ============================================================
   CARDS SECTION
   ============================================================ */
.section-cards {
  background-color: var(--mist);
  padding: 40px 40px 72px;
}

.cards-inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 32px 0;
  max-width: var(--content-max);
  margin: 0 auto;
}

.cards-heading {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
}

.cards-grid,
.other-ways-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.stat-card {
  background-color: var(--white);
  border: 1px solid var(--fog);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.card-photo {
  height: 348px;
  min-height: 348px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 430px;
  padding: 40px 32px;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.card-text h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ink);
}

.card-text p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.section-video {
  display: flex;
  min-height: 488px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.video-media {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px;
}

/* Responsive 16:9 iframe container */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-wrapper:focus-within {
  box-shadow: 0 0 0 3px var(--gold), 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Focus ring is on the wrapper via :focus-within — suppress browser default on iframe */
.video-wrapper iframe:focus {
  outline: none;
}

.video-copy {
  background-color: var(--navy-700);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(40px, 7.2vw, 104px);
  overflow: hidden;
}

.video-copy-inner {
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-copy h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--white);
}

.video-copy p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.section-testimonials {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 72px 0;
}

.testimonial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
}

.testimonial-photo {
  flex-shrink: 0;
  width: 300px;
  height: 308px;
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-quote {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 8px;
  max-width: 712px;
}

.quote-body {
  display: flex;
  gap: 4px;
  align-items: flex-start;
}

.quote-open {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
}

.quote-close {
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 4px;
}

.testimonial-quote blockquote {
  flex: 1;
}

.testimonial-quote blockquote p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.testimonial-quote figcaption {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-align: right;
  padding-left: 16px;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.section-newsletter {
  background-color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 112px 40px;
}

.newsletter-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  max-width: 548px;
}

.newsletter-copy h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: var(--white);
}

.newsletter-copy > p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
  max-width: 433px;
}

.signup-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
  max-width: 557px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink);
  padding: 5px;
}

.form-field input[type="email"],
.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="tel"] {
  background-color: var(--mist);
  border: 1px solid var(--fog);
  border-radius: 5px;
  padding: 10px;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: var(--stone);
  width: 100%;
  transition: border-color 0.2s;
}

.form-field input[type="email"]:focus-visible,
.form-field input[type="text"]:focus-visible,
.form-field input[type="number"]:focus-visible,
.form-field input[type="tel"]:focus-visible {
  border-color: var(--navy-300);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.form-interests {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.interest-legend {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  float: left;
  width: 100%;
  margin-bottom: 16px;
}

.checkboxes {
  display: flex;
  align-items: center;
  gap: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background-color: var(--mist);
  border: 1px solid var(--fog);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}

.checkbox-label input[type="checkbox"]:checked {
  background-color: var(--navy-700);
  border-color: var(--navy-700);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 6px;
  height: 11px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.signup-btn {
  width: 250px;
  align-self: flex-start;
}

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.section-partners {
  padding: 64px 40px;
}

.partners-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
}

.partners-heading {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
}

.ticker-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.ticker-pause-btn .icon-play { display: none; }
.ticker-pause-btn.is-paused .icon-pause { display: none; }
.ticker-pause-btn.is-paused .icon-play { display: block; }

.ticker-pause-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--navy-900);
  background: transparent;
  color: var(--navy-900);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.ticker-pause-btn:hover {
  background: var(--navy-900);
  color: var(--white);
}

.ticker-pause-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.ticker-track {
  width: 100%;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  width: max-content;
  animation: ticker-scroll 70s linear infinite;
}

.ticker-track:hover .ticker-inner,
.ticker-track.is-paused .ticker-inner {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}

.partner-logo {
  width: 180px;
  height: 120px;
  flex-shrink: 0;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-inner {
    animation: none;
  }
  .ticker-pause-btn {
    display: none;
  }
  .ticker-list + .ticker-list {
    display: none;
  }
}

/* ============================================================
   MOBILE NAV CONTROLS — hidden on desktop, shown on mobile
   ============================================================ */
.mobile-nav-controls {
  display: none;
}

.mobile-menu-btn {
  background-color: var(--red-700);
  border: none;
  border-radius: 6px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  flex-shrink: 0;
}

.mobile-menu-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.mobile-menu-btn .icon-close   { display: none; }
.mobile-menu-btn.is-open .icon-hamburger { display: none; }
.mobile-menu-btn.is-open .icon-close    { display: block; }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
}

.mobile-nav-overlay.is-open {
  display: block;
}

/* Each panel covers the full overlay — slides in/out independently */
.mobile-nav-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: var(--navy-700);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main panel: visible by default, slides out left when sub-panel opens */
#mobile-panel-main {
  transform: translateX(0);
}

.mobile-nav-overlay.is-sub-open #mobile-panel-main {
  transform: translateX(-100%);
}

/* Services panel: starts off-screen right, slides in when sub-panel opens */
#mobile-panel-services {
  transform: translateX(100%);
}

.mobile-nav-overlay.is-sub-open #mobile-panel-services {
  transform: translateX(0);
}

/* Close × button — top-right */
.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  opacity: 0.9;
  padding: 40px 32px;
  flex-shrink: 0;
  line-height: 0;
  align-self: flex-end;
}

.mobile-nav-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Nav body: links + action buttons */
.mobile-nav-body {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 0 32px;
  width: 100%;
  flex-shrink: 0;
}

/* Nav links list */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 8px 16px;
  width: 100%;
  color: var(--white);
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

/* white text on blue bg → gold on hover */
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--gold);
  opacity: 1;
  outline: none;
}

.mobile-nav-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Contact + Donate buttons */
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}

.mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 160px;
  padding: 16px 32px;
  border-radius: 32px;
  border-width: 3px;
  border-style: solid;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mobile-btn-contact {
  background-color: var(--navy-100);
  border-color: var(--navy-300);
  color: var(--navy-900);
}

/* dark text on light bg → dark bg, white text */
.mobile-btn-contact:hover,
.mobile-btn-contact:focus-visible {
  background-color: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.mobile-btn-donate {
  background-color: var(--red-700);
  border-color: var(--red-300);
  color: var(--white);
}

/* red primary → white tertiary with red text */
.mobile-btn-donate:hover,
.mobile-btn-donate:focus-visible {
  background-color: var(--white);
  border-color: var(--red-700);
  color: var(--red-700);
}

/* Social icon row — anchored to the bottom */
.mobile-nav-socials {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
}

.mobile-nav-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.mobile-nav-socials a:hover {
  opacity: 0.8;
}

.mobile-nav-socials a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* "Our services" trigger — button that looks like a nav link */
button.mobile-nav-link {
  background: none;
  border: none;
  cursor: pointer;
  justify-content: space-between;
  text-align: left;
}

.mobile-nav-chevron {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Back button — Panel 2 top */
.mobile-nav-back {
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  padding: 40px 32px 10px;
  flex-shrink: 0;
  text-decoration: none;
}

/* white text on blue bg → gold on hover */
.mobile-nav-back:hover,
.mobile-nav-back:focus-visible {
  color: var(--gold);
  opacity: 1;
  outline: none;
}

.mobile-nav-back:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Sub-nav links — Panel 2 */
.mobile-subnav-links {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  margin-top: 120px;
  flex-shrink: 0;
}

.mobile-subnav-links .mobile-nav-link {
  white-space: normal;
  height: auto;
  min-height: 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--navy-700);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding: 25px 40px;
  align-items: flex-start;
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 329px;
  flex-shrink: 0;
}

.footer-logo {
  width: 213px;
  height: 172px;
  object-fit: cover;
}

.footer-address {
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-item img {
  flex-shrink: 0;
}

.contact-item a {
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
  transition: color 0.2s;
}

.contact-item a[href^="mailto"] {
  text-decoration: underline;
}

/* white text on blue bg → gold on hover */
.contact-item a:hover,
.contact-item a:focus-visible {
  color: var(--gold);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 45px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.8;
}

/* Main footer nav */
.footer-nav {
  width: 328px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.footer-nav li,
.footer-nav-top li,
.footer-nav-bottom li {
  height: 70px;
  display: flex;
  align-items: flex-start;
  padding: 8px 16px 8px 0;
  overflow: hidden;
}

.footer-nav a,
.footer-nav-top a,
.footer-nav-bottom a {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  color: var(--white);
  display: block;
  transition: color 0.2s;
}

/* white text on blue bg → gold on hover */
.footer-nav a:hover,
.footer-nav-top a:hover,
.footer-nav-bottom a:hover,
.footer-nav a:focus-visible,
.footer-nav-top a:focus-visible,
.footer-nav-bottom a:focus-visible {
  color: var(--gold);
}

/* Secondary footer nav */
.footer-nav-secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-self: stretch;
  width: 328px;
  flex-shrink: 0;
}

.footer-nav-top,
.footer-nav-bottom {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.footer-nav-top {
  padding-bottom: 16px;
}

.footer-nav-bottom {
  border-top: 2px solid var(--navy-300);
  padding-top: 8px;
  padding-bottom: 50px;
}


/* ============================================================
   DONATE PAGE — DONATION FORM
   ============================================================ */
.section-donate-form {
  padding: 0 40px 80px;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.donate-section-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
  padding-top: 56px;
}

.donation-form {
  max-width: 1244px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.donation-step {
  display: flex;
  align-items: stretch;
  background-color: var(--white);
  border: 1px solid var(--fog);
  border-radius: 8px;
  width: 100%;
}

.step-sidebar {
  width: 156px;
  flex-shrink: 0;
  background-color: var(--navy-500);
  border-radius: 8px 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.step-number {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 88px;
  line-height: 1.1;
  color: var(--white);
  text-align: center;
}

.step-content {
  flex: 1;
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ink);
  padding-top: 32px;
}

.step-subtitle {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink);
}

.step-info {
  background-color: var(--navy-100);
  border-radius: 10px;
  padding: 16px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  width: 100%;
}

/* Amount preset buttons */
.amount-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.amount-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 32px;
  border: 3px solid var(--navy-900);
  background-color: var(--white);
  color: var(--navy-700);
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  min-width: 240px;
  height: 69px;
}

.amount-btn:hover {
  background-color: var(--navy-100);
}

.amount-btn.is-selected {
  background-color: var(--navy-700);
  border-color: var(--navy-900);
  color: var(--white);
}

.amount-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Donation type pill buttons */
.donation-type-btns {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
}

/* Personal info fields */
.personal-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 420px;
}

/* Honor/memorial checkbox */
.honor-checkbox {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  max-width: 769px;
}

.honor-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: var(--mist);
  border: 1px solid var(--fog);
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}

.honor-checkbox input[type="checkbox"]:checked {
  background-color: var(--navy-700);
  border-color: var(--navy-700);
}

.honor-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.honor-checkbox input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.honor-checkbox span {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink);
}

/* Donate CTA button */
.donate-cta {
  font-size: 30px;
  padding: 16px 40px;
  min-width: 240px;
}

.donate-disclaimer {
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  max-width: 815px;
}

/* ============================================================
   DONATE PAGE — EMPLOYEE MATCHING
   ============================================================ */
.section-employee-match {
  background-color: var(--mist);
  padding: 48px 40px 56px;
}

.employee-match-card {
  max-width: 1268px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  padding: 32px 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.employee-match-card h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ink);
}

.employee-match-card > p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  max-width: 700px;
}

.employer-search {
  width: 100%;
  max-width: 700px;
  text-align: left;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--mist);
  border: 1px solid var(--fog);
  border-radius: 5px;
  padding: 10px;
}

.search-input-wrap img {
  flex-shrink: 0;
}

.search-input-wrap input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: var(--stone);
  outline: none;
  min-width: 0;
}

/* ============================================================
   DONATE PAGE — OTHER WAYS TO GIVE
   ============================================================ */
.section-other-ways {
  background-color: var(--mist);
  padding: 40px 40px 72px;
}

.other-ways-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.other-ways-inner > h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
}

/* ============================================================
   RESPONSIVE — NARROW (max-width: 960px)
   Below this width 3 card columns become too cramped — collapse
   both grids to a single stacked column.
   ============================================================ */
@media (max-width: 960px) {
  .cards-grid,
  .other-ways-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — NAV SCALE DOWN (max-width: 1280px)
   Reduce nav text before items start crowding the logo.
   ============================================================ */
@media (max-width: 1280px) {

  .global-nav {
    gap: 4px;
  }

  .nav-link {
    font-size: 22px;
    height: 56px;
    padding: 0 10px;
  }

}

/* ============================================================
   RESPONSIVE — NAV COLLAPSE (max-width: 1200px)
   Switch to hamburger menu before nav items overlap the logo.
   Logo (362px) + 40px padding + nav items (~800px) needs ~1200px.
   ============================================================ */
@media (max-width: 1200px) {

  /* --- HEADER --- */
  .header-nav {
    height: auto;
    background-color: var(--navy-700);
  }

  .header-inner {
    padding: 16px;
    justify-content: space-between;
    align-items: center;
  }

  /* Collapse nav into a full-screen overlay; shown via JS */
  .nav-stack {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: var(--navy-700);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 24px 40px;
    overflow-y: auto;
    display: none;
  }

  .nav-stack.is-open {
    display: flex;
  }

  .top-nav {
    background: transparent;
    padding: 0;
    gap: 0;
    justify-content: flex-start;
  }

  /* Contact/donate/search move to overlay — hide in top-nav on mobile */
  .top-nav .btn-contact,
  .top-nav .btn-donate,
  .top-nav .search-btn {
    display: none;
  }

  .global-nav {
    background: transparent;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    border-radius: 0;
    gap: 0;
  }

  .nav-link {
    font-size: 32px;
    height: 64px;
    color: var(--white);
    padding: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  /* Logo and mobile controls sit above the overlay */
  .header-logo {
    width: auto;
    height: 60px;
    position: relative;
    z-index: 101;
  }

  .header-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
  }

  .mobile-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 101;
  }

  .mobile-nav-controls .search-btn {
    width: 48px;
    height: 48px;
    padding: 6px;
  }

  /* --- FOOTER --- */
  .footer-nav {
    display: none;
  }

}

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* --- BUTTONS --- */
  .btn {
    font-size: 24px;
    padding: 14px 32px;
  }

  /* --- HERO --- */
  .section-hero {
    height: auto;
    flex-direction: column;
    padding: 0;
    align-items: stretch;
    overflow: visible;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    transform: none;
  }

  .hero-ellipse-large,
  .hero-ellipse-small {
    display: none;
  }

  .hero-photo-mask {
    position: absolute;
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: none;
    mask-image: none;
    -webkit-mask-size: unset;
    mask-size: unset;
    -webkit-mask-position: unset;
    mask-position: unset;
  }

  .hero-photo-mask img {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
  }

  .donate-hero .hero-photo-mask img {
    object-position: top center;
  }

  .hero-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 24px;
    gap: clamp(8px, 2.5vw, 16px);
  }

  .hero-content h1 {
    font-size: 56px;
    height: auto;
    line-height: 1.05;
  }

  .hero-sub {
    width: 100%;
    padding: 0;
  }

  .hero-cta {
    width: auto;
    min-width: 0;
    align-self: center;
  }

  /* --- IMPACT --- */
  .section-impact {
    flex-direction: column;
  }

  .impact-copy {
    padding: 40px 24px;
  }

  .impact-stats {
  display: flex;
  /*height: 488px;*/
  padding: 0 64px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex: 1 0 0;
  }

  #impact-statistics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--fog);
    padding: 16px 0;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  /* --- CARDS --- */
  .section-cards {
    padding: 40px 16px;
  }

  .cards-heading {
    font-size: 32px;
  }

  /* --- VIDEO --- */
  .section-video {
    flex-direction: column;
  }

  .video-media {
    padding: 24px 16px;
  }

  .video-copy {
    width: 100%;
    padding: 32px 24px;
  }

  /* --- TESTIMONIALS --- */
  .section-testimonials {
    padding: 48px 0;
  }

  .testimonial {
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    gap: 24px;
  }

  /* Right-side testimonial: keep photo on top, quote below */
  .testimonial-right {
    flex-direction: column-reverse;
  }

  .testimonial-photo {
    width: 180px;
    height: 180px;
  }

  .testimonial-quote {
    max-width: 100%;
  }

  /* --- NEWSLETTER --- */
  .section-newsletter {
    flex-direction: column;
    gap: 40px;
    padding: 64px 16px;
    align-items: center;
  }

  .newsletter-copy {
    width: 100%;
  }

  .newsletter-copy > p:not(.eyebrow) {
    max-width: 100%;
  }

  .signup-card {
    width: 100%;
    padding: 24px;
  }

  .checkboxes {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .signup-btn {
    width: 100%;
    min-width: 0;
  }

  /* --- DONATE PAGE --- */
  .section-donate-form {
    padding: 0 16px 48px;
  }

  .donate-section-title {
    font-size: 40px;
    padding-top: 40px;
  }

  .donation-step {
    flex-direction: column;
  }

  .step-sidebar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    padding: 12px;
    min-height: 80px;
  }

  .step-number {
    font-size: 48px;
  }

  .step-content {
    padding: 20px 20px;
  }

  .step-title {
    font-size: 28px;
  }

  .step-subtitle {
    font-size: 18px;
  }

  .amount-btn {
    font-size: 20px;
    padding: 12px 24px;
    min-width: 0;
    flex: 1 1 calc(50% - 8px);
    height: auto;
  }

  .personal-fields {
    max-width: 100%;
  }

  .honor-checkbox span {
    font-size: 18px;
  }

  .section-employee-match {
    padding: 40px 16px;
  }

  .employee-match-card {
    padding: 32px 24px;
  }

  .employee-match-card h2 {
    font-size: 28px;
  }

  .section-other-ways {
    padding: 40px 16px 56px;
  }

  .other-ways-inner > h2 {
    font-size: 40px;
  }

  /* --- PARTNERS --- */
  .section-partners {
    padding: 48px 16px;
  }

  /* --- FOOTER --- */
  .footer-inner {
    flex-direction: column;
    gap: 32px;
    padding: 32px 16px;
  }

  .footer-left {
    width: 100%;
  }

  .footer-nav,
  .footer-nav-secondary {
    width: 100%;
  }

  .footer-nav li,
  .footer-nav-top li,
  .footer-nav-bottom li {
    height: 42px;
  }

  .footer-nav a,
  .footer-nav-top a,
  .footer-nav-bottom a {
    font-size: 20px;
  }

  .footer-nav-bottom {
    border-top-color: #E5EDEF;
  }
}
