/* ==========================================================================
   Lothel Eddie — styles.css
   Palette: Deep Navy + Slate Grey + Signal Gold accent
   Type:    Fraunces (display) + Inter (body)
   ========================================================================== */

:root {
  /* Palette */
  --navy:        #0F2A44;
  --navy-deep:   #0B1E33;
  --slate:       #475569;
  --slate-soft:  #64748B;
  --surface:     #F8FAFC;
  --surface-alt: #E2E8F0;
  --pale:        #F1F5F9;
  --ink:         #0B1220;
  --gold:        #C9A24A;
  --gold-deep:   #A8842D;

  /* Type */
  --font-display: 'Fraunces', 'Source Serif 4', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --text-xs:   0.8125rem;   /* 13px */
  --text-sm:   0.9375rem;   /* 15px */
  --text-base: 1rem;        /* 16px */
  --text-lg:   1.1875rem;   /* 19px */
  --text-xl:   clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);  /* 22-30 */
  --text-2xl:  clamp(1.875rem, 1.4rem + 2vw, 2.75rem);     /* 30-44 */
  --text-hero: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem);      /* 40-72 */

  /* Space */
  --gap-1: 0.25rem;
  --gap-2: 0.5rem;
  --gap-3: 0.75rem;
  --gap-4: 1rem;
  --gap-5: 1.25rem;
  --gap-6: 1.5rem;
  --gap-8: 2rem;
  --gap-10: 2.5rem;
  --gap-12: 3rem;
  --gap-16: 4rem;
  --gap-20: 5rem;

  --container-max: 1200px;
  --section-pad-y: clamp(4rem, 6vw + 2rem, 7rem);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 42, 68, 0.06), 0 1px 3px rgba(15, 42, 68, 0.04);
  --shadow:    0 4px 14px rgba(15, 42, 68, 0.08), 0 2px 6px rgba(15, 42, 68, 0.05);
  --shadow-lg: 0 14px 40px rgba(15, 42, 68, 0.12), 0 4px 14px rgba(15, 42, 68, 0.06);

  --header-h: 72px;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

body.modal-open {
  overflow: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover { color: var(--gold-deep); }

button {
  font: inherit;
  cursor: pointer;
}

input,
select,
textarea,
button {
  font: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Eyebrows + section heads */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--gap-4) 0;
}

/* Container scales to the image size and isolates the layout */
.cf-image-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Ensures the image is responsive and blocks extra spacing */
.cf-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Light gray panel covers the image and starts completely hidden */
.cf-hover-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(240, 240, 240, 0.95); /* Light gray background */
  opacity: 0;
  transition: opacity 0.4s ease-in-out; /* Smooth fade in and out */
  
  /* Centers the text perfectly inside the panel */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Triggers the fade-in when the mouse hovers over the container */
.cf-image-wrapper:hover .cf-hover-panel {
  opacity: 1;
}

/* Styled paragraph text inherits your website's native typography */
.cf-hover-text {
  color: #000000; /* Black text */
  font-family: inherit; /* Dynamically inherits the page's font-family */
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 var(--gap-3) 0;
}

.section-title em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 400;
}

.section-lede {
  font-size: var(--text-lg);
  color: var(--slate);
  max-width: 60ch;
  margin: 0;
  line-height: 1.55;
}

.section { padding: var(--section-pad-y) 0; }
.section-head { margin-bottom: clamp(2.5rem, 4vw, 4rem); max-width: 760px; }

/* VISUAL Layout Changes */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split-section--reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.split-section--reverse .split-media {
  order: 1;
}

.split-section--reverse .split-copy {
  order: 2;
}

.split-copy {
  min-width: 0;
}

.split-media {
  min-width: 0;
  position: relative;
}

.split-media--overlap {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.media-card {
  position: absolute;
  width: min(100%, 340px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 42, 68, 0.08);
  background: #fff;
}

.media-card .cf-image,
.photo-grid .cf-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card--one {
  top: 2%;
  left: 4%;
  aspect-ratio: 4 / 5;
  transform: rotate(-4deg);
  z-index: 1;
}

.media-card--two {
  right: 2%;
  bottom: -22%;
  aspect-ratio: 5 / 4;
  transform: rotate(5deg);
  z-index: 2;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.photo-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}

.photo-grid img {
  height: 100%;
  transition: transform 0.35s ease;
}

.photo-grid figure:hover img,
.media-card:hover img {
  transform: scale(1.03);
}

.services-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-band {
  margin-top: clamp(2rem, 5vw, 4rem);
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.about-band h3 {
  margin: 0 0 1.25rem 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #fff;
}

.about-band-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.about-band-grid dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.about-band-grid dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-sm);
}

@media (max-width: 980px) {
  .split-section,
  .split-section--reverse {
    grid-template-columns: 1fr;
  }

  .split-section--reverse .split-media,
  .split-section--reverse .split-copy {
    order: initial;
  }

  .split-media--overlap {
    min-height: 420px;
  }

  .about-band-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-grid--two,
  .photo-grid,
  .about-band-grid {
    grid-template-columns: 1fr;
  }

  .split-media--overlap {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .media-card {
    position: relative;
    width: 100%;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.hero .btn-primary {
  background: #e0e4ea;
  color: #0f2a44;
  border-color: #e0e4ea;
}

.hero .btn-primary:hover {
  background: #d2d7df;
  border-color: #d2d7df;
}

.hero .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--surface-alt);
}

.btn-ghost:hover {
  background: var(--pale);
  color: var(--navy);
  border-color: var(--slate-soft);
}

.btn-block { width: 100%; padding: 1rem 1.5rem; font-size: var(--text-base); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--surface-alt);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-3);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
}

.brand-mark { width: 32px; height: 32px; color: var(--navy); flex-shrink: 0; }
.brand-name { white-space: nowrap; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--gap-8);
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate);
  padding: 0.5rem 0;
  position: relative;
}

.site-nav a:hover { color: var(--navy); }

.site-nav .nav-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(15, 42, 68, 0.18);
  border-radius: 999px;
  color: var(--navy);
  background: transparent;
  font-weight: 600;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.site-nav .nav-portal:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: rgba(201, 162, 74, 0.08);
}

.site-nav .nav-portal .nav-portal-icon { color: var(--gold); }

.site-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

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

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta):not(.nav-portal) { display: none; }
  .site-nav .nav-portal { padding: 0.4rem 0.7rem; }
  .site-nav .nav-portal span { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(5rem, 9vw, 7rem);
  min-height: 400px;
  overflow: hidden;
  background-image: url('./assets/NairobiZebra.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 68, 0.65);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  object-fit: cover;
}

@media (max-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    display: none;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 var(--gap-6) 0;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 400;
}

.hero-lede {
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin: 0 0 var(--gap-8) 0;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-3);
}

.hero-decor {
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.hero-decor svg { width: 100%; height: 100%; }

/* ==========================================================================
   Services
   ========================================================================== */
.section-services { 
  background: var(--surface-alt); 
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-6);
}

.service-card {
  background: #fff;
  border: 1px solid var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--slate-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card--feature {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.service-card.service-card--feature h3 { color: #fff; }
.service-card.service-card--feature .service-tagline { color: rgba(255, 255, 255, 0.78); }
.service-card.service-card--feature .service-list li { color: rgba(255, 255, 255, 0.86); }
.service-card.service-card--feature .service-list li::before { background: var(--gold); }
.service-card.service-card--feature .service-num { color: var(--gold); }

.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold-deep);
  margin-bottom: var(--gap-4);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 var(--gap-3) 0;
}

.service-tagline {
  font-size: var(--text-sm);
  color: var(--slate);
  font-style: italic;
  margin: 0 0 var(--gap-5) 0;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
}

.service-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.5;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
}

/* ==========================================================================
   Why
   ========================================================================== */
.section-why {
 background: blanchedalmond;
  border-top: 1px solid var(--surface-alt);
  border-bottom: 1px solid var(--surface-alt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 36, 64, 0.0);
    z-index: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: clamp(2rem, 4vw, 3rem);
  row-gap: 1rem;
  
}

