/* V28 Modern UI Revamp — stability-first visual layer */
:root{
  --ui-navy:#102d52;--ui-navy-deep:#0a203b;--ui-rose:#b85a6c;--ui-rose-soft:#f4e4e3;
  --ui-cream:#fbf8f3;--ui-paper:#fffdf9;--ui-line:rgba(16,45,82,.10);--ui-gold:#c9924a;
  --ui-shadow:0 18px 50px rgba(16,45,82,.10);--ui-shadow-soft:0 8px 28px rgba(16,45,82,.07);
  --ui-radius:20px;--ui-ease:cubic-bezier(.22,1,.36,1)
}
html{scroll-behavior:smooth;scroll-padding-top:82px}
body{background:var(--ui-cream);overflow-x:hidden}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(circle at 88% 8%,rgba(184,90,108,.08),transparent 24%),radial-gradient(circle at 8% 42%,rgba(201,146,74,.055),transparent 22%)}
.wrap{width:min(92%,1120px)}
header{background:rgba(251,248,243,.84)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(16,45,82,.07)!important;box-shadow:0 4px 24px rgba(16,45,82,.035);transition:background .35s ease,box-shadow .35s ease}
.nav{height:74px}.logo{width:190px;transition:transform .35s var(--ui-ease)}
.logo:hover{transform:translateY(-1px) scale(1.015)}
.navlinks{gap:28px}.navlinks a{font-weight:600;transition:color .25s ease,opacity .25s ease}.navlinks a:hover{color:var(--ui-rose)}
.navlinks a:after{transition:transform .3s var(--ui-ease),opacity .3s ease;transform:scaleX(0);transform-origin:center;opacity:0}
.navlinks a.active:after{transform:scaleX(1);opacity:1}
.top-cta,.btn{position:relative;overflow:hidden;isolation:isolate;transition:transform .28s var(--ui-ease),box-shadow .28s ease,background .28s ease}
.top-cta:before,.btn:before{content:"";position:absolute;inset:0;transform:translateX(-110%) skewX(-18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.26),transparent);transition:transform .65s var(--ui-ease);z-index:-1}
.top-cta:hover:before,.btn:hover:before{transform:translateX(110%) skewX(-18deg)}
.top-cta:hover,.btn:hover{transform:translateY(-3px);box-shadow:0 13px 28px rgba(16,45,82,.14)}

/* Hero: preserve V28 geometry, add depth and motion without layout-changing transforms */
.hero{min-height:535px;background:linear-gradient(110deg,#fbf8f3 0%,#fbf8f3 45%,#f7eeea 45%,#fbf3ef 100%);}
.hero>.wrap{min-height:535px}.hero-copy{top:68px;width:47%;animation:uiHeroCopy .8s var(--ui-ease) both}
.hero h1{font-size:clamp(52px,5.4vw,76px);line-height:.88;letter-spacing:-3.5px;text-wrap:balance}
.hero-copy>p{max-width:560px;line-height:1.5}
.kicker{letter-spacing:4px;color:var(--ui-rose);font-weight:700}
.hero-visual{width:56%;height:535px;right:0;border-bottom-left-radius:170px;box-shadow:-18px 0 55px rgba(16,45,82,.08);overflow:hidden;background-position:center;animation:uiHeroImage 1s var(--ui-ease) both}
.hero-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(16,45,82,.08),transparent 45%,rgba(184,90,108,.10));mix-blend-mode:multiply;pointer-events:none}
.hero-visual:before{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:9%;top:9%;border:1px solid rgba(255,255,255,.4);box-shadow:0 0 0 28px rgba(255,255,255,.05);animation:uiFloat 6s ease-in-out infinite}
.features{width:48%;bottom:22px;gap:8px}
.feature{border-right:0!important;position:relative;padding:10px 8px 6px;border-radius:16px;background:rgba(255,255,255,.58);box-shadow:0 7px 24px rgba(16,45,82,.05);backdrop-filter:blur(8px);transition:transform .3s var(--ui-ease),background .3s ease,box-shadow .3s ease}
.feature:hover{transform:translateY(-5px);background:rgba(255,255,255,.88);box-shadow:var(--ui-shadow-soft)}
.feature-icon{transition:transform .35s var(--ui-ease),box-shadow .35s ease}.feature:hover .feature-icon{transform:scale(1.08) rotate(-3deg);box-shadow:0 7px 18px rgba(16,45,82,.13)}

