/*
Theme Name: Samanvay
Theme URI: https://wplogist.com/themes/samanvay
Author: WPLogist
Author URI: https://wplogist.com
Description: A warm, accessible WordPress theme for Indian social, welfare, community, and society organisations.
Version: 2.0.3
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: samanvay
Tags: blog, education, non-profit, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --sam-saffron: #ed6b0b;
  --sam-saffron-dark: #a31325;
  --sam-green: #477c3c;
  --sam-green-dark: #315c31;
  --sam-indigo: #142b4a;
  --sam-cream: #fffaf0;
  --sam-sand: #f4ead7;
  --sam-ink: #212529;
  --sam-muted: #66706b;
  --sam-white: #fff;
  --sam-footer: #10243f;
  --sam-border: #e5dccb;
  --sam-font-body: "Noto Sans Devanagari", "Mangal", "Kohinoor Devanagari", sans-serif;
  --sam-font-heading: "Noto Sans Devanagari", "Mangal", "Kohinoor Devanagari", sans-serif;
  --sam-body-size: 17px;
  --sam-line-height: 1.7;
  --sam-shadow: 0 16px 40px rgba(48, 42, 31, .1);
  --sam-radius: 22px;
  --sam-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--sam-ink); background: var(--sam-white); font-family: var(--sam-font-body); font-size: var(--sam-body-size); line-height: var(--sam-line-height); }
a { color: var(--sam-green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sam-saffron-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #ffbe3b; outline-offset: 3px; }
.site-container { width: min(calc(100% - 40px), var(--sam-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; 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; z-index: 100000; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 18px; clip: auto; background: var(--sam-white); color: #111; }

.top-strip { background: var(--sam-indigo); color: #fff; font-size: 14px; }
.top-strip .site-container { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.top-strip p { margin: 0; }
.top-strip a { color: #fff; text-decoration: none; }
.site-header { position: sticky; z-index: 50; top: 0; background: var(--sam-white); border-bottom: 1px solid rgba(229,220,203,.75); backdrop-filter: blur(14px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.custom-logo { max-height: 58px; width: auto; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; border-radius: 50%; color: #fff; background: conic-gradient(var(--sam-saffron) 0 33%, #fff 33% 66%, var(--sam-green) 66%); box-shadow: inset 0 0 0 5px var(--sam-indigo); font-family: var(--sam-font-heading); font-weight: 800; }
.site-title { display: block; color: var(--sam-indigo); font-family: var(--sam-font-heading); font-size: 25px; font-weight: 800; line-height: 1.1; text-decoration: none; }
.site-description { margin: 4px 0 0; color: var(--sam-muted); font-size: 12px; line-height: 1.3; }
.main-navigation { display: flex; align-items: center; gap: 24px; }
.main-navigation ul { display: flex; align-items: center; gap: 24px; padding: 0; margin: 0; list-style: none; }
.main-navigation a { color: var(--sam-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--sam-saffron-dark); }
.menu-toggle { display: none; border: 0; background: none; color: var(--sam-indigo); cursor: pointer; }
.header-cta, .sam-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 2px solid var(--sam-green); border-radius: 999px; background: var(--sam-green); color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.header-cta:hover, .sam-button:hover { transform: translateY(-2px); background: var(--sam-green-dark); border-color: var(--sam-green-dark); color: #fff; box-shadow: 0 8px 20px rgba(21,93,57,.2); }
.sam-button--light { border-color: #fff; background: var(--sam-white); color: var(--sam-indigo); }
.sam-button--outline { border-color: var(--sam-green); background: transparent; color: var(--sam-green-dark); }

.hero { position: relative; overflow: hidden; padding: 92px 0 84px; background: var(--sam-cream); }
.hero::before, .hero::after { position: absolute; content: ""; border: 2px solid rgba(232,111,40,.15); border-radius: 50%; }
.hero::before { top: -180px; right: -120px; width: 520px; height: 520px; box-shadow: 0 0 0 35px rgba(232,111,40,.05), 0 0 0 70px rgba(36,122,77,.04); }
.hero::after { bottom: -130px; left: -100px; width: 280px; height: 280px; box-shadow: 0 0 0 28px rgba(37,52,95,.04); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--sam-saffron-dark); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 3px; content: ""; background: var(--sam-saffron); border-radius: 3px; }
.hero h1 { max-width: 730px; margin: 0 0 22px; color: var(--sam-indigo); font-family: var(--sam-font-heading); font-size: clamp(43px, 6vw, 76px); line-height: 1.05; letter-spacing: -.035em; }
.hero h1 em { color: var(--sam-saffron-dark); font-style: normal; }
.hero-copy { max-width: 650px; margin: 0 0 30px; color: #4f5854; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; min-height: 470px; }
.hero-photo { position: absolute; inset: 0 10px 30px 60px; overflow: hidden; border-radius: 180px 180px 28px 28px; background: linear-gradient(145deg, #ffd6a6, #f2a65a 52%, #347a55); box-shadow: var(--sam-shadow); }
.hero-photo::before { position: absolute; inset: 32px; content: ""; border: 2px solid rgba(255,255,255,.55); border-radius: 150px 150px 18px 18px; }
.people-illustration { position: absolute; inset: auto 0 0; display: flex; justify-content: center; align-items: flex-end; gap: 7px; height: 78%; }
.person { position: relative; width: 84px; height: 210px; border-radius: 48px 48px 18px 18px; background: var(--sam-green); }
.person::before { position: absolute; top: -54px; left: 15px; width: 54px; height: 54px; content: ""; border-radius: 50%; background: #9c552f; box-shadow: inset 0 8px 0 #2b211f; }
.person:nth-child(2) { height: 260px; background: var(--sam-indigo); }
.person:nth-child(2)::before { background: #bd7447; }
.person:nth-child(3) { height: 225px; background: var(--sam-saffron); }
.person:nth-child(3)::before { background: #7f4329; }
.person::after { position: absolute; top: 45px; left: -10px; width: calc(100% + 20px); height: 12px; content: ""; border-radius: 10px; background: rgba(255,255,255,.55); transform: rotate(-6deg); }
.impact-card { position: absolute; right: -20px; bottom: 0; width: 210px; padding: 18px 20px; border: 1px solid var(--sam-border); border-radius: 16px; background: var(--sam-white); box-shadow: var(--sam-shadow); }
.impact-card strong { display: block; color: var(--sam-saffron-dark); font-family: var(--sam-font-heading); font-size: 32px; line-height: 1; }
.impact-card span { color: var(--sam-muted); font-size: 13px; font-weight: 700; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--sam-muted); font-size: 13px; font-weight: 700; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--sam-green); font-weight: 900; }

.section { padding: 88px 0; }
.section--soft { background: #f8f5ee; }
.section--green { position: relative; overflow: hidden; background: var(--sam-green-dark); color: #fff; }
.section-heading { max-width: 700px; margin: 0 auto 46px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2 { margin: 0 0 14px; color: var(--sam-indigo); font-family: var(--sam-font-heading); font-size: clamp(34px, 4vw, 50px); line-height: 1.15; }
.section-heading p { margin: 0; color: var(--sam-muted); }
.section--green .section-heading h2, .section--green .section-heading p { color: #fff; }
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.programme-card { padding: 30px; border: 1px solid var(--sam-border); border-radius: var(--sam-radius); background: var(--sam-white); box-shadow: 0 8px 28px rgba(48,42,31,.06); transition: transform .2s ease, box-shadow .2s ease; }
.programme-card:hover { transform: translateY(-5px); box-shadow: var(--sam-shadow); }
.programme-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 16px; background: #fff0df; color: var(--sam-saffron-dark); font-size: 26px; }
.programme-card:nth-child(2) .programme-icon, .programme-card:nth-child(5) .programme-icon { background: #e4f4e9; color: var(--sam-green); }
.programme-card:nth-child(3) .programme-icon, .programme-card:nth-child(6) .programme-icon { background: #e8eaf5; color: var(--sam-indigo); }
.programme-card h3 { margin: 0 0 10px; color: var(--sam-indigo); font-family: var(--sam-font-heading); font-size: 23px; }
.programme-card p { margin: 0; color: var(--sam-muted); font-size: 15px; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.about-pattern { position: relative; min-height: 500px; border-radius: 28px; background-color: var(--sam-indigo); background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.14) 0 3px, transparent 4px), radial-gradient(circle at 80% 80%, rgba(255,190,59,.2) 0 4px, transparent 5px); background-size: 40px 40px, 56px 56px; }
.about-pattern::before { position: absolute; inset: 55px; content: "सर्वे भवन्तु सुखिनः"; display: grid; place-items: center; padding: 30px; border: 2px solid rgba(255,255,255,.5); border-radius: 50%; color: #fff; font-family: var(--sam-font-heading); font-size: clamp(30px, 4vw, 48px); line-height: 1.25; text-align: center; }
.about-copy h2 { margin: 0 0 18px; color: var(--sam-indigo); font-family: var(--sam-font-heading); font-size: clamp(35px, 4vw, 50px); line-height: 1.15; }
.about-copy > p { color: var(--sam-muted); }
.value-list { display: grid; gap: 16px; padding: 0; margin: 28px 0 32px; list-style: none; }
.value-list li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.value-list b { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #e7f3eb; color: var(--sam-green); }
.value-list strong { display: block; color: var(--sam-indigo); }
.value-list span { color: var(--sam-muted); font-size: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 28px 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; text-align: center; background: rgba(255,255,255,.08); }
.stat strong { display: block; color: #ffcd78; font-family: var(--sam-font-heading); font-size: 42px; line-height: 1; }
.stat span { font-size: 14px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid var(--sam-border); border-radius: var(--sam-radius); background: var(--sam-white); }
.post-card__image { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, #f3c98b, #db7739); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__body { padding: 24px; }
.post-card__meta { color: var(--sam-saffron-dark); font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.post-card h3 { margin: 9px 0 10px; font-family: var(--sam-font-heading); font-size: 23px; line-height: 1.25; }
.post-card h3 a { color: var(--sam-indigo); text-decoration: none; }
.post-card p { margin: 0; color: var(--sam-muted); font-size: 14px; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px; border-radius: 28px; background: linear-gradient(120deg, var(--sam-saffron-dark), var(--sam-saffron)); color: #fff; box-shadow: var(--sam-shadow); }
.cta-panel h2 { margin: 0 0 8px; font-family: var(--sam-font-heading); font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.cta-panel p { margin: 0; opacity: .92; }

.page-header { padding: 72px 0; background: var(--sam-cream); text-align: center; }
.page-header h1 { margin: 0; color: var(--sam-indigo); font-family: var(--sam-font-heading); font-size: clamp(38px, 6vw, 62px); line-height: 1.1; }
.page-header p { max-width: 650px; margin: 14px auto 0; color: var(--sam-muted); }
.content-area { padding: 72px 0; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 60px; }
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: 1100px; margin-left: 50%; transform: translateX(-50%); }
.entry-content h2, .entry-content h3 { color: var(--sam-indigo); font-family: var(--sam-font-heading); line-height: 1.25; }
.entry-content blockquote { padding: 20px 28px; border-left: 5px solid var(--sam-saffron); background: var(--sam-cream); font-family: var(--sam-font-heading); font-size: 21px; }
.entry-meta { margin-bottom: 28px; color: var(--sam-muted); font-size: 14px; }
.sidebar .widget { padding: 24px; margin-bottom: 22px; border: 1px solid var(--sam-border); border-radius: 16px; }
.widget-title { margin: 0 0 14px; color: var(--sam-indigo); font-family: var(--sam-font-heading); }
.widget ul { padding-left: 20px; }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--sam-border); border-radius: 50%; text-decoration: none; }
.page-numbers.current { background: var(--sam-green); color: #fff; }
.search-form { display: flex; gap: 8px; }
.search-field { min-width: 0; flex: 1; padding: 10px 13px; border: 1px solid var(--sam-border); border-radius: 9px; }
.search-submit { padding: 9px 14px; border: 0; border-radius: 9px; background: var(--sam-green); color: #fff; font-weight: 700; cursor: pointer; }
.comments-area { max-width: 760px; margin-top: 50px; padding-top: 36px; border-top: 1px solid var(--sam-border); }
.comment-list { padding: 0; list-style: none; }
.comment-body { padding: 20px; margin-bottom: 16px; border-radius: 14px; background: #f8f5ee; }
textarea, input[type="text"], input[type="email"], input[type="url"] { width: 100%; padding: 12px; border: 1px solid #cfc6b6; border-radius: 8px; }
input[type="submit"] { padding: 11px 20px; border: 0; border-radius: 999px; background: var(--sam-green); color: #fff; font-weight: 800; }

.site-footer { padding: 64px 0 24px; background: var(--sam-footer); color: rgba(255,255,255,.75); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 50px; }
.site-footer .site-title, .site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #ffcd78; }
.site-footer ul { padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; margin-top: 45px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .main-navigation ul { position: absolute; top: 100%; left: 20px; right: 20px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px; border: 1px solid var(--sam-border); border-radius: 14px; background: var(--sam-white); box-shadow: var(--sam-shadow); }
  .main-navigation.toggled ul { display: flex; }
  .main-navigation li a { display: block; padding: 10px 12px; }
  .header-cta { display: none; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; width: 100%; margin: auto; }
  .programme-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-container { width: min(calc(100% - 28px), var(--sam-container)); }
  .top-strip .site-container { justify-content: center; text-align: center; }
  .top-strip p:last-child { display: none; }
  .site-description { display: none; }
  .header-inner { min-height: 72px; }
  .hero { padding: 64px 0; }
  .hero-grid { gap: 42px; }
  .hero-art { min-height: 390px; }
  .hero-photo { inset: 0 5px 30px 24px; }
  .impact-card { right: 0; width: 175px; }
  .section { padding: 64px 0; }
  .programme-grid, .posts-grid, .stats-grid { grid-template-columns: 1fr; }
  .about-pattern { min-height: 380px; }
  .about-pattern::before { inset: 38px; }
  .cta-panel { align-items: flex-start; flex-direction: column; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

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

/* Reference-led Hindi NGO homepage. */
.top-strip { background: linear-gradient(90deg, #df5b00, var(--sam-saffron)); }
.site-header { position: relative; box-shadow: 0 3px 16px rgba(20,43,74,.08); }
.header-inner { min-height: 92px; }
.site-title { color: #a31325; font-size: 27px; }
.brand-mark { width: 58px; height: 58px; flex-basis: 58px; background: #fff6e7; color: #a31325; box-shadow: inset 0 0 0 3px #a31325; font-size: 25px; }
.main-navigation ul { gap: 20px; }
.main-navigation a { font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-member { padding: 10px 16px; border: 1px solid #a31325; border-radius: 6px; color: #a31325; font-size: 13px; font-weight: 800; text-decoration: none; }
.header-cta { min-height: 41px; padding: 8px 18px; border-radius: 6px; border-color: #a31325; background: #a31325; font-size: 13px; }
.ref-home { background: #fff; }
.ref-hero { position: relative; padding: 0 0 62px; overflow: hidden; background: radial-gradient(circle at 18% 43%, rgba(237,107,11,.055), transparent 27%), #fffdf8; }
.ref-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 32px; min-height: 520px; }
.ref-hero__copy { align-self: center; padding: 30px 0 90px; }
.ref-hero__copy h1 { margin: 0 0 28px; color: #0e284b; font-family: var(--sam-font-heading); font-size: clamp(42px, 4.35vw, 66px); font-weight: 800; line-height: 1.33; letter-spacing: -.025em; }
.ref-hero__copy p { max-width: 610px; margin: 0 0 31px; color: #4b4c4d; font-size: 17px; line-height: 1.85; }
.ref-hero .hero-actions { gap: 24px; }
.ref-hero .sam-button { min-height: 58px; padding: 13px 28px; border-radius: 9px; font-size: 18px; }
.ref-hero .sam-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sam-button--maroon { border-color: #a31325; background: #a31325; }
.sam-button--maroon:hover { border-color: #7d0e1b; background: #7d0e1b; }
.ref-hero__collage { position: relative; align-self: stretch; min-height: 520px; }
.ref-hero__collage img { width: 100%; height: 100%; object-fit: cover; }
.ref-collage-main { position: absolute; top: 12px; right: -95px; width: 94%; height: 365px; overflow: hidden; border: 3px solid #fff; border-radius: 150px 0 82px 150px; box-shadow: 0 9px 28px rgba(20,43,74,.12); }
.ref-collage-main img { object-position: 58% center; }
.ref-collage-small { position: absolute; bottom: 16px; height: 190px; overflow: hidden; border: 4px solid #fff; border-radius: 52px 52px 0 0; box-shadow: 0 7px 22px rgba(20,43,74,.12); }
.ref-collage-small--one { left: 0; width: 53%; }
.ref-collage-small--one img { object-position: 3% center; }
.ref-collage-small--two { right: -40px; width: 50%; }
.ref-collage-small--two img { object-position: 88% center; }
.ref-mandala { position: absolute; width: 170px; height: 170px; opacity: .12; background: repeating-radial-gradient(circle, transparent 0 12px, var(--sam-saffron) 13px 14px, transparent 15px 24px); border-radius: 50%; }
.ref-mandala::after { position: absolute; inset: 32px; content: ""; border: 2px dashed var(--sam-saffron); border-radius: 50%; }
.ref-mandala--left { bottom: 38px; left: -75px; }
.ref-mandala--middle { top: 105px; left: 45%; width: 125px; height: 125px; }
.ref-trustbar { position: relative; z-index: 3; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); margin-top: -80px; padding: 22px 28px; border: 1px solid #eee8df; border-radius: 17px; background: #fff; box-shadow: 0 13px 34px rgba(20,43,74,.13); }
.ref-trustbar > div { display: flex; align-items: center; gap: 14px; padding: 5px 22px; border-right: 1px solid #e8e3dc; }
.ref-trustbar > div:last-child { border: 0; }
.ref-trustbar strong, .ref-trustbar small { display: block; line-height: 1.35; }
.ref-trustbar small { color: var(--sam-muted); font-size: 11px; }
.ref-trust-icon { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 54px; border-radius: 50%; }
.ref-trust-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ref-trust-icon--green { color: var(--sam-green); background: #eff7e9; }
.ref-trust-icon--orange { color: var(--sam-saffron); background: #fff2e4; }
.ref-trust-icon--red { color: #a31325; background: #fbedef; }
.ref-about { padding-top: 105px; }
.ref-about__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; }
.ref-photo { height: 360px; overflow: hidden; border-radius: 14px; }
.ref-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 15% center; }
.ref-title { position: relative; margin: 0 0 25px; color: var(--sam-indigo); font-family: var(--sam-font-heading); font-size: 34px; line-height: 1.2; }
.ref-title::after { position: absolute; bottom: -9px; left: 0; width: 46px; height: 3px; content: ""; background: var(--sam-saffron); }
.ref-title--center { text-align: center; }
.ref-title--center::after { left: 50%; transform: translateX(-50%); }
.ref-checks { padding: 0; list-style: none; }
.ref-checks li { margin: 9px 0; }
.ref-checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; background: var(--sam-green); color: #fff; font-size: 11px; }
.ref-sign { margin-top: 25px; font-weight: 700; }
.ref-services { padding: 42px 0 54px; border-bottom: 3px solid rgba(163,19,37,.7); background: linear-gradient(110deg, #fffdf8, #fff8ed 50%, #fffdf8); }
.ref-services .ref-title { margin-bottom: 36px; font-size: 35px; }
.ref-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 26px; }
.ref-service { display: grid; grid-template-columns: 106px 1fr; align-items: center; gap: 18px; min-height: 160px; padding: 20px 25px; border: 1px solid #eee8df; border-radius: 14px; background: #fff; box-shadow: 0 7px 21px rgba(55,42,27,.09); }
.ref-service__icon { display: grid; place-items: center; width: 94px; height: 94px; }
.ref-service__icon svg { width: 90px; height: 86px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ref-service__icon .svg-fill { fill: #fff; stroke: #fff; }
.ref-service--green .ref-service__icon { color: var(--sam-green); }
.ref-service--red .ref-service__icon { color: #a31325; }
.ref-service--orange .ref-service__icon { color: var(--sam-saffron); }
.ref-service--orange .ref-service__icon svg rect:first-child { fill: currentColor; stroke: currentColor; }
.ref-service h3 { margin: 0 0 10px; color: var(--sam-indigo); font-size: 19px; font-weight: 800; line-height: 1.2; }
.ref-service h3 small { display: block; margin-top: 3px; font-size: 15px; font-weight: 700; }
.ref-service p { margin: 0; color: #55585c; font-size: 14px; line-height: 1.65; }
.ref-impact { position: relative; min-height: 270px; padding: 28px 0 30px; overflow: hidden; border-top: 2px solid #790a17; border-bottom: 3px solid #770713; background: radial-gradient(circle at 50% 35%, rgba(207,45,62,.7), transparent 50%), linear-gradient(100deg, #8b0d1b, #b01427 52%, #8b0d1b); color: #fff; }
.ref-impact__inner { position: relative; z-index: 2; }
.ref-impact h2 { margin: 0 0 16px; color: #fff; font-family: var(--sam-font-heading); font-size: 34px; font-weight: 800; line-height: 1.2; text-align: center; text-shadow: 0 2px 2px rgba(70,0,8,.5); }
.ref-impact__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ref-impact__item { display: grid; place-items: center; min-height: 168px; padding: 3px 22px; border-right: 2px solid rgba(255,220,205,.46); text-align: center; }
.ref-impact__item:last-child { border: 0; }
.ref-impact__item > svg { width: 54px; height: 51px; margin-bottom: 3px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 1px rgba(50,0,5,.35)); }
.ref-impact__item--accent > svg { stroke: #ffad55; }
.ref-impact__item strong { display: block; color: #fff; font-size: 44px; font-weight: 800; line-height: 1.05; text-shadow: 0 2px 2px rgba(70,0,8,.55); }
.ref-impact__item span { margin-top: 5px; color: #fff; font-size: 19px; font-weight: 700; line-height: 1.25; text-shadow: 0 2px 2px rgba(70,0,8,.55); }
.ref-impact__pattern { position: absolute; top: -38px; width: 300px; height: 300px; fill: none; stroke: #e88a82; stroke-width: 2; opacity: .13; }
.ref-impact__pattern--left { left: -75px; transform: rotate(14deg); }
.ref-impact__pattern--right { right: -70px; transform: rotate(-16deg) scaleX(-1); }
.ref-campaigns { padding-bottom: 35px; }
.ref-campaigns .post-card { border-radius: 12px; box-shadow: 0 6px 20px rgba(20,43,74,.08); }
.ref-campaigns .post-card__image { aspect-ratio: 16/8.5; }
.ref-event { padding-top: 20px; }
.ref-event__grid { display: grid; grid-template-columns: .8fr 1.2fr .95fr; overflow: hidden; border-radius: 12px; background: #fff8ed; }
.ref-events-list { padding: 30px; }
.ref-events-list h2 { margin-top: 0; color: var(--sam-indigo); }
.ref-events-list p { padding-bottom: 13px; border-bottom: 1px solid #e5d8c7; font-size: 14px; }
.ref-events-list b { color: #a31325; }
.ref-event__photo { min-height: 320px; }
.ref-event__photo img { width: 100%; height: 100%; object-fit: cover; }
.ref-event__card { padding: 32px; background: linear-gradient(135deg, #b61a2c, #8e1020); color: #fff; }
.ref-event__card h2 { margin: 10px 0; color: #fff; font-size: 31px; }
.ref-event__card > small { padding: 5px 9px; border-radius: 4px; background: var(--sam-saffron); }
.ref-event__card .sam-button { min-height: 38px; padding: 6px 14px; }
.ref-membership { padding-top: 25px; }
.ref-membership__box { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; overflow: hidden; border-radius: 12px; background: linear-gradient(110deg, #fff3df, #fffdf7); }
.ref-membership__photo { height: 260px; }
.ref-membership__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.ref-membership__box > div:last-child { padding: 28px 45px; }
.ref-membership h2 { margin: 0; color: var(--sam-indigo); font-size: 31px; }
.ref-membership h3 { margin: 0 0 18px; color: var(--sam-saffron); }
.ref-member-points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-bottom: 20px; font-size: 14px; }
.ref-member-points span { color: #3e5e46; }
.ref-testimonials { padding-top: 20px; }
.ref-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ref-testimonial-grid blockquote { margin: 0; padding: 28px; border: 1px solid #ece6dd; border-radius: 12px; box-shadow: 0 8px 24px rgba(20,43,74,.07); }
.ref-testimonial-grid strong, .ref-testimonial-grid small, .ref-testimonial-grid b { display: block; }
.ref-testimonial-grid strong { color: var(--sam-indigo); }
.ref-testimonial-grid small { color: var(--sam-muted); }
.ref-testimonial-grid b { margin: 8px 0; color: var(--sam-saffron); letter-spacing: 3px; }
.ref-testimonial-grid p { margin-bottom: 0; font-size: 14px; }
.ref-gallery { padding: 15px 0 50px; }
.ref-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ref-gallery__grid img { width: 100%; height: 150px; border-radius: 8px; object-fit: cover; }
.ref-gallery__grid img:nth-child(2) { object-position: 25% center; }
.ref-gallery__grid img:nth-child(3) { object-position: 70% center; }
.ref-final-cta { padding: 24px 0; background: linear-gradient(100deg, #ed6b0b, #a31325); color: #fff; }
.ref-final-cta .site-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ref-final-cta h2, .ref-final-cta p { margin: 0; color: #fff; }
.ref-final-cta h2 { font-size: 29px; }
.ref-final-cta .sam-button { margin-left: 10px; }
.sam-button--outline-light { border-color: #fff; background: transparent; color: #fff; }
.site-footer { padding-top: 42px; }
.footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h3 { font-size: 15px; }
.footer-grid p, .footer-grid li { font-size: 13px; }
.footer-social { color: var(--sam-saffron); }
.footer-news input { padding: 9px; border: 0; border-radius: 4px; }
.footer-news button { width: 100%; padding: 8px; margin-top: 7px; border: 0; border-radius: 4px; background: var(--sam-saffron); color: #fff; }

@media (max-width: 1050px) {
  .header-actions { display: none; }
  .ref-service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .ref-hero__grid, .ref-about__grid, .ref-event__grid, .ref-membership__box { grid-template-columns: 1fr; }
  .ref-hero__copy { padding-bottom: 20px; }
  .ref-hero__collage { min-height: 460px; }
  .ref-collage-main { right: -40px; }
  .ref-trustbar { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
  .ref-trustbar > div:nth-child(2) { border-right: 0; }
  .ref-impact__grid, .ref-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 25px 0; }
  .ref-impact__item:nth-child(2) { border-right: 0; }
  .ref-impact__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,220,205,.35); }
  .ref-testimonial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ref-service-grid, .ref-trustbar, .ref-member-points { grid-template-columns: 1fr; }
  .ref-trustbar > div { border-right: 0; border-bottom: 1px solid #eee8df; }
  .ref-impact__grid { grid-template-columns: 1fr 1fr; }
  .ref-impact h2 { font-size: 29px; }
  .ref-impact__item { min-height: 145px; padding: 10px; }
  .ref-impact__item strong { font-size: 34px; }
  .ref-impact__item span { font-size: 15px; }
  .ref-final-cta .site-container { align-items: flex-start; flex-direction: column; }
  .ref-final-cta .sam-button { margin: 8px 8px 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .ref-service { grid-template-columns: 82px 1fr; min-height: 140px; padding: 18px; }
  .ref-service__icon { width: 72px; height: 72px; }
  .ref-service__icon svg { width: 70px; height: 68px; }
}