.why-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--navy);
  line-height: 1.3;
   margin: 0 0 var(--gap-3) 0;

}

.why-item p {
  margin: 0;
  color: var(--slate);
  font-size: var(--text-base);
  line-height: 1.6;
}

.why-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--gold-deep);
  margin-bottom: var(--gap-3);
}

/* ==========================================================================
   About
   ========================================================================== */
.section-about {
  position: relative;
  background-color: var(--surface);
  background-image: url('./assets/riftvalley.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  z-index: 0;
}

.section-about .container,
.section-about .split-section,
.section-about .about-band {
  position: relative;
  z-index: 1;
}

.section-about .eyebrow,
.section-about .section-title,
.section-about h2,
.section-about h3,
.section-about p,
.section-about li,
.section-about dt,
.section-about dd {
  position: relative;
  z-index: 1;
}

.section-about .eyebrow,
.section-about dt {
  color: var(--gold);
}

.section-about .section-title,
.section-about h2,
.section-about h3 {
  color: #ffffff;
}

.section-about p,
.section-about li,
.section-about dd {
  color: rgba(255, 255, 255, 0.9);
}

.section-about .section-title {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.section-about .cf-hover-text {
  color: #000000 !important;
}

.section-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  z-index: 0;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-text p {
  color: var(--slate);
  font-size: var(--text-base);
  line-height: 1.7;
  margin: 0 0 var(--gap-5) 0;
  max-width: 60ch;
}

.about-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
 /* background: var(--gold); */
    background: rgba(15, 42, 68, 0.65);
  z-index: 1;
}

.about-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  margin: 0 0 var(--gap-5) 0;
  color: #fff;
}

.about-card dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-4);
}

.about-card dl > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-card dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--gold);
}

.about-card dd {
  margin: 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.section-contact {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(201, 162, 74, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(201, 162, 74, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.section-contact .container { position: relative; z-index: 1; }
.section-contact .eyebrow { color: var(--gold); }
.section-contact .section-title { color: #fff; }

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-base);
  line-height: 1.65;
  max-width: 50ch;
  margin: 0 0 var(--gap-8) 0;
}

.contact-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap-6);
}

.contact-meta li {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.contact-meta strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--text-xs);
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.contact-meta a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-meta a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Contact form */
.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-5);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--text-base);
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--surface-alt);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 42, 68, 0.12);
}

.field textarea { resize: vertical; min-height: 110px; }

.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
}

.form-note {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--slate-soft);
  line-height: 1.5;
  text-align: center;
}

.form-success,
.form-error {
  grid-column: 1 / -1;
  background: var(--pale);
  border: 1px solid var(--surface-alt);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.form-error {
  border-left-color: #B23A3A;
  background: #FDF2F2;
  border-color: #F4D6D6;
}

.form-success strong,
.form-error strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: 0.4rem;
}

.form-error strong { color: #8B1F1F; }

.form-success p,
.form-error p {
  margin: 0;
  color: var(--slate);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.form-error a { color: #8B1F1F; border-bottom: 1px solid currentColor; }

@media (max-width: 760px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Donation modal
   ========================================================================== */

.modal[aria-hidden="true"] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 30, 51, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 620px);
  max-height: min(88vh, 900px);
  overflow: auto;
  margin: max(4vh, 1.5rem) auto;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 42, 68, 0.08);
}

.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--surface-alt);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  line-height: 1;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.modal__close:hover {
  background: var(--pale);
  color: var(--navy-deep);
  border-color: var(--slate-soft);
}

.modal__title,
#donationModalTitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 var(--gap-3) 0;
  padding-right: 3rem;
}

.modal__intro {
  margin: 0 0 var(--gap-6) 0;
  color: var(--slate);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 56ch;
}

.donation-form {
  display: grid;
  gap: var(--gap-5);
}

.donation-form .form-row {
  display: grid;
  gap: 0.5rem;
}

.donation-form label,
.checkbox-row {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--slate);
}

