/* =========================================================
   JASPER SAMUEL MINISTRIES — DESIGN SYSTEM
   Clean, responsive and accessible GitHub Pages build
========================================================= */

:root {
  --primary: #2f78bb;
  --primary-dark: #1d5f98;
  --primary-deep: #123f68;
  --gold: #f4c64f;
  --ink: #13202c;
  --text: #293744;
  --muted: #61707e;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --surface-blue: #eaf2f9;
  --border: #dbe4ec;
  --success: #176a48;
  --shadow-sm: 0 8px 24px rgba(17, 43, 68, 0.07);
  --shadow-md: 0 18px 45px rgba(17, 43, 68, 0.12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-height: 92px;
  --transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.nav-open, body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}
p { text-wrap: pretty; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

/* HEADER */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(47, 120, 187, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: min-height var(--transition), background var(--transition), box-shadow var(--transition);
}
.header.is-scrolled {
  min-height: 74px;
  background: rgba(29, 95, 152, 0.98);
  box-shadow: 0 10px 30px rgba(6, 26, 43, 0.18);
  backdrop-filter: blur(12px);
}
.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--surface);
}
.logo-image img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-text span {
  color: var(--surface);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.2;
}
.logo-text small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.055em;
  transition: color var(--transition);
}
.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 3px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.nav a:hover, .nav a.active, .nav a[aria-current="page"] { color: var(--surface); }
.nav a:hover::after, .nav a.active::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .donate-link {
  padding: 11px 18px;
  color: var(--primary-deep) !important;
  background: var(--gold);
  border-radius: 999px;
}
.nav .donate-link::after { display: none; }
.nav .donate-link:hover { background: #ffda72; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--surface);
  border-radius: 99px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  min-height: 66vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 80px) 0 90px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--primary-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(105deg, rgba(7, 22, 34, 0.82), rgba(11, 43, 68, 0.45));
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 18, 29, 0.45), transparent 45%);
}
.hero-home { min-height: 88vh; background-image: url("../hero/hero-hero.jpg"); }
.hero-about { background-image: url("../hero/about-hero.jpg"); }
.hero-books { background-image: url("../hero/books-hero.jpg"); }
.hero-contact { background-image: url("../hero/contact-hero.jpg"); }
.hero-donate { background-image: url("../hero/giving-hero.jpg"); }
.hero-content { position: relative; z-index: 2; }
.hero-text { max-width: 980px; margin-inline: auto; }
.hero-small-text {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-text h1 {
  margin-bottom: 24px;
  color: var(--surface);
  font-size: clamp(2.55rem, 6vw, 4.75rem);
  letter-spacing: -0.035em;
}
.hero:not(.hero-home) .hero-text h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.hero-text > p:not(.hero-small-text), .hero-description {
  max-width: 780px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}
.hero-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* BUTTONS */
.btn, .open-hands-btn, .home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 28px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn:hover, .open-hands-btn:hover, .home-btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--surface); color: var(--primary-deep); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--gold); }
.btn-blue, .open-hands-btn, .home-btn { background: var(--primary); color: var(--surface); box-shadow: 0 12px 28px rgba(47, 120, 187, 0.23); }
.btn-blue:hover, .open-hands-btn:hover, .home-btn:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid rgba(255, 255, 255, 0.72); background: transparent; color: var(--surface); }
.btn-outline:hover { background: var(--surface); color: var(--primary-deep); }
.btn-outline-blue { border: 1px solid var(--primary); background: transparent; color: var(--primary); }
.btn-outline-blue:hover { background: var(--primary); color: var(--surface); }

