/* ============================================================
   GreenStep Platform — theme.css
   Design system extracted from the GreenStep design export:
   fonts Sora (display) + Instrument Sans (body), deep-green
   palette with mint accent, soft rounded cards, animated UI.
   ============================================================ */

:root {
	--bg: #F7FAF8;
	--ink: #0A231A;
	--deep: #08301F;
	--primary: #0E5A41;
	--mid: #177B57;
	--mint: #5FDDA8;
	--mint-soft: #E9F5EF;
	--mint-pale: #BDEBD4;
	--border: #E4EFE8;
	--muted: #4E6A5D;
	--muted-2: #5E7A6D;
	--danger: #B3372F;
	--danger-bg: #FCEDEB;
	--grad-header: linear-gradient(120deg, #0B4A36, #0E5A41 55%, #10664A);
	--grad-hero: linear-gradient(135deg, #08301F 0%, #0E5A41 55%, #177B57 100%);
	--grad-panel: linear-gradient(120deg, #0B4A36, #10664A);
	--r-lg: 26px; --r-md: 20px; --r-sm: 13px; --r-pill: 99px;
	--sh-card: 0 10px 34px rgba(10,35,26,0.08);
	--sh-card-hover: 0 24px 54px rgba(10,35,26,0.14);
	--sh-deep: 0 30px 80px rgba(0,0,0,0.4);
	--font-display: 'Sora', sans-serif;
	--font-body: 'Instrument Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); font-family: var(--font-body); color: var(--ink); font-size: 16px; line-height: 1.6; }
a { color: var(--mid); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; text-wrap: pretty; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1280px; }

/* ---------------- Animations ---------------- */
@keyframes gsHeroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gsFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes gsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gsDrop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gsPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .6; } }
@keyframes gsShimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes gsPop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }

.anim-hero-in { animation: gsHeroIn .7s ease both; }
.anim-d1 { animation-delay: .08s; } .anim-d2 { animation-delay: .16s; } .anim-d3 { animation-delay: .24s; } .anim-d4 { animation-delay: .32s; }
.anim-float { animation: gsFloat 5s ease-in-out infinite; }
.anim-float--slow { animation: gsFloat 6s .8s ease-in-out infinite; }

/* Scroll reveal (JS adds .is-revealed) */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-revealed { transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	[data-reveal] { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; padding: 15px 28px; border-radius: var(--r-sm); border: none; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; font-family: var(--font-body); line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--mint { background: var(--mint); color: #07271A !important; }
.btn--mint:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.25); color: #07271A !important; }
.btn--primary { background: var(--primary); color: #fff !important; }
.btn--primary:hover { background: var(--mid); color: #fff !important; }
.btn--outline { border: 1.5px solid var(--primary); color: var(--primary) !important; background: transparent; font-weight: 600; }
.btn--outline:hover { background: var(--mint-soft); }
.btn--ghost-light { border: 1.5px solid rgba(255,255,255,.4); color: #fff !important; background: transparent; font-weight: 600; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 34px; font-size: 16px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: var(--mint-pale); font-size: 13px; font-weight: 600; letter-spacing: .06em; padding: 8px 16px; border-radius: var(--r-pill); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: gsPulse 2.4s ease-in-out infinite; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 900; background: var(--grad-header); box-shadow: 0 2px 20px rgba(10,35,26,.25); }
.site-header__inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px; height: 76px; }
.site-header__logo img { height: 44px; display: block; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav__item { position: relative; padding: 8px 0; }
.main-nav__link { display: flex; align-items: center; gap: 5px; color: #EAF7F0 !important; font-size: 15px; font-weight: 600; padding: 8px 13px; border-radius: 10px; }
.main-nav__link:hover { background: rgba(255,255,255,.12); color: #fff !important; }
.main-nav__caret { font-size: 10px; opacity: .75; transform: translateY(1px); transition: transform .2s ease; }
.main-nav__item:hover .main-nav__caret { transform: translateY(1px) rotate(180deg); }
.main-nav__underline { position: absolute; left: 13px; right: 13px; bottom: 6px; height: 3px; background: var(--mint); border-radius: 3px; }
.main-nav__dropdown { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-radius: 14px; box-shadow: 0 22px 54px rgba(10,35,26,.22); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.main-nav__item:hover .main-nav__dropdown, .main-nav__item:focus-within .main-nav__dropdown { opacity: 1; visibility: visible; transform: translateY(2px); }
.main-nav__dropdown a { display: block; padding: 9px 14px; border-radius: 9px; color: var(--ink) !important; font-size: 14px; font-weight: 500; }
.main-nav__dropdown a:hover { background: var(--mint-soft); color: var(--primary) !important; }
.main-nav__dropdown .dropdown-header { padding: 10px 14px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.site-header__account { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-header__user { font-size: 13px; color: var(--mint-pale); }
.site-header__account .btn--outline { border-color: rgba(255,255,255,.55); color: #fff !important; }
.site-header__account .btn--outline:hover { background: rgba(255,255,255,.14); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,.4); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 18px; cursor: pointer; }
@media (max-width: 1080px) {
	.main-nav { display: none; }
	.nav-toggle { display: block; }
	.site-header__user { display: none; }
}
.mobile-nav { position: fixed; inset: 76px 0 0 0; background: var(--deep); z-index: 899; padding: 20px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; }
.mobile-nav.is-open { transform: none; }
.mobile-nav a { display: block; color: #EAF7F0 !important; font-size: 17px; font-weight: 600; padding: 13px 8px; border-bottom: 1px solid rgba(255,255,255,.08); animation: gsDrop .4s ease both; }
.mobile-nav a.sub { font-size: 14.5px; font-weight: 500; padding-left: 26px; color: var(--mint-pale) !important; }

/* ---------------- Page hero band ---------------- */
.page-hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; }
.page-hero__blob-1 { position: absolute; top: -180px; right: -140px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(95,221,168,.22), rgba(95,221,168,0) 65%); }
.page-hero__blob-2 { position: absolute; bottom: -220px; left: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.09), rgba(255,255,255,0) 60%); }
.page-hero__inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 64px 24px 78px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; color: #fff; margin: 14px 0 0; }
.page-hero p.lede { max-width: 640px; color: #CFEDDD; font-size: 17px; margin: 16px 0 0; }
.page-hero .eyebrow { color: var(--mint-pale); }
.hero-wave { display: block; width: 100%; height: 70px; margin-bottom: -1px; }

/* ---------------- Cards & sections ---------------- */
.card { background: #fff; border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: var(--sh-card); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-card-hover); }
.section { margin-top: 96px; }
.section--tight { margin-top: 64px; }

/* ---------------- Notices ---------------- */
.notice { padding: 13px 18px; border-radius: 12px; margin: 0 0 18px; font-weight: 500; animation: gsDrop .4s ease both; }
.notice--success { background: var(--mint-soft); color: var(--primary); border: 1px solid var(--mint-pale); }
.notice--error { background: var(--danger-bg); color: var(--danger); border: 1px solid #F0CFCB; }
.guest-banner { background: var(--mint-soft); color: var(--primary); font-weight: 700; font-size: 17px; border-radius: 14px; padding: 16px 24px; margin: 0 0 22px; text-align: center; border: 1px solid var(--mint-pale); }

/* ---------------- Footer ---------------- */
.site-footer { margin-top: 110px; background: var(--deep); color: #C7DED2; }
.site-footer__cta { background: var(--grad-panel); border-radius: var(--r-lg); padding: 44px 40px; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; transform: translateY(-56px); box-shadow: 0 24px 60px rgba(10,35,26,.3); position: relative; overflow: hidden; }
.site-footer__cta h2 { color: #fff; margin: 0; font-size: clamp(22px, 3vw, 30px); }
.site-footer__cta p { color: var(--mint-pale); margin: 6px 0 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { padding: 14px 18px; border-radius: var(--r-sm); border: none; min-width: 260px; font-size: 15px; font-family: inherit; }
.site-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding: 0 0 44px; }
@media (max-width: 860px) { .site-footer__cols { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.site-footer a { color: #C7DED2 !important; }
.site-footer a:hover { color: var(--mint) !important; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; color: #8FAA9D; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.eu-note { font-size: 13px; line-height: 1.6; color: #8FAA9D; max-width: 420px; }