/* Modern section rhythm */
.help{padding:58px 0 50px;background:linear-gradient(180deg,#fbf1ed 0%,#fdf9f5 100%);position:relative}
.help:before,.testimonials:before{content:"";position:absolute;left:50%;top:0;width:min(92%,1120px);height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(201,146,74,.55),transparent)}
.section-title{gap:16px}.section-title h2{font-size:clamp(32px,3.2vw,46px);letter-spacing:-1.6px}.gold-line{width:72px;height:2px;border-radius:99px;background:linear-gradient(90deg,var(--ui-gold),transparent)}
.section-sub{font-size:14px;color:#5d6e82}
.carousel-shell{padding:28px 24px 0}.cards{gap:16px}
.course-card{min-height:225px;padding:24px 18px 18px;border-radius:20px;background:rgba(255,255,255,.82);border:1px solid rgba(16,45,82,.08);box-shadow:0 8px 28px rgba(16,45,82,.055);transition:transform .38s var(--ui-ease),box-shadow .38s ease,border-color .38s ease,background .38s ease}
.course-card:before{content:"";position:absolute;left:18px;right:18px;top:0;height:3px;border-radius:0 0 5px 5px;background:linear-gradient(90deg,var(--ui-rose),var(--ui-gold));transform:scaleX(.18);transform-origin:left;transition:transform .4s var(--ui-ease)}
.course-card:hover{transform:translateY(-8px);box-shadow:0 22px 42px rgba(16,45,82,.13);border-color:rgba(184,90,108,.22);background:#fff}
.course-card:hover:before{transform:scaleX(1)}
.course-icon svg{transition:transform .4s var(--ui-ease)}.course-card:hover .course-icon svg{transform:translateY(-3px) scale(1.07)}
.course-card h3{font-size:19px}.course-card p{color:#48617c}
.course-arrow,.test-arrow{width:44px;height:44px;background:rgba(255,255,255,.92);border-color:rgba(16,45,82,.12);box-shadow:0 8px 22px rgba(16,45,82,.08);transition:transform .25s var(--ui-ease),box-shadow .25s ease,color .25s ease}
.course-arrow:hover,.test-arrow:hover{transform:scale(1.07);color:var(--ui-rose);box-shadow:0 12px 28px rgba(16,45,82,.13)}
.dot{transition:transform .25s var(--ui-ease),background .25s ease}.dot:hover{transform:scale(1.3)}

/* Lead CTA */
.lead-cta{padding:62px 0;background:linear-gradient(135deg,#f8ebe7,#fffaf5);position:relative;overflow:hidden}
.lead-cta:after{content:"";position:absolute;width:330px;height:330px;border:1px solid rgba(184,90,108,.13);border-radius:50%;right:-100px;top:-120px;box-shadow:0 0 0 34px rgba(184,90,108,.025),0 0 0 70px rgba(184,90,108,.018)}
.lead-cta-inner{max-width:1120px;position:relative;z-index:1}.lead-cta h2{font-size:clamp(31px,3.2vw,45px)}.lead-cta p{max-width:650px;color:#536981}
.lead-eyebrow{letter-spacing:3px}

.testimonials{position:relative;padding:58px 0 52px;background:#fffdf9}.test-head{align-items:flex-end}.test-tag{color:#66788d}.test-carousel{padding:28px 30px 0}.test-cards{gap:18px}
.test-card{min-height:190px;padding:24px 24px 18px 42px;border-radius:20px;border:1px solid rgba(16,45,82,.09);box-shadow:0 8px 28px rgba(16,45,82,.055);transition:transform .38s var(--ui-ease),box-shadow .38s ease,border-color .38s ease}
.test-card:hover{transform:translateY(-7px);box-shadow:0 20px 40px rgba(16,45,82,.11);border-color:rgba(184,90,108,.2)}
.quote-mark{color:#e9c6cc;font-size:52px}.quote-text{line-height:1.5;color:#385573}.stars{font-size:18px}

.uw{height:205px;position:relative;background:#eaf0f5}.uw img{height:205px;object-fit:cover;filter:saturate(.88);transition:transform 1s var(--ui-ease);transform:scale(1.01)}.uw:hover img{transform:scale(1.035)}
.cta{padding:48px 0;background:linear-gradient(125deg,var(--ui-navy-deep),#163e69);position:relative;overflow:hidden}.cta:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-170px;top:-260px;border:1px solid rgba(255,255,255,.10);box-shadow:0 0 0 38px rgba(255,255,255,.025),0 0 0 76px rgba(255,255,255,.018)}.cta-inner{position:relative;z-index:1}.cta h2{font-size:clamp(29px,3vw,40px)}
footer{padding:34px 0 30px;background:#faf6f0}.footer-nav a{transition:color .25s ease,transform .25s ease}.footer-nav a:hover{color:var(--ui-rose);transform:translateY(-1px)}

/* Inner pages — same system, no geometry-breaking effects */
.page-hero{padding:72px 0 58px;background:linear-gradient(135deg,#fbf7f1 0%,#f7ece8 100%);position:relative;overflow:hidden}
.page-hero:before{content:"";position:absolute;width:280px;height:280px;border:1px solid rgba(184,90,108,.12);border-radius:50%;right:5%;top:-170px;box-shadow:0 0 0 35px rgba(184,90,108,.025)}
.page-hero:after{right:8%;bottom:32px;width:90px;height:2px;background:var(--ui-gold);opacity:.7}
.page-hero h1{font-size:clamp(42px,5vw,66px);letter-spacing:-2.6px;position:relative}.page-hero p{max-width:760px;color:#536981}.back-link{transition:color .25s ease,transform .25s var(--ui-ease)}.back-link:hover{color:var(--ui-navy);transform:translateX(4px)}
.course-page{padding:58px 0 72px;background:#fffdfb}.course-page-grid{gap:20px}.course-group,.about-card,.resource-card,.contact-card{border-radius:20px;border-color:rgba(16,45,82,.09);box-shadow:0 8px 28px rgba(16,45,82,.05);transition:transform .35s var(--ui-ease),box-shadow .35s ease,border-color .35s ease}.course-group:hover,.about-card:hover,.resource-card:hover,.contact-card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(16,45,82,.10);border-color:rgba(184,90,108,.2)}
.course-group h2{font-size:25px}.course-list li::marker{color:var(--ui-rose)}
.course-cta{border-radius:22px;padding:30px 32px;box-shadow:0 14px 35px rgba(10,32,59,.12)}
.mini-nav .nav{height:66px}.mini-nav .logo{width:175px}

/* Safe reveal: activated only after JS has initialized */
html.ui-motion-ready .ui-reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s var(--ui-ease)}
html.ui-motion-ready .ui-reveal.ui-visible{opacity:1;transform:none}
.ui-delay-1{transition-delay:.06s!important}.ui-delay-2{transition-delay:.12s!important}.ui-delay-3{transition-delay:.18s!important}.ui-delay-4{transition-delay:.24s!important}

@keyframes uiHeroCopy{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes uiHeroImage{from{opacity:0;clip-path:inset(0 0 0 8% round 0 0 0 170px)}to{opacity:1;clip-path:inset(0 0 0 0 round 0 0 0 170px)}}
@keyframes uiFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(10px)}}

@media(max-width:900px){
  .wrap{width:min(92%,980px)}.navlinks{gap:18px}.hero{min-height:510px}.hero>.wrap{min-height:510px}.hero-visual{height:510px}.hero-copy{top:58px}.hero h1{font-size:clamp(48px,7vw,64px)}.features{width:50%}.cards{gap:12px}.course-card{padding:21px 13px}.lead-cta-inner{gap:28px}.test-cards{gap:12px}.page-hero{padding:62px 0 48px}
}
@media(max-width:700px){
  .wrap{width:min(91%,620px)}header,.nav{height:auto}.nav{padding:10px 0;gap:12px}.logo{width:162px}.navlinks{order:3;width:100%;justify-content:flex-start;gap:24px;padding:3px 2px 5px;overflow-x:auto;scrollbar-width:none}.navlinks::-webkit-scrollbar{display:none}.navlinks a{padding:8px 0;font-size:11px}.top-cta{margin-left:auto;padding:11px 15px}
  .hero{min-height:720px;background:#fbf8f3}.hero>.wrap{min-height:720px}.hero-copy{top:auto;padding-top:30px;width:100%}.hero h1{font-size:clamp(44px,13vw,58px);letter-spacing:-2.6px;max-width:620px}.hero-copy>p{font-size:16px;max-width:520px}.buttons{gap:10px}.btn{min-height:45px;padding:0 19px}
  .hero-visual{top:275px;width:100%;height:355px;border-radius:0 0 0 105px;background-position:center}.hero-visual:before{width:120px;height:120px;right:8%;top:10%}.features{bottom:11px;width:100%;grid-template-columns:repeat(2,1fr);gap:7px;background:transparent}.feature{min-height:62px;font-size:12px;padding:8px 5px;background:rgba(255,255,255,.84)}
  .help{padding:48px 0 42px}.section-title{align-items:flex-start;flex-direction:column;gap:9px}.section-title h2{font-size:34px}.gold-line{width:58px}.section-sub{float:none;margin:10px 0 0}.carousel-shell{padding:22px 16px 0}.cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.course-card{min-width:0;min-height:205px;border-radius:17px;padding:19px 11px}.course-card h3{font-size:17px}.course-card p{font-size:13px}.course-arrow{display:none}
  .lead-cta{padding:50px 0}.lead-cta-inner{flex-direction:column;align-items:flex-start;gap:22px}.lead-cta h2{font-size:34px}.lead-cta .btn-outline{width:100%}.lead-cta:after{width:220px;height:220px;right:-120px;top:-90px}
  .testimonials{padding:48px 0 44px}.test-head{display:block}.test-tag{margin-top:8px}.test-carousel{padding:22px 22px 0}.test-cards{grid-template-columns:1fr}.test-card{min-height:180px}.test-card:not(:first-child){display:none}.test-arrow{display:none}
  .uw{height:auto}.uw img{height:auto;min-height:150px;object-fit:cover}.cta{padding:42px 0}.cta-inner{flex-wrap:wrap}.cta-copy{flex-basis:100%}.email{border-left:0;border-top:1px solid rgba(255,255,255,.25);padding:15px 0 0;min-width:100%}.footer-inner{grid-template-columns:1fr}.footer-nav{flex-wrap:wrap;gap:14px}
  .page-hero{padding:52px 0 42px}.page-hero h1{font-size:clamp(38px,11vw,52px)}.course-page{padding:42px 0 54px}.course-page-grid{grid-template-columns:1fr}.course-cta{flex-direction:column;align-items:flex-start;padding:26px}.course-cta .btn{width:100%}.page-hero:before{right:-120px}
}
@media(max-width:460px){.top-cta{font-size:12px;padding:10px 12px}.logo{width:150px}.hero h1{font-size:43px}.buttons .btn{width:100%}.cards{grid-template-columns:1fr}.course-card{min-height:190px}.feature{font-size:11px}.feature-icon{width:29px;height:29px}.section-title h2{font-size:31px}.lead-cta h2{font-size:30px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-copy,.hero-visual,.hero-visual:before{animation:none!important}.top-cta,.btn,.course-card,.test-card,.feature,.uw img,.course-group,.about-card,.resource-card,.contact-card{transition:none!important}html.ui-motion-ready .ui-reveal{opacity:1;transform:none;transition:none}}
