/*
Theme Name: Qavah Ministries Migration
Theme URI: https://www.qavahministries.org/
Author: Qavah Ministries
Description: Accessible, responsive migration theme for Qavah Ministries.
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: qavah
*/

:root {
  --qavah-ink: #20211e;
  --qavah-muted: #62655d;
  --qavah-paper: #fffdf8;
  --qavah-white: #fff;
  --qavah-sand: #eee6d8;
  --qavah-sand-light: #f7f2e9;
  --qavah-gold: #a77738;
  --qavah-gold-dark: #765022;
  --qavah-green: #344a3f;
  --qavah-green-dark: #21352d;
  --qavah-border: rgba(32, 33, 30, .17);
  --qavah-serif: "Cormorant Garamond", Georgia, serif;
  --qavah-sans: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --qavah-content: min(1180px, calc(100vw - 48px));
  --qavah-reading: min(740px, calc(100vw - 48px));
  --qavah-section-space: clamp(64px, 7vw, 96px);
  --qavah-gap: clamp(24px, 4vw, 52px);
  --qavah-radius: 14px;
  --qavah-shadow: 0 18px 46px rgba(36, 38, 33, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--qavah-ink);
  background: var(--qavah-paper);
  font-family: var(--qavah-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}
img, iframe, video, svg { max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--qavah-gold-dark); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #d39742; outline-offset: 4px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto;
  padding: 12px 16px; margin: 0; clip: auto; background: #fff; color: #111;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  font-family: var(--qavah-serif);
  font-weight: 500;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
p { margin: 0 0 1.25em; }
blockquote { margin: 1.5em 0; font-family: var(--qavah-serif); font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.25; }
.reading-width { width: var(--qavah-reading); margin-inline: auto; }
.eyebrow { margin: 0 0 16px; color: var(--qavah-gold-dark); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--light { color: #f1d3a8; }
.lede { font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.65; }
.role { color: var(--qavah-muted); font-weight: 500; }
.section-tint { background: var(--qavah-sand-light); }
.section-heading { margin-bottom: 42px; text-align: center; }
.section-heading h2 { margin-bottom: 0; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.text-link, .post-card-read { font-weight: 600; text-decoration-thickness: 1px; }

.qavah-button, .sqs-block-button a, .sqs-block-button-element, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 23px;
  border: 1px solid currentColor; border-radius: 999px; color: var(--qavah-ink); background: transparent;
  font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.qavah-button:hover { transform: translateY(-1px); }
.qavah-button--primary, .qavah-form button { color: #fff; background: var(--qavah-green); border-color: var(--qavah-green); }
.qavah-button--primary:hover, .qavah-form button:hover { color: #fff; background: var(--qavah-green-dark); border-color: var(--qavah-green-dark); }
.qavah-button--secondary:hover { color: #fff; background: var(--qavah-ink); }
.qavah-button--secondary-light { color: #fff; border-color: rgba(255,255,255,.78); }
.qavah-button--secondary-light:hover { color: var(--qavah-green-dark); background: #fff; border-color: #fff; }

.site-header { position: relative; z-index: 100; width: 100%; min-height: 96px; background: rgba(255,253,248,.98); border-bottom: 1px solid var(--qavah-border); }
.home .site-header { position: absolute; color: #fff; background: linear-gradient(to bottom, rgba(0,0,0,.58), transparent); border: 0; }
.header-inner { width: var(--qavah-content); min-height: 96px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-brand { flex: 0 0 auto; text-decoration: none; }
.site-brand img { display: block; width: 64px; max-height: 74px; object-fit: contain; }
.home .site-brand img { filter: invert(1); }
.wordmark { font-family: var(--qavah-serif); font-size: 2rem; font-weight: 600; }
.nav-toggle { display: none; min-height: 46px; padding: 8px 16px; border: 1px solid currentColor; border-radius: 999px; color: inherit; background: transparent; cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 30px); }
.primary-menu > li { position: relative; }
.primary-menu a, .submenu-toggle { display: inline-flex; align-items: center; gap: 7px; border: 0; color: inherit; background: none; font-weight: 500; text-decoration: none; cursor: pointer; }
.primary-menu > li > a, .primary-menu > li > .submenu-toggle { min-height: 48px; }
.primary-menu [aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.primary-menu .donate-link { padding: 10px 20px; border: 1px solid currentColor; border-radius: 999px; }
.sub-menu { position: absolute; top: calc(100% - 2px); left: -18px; width: 230px; padding: 12px !important; color: var(--qavah-ink); background: #fff; border-radius: 8px; box-shadow: 0 12px 38px rgba(0,0,0,.16); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.sub-menu a { display: block; min-height: 42px; padding: 8px 10px; }
.has-submenu:hover .sub-menu, .has-submenu:focus-within .sub-menu, .has-submenu.is-open .sub-menu { opacity: 1; pointer-events: auto; transform: none; }
.caret { font-size: .66em; }

.site-main { min-height: 55vh; }
.page-hero { padding: var(--qavah-section-space) 0; }
.page-hero--sand { background: var(--qavah-sand); }
.page-hero .reading-width { text-align: center; }
.page-hero h1 { margin-bottom: .25em; }
.page-section-standard { width: 100%; padding: var(--qavah-section-space) max(24px, calc((100vw - 1180px) / 2)); }
.qavah-card { padding: clamp(24px, 3.5vw, 42px); background: #fff; border: 1px solid var(--qavah-border); border-radius: var(--qavah-radius); box-shadow: 0 8px 26px rgba(36,38,33,.05); }
.qavah-card h2 { font-size: clamp(2rem, 3.3vw, 3rem); }

.home-hero { position: relative; min-height: min(780px, 94vh); display: grid; align-items: center; color: #fff; background: var(--qavah-green-dark); overflow: hidden; }
.home-hero-media, .home-hero-overlay { position: absolute; inset: 0; }
.home-hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.home-hero-overlay { background: linear-gradient(90deg, rgba(20,28,24,.84) 0%, rgba(20,28,24,.58) 48%, rgba(20,28,24,.26) 100%); }
.home-hero-content { position: relative; z-index: 1; width: min(720px, calc(100vw - 48px)); margin-left: max(24px, calc((100vw - 1180px) / 2)); padding: 148px 0 80px; }
.home-hero h1 { margin: 0; font-size: clamp(5rem, 12vw, 9rem); }
.pronunciation { margin-top: -12px; font-family: var(--qavah-serif); font-size: 1.7rem; font-style: italic; }
.home-hero-intro { max-width: 650px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.home-section { padding: var(--qavah-section-space) max(24px, calc((100vw - 1180px) / 2)); }
.home-introduction, .home-story, .home-work { text-align: center; }
.home-introduction { background: var(--qavah-sand-light); }
.home-introduction .button-row { justify-content: center; }
.home-split { width: var(--qavah-content); margin: var(--qavah-section-space) auto; padding: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: stretch; overflow: hidden; background: #fff; border-radius: var(--qavah-radius); box-shadow: var(--qavah-shadow); }
.home-split--reverse .home-split-media { order: 2; }
.home-split-media { min-height: 510px; }
.home-split-media img { display: block; width: 100%; height: 100%; max-height: 620px; object-fit: cover; object-position: center; }
.home-split-content { align-self: center; padding: clamp(38px, 6vw, 76px); }
.home-story { color: #fff; background: var(--qavah-green); }
.home-story .eyebrow { color: #f1d3a8; }
.home-story blockquote { margin-bottom: 0; }
.home-work { background: var(--qavah-sand-light); }
.home-work-grid { width: var(--qavah-content); margin: 44px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; text-align: left; }
.home-family-section hr { margin: 40px 0; border: 0; border-top: 1px solid var(--qavah-border); }
.home-closing { padding: clamp(58px, 8vw, 92px) 24px; color: #fff; background: var(--qavah-green-dark); text-align: center; }
.home-closing h2 { margin: 0; }

.team-grid, .board-grid, .partner-small-grid, .action-card-grid, .pricing-grid, .review-grid, .quote-grid { width: var(--qavah-content); margin-inline: auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.team-card h2 a { text-decoration: none; }
.board-link-panel { width: var(--qavah-reading); margin: 56px auto 0; padding-top: 48px; border-top: 1px solid var(--qavah-border); text-align: center; }
.board-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.board-card .location { color: var(--qavah-muted); }

.choice-grid { width: var(--qavah-content); margin: -34px auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.choice-grid a { min-height: 128px; padding: 24px; display: flex; flex-direction: column; justify-content: center; color: var(--qavah-ink); background: #fff; border: 1px solid var(--qavah-border); border-radius: var(--qavah-radius); box-shadow: var(--qavah-shadow); text-decoration: none; }
.choice-grid strong { font-family: var(--qavah-serif); font-size: 1.65rem; line-height: 1.15; }
.choice-grid span { color: var(--qavah-muted); font-size: .9rem; }
.partner-sections { display: grid; gap: var(--qavah-section-space); }
.partner-feature, .resource-card, .author-section { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center; gap: var(--qavah-gap); }
.partner-feature figure img, .partner-small-grid figure img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--qavah-radius); }
.form-panel, .donation-panel { width: min(900px, 100%); margin-inline: auto; padding: clamp(28px, 5vw, 58px); background: #fff; border: 1px solid var(--qavah-border); border-radius: var(--qavah-radius); box-shadow: var(--qavah-shadow); }
.partner-small-grid { width: 100%; }
.partner-small-grid .qavah-card { box-shadow: none; }
.donate-callout { padding: clamp(42px, 7vw, 76px); color: #fff; background: var(--qavah-green); border-radius: var(--qavah-radius); text-align: center; }

.qavah-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.qavah-form .full { grid-column: 1 / -1; }
.qavah-form label { display: block; font-size: .92rem; font-weight: 600; }
.qavah-form input:not([type="checkbox"]), .qavah-form select, .qavah-form textarea { width: 100%; min-width: 0; margin-top: 6px; padding: 12px 13px; color: var(--qavah-ink); background: #fff; border: 1px solid #7d8078; border-radius: 6px; }
.qavah-form textarea { min-height: 150px; resize: vertical; }
.qavah-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.qavah-form .consent input { margin-top: .45em; flex: 0 0 auto; }
.qavah-form-status { min-height: 1.7em; margin: 0; }
.qavah-form input[name="_gotcha"] { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0 !important; }
.qavah-form-status.success { color: #1d6a38; }
.qavah-form-status.error { color: #a02525; }

.resource-stack { width: var(--qavah-content); margin: var(--qavah-section-space) auto; display: grid; gap: 30px; }
.resource-card { padding: clamp(28px, 5vw, 58px); background: #fff; border: 1px solid var(--qavah-border); border-radius: var(--qavah-radius); }
.resource-card--reverse > :first-child { order: 2; }
.resource-card--book figure { text-align: center; }
.resource-card--book figure img { max-height: 520px; width: auto; object-fit: contain; }
.responsive-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; border-radius: 10px; }
.responsive-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.soundcloud-frame iframe { display: block; width: 100%; min-height: 450px; border: 0; }

.contact-layout { width: var(--qavah-content); margin-inline: auto; display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: var(--qavah-gap); }
.contact-details { padding: clamp(28px,4vw,46px); background: var(--qavah-sand-light); border-radius: var(--qavah-radius); }
.prose-sections { padding: var(--qavah-section-space) 0; }
.prose-sections > section { padding: 0 0 var(--qavah-section-space); margin: 0 0 var(--qavah-section-space); border-bottom: 1px solid var(--qavah-border); }
.prose-sections > section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.vision-questions { margin: 30px 0; padding: 0; display: grid; gap: 12px; list-style: none; counter-reset: vision-question; }
.vision-questions li { position: relative; padding: 20px 22px 20px 64px; background: var(--qavah-sand-light); border-radius: 10px; counter-increment: vision-question; }
.vision-questions li::before { content: counter(vision-question); position: absolute; top: 18px; left: 20px; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--qavah-green); border-radius: 50%; font-size: .8rem; font-weight: 600; }
.subscribe-panel { background: var(--qavah-paper); }
.subscribe-panel .form-panel { width: min(720px,100%); }
.donate-hero { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; color: #fff; background: var(--qavah-green-dark); }
.donate-hero-copy { align-self: center; padding: clamp(60px, 8vw, 110px) max(24px, calc((100vw - 1180px) / 2)); padding-right: clamp(34px,7vw,90px); }
.donate-hero figure { min-height: 560px; }
.donate-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.qavah-embed { position: relative; min-height: 860px; }
.qavah-embed iframe { width: 100%; min-height: 860px; border: 0; }
.legal-disclosure { margin-top: 52px; color: var(--qavah-muted); font-size: .86rem; }

.thrive-hero { min-height: min(760px, 92vh); padding: 130px max(24px, calc((100vw - 1080px) / 2)) 80px; display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); align-items: center; gap: clamp(44px,7vw,92px); color: #fff; background: linear-gradient(135deg, #1d3029, #536958); }
.thrive-hero figure { text-align: center; }
.thrive-hero figure img { width: auto; max-height: 580px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.3)); }
.thrive-hero h1 { font-size: clamp(3.7rem, 7vw, 6.6rem); }
.thrive-heart { text-align: center; }
.quote-grid { align-items: start; }
.quote-card { padding: clamp(26px,3vw,40px); background: #fff; border: 1px solid var(--qavah-border); border-radius: var(--qavah-radius); }
.quote-card blockquote { margin: 0 0 24px; font-family: var(--qavah-sans); font-size: 1rem; line-height: 1.72; }
.quote-card blockquote::before { content: "“"; display: block; height: 38px; color: var(--qavah-gold); font-family: var(--qavah-serif); font-size: 4rem; line-height: .85; }
.quote-card figcaption { display: grid; gap: 2px; }
.quote-card figcaption span { color: var(--qavah-muted); font-size: .88rem; }
.expandable-panel { width: var(--qavah-content); margin: 30px auto 0; border-top: 1px solid var(--qavah-border); }
.expandable-panel summary { width: fit-content; margin: 28px auto; padding: 11px 18px; font-weight: 600; cursor: pointer; }
.expandable-panel[open] .quote-grid, .expandable-panel[open] .review-grid { padding-top: 8px; }
.author-section figure img { display: block; width: 100%; max-height: 650px; object-fit: cover; object-position: center 25%; border-radius: var(--qavah-radius); }
.author-section .eyebrow + h2 { margin-bottom: .1em; }
.author-section h3 { color: var(--qavah-gold-dark); }
.why-thrive { padding: var(--qavah-section-space) 24px; color: #fff; background: var(--qavah-green); text-align: center; }
.review-grid { grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; }
.review-card { padding: 30px; background: #fff; border: 1px solid var(--qavah-border); border-radius: var(--qavah-radius); }
.review-stars { margin-bottom: 14px; color: var(--qavah-gold); font-size: 1.15rem; letter-spacing: .12em; }
.source-note { padding: 16px 18px; color: var(--qavah-muted); background: #fff; border-left: 4px solid var(--qavah-gold); font-size: .9rem; }
.spotify-frame { margin: 30px 0 18px; }
.spotify-frame iframe { display: block; width: 100%; min-height: 352px; border: 0; border-radius: 12px; }
.action-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; }
.action-card-grid .qavah-card { display: flex; flex-direction: column; }
.action-card-grid .qavah-button { margin-top: auto; }
.action-card-grid .button-row { margin-top: auto; }
.pricing-grid { margin-top: 44px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.pricing-card { padding: 28px 22px; background: #fff; border: 1px solid var(--qavah-border); border-radius: var(--qavah-radius); text-align: center; }
.pricing-card .price { font-family: var(--qavah-serif); font-size: 2.5rem; font-weight: 600; }
.pricing-card .qavah-button { width: 100%; }
.thrive-closing { padding: clamp(62px,8vw,96px) 24px; color: #fff; background: var(--qavah-green-dark); text-align: center; }
.thrive-closing blockquote { width: min(800px,100%); margin: 0 auto 16px; }

.news-header { padding: var(--qavah-section-space) 24px 54px; text-align: center; background: var(--qavah-sand); }
.posts-grid { width: var(--qavah-content); margin: 0 auto; padding: 64px 0 96px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.post-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--qavah-border); border-radius: var(--qavah-radius); overflow: hidden; }
.post-card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--qavah-sand); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .3s; }
.post-card:hover img { transform: scale(1.025); }
.post-card-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,var(--qavah-sand),#d7c8b2); }
.post-card-body { flex: 1; display: flex; flex-direction: column; padding: 26px; }
.post-card h2 { font-size: 2rem; }
.post-card h2 a { text-decoration: none; }
.post-card .post-card-read { margin-top: auto; }
.post-meta { color: var(--qavah-muted); font-size: .88rem; }
.single-article { width: min(850px,calc(100vw - 48px)); margin: 0 auto; padding: 80px 0 100px; }
.single-article header { margin-bottom: 42px; }
.single-article h1 { font-size: clamp(3rem,7vw,5.5rem); }
.single-article .entry-content img { margin: 1.4em 0; }
.pagination { grid-column: 1 / -1; display: flex; justify-content: center; gap: 18px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
.page-numbers { padding: 8px 13px; border: 1px solid var(--qavah-border); border-radius: 999px; text-decoration: none; }
.not-found { width: min(720px,calc(100vw - 48px)); margin: 0 auto; padding: 120px 0; text-align: center; }

/* Clean fallback for any imported page not yet assigned a dedicated template. */
.content-shell { width: var(--qavah-content); margin: 0 auto; padding: var(--qavah-section-space) 0; }
.page-content > .sections { margin: 0; }
.page-section { position: relative; width: 100%; min-width: 0; overflow: hidden; }
.section-border, .section-background { position: absolute; inset: 0; z-index: 0; }
.section-background-content, .section-background-content img, .background-image-fx { width: 100%; height: 100%; object-fit: cover; }
.section-background-overlay { position: absolute; inset: 0; background: #000; }
.content-wrapper { position: relative; z-index: 1; width: var(--qavah-content); margin: 0 auto; padding: 72px 0; }
.content-width--narrow .content-wrapper { width: var(--qavah-reading); }
.content, .sqs-layout, .sqs-block, .sqs-block-content, .sqs-html-content { width: 100%; min-width: 0; }
.sqs-row { display: flex; flex-wrap: wrap; margin: 0 -14px; }
[class*="sqs-col-"] { min-width: 0; padding: 0 14px; }
.sqs-col-1 { width: 8.333%; } .sqs-col-2 { width: 16.666%; } .sqs-col-3 { width: 25%; } .sqs-col-4 { width: 33.333%; }
.sqs-col-5 { width: 41.666%; } .sqs-col-6 { width: 50%; } .sqs-col-7 { width: 58.333%; } .sqs-col-8 { width: 66.666%; }
.sqs-col-9 { width: 75%; } .sqs-col-10 { width: 83.333%; } .sqs-col-11 { width: 91.666%; } .sqs-col-12 { width: 100%; }
.sqs-block { padding-block: 12px; }
.image-block img { display: block; width: 100%; }

.site-footer { color: #fff; background: var(--qavah-green); }
.footer-inner { width: var(--qavah-content); margin: 0 auto; padding: 58px 0 36px; display: grid; grid-template-columns: 1.05fr .7fr 1.25fr; gap: 46px; }
.footer-inner--compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h2 { font-size: 2.7rem; }
.site-footer h3 { font-size: 1.8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0 0 7px; }
.footer-links a { text-decoration: none; }
.site-footer .qavah-form { display: block; }
.site-footer .qavah-form label { margin-bottom: 12px; }
.site-footer .qavah-form input:not([type="checkbox"]) { color: var(--qavah-ink); }
.site-footer .qavah-form button { color: #fff; background: transparent; border-color: #fff; }
.site-footer .qavah-form button:hover { color: var(--qavah-green); background: #fff; }
.footer-bottom { width: var(--qavah-content); margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,.24); font-size: .84rem; }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .action-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .posts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-split-media { min-height: 460px; }
}

@media (max-width: 900px) {
  :root { --qavah-content: min(100% - 36px,1180px); --qavah-reading: min(100% - 36px,740px); --qavah-section-space: 64px; }
  .site-header, .header-inner { min-height: 82px; }
  .site-brand img { width: 54px; max-height: 62px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; top: 82px; left: 0; right: 0; display: none; padding: 16px 18px 22px; color: var(--qavah-ink); background: #fff; border-bottom: 1px solid var(--qavah-border); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
  .primary-nav.is-open { display: block; }
  .primary-menu { display: block; }
  .primary-menu > li { border-bottom: 1px solid var(--qavah-border); }
  .primary-menu > li:last-child { border-bottom: 0; padding-top: 10px; }
  .primary-menu > li > a, .primary-menu > li > .submenu-toggle { width: 100%; justify-content: space-between; padding: 7px 6px; }
  .sub-menu { position: static; display: none; width: 100%; padding: 0 0 10px 14px !important; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; }
  .has-submenu:hover .sub-menu, .has-submenu:focus-within .sub-menu { display: none; }
  .has-submenu.is-open .sub-menu { display: block; }
  .primary-menu .donate-link { justify-content: center; }
  .home-hero { min-height: 720px; }
  .home-hero-content { width: var(--qavah-content); margin-inline: auto; }
  .home-split, .partner-feature, .resource-card, .author-section, .contact-layout { grid-template-columns: minmax(0,1fr); }
  .home-split--reverse .home-split-media, .resource-card--reverse > :first-child { order: 0; }
  .home-split-media { min-height: 400px; }
  .choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-card--book figure img { max-height: 430px; }
  .donate-hero, .thrive-hero { grid-template-columns: minmax(0,1fr); }
  .donate-hero figure { min-height: 420px; }
  .thrive-hero { min-height: 0; padding-top: 120px; text-align: center; }
  .thrive-hero .button-row { justify-content: center; }
  .thrive-hero figure img { max-height: 450px; }
  .quote-grid, .review-grid { grid-template-columns: minmax(0,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  :root { --qavah-content: calc(100vw - 28px); --qavah-reading: calc(100vw - 28px); --qavah-section-space: 48px; }
  h1 { font-size: clamp(3rem,16vw,4.7rem); }
  h2 { font-size: clamp(2.15rem,11vw,3.3rem); }
  .page-section-standard { padding-inline: 14px; }
  .home-hero { min-height: 690px; }
  .home-hero-image { object-position: 61% center; }
  .home-hero-overlay { background: rgba(20,28,24,.68); }
  .home-hero-content { padding-top: 126px; }
  .home-hero h1 { font-size: clamp(4.6rem,26vw,7rem); }
  .home-section { padding-inline: 14px; }
  .home-split { margin-block: 48px; }
  .home-split-media { min-height: 310px; }
  .home-split-media img { max-height: 400px; }
  .home-split-content { padding: 34px 24px; }
  .home-work-grid, .team-grid, .board-grid, .partner-small-grid, .action-card-grid, .pricing-grid, .posts-grid, .footer-inner, .footer-inner--compact { grid-template-columns: minmax(0,1fr); }
  .choice-grid { grid-template-columns: minmax(0,1fr); margin-top: 14px; }
  .choice-grid a { min-height: 104px; }
  .qavah-form { grid-template-columns: minmax(0,1fr); }
  .qavah-form > *, .qavah-form .full { grid-column: 1; min-width: 0; }
  .button-row { align-items: stretch; }
  .button-row .qavah-button { width: 100%; }
  .resource-stack { margin-block: 48px; }
  .resource-card { padding: 24px 20px; }
  .donate-hero-copy { padding: 64px 20px; }
  .donate-hero figure { min-height: 330px; }
  .qavah-embed, .qavah-embed iframe { min-height: 930px; }
  .thrive-hero { padding: 110px 20px 58px; gap: 34px; }
  .thrive-hero h1 { font-size: clamp(3.2rem,15vw,4.5rem); }
  .thrive-hero figure img { max-height: 360px; }
  .quote-card, .review-card { padding: 24px 20px; }
  .posts-grid { width: calc(100vw - 28px); padding-top: 40px; }
  .footer-inner, .footer-bottom { width: calc(100vw - 28px); }
  .footer-inner { gap: 28px; }
  .footer-newsletter { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
