/* =====================================================================
   NWLC "Modern" theme – premium refresh layered over the classic styles.
   Everything is scoped to body.theme-modern, so switching the theme off
   in Admin → Content → Site-wide puts the classic look straight back.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

body.theme-modern{
  --radius:20px;
  --radius-sm:12px;
  --shadow:0 1px 2px rgba(11,42,74,.04),0 10px 30px -8px rgba(11,42,74,.10);
  --shadow-lg:0 2px 4px rgba(11,42,74,.05),0 24px 50px -12px rgba(11,42,74,.22);
  --glow:0 10px 30px -6px rgba(22,113,217,.55);
  --display:'Plus Jakarta Sans','Inter',system-ui,sans-serif;
  background:#fbfcfe;
}
.theme-modern h1,.theme-modern h2,.theme-modern h3,.theme-modern h4,
.theme-modern .section-head h2,.theme-modern .page-hero h1{font-family:var(--display);letter-spacing:-.025em}

/* ---------- Header: frosted glass that firms up on scroll ---------- */
.theme-modern .utility{background:linear-gradient(90deg,#06182c,#0b2a4a 55%,#0d3460)}
.theme-modern .mainnav{background:rgba(255,255,255,.78);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px);border-bottom-color:rgba(11,42,74,.07);transition:box-shadow .25s,background .25s}
.theme-modern .mainnav.is-scrolled{background:rgba(255,255,255,.92);box-shadow:0 8px 30px -12px rgba(11,42,74,.18)}
.theme-modern .navlinks a{position:relative;font-weight:600}
.theme-modern .navlinks a::after{content:"";position:absolute;left:0;right:0;bottom:-7px;height:2px;border-radius:2px;background:var(--blue);transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
.theme-modern .navlinks a:hover::after{transform:scaleX(1)}

/* ---------- Buttons: pill shape, soft glow, nudging arrow ---------- */
.theme-modern .btn{border-radius:999px;font-weight:700;transition:transform .18s ease,box-shadow .18s ease,background .18s,border-color .18s,color .18s}
.theme-modern .btn-blue{background:linear-gradient(135deg,#2a86f0,#1468cc);box-shadow:var(--glow)}
.theme-modern .btn-blue:hover{transform:translateY(-2px);box-shadow:0 16px 36px -8px rgba(22,113,217,.65)}
.theme-modern .btn-outline{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.theme-modern .btn-outline:hover{background:rgba(255,255,255,.18);transform:translateY(-2px)}
.theme-modern .btn-line{border-radius:999px}

/* ---------- Hero: deep gradient, glow orbs, fine grid, glass kicker ---------- */
.theme-modern .hero{background:#061a30;isolation:isolate}
.theme-modern .hero-bg{transform:scale(1.04);animation:nw-kenburns 22s ease-in-out infinite alternate}
.theme-modern .hero-bg::after{background:
   radial-gradient(60% 80% at 15% 30%,rgba(6,24,44,.86),rgba(6,24,44,.45) 60%,rgba(6,24,44,.12)),
   linear-gradient(180deg,rgba(6,24,44,.1),rgba(6,24,44,.65))!important}
.theme-modern .hero::before,.theme-modern .hero::after{content:"";position:absolute;z-index:1;border-radius:50%;filter:blur(70px);pointer-events:none}
.theme-modern .hero::before{width:520px;height:520px;left:-140px;top:-160px;background:rgba(42,134,240,.42);animation:nw-float 14s ease-in-out infinite}
.theme-modern .hero::after{width:420px;height:420px;right:6%;bottom:-220px;background:rgba(31,169,113,.28);animation:nw-float 18s ease-in-out infinite reverse}
.theme-modern .hero-content{z-index:2;padding:110px 0 120px;max-width:720px}
.theme-modern .hero-content::before{content:"";position:absolute;inset:-200px -2000px;z-index:-1;pointer-events:none;opacity:.5;
   background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
   background-size:56px 56px;-webkit-mask-image:radial-gradient(ellipse 50% 60% at 30% 50%,#000,transparent);mask-image:radial-gradient(ellipse 50% 60% at 30% 50%,#000,transparent)}
.theme-modern .hero .kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 14px 7px 12px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#cfe3ff;margin-bottom:22px}
.theme-modern .hero .kicker::before{content:"";width:7px;height:7px;border-radius:50%;background:#3ddc97;box-shadow:0 0 0 4px rgba(61,220,151,.18);animation:nw-pulse 2.4s ease-in-out infinite}
.theme-modern .hero h1{font-size:clamp(38px,5.4vw,64px);line-height:1.03;font-weight:800;letter-spacing:-.035em;
   background:linear-gradient(180deg,#fff 30%,#b9d8ff);-webkit-background-clip:text;background-clip:text;color:transparent;padding-bottom:4px}
.theme-modern .hero .tagline{font-family:var(--display);font-size:20px;color:#8fc2ff;letter-spacing:-.01em}
.theme-modern .hero p{font-size:16.5px;max-width:540px;color:#c4d6ea}
.theme-modern .hero-actions{gap:14px;margin-top:6px}
.theme-modern .hero-actions .btn{padding:15px 26px;font-size:15px}

/* ---------- Impact strip: floating glass card overlapping the hero ---------- */
.theme-modern .impact-strip{background:transparent;border:0;position:relative;z-index:5;margin-top:-58px}
.theme-modern .impact-grid{background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.7);border-radius:24px;box-shadow:0 30px 60px -20px rgba(6,26,48,.35);overflow:hidden}
.theme-modern .impact{border-right-color:rgba(11,42,74,.07)!important}
.theme-modern .impact .icon{background:linear-gradient(135deg,#e6f0ff,#d6e7fd);border-radius:11px}
.theme-modern .impact strong{font-family:var(--display);font-size:16px}
.theme-modern .quote{border-right-color:rgba(11,42,74,.07)}
.theme-modern .join-box{background:linear-gradient(135deg,#2a86f0,#0f4fa8);position:relative;overflow:hidden;transition:filter .2s}
.theme-modern .join-box::after{content:"→";position:absolute;right:18px;bottom:14px;font-size:20px;opacity:.7;transition:transform .2s}
.theme-modern .join-box:hover{filter:brightness(1.08)}
.theme-modern .join-box:hover::after{transform:translateX(4px)}

/* ---------- Section headings: eyebrow accent + display type ---------- */
.theme-modern section{padding:80px 0}
.theme-modern .section-head h2{font-size:clamp(26px,2.6vw,34px);font-weight:800;position:relative}
.theme-modern .section-head > h2::before,.theme-modern .section-head > div > h2::before{content:"";display:block;width:34px;height:4px;border-radius:4px;margin-bottom:14px;background:linear-gradient(90deg,var(--blue),#3ddc97)}
.theme-modern .home-split .section-head h2::before{width:26px;height:3px;margin-bottom:10px}
.theme-modern a.link{font-weight:700;transition:gap .2s,color .2s}
.theme-modern a.link:hover{color:var(--blue-deep)}

/* ---------- Cards: softer edges, lift + glow on hover ---------- */
.theme-modern .card,.theme-modern .event-card{border-color:rgba(11,42,74,.07);border-radius:var(--radius)}
.theme-modern .event-card{transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s}
.theme-modern .event-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.theme-modern .event-card .event-img{transition:filter .4s}
.theme-modern .event-card:hover .event-img{filter:saturate(1.15) brightness(1.05)}
.theme-modern .member,.theme-modern .op{border-radius:14px;transition:transform .2s,box-shadow .2s,border-color .2s}
.theme-modern .member:hover,.theme-modern .op:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:rgba(22,113,217,.25)}
.theme-modern .exchange-card,.theme-modern .benefit-cat,.theme-modern .step-card{transition:transform .25s,box-shadow .25s,border-color .25s}
.theme-modern .exchange-card:hover,.theme-modern .step-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}

/* ---------- Feature band: rounder tiles, slow zoom ---------- */
.theme-modern .feature,.theme-modern .logo-panel{border-radius:20px;overflow:hidden}
.theme-modern .feature{transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.theme-modern .feature:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}

/* ---------- Page heroes on inner pages ---------- */
.theme-modern .page-hero{position:relative;overflow:hidden}
.theme-modern .page-hero h1{font-weight:800;letter-spacing:-.03em}
.theme-modern .page-hero::after{content:"";position:absolute;width:420px;height:420px;right:-120px;top:-180px;border-radius:50%;background:rgba(42,134,240,.35);filter:blur(80px);pointer-events:none}

/* ---------- Sponsor slideshow & new-members strip ---------- */
.theme-modern .ss-slide,.theme-modern [data-slider]{border-radius:24px}
.theme-modern .nm-tile,.theme-modern .new-members .tile{border-radius:18px}

/* ---------- Forms ---------- */
.theme-modern input[type=text],.theme-modern input[type=email],.theme-modern input[type=tel],.theme-modern input[type=password],
.theme-modern input[type=url],.theme-modern input[type=date],.theme-modern input[type=time],.theme-modern input[type=number],
.theme-modern select,.theme-modern textarea{border-radius:12px;transition:border-color .2s,box-shadow .2s}
.theme-modern input:focus,.theme-modern select:focus,.theme-modern textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(22,113,217,.12);outline:none}

/* ---------- Footer: deep gradient with a soft glow ---------- */
.theme-modern footer{background:radial-gradient(60% 120% at 50% 0%,#0f3a6b 0%,#071a30 60%,#04111f 100%);position:relative;overflow:hidden;padding:40px 0 30px}
.theme-modern footer::before{content:"";position:absolute;left:50%;top:0;width:60%;height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(143,194,255,.6),transparent)}

/* ---------- Scroll reveal ---------- */
.theme-modern .nw-reveal{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.theme-modern .nw-reveal.is-in{opacity:1;transform:none}

@keyframes nw-float{0%,100%{transform:translate(0,0)}50%{transform:translate(40px,30px)}}
@keyframes nw-pulse{0%,100%{box-shadow:0 0 0 4px rgba(61,220,151,.18)}50%{box-shadow:0 0 0 8px rgba(61,220,151,.05)}}
@keyframes nw-kenburns{from{transform:scale(1.04)}to{transform:scale(1.12) translate(-1%,-1%)}}

@media(max-width:1000px){
  .theme-modern .impact-strip{margin-top:-36px}
  .theme-modern .impact-strip .container{padding-left:16px;padding-right:16px}
}
@media(max-width:700px){
  .theme-modern .hero-content{padding:72px 0 90px}
  .theme-modern .hero::before{width:320px;height:320px}
  .theme-modern section{padding:60px 0}
}
@media(prefers-reduced-motion:reduce){
  .theme-modern .hero-bg,.theme-modern .hero::before,.theme-modern .hero::after,.theme-modern .hero .kicker::before{animation:none}
  .theme-modern .nw-reveal{opacity:1;transform:none;transition:none}
}