.donation-form input,
.donation-form select,
.donation-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--surface-alt);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.donation-form input:focus,
.donation-form select:focus,
.donation-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 42, 68, 0.12);
}

.amount-wrap {
  position: relative;
}

.amount-wrap .currency {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-soft);
  font-weight: 600;
  pointer-events: none;
}

.amount-wrap input {
  padding-left: 2rem;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-3);
}

.preset-amount {
  min-height: 44px;
  border: 1px solid var(--surface-alt);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  padding: 0.8rem 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.preset-amount:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 74, 0.08);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.preset-amount.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.donation-form textarea {
  resize: vertical;
  min-height: 110px;
}

.donation-form .form-error,
#donationError {
  min-height: 1.25rem;
  color: #8B1F1F;
  font-size: var(--text-sm);
  line-height: 1.45;
  margin-top: calc(var(--gap-2) * -1);
}

.donation-form .form-error:not(:empty),
#donationError:not(:empty) {
  padding: 0.85rem 1rem;
  border: 1px solid #F4D6D6;
  border-radius: var(--radius);
  background: #FDF2F2;
}

.donation-form .btn-block {
  margin-top: var(--gap-2);
}

@media (max-width: 640px) {
  .modal__panel {
    width: calc(100vw - 1rem);
    margin: 0.5rem auto;
    max-height: calc(100vh - 1rem);
    padding: 1rem;
  }

  .preset-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--gap-12) 0;
  font-size: var(--text-sm);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--gap-8);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--gap-4);
  color: #fff;
}

.footer-brand .brand-mark { color: #fff; }

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: #fff;
  margin: 0;
}

.footer-tag {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin: 0.2rem 0 0 0;
}

.footer-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
}

.footer-meta p { margin: 0; }

.footer-meta a {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-meta a:hover { color: var(--gold); border-bottom-color: var(--gold); }

@media (max-width: 600px) {
  .footer-meta { text-align: left; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Accessibility — Atkinson Hyperlegible font mode
   Activated by <html data-a11y="hyperlegible">
   ========================================================================== */

html[data-a11y="hyperlegible"],
html[data-a11y="hyperlegible"] body,
html[data-a11y="hyperlegible"] h1,
html[data-a11y="hyperlegible"] h2,
html[data-a11y="hyperlegible"] h3,
html[data-a11y="hyperlegible"] h4,
html[data-a11y="hyperlegible"] h5,
html[data-a11y="hyperlegible"] h6,
html[data-a11y="hyperlegible"] p,
html[data-a11y="hyperlegible"] a,
html[data-a11y="hyperlegible"] button,
html[data-a11y="hyperlegible"] input,
html[data-a11y="hyperlegible"] textarea,
html[data-a11y="hyperlegible"] label,
html[data-a11y="hyperlegible"] li,
html[data-a11y="hyperlegible"] .hero-eyebrow,
html[data-a11y="hyperlegible"] .section-eyebrow {
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif !important;
}

html[data-a11y="hyperlegible"] em,
html[data-a11y="hyperlegible"] .accent-italic {
  font-style: italic;
}

/* Accessibility toggle button */
.a11y-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(15, 42, 68, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.a11y-toggle:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 74, 0.08);
}

.a11y-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.a11y-toggle[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.a11y-toggle[aria-pressed="true"]:hover { background: var(--navy-deep); }

@media (max-width: 720px) {
  .a11y-toggle span { display: none; }
  .a11y-toggle { padding: 0.4rem 0.55rem; }
}

.success-shell {
  max-width: 760px;
}

.success-card {
  margin-top: var(--gap-6);
  background: #fff;
  border: 1px solid var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
}

.success-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap-5);
}

.success-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.success-meta dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--slate-soft);
}

.success-meta dd {
  margin: 0;
  font-size: var(--text-base);
  color: var(--navy);
  font-weight: 600;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-3);
  margin-top: var(--gap-8);
}

.cancel-notice {
  margin-top: var(--gap-6);
  margin-bottom: 0;
}

[data-section][hidden],
[data-section-link][hidden] {
  display: none !important;
}