/* SHARED SECTIONS */
.featured-section, .books-section, .book-section, .about-section, .contact-section,
.donate-why, .donate-options, .donate-impact, .newsletter-section, .identity-section,
.identity-preview-section, .video-section-light, .video-strip-section, .home-about-section,
.latest-message-section {
  padding: clamp(72px, 9vw, 112px) 0;
}
.section-heading { max-width: 800px; margin: 0 auto 54px; text-align: center; }
.section-heading span, .section-label, .video-text span, .latest-message-text span,
.open-hands-preview-text span, .home-about-text span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-heading h2, .books-section > .container > h2, .book-categories h2,
.video-text h2, .latest-message-text h2, .open-hands-preview-text h2, .home-about-text h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.025em;
}
.section-heading p, .video-text p, .latest-message-text p, .open-hands-preview-text p,
.home-about-text p { color: var(--muted); font-size: 17px; }

.home-statement {
  padding: 30px 0;
  background: var(--primary);
  color: var(--surface);
  text-align: center;
}
.home-statement p { max-width: 920px; margin: 0 auto; font-size: 18px; font-weight: 650; }

.mission-strip { padding: 72px 0; background: var(--surface); }
.mission-strip-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mission-box, .featured-card, .book-card, .about-card, .category-box,
.donation-box, .impact-box, .contact-form-box, .contact-info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.mission-box:hover, .featured-card:hover, .book-card:hover, .about-card:hover,
.category-box:hover, .donation-box:hover, .impact-box:hover {
  transform: translateY(-5px);
  border-color: #c5d7e7;
  box-shadow: var(--shadow-md);
}
.mission-box { padding: 30px; border-top: 4px solid var(--primary); background: var(--surface-soft); }
.mission-box h3 { margin-bottom: 12px; font-size: 22px; }
.mission-box p { margin-bottom: 0; color: var(--muted); }

/* MEDIA AND ABOUT */
.video-section-light, .video-strip-section, .book-section, .about-section { background: var(--surface-soft); }
.video-grid, .home-about-grid, .latest-message-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.video-box, .small-video-box, .latest-message-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow-md);
}
.video-box iframe, .small-video-box iframe, .latest-message-video iframe { width: 100%; height: 100%; border: 0; }
.home-about-image img, .about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.home-about-grid { grid-template-columns: minmax(280px, 420px) 1fr; }
.home-about-text { max-width: 700px; }

.featured-grid, .books-grid, .about-cards, .category-grid, .donation-grid, .impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.featured-card { overflow: hidden; }
.featured-card img, .featured-image img { width: 100%; height: 250px; object-fit: cover; }
.featured-card-content, .featured-content { padding: 26px; }
.featured-card h3, .featured-content h3 { margin-bottom: 12px; font-size: 22px; }
.featured-card p, .featured-content p { margin-bottom: 0; color: var(--muted); }

