/* Tshisimogo Foundation NPC - site styles */

:root {
  --orange: #f06000;
  --orange-dark: #d02000;
  --navy: #001030;
  --navy-soft: #0d2550;
  --ink: #1f2933;
  --muted: #5b6573;
  --line: #e7e2dc;
  --cream: #fff7f1;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 16, 48, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 16, 48, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange-dark);
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

section {
  padding: 80px 0;
}

.section-tint {
  background: var(--cream);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 62ch;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .lead {
  margin: 0 auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(240, 96, 0, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-soft);
  color: var(--white);
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--navy);
  color: #d8dee9;
  font-size: 0.88rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.topbar a {
  color: #d8dee9;
}

.topbar a:hover {
  color: var(--white);
}

.topbar .items {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar i {
  color: var(--orange);
  margin-right: 6px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.15;
}

.brand:hover {
  color: var(--navy);
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

.footer-brand {
  display: inline-block;
  background: var(--white);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.footer-brand .brand-logo {
  height: 56px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.brand-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 1.02rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange-dark);
  background: var(--cream);
}

.nav-cta {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
}

/* ---------- Hero slider ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  min-height: 640px;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Placeholder background. Replace with an image, e.g.
     background-image: url("../img/hero-1.jpg"); */
}

.slide-1 .slide-bg {
  background: linear-gradient(120deg, rgba(0, 16, 48, 0.92), rgba(0, 16, 48, 0.55)), url("../img/images/gallery-13.jpg") center / cover no-repeat;
}

.slide-2 .slide-bg {
  background: linear-gradient(120deg, rgba(0, 16, 48, 0.92), rgba(0, 16, 48, 0.55)), url("../img/images/gallery-10.jpg") center / cover no-repeat;
}

.slide-3 .slide-bg {
  background: linear-gradient(120deg, rgba(0, 16, 48, 0.92), rgba(0, 16, 48, 0.55)), url("../img/images/gallery-09.jpg") center / cover no-repeat;
}

.slide-content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  max-width: 720px;
}

.slide-content .eyebrow {
  color: #ffb98e;
}

.slide-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.slide-content p {
  font-size: 1.12rem;
  color: #dfe5ef;
  max-width: 56ch;
  margin-bottom: 2rem;
}

.slide-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s, background 0.3s;
}

.slider-dots button.active {
  width: 32px;
  background: var(--orange);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.slider-arrow:hover {
  background: var(--orange);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--navy-soft));
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(240, 96, 0, 0.25);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: #dfe5ef;
  max-width: 60ch;
  margin: 0;
}

.crumbs {
  font-size: 0.88rem;
  color: #aab4c5;
  margin-bottom: 0.75rem;
}

.crumbs a {
  color: #ffb98e;
}

/* ---------- Stats ---------- */

.stats {
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 16, 48, 0.14);
}

.icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--orange-dark);
  background: var(--cream);
  margin-bottom: 20px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 700;
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.media-photo {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.media-placeholder {
  border-radius: 24px;
  min-height: 420px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft) 55%, var(--orange));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.media-placeholder small {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.checklist li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.checklist i {
  color: var(--orange);
  margin-top: 5px;
}

/* ---------- Values ---------- */

.values .card {
  text-align: left;
}

/* ---------- Team ---------- */

.person .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--navy));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 18px;
}

.person .role {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.person .contact-line {
  margin-top: 14px;
  font-size: 0.92rem;
}

/* ---------- Quote ---------- */

.quote {
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

.quote i.fa-quote-left {
  color: var(--orange);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
}

.quote cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  color: #ffb98e;
  font-weight: 700;
}

/* ---------- Partners ---------- */

.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.partner-pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.partner-pill i {
  color: var(--orange);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--orange), var(--orange-dark));
  color: var(--white);
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 8px;
}

.cta-band p {
  margin: 0;
  color: #ffeadc;
}

.cta-band .btn-navy {
  background: var(--navy);
}

/* ---------- Donation tiers ---------- */

.tier {
  text-align: center;
}

.tier .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange-dark);
  margin-bottom: 8px;
}

.tier-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 0;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ---------- Gallery ---------- */

.gallery-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 18px;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  background: var(--cream);
  border: 0;
  padding: 0;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 16, 48, 0.85));
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-item:hover span,
.gallery-item:focus-visible span {
  opacity: 1;
  transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 28, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 85vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

.lightbox-nav:hover {
  background: var(--orange);
}

.lightbox-nav.prev {
  left: 18px;
}

.lightbox-nav.next {
  right: 18px;
}

.filter-btn {
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: #fcfbfa;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 96, 0, 0.15);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 600;
}

.alert-success {
  background: #e7f7ee;
  color: #1e6b3f;
  border: 1px solid #b9e4cb;
}

.alert-error {
  background: #fdecec;
  color: #9b1c1c;
  border: 1px solid #f5c2c2;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--orange-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.info-list strong {
  display: block;
  color: var(--navy);
}

.info-list span {
  color: var(--muted);
}

.map-frame {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #c7cfdd;
  padding: 72px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.site-footer p {
  margin-bottom: 0.6em;
}

.site-footer a {
  color: #c7cfdd;
  display: inline-block;
  margin-bottom: 10px;
}

.site-footer a:hover {
  color: var(--orange);
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 18px;
}

.site-footer .brand small {
  color: #aab4c5;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy-soft);
  display: grid;
  place-items: center;
  color: var(--white);
  margin: 0;
}

.social a:hover {
  background: var(--orange);
  color: var(--white);
}

.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--orange);
  font-weight: 700;
  margin: 0;
}

/* ---------- Donation pop-up ---------- */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 16, 48, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120;
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 40px 36px;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--orange);
  color: var(--white);
}

.modal-box h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.bank-details {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.bank-details div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.bank-details div:last-child {
  border-bottom: 0;
}

.bank-details dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.bank-details dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

.copy-btn {
  margin-left: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 40;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  color: var(--white);
  background: var(--orange-dark);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .nav-wrap {
    position: relative;
  }

  .brand {
    order: 1;
  }

  .nav-toggle {
    display: block;
    order: 3;
    margin-left: auto;
  }

  nav {
    order: 2;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
  }

  .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .media-placeholder {
    min-height: 300px;
  }

  .stats {
    margin-top: -40px;
  }
}

@media (max-width: 700px) {
  section {
    padding: 56px 0;
  }

  .topbar .items span.hide-sm {
    display: none;
  }

  .grid-2,
  .grid-3,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
  }

  .slide-content {
    padding: 60px 0 90px;
  }

  .slider-arrow {
    display: none;
  }

  .quote,
  .cta-band,
  .form-card {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    height: 52px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat {
    padding: 20px 14px;
  }

  .stat-num {
    font-size: 1.7rem;
  }
}
