/*
Theme Name: SCG Community
Description: Bilingual (English / Bangla) public website for Sylhet Community Group U.A.E. Content is managed from the membership dashboard. Requires the SCG Membership plugin.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: scg-theme
*/
:root {
  --g: #0B5A36; --gd: #073D25; --y: #F4C20D; --ys: #FFF4C7; --r: #C8252C;
  --bg: #F4F7F2; --s: #FFFFFF; --ink: #13241A; --mu: #55685C; --line: #DCE5DD; --soft: #EAF1EB;
  --f-body: 'Hind Siliguri', system-ui, sans-serif; --f-head: 'Baloo Da 2', 'Hind Siliguri', sans-serif;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--g); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }
.muted { color: var(--mu); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--y); color: var(--gd); padding: 8px 14px; border-radius: 8px; z-index: 99; font-weight: 600; }
.skip:focus { left: 12px; }
:lang(bn) { line-height: 1.75; }

/* ---------- header ---------- */
.site-head { background: var(--s); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.admin-bar .site-head { top: 32px; }
.site-head__in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; flex: none; box-shadow: 0 0 0 3px var(--y); background: #fff; }
.brand strong { display: block; font: 700 17px/1.1 var(--f-head); color: var(--gd); letter-spacing: .01em; }
.brand em { display: block; font-style: normal; font-size: 14px; line-height: 1.3; color: var(--g); font-weight: 600; }
.menu { display: none; }
.nav-desk { margin-left: auto; display: flex; gap: 2px; }
.nav-desk a, .menu__nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15.5px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav-desk a:hover, .menu__nav a:hover { background: var(--soft); color: var(--g); }
.nav-desk a[aria-current=page], .menu__nav a[aria-current=page] { color: var(--g); box-shadow: inset 0 -3px 0 var(--y); border-radius: 0; }
.site-head__act { display: flex; align-items: center; gap: 10px; }
.site-head__act .scg-lang { color: var(--g); }
.site-head__act .scg-btn { padding: 9px 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { background: var(--g) radial-gradient(circle at 85% 30%, rgba(255,255,255,.07) 0 22%, transparent 22.2%) no-repeat; color: #fff; position: relative; padding: 64px 0 120px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hero__hi { color: var(--y); font-weight: 600; font-size: 17px; }
.hero h1 { font: 700 clamp(30px, 3.9vw, 50px)/1.05 var(--f-head); margin: 6px 0 14px; letter-spacing: .005em; }
.hero__tag { font-size: 19px; color: var(--ys); margin-bottom: 10px; font-weight: 500; }
.hero__lead { font-size: 18.5px; color: rgba(255,255,255,.88); max-width: 56ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.hero__ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero__emblem { display: grid; place-items: center; }
.hero__ring { width: min(340px, 80%); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px var(--y), 0 0 0 16px var(--r), 0 0 0 46px rgba(255,255,255,.06); }
.hero__ring img { width: 86%; height: 86%; object-fit: contain; }
.band { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 72px; display: block; }

/* ---------- page head ---------- */
.phead { background: var(--g); color: #fff; padding: 46px 0 88px; position: relative; overflow: hidden; }
.phead h1 { font: 700 clamp(30px, 4vw, 44px)/1.1 var(--f-head); }
.phead p { margin-top: 10px; color: rgba(255,255,255,.85); max-width: 60ch; font-size: 18px; }
.phead .band { height: 56px; }

/* ---------- sections ---------- */
.sec { padding: 64px 0; }
.sec h2 { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--f-head); color: var(--gd); }
.prose { display: grid; gap: 16px; font-size: 18px; }
.prose h2 { margin-top: 18px; }
.purpose__in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
.purpose__in h2 { position: relative; padding-top: 18px; }
.purpose__in h2::before { content: ''; position: absolute; top: 0; left: 0; width: 56px; height: 6px; border-radius: 6px; background: var(--y); }
.more { font-weight: 600; text-decoration: none; }
.benefits { background: var(--s); border-block: 1px solid var(--line); }
.numlist { list-style: none; padding: 0; margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; counter-reset: n; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; }
.numlist li::before { content: counter(n, decimal-leading-zero); font: 700 30px/1 var(--f-head); color: var(--g); }
.numlist--one { grid-template-columns: 1fr; margin-top: 0; }
.join { background: var(--y); }
.join__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.join h2 { color: var(--gd); }
.join p { max-width: 60ch; margin-top: 8px; color: #3B3200; font-size: 17.5px; }
.verify-note__in { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; align-items: center; max-width: 900px; }
.verify-note p { margin-top: 8px; color: var(--mu); font-size: 17.5px; }
.verify-note__qr { width: 120px; height: 120px; border-radius: 16px; background: var(--s); border: 2px solid var(--g); position: relative; box-shadow: 8px 8px 0 var(--y); }
.verify-note__qr span { position: absolute; width: 30px; height: 30px; border: 7px solid var(--gd); border-radius: 4px; }
.verify-note__qr span:nth-child(1) { left: 14px; top: 14px; }
.verify-note__qr span:nth-child(2) { right: 14px; top: 14px; }
.verify-note__qr span:nth-child(3) { left: 14px; bottom: 14px; }
.verify-note__qr span:nth-child(4) { right: 22px; bottom: 22px; width: 16px; height: 16px; border-width: 5px; border-color: var(--r); }
.contact-strip { background: var(--s); border-top: 1px solid var(--line); }
.clist { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; margin-top: 22px; }
.clist dt { font-size: 14px; color: var(--mu); font-weight: 500; }
.clist dd { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.clist dd a { text-decoration: none; }
.clist--big { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
.clist--big div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.clist--big dd { font-size: 21px; }
.rules { padding-left: 1.4em; display: grid; gap: 12px; font-size: 18px; }
.rules li::marker { color: var(--g); font-weight: 700; }
.policy { margin-top: 28px; background: var(--ys); border-radius: 14px; padding: 22px 24px; display: grid; gap: 10px; }
.policy h2 { font-size: 24px; }
.cta-line { margin-top: 30px; }
.h3 { font: 700 22px/1.2 var(--f-head) !important; margin-top: 30px; }
.soc { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-weight: 600; }

/* ---------- footer ---------- */
.site-foot { background: var(--gd); color: rgba(255,255,255,.82); padding: 54px 0 0; font-size: 15.5px; border-top: 6px solid var(--y); }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: var(--y); }
.site-foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; }
.site-foot__brand { display: flex; gap: 14px; align-items: center; }
.site-foot__brand img { width: 64px; height: 64px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 0 0 3px var(--y); }
.site-foot__brand strong { display: block; color: #fff; font: 700 17px/1.15 var(--f-head); }
.site-foot__brand span { color: var(--y); font-size: 14.5px; }
.site-foot__nav { display: grid; gap: 6px; align-content: start; }
.site-foot__contact { display: grid; gap: 8px; align-content: start; }
.site-foot__contact span { color: rgba(255,255,255,.6); font-size: 13.5px; display: block; }
.site-foot__soc { display: flex; gap: 14px; }
.site-foot__base { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-desk { display: none; }
  .menu { display: block; margin-left: auto; position: relative; }
  .menu summary { display: grid; gap: 5px; list-style: none; cursor: pointer; padding: 12px 10px; border-radius: 8px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 24px; height: 2.5px; background: var(--gd); border-radius: 2px; }
  .menu[open] summary { background: var(--soft); }
  .menu[open] .menu__nav { display: grid; position: absolute; right: 0; top: calc(100% + 10px); background: var(--s); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 240px; box-shadow: 0 20px 40px -20px rgba(7,61,37,.4); }
  .menu__nav a { padding: 12px 14px; }
  .site-head__act { order: 2; margin-left: auto; }
  .menu { order: 3; margin-left: 0; }
  .site-head__in { gap: 10px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .site-head__in { min-height: 64px; flex-wrap: nowrap; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 14px; }
  .brand em { font-size: 12.5px; }
  .site-head__act .scg-btn { display: none; }
  .hero { padding: 40px 0 96px; }
  .hero__in { grid-template-columns: 1fr; gap: 28px; }
  .hero__emblem { order: -1; justify-items: start; }
  .hero__ring { width: 120px; box-shadow: 0 0 0 6px var(--y), 0 0 0 10px var(--r); }
  .hero__lead { font-size: 17px; }
  .sec { padding: 46px 0; }
  .purpose__in { grid-template-columns: 1fr; gap: 16px; }
  .numlist { grid-template-columns: 1fr; }
  .verify-note__in { grid-template-columns: 1fr; gap: 20px; }
  .verify-note__qr { width: 88px; height: 88px; }
  .verify-note__qr span { width: 22px; height: 22px; border-width: 5px; }
  .site-foot__grid { grid-template-columns: 1fr; gap: 26px; }
  .admin-bar .site-head { top: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* ---------- home v2 ---------- */
.hero { padding: 72px 0 132px; background: var(--g); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 78% 40%, rgba(255,255,255,.09), transparent 70%), linear-gradient(160deg, var(--g) 0%, var(--gd) 100%); pointer-events: none; }
.hero__in { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.hero__hi { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; letter-spacing: .06em; text-transform: uppercase; }
.hero__hi::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--y); }
:lang(bn) .hero__hi { text-transform: none; letter-spacing: 0; font-size: 16px; }
.hero h1 { font-size: clamp(32px, 4.1vw, 54px); line-height: 1.04; margin: 14px 0 18px; }
.hero__lead { font-size: 19px; line-height: 1.6; }
.hero__count { margin-top: 26px; color: rgba(255,255,255,.8); font-size: 15.5px; }
.hero__count strong { font: 700 28px/1 var(--f-head); color: var(--y); margin-right: 6px; }
.hero__cards { position: relative; margin: 0 -24px 0 0; height: 440px; }
.hero__card { position: absolute; transition: transform .5s ease, opacity .5s ease; opacity: 0; }
.hero__cards.is-ready .hero__card { opacity: 1; }
.hero__card .scgc { zoom: 1.62; border-radius: 3.18mm; box-shadow: 0 30px 60px -24px rgba(0, 20, 10, .65), 0 0 0 1px rgba(255,255,255,.06); }
.hero__card--back { right: 0; top: 0; transform: rotate(5deg); }
.hero__card--front { left: -8px; bottom: 30px; transform: rotate(-4deg); }
.hero__cards.is-ready .hero__card--back { transform: rotate(6deg) translateY(-4px); }
.hero__cards figcaption { position: absolute; right: 6px; bottom: 0; font-size: 13px; color: rgba(255,255,255,.65); letter-spacing: .03em; }
.hero .band { height: 80px; }

.trust { background: var(--s); border-bottom: 1px solid var(--line); }
.trust__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--g); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: var(--ys); border-radius: 10px; padding: 6px; box-sizing: content-box; }
.trust__item strong { display: block; font: 700 17px/1.25 var(--f-head); color: var(--gd); }
.trust__item span { display: block; font-size: 14.5px; color: var(--mu); line-height: 1.45; margin-top: 3px; }

.sec__head { display: grid; gap: 8px; max-width: 640px; margin-bottom: 40px; }
.sec__head p { color: var(--mu); font-size: 18px; }
.steps__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps__list::before { content: ''; position: absolute; left: 28px; right: calc((100% - 84px) / 4 - 28px); top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--g) 0 10px, transparent 10px 18px); opacity: .35; }
.steps__list li { position: relative; display: grid; gap: 10px; align-content: start; }
.steps__n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: #fff; font: 700 24px/1 var(--f-head); box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--y); position: relative; }
.steps__list li:last-child .steps__n { background: var(--y); color: var(--gd); box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--g); }
.steps__list h3 { font: 700 20px/1.2 var(--f-head); color: var(--gd); margin-top: 10px; }
.steps__list p { color: var(--mu); font-size: 16px; line-height: 1.55; }

.join { background: var(--g); color: #fff; position: relative; overflow: hidden; }
.join::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 40px solid rgba(244, 194, 13, .12); pointer-events: none; }
.join h2 { color: #fff; }
.join p { color: rgba(255,255,255,.82); }
.join__in { position: relative; z-index: 1; align-items: center; }
.join__text { max-width: 640px; }
.join__need { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; font-size: 15.5px; color: rgba(255,255,255,.9); }
.join__need li { display: flex; gap: 10px; align-items: baseline; }
.join__need li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--y); flex: none; transform: translateY(-1px); }
.join .scg-btn { background: var(--y); border-color: var(--y); color: var(--gd) !important; }
.join .scg-btn:hover { background: #E3B300; border-color: #E3B300; }

@media (max-width: 1080px) {
  .hero__card .scgc { zoom: 1.15; }
  .hero__cards { height: 330px; }
  .trust__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps__list::before { display: none; }
}
@media (max-width: 760px) {
  .hero { padding: 36px 0 100px; }
  .hero__in { grid-template-columns: 1fr; gap: 34px; }
  .hero__cards { height: 250px; order: 2; max-width: 360px; width: 100%; }
  .hero__card .scgc { zoom: .86; }
  .hero__card--front { left: 2px; bottom: 26px; }
  .hero__lead { font-size: 17px; }
  .trust__in { grid-template-columns: 1fr; }
  .trust__item { border-left: 0 !important; padding: 18px 0 !important; border-top: 1px solid var(--line); }
  .trust__item:first-child { border-top: 0; }
  .steps__list { grid-template-columns: 1fr; row-gap: 28px; }
  .steps__list li { grid-template-columns: 56px 1fr; column-gap: 18px; }
  .steps__list li h3 { margin-top: 0; align-self: center; }
  .steps__list li p { grid-column: 2; }
  .join__need { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .hero__card { transition: none; } }