.video-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.small-video-card { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.small-video-card h3 { margin: 15px 4px 4px; font-size: 19px; }

/* BOOKS */
.featured-book-card {
  display: grid;
  grid-template-columns: minmax(250px, 360px) 1fr;
  align-items: center;
  gap: clamp(36px, 7vw, 80px);
  padding: clamp(30px, 6vw, 68px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.book-image { display: flex; justify-content: center; }
.book-image img { width: min(100%, 320px); object-fit: contain; }
.book-text h2 { margin-bottom: 22px; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.book-text p { max-width: 700px; color: var(--muted); font-size: 17px; }
.book-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.books-section > .container > h2, .book-categories h2 { margin-bottom: 36px; text-align: center; }
.books-grid { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.book-card { display: flex; flex-direction: column; padding: 22px; text-align: left; }
.book-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 9px; background: var(--surface-soft); }
.book-card h3 { margin: 22px 0 10px; font-size: 21px; }
.book-card p { flex: 1; margin-bottom: 22px; color: var(--muted); font-size: 15px; }
.book-card .btn { width: 100%; }
.books-note { max-width: 800px; margin: 42px auto 0; color: var(--muted); text-align: center; }
.book-categories { padding: 0 0 clamp(72px, 9vw, 112px); background: var(--surface); }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.category-box { padding: 28px; }
.category-box h3 { margin-bottom: 10px; font-size: 20px; }
.category-box p { margin-bottom: 0; color: var(--muted); font-size: 15px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: minmax(280px, 390px) 1fr; gap: clamp(36px, 6vw, 70px); align-items: center; margin-bottom: 65px; }
.about-text { max-width: 720px; }
.about-text span { color: var(--primary); font-size: 12px; font-weight: 850; letter-spacing: 0.16em; }
.about-text h2 { margin: 16px 0 22px; font-size: clamp(2rem, 4vw, 3rem); }
.about-text p { color: var(--muted); }
.about-cards { grid-template-columns: repeat(2, 1fr); }
.about-card { padding: 30px; }
.about-card h3 { margin-bottom: 12px; font-size: 21px; }
.about-card p { margin-bottom: 0; color: var(--muted); }

.identity-section { background: var(--surface); }
.identity-slider { position: relative; height: min(72vh, 720px); overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); outline: none; }
.identity-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 650ms ease, visibility 650ms ease; }
.identity-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.identity-slide img { width: 100%; height: 100%; object-fit: cover; }
.identity-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 18, 29, 0.82), rgba(5, 18, 29, 0.06) 62%); }
.identity-caption { position: absolute; left: clamp(24px, 5vw, 58px); bottom: clamp(32px, 6vw, 65px); z-index: 2; }
.identity-caption h3 { margin: 0; color: var(--surface); font-size: clamp(2.2rem, 7vw, 5.2rem); }
.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(7, 24, 38, 0.45);
  color: var(--surface);
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}
.slider-btn:hover { background: rgba(7, 24, 38, 0.75); }
.slider-btn.prev { left: 22px; }
.slider-btn.next { right: 22px; }
.slider-dots { position: absolute; left: 50%; bottom: 24px; z-index: 5; display: flex; gap: 9px; transform: translateX(-50%); }
.dot { width: 10px; height: 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.dot.active { background: var(--surface); transform: scale(1.2); }

.identity-preview-section { background: var(--surface); }
.identity-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.identity-preview-card { position: relative; height: 380px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.identity-preview-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,18,29,.78), transparent 60%); }
.identity-preview-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.identity-preview-card:hover img { transform: scale(1.045); }
.identity-preview-card h3 { position: absolute; left: 22px; bottom: 20px; z-index: 2; margin: 0; color: var(--surface); font-size: 26px; }
.identity-preview-button { margin-top: 38px; text-align: center; }

/* CONTACT */
.contact-section { background: var(--surface-soft); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 28px; align-items: start; }
.contact-form-box, .contact-info-box { padding: clamp(26px, 4vw, 42px); }
.contact-form-box h2, .contact-info-box h2 { margin-bottom: 28px; font-size: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 17px; }
.form-group label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 750; }
.contact-form input, .contact-form textarea, .contact-form select,
.newsletter-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cbd7e2;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus,
.newsletter-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47, 120, 187, 0.13); outline: 0; }
.form-hint, .form-status { margin-top: 14px; color: var(--muted); font-size: 14px; }
.form-status { color: var(--success); }
.contact-info-box .info-card { padding: 0 0 20px; margin-bottom: 20px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.contact-info-box .info-card:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.contact-info-box .info-card h3 { margin-bottom: 5px; font-size: 16px; }
.contact-info-box .info-card p { margin-bottom: 0; color: var(--muted); }
.contact-info-box .social-links { flex-direction: row; flex-wrap: wrap; gap: 14px; }
.contact-info-box .social-links a { color: var(--primary); font-weight: 700; }

/* NEWSLETTER */
.newsletter-section { background: var(--primary-deep); color: var(--surface); text-align: center; }
.newsletter-section h2 { margin-bottom: 16px; color: var(--surface); font-size: clamp(2rem, 4vw, 3rem); }
.newsletter-text { max-width: 720px; margin: 0 auto 30px; color: rgba(255,255,255,.8); }
.newsletter-form { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; max-width: 800px; margin-inline: auto; }
.newsletter-form input { flex: 1 1 190px; }
.newsletter-form button { min-height: 50px; padding: 12px 28px; border: 0; border-radius: 999px; background: var(--gold); color: var(--primary-deep); font-weight: 800; cursor: pointer; }
.newsletter-section .form-status { color: rgba(255,255,255,.9); }

/* GIVING */
.donate-why { background: var(--surface-soft); }
.donate-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 28px; align-items: start; }
.donate-layout > .info-card, .bank-card {
  padding: clamp(26px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.donate-layout > .info-card h2 { margin-bottom: 18px; font-size: 30px; }
.donate-layout > .info-card h3 { margin: 30px 0 12px; }
.donate-layout > .info-card p { color: var(--muted); }
.donate-layout > .info-card ul { margin-top: 18px; }
.donate-layout > .info-card li { position: relative; margin-bottom: 12px; padding-left: 24px; }
.donate-layout > .info-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.bank-card { position: sticky; top: calc(var(--header-height) + 24px); border-top: 4px solid var(--primary); }
.bank-card h3 { margin-bottom: 14px; font-size: 22px; }
.bank-box { padding: 16px; margin-top: 15px; background: var(--surface-soft); border-radius: 10px; }
.bank-box p { margin-bottom: 6px; font-size: 14px; }
.donate-options h2, .donate-impact > .container > h2 { margin-bottom: 18px; text-align: center; font-size: clamp(2rem, 4vw, 3rem); }
.donation-grid, .impact-grid { margin-top: 38px; }
.donation-box, .impact-box { padding: 30px; text-align: center; }
.donation-box h3, .impact-box h3 { margin-bottom: 12px; font-size: 22px; }
.donation-box p, .impact-box p { color: var(--muted); }
.donate-impact { background: var(--surface); }
.donate-impact .subtitle { margin-bottom: 48px; color: var(--primary); font-weight: 750; text-align: center; }
.impact-text { max-width: 860px; margin-inline: auto; }
.impact-text h3 { margin: 46px 0 12px; padding-top: 14px; border-top: 3px solid var(--primary); font-size: 24px; }
.impact-text p { color: var(--muted); font-size: 17px; }
.open-hands-cta { margin-top: 42px; }
.open-hands-preview { padding: clamp(76px, 9vw, 112px) 0; background: linear-gradient(120deg, var(--primary), var(--primary-deep)); color: var(--surface); }
.open-hands-preview-card { max-width: var(--container); }
.open-hands-preview-text { max-width: 760px; }
.open-hands-preview-text span, .open-hands-preview-text h2, .open-hands-preview-text p { color: var(--surface); }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 18, 29, .72); backdrop-filter: blur(5px); }
.modal-box { width: min(100%, 520px); padding: 32px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.modal-box h2 { margin-bottom: 14px; font-size: 24px; }
.modal-box p { color: var(--muted); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn-confirm, .btn-cancel { min-height: 46px; padding: 11px 20px; border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; }
.btn-confirm { background: var(--primary); color: var(--surface); }
.btn-cancel { background: var(--surface-soft); color: var(--ink); }

/* CTA */
.cta-section { padding: clamp(76px, 9vw, 112px) 0; background: var(--primary); color: var(--surface); text-align: center; }
.cta-section h2 { max-width: 850px; margin: 0 auto 18px; color: var(--surface); font-size: clamp(2rem, 4vw, 3.25rem); }
.cta-section p { max-width: 760px; margin: 0 auto 30px; color: rgba(255,255,255,.84); }
.cta-section .btn { margin: 6px; }
.latest-message-card { padding: clamp(26px, 5vw, 50px); background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* FOOTER */
.footer { padding: 68px 0 26px; background: #0d1a25; color: var(--surface); }
.footer-container { display: grid; grid-template-columns: 1.25fr .8fr 1fr 1fr; gap: 40px; }
.footer h3, .footer h4 { margin-bottom: 17px; color: var(--surface); }
.footer h3 { font-size: 21px; }
.footer h4 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.footer p { margin-bottom: 10px; color: rgba(255,255,255,.66); font-size: 14px; }
.footer a { display: block; margin-bottom: 9px; color: rgba(255,255,255,.72); font-size: 14px; transition: color var(--transition), transform var(--transition); }
.footer a:hover { color: var(--gold); }
.social-links { display: flex; flex-direction: column; gap: 9px; }
.social-links a { display: inline-flex; align-items: center; gap: 9px; margin: 0; }
.social-links img { width: 20px; height: 20px; object-fit: contain; }
.footer-social { max-width: 290px; }
.social-links-icons, .platform-links, .social-icons, .media-platforms { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.social-links-icons a, .platform-links a, .social-icons a, .media-platforms a { display: inline-flex; margin: 0; }
.social-links-icons img, .social-icons img { width: 34px; height: 34px; object-fit: contain; }
.platform-links img, .media-platforms img { width: auto; height: 20px; object-fit: contain; }
.footer-social-divider, .footer-divider { height: 1px; margin: 18px 0; background: rgba(255,255,255,.13); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.footer-bottom p { margin: 5px 0; }
.made-by a { display: inline; color: var(--surface); font-weight: 700; }

/* 404 */
.error-section { min-height: 76vh; display: grid; place-items: center; padding: calc(var(--header-height) + 70px) 20px 90px; background: linear-gradient(135deg, #0b1c2b, var(--primary-deep)); text-align: center; }
.error-content { max-width: 760px; }
.error-content .error-code { margin-bottom: 8px; color: var(--gold); font-size: clamp(4rem, 14vw, 9rem); font-weight: 900; line-height: .9; }
.error-content h1 { margin-bottom: 18px; color: var(--surface); font-size: clamp(2rem, 5vw, 3.7rem); }
.error-content p { margin-bottom: 30px; color: rgba(255,255,255,.78); }

/* REVEALS */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .footer-container { grid-template-columns: repeat(2, 1fr); }
  .category-grid, .identity-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-height: 78px; }
  .container { width: min(calc(100% - 30px), var(--container)); }
  .header, .header.is-scrolled { min-height: var(--header-height); }
  .logo-image img { width: 47px; height: 47px; }
  .logo-text span { font-size: 15px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    gap: 3px;
    max-height: calc(100vh - 100px);
    padding: 14px;
    overflow-y: auto;
    background: rgba(18, 63, 104, .99);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
  }
  .nav.show-nav { display: flex; }
  .nav a { width: 100%; padding: 13px 15px; border-radius: 9px; }
  .nav a::after { display: none; }
  .nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.09); }
  .nav .donate-link { margin-top: 5px; text-align: center; }

  .hero { min-height: 58vh; padding-top: calc(var(--header-height) + 65px); }
  .hero-home { min-height: 78vh; }
  .mission-strip-container, .featured-grid, .video-strip-grid { grid-template-columns: 1fr; }
  .video-grid, .home-about-grid, .latest-message-card, .featured-book-card,
  .about-grid, .contact-grid, .donate-layout { grid-template-columns: 1fr; }
  .home-about-image, .about-image { max-width: 500px; margin-inline: auto; }
  .home-about-text, .video-text, .latest-message-text { text-align: center; }
  .book-buttons { justify-content: center; }
  .featured-grid, .donation-grid, .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .bank-card { position: static; }
  .identity-slider { height: 540px; }
}

@media (max-width: 650px) {
  .logo-text small { display: none; }
  .hero-buttons, .book-buttons, .modal-actions { flex-direction: column; }
  .hero-buttons .btn, .book-buttons .btn, .modal-actions button { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .featured-grid, .books-grid, .about-cards, .category-grid, .donation-grid,
  .impact-grid, .identity-preview-grid, .footer-container { grid-template-columns: 1fr; }
  .identity-preview-card { height: 360px; }
  .identity-slider { height: 450px; border-radius: var(--radius); }
  .slider-btn { width: 42px; height: 42px; }
  .slider-btn.prev { left: 12px; }
  .slider-btn.next { right: 12px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .footer { text-align: center; }
  .footer-social { max-width: none; }
  .social-links, .social-links-icons, .platform-links, .social-icons, .media-platforms { align-items: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
