/* ============================================================
   Northstar site theme — modern shadcn-style redesign for ALL
   public website pages. Loaded AFTER the legacy gtco stylesheets
   (stylegreen/bootstrap/site-header) so these overrides win.
   One file restyles every page's shared structure:
   .site-header · #gtco-header (hero) · #gtco-features · .feature-center
   · #gtco-footer — with a full light/dark theme.
   ============================================================ */
:root{
  color-scheme:light;
  --background:oklch(0.985 0 0);
  --card:oklch(1 0 0);
  --foreground:oklch(0.205 0 0);
  --muted:oklch(0.97 0 0);
  --muted-foreground:oklch(0.556 0 0);
  --secondary:oklch(0.97 0 0);
  --border:oklch(0.922 0 0);
  --radius:14px;
  --shadow:0 1px 2px rgba(0,0,0,.04),0 1px 3px rgba(0,0,0,.05);
  --shadow-lg:0 24px 60px rgba(0,0,0,.12);
  --nsb-green:#0b5d3b; --primary:#0f7a4a; --primary-2:#169c61; --primary-3:#1fbf76;
  --ring:rgba(15,122,74,.16);
  --ease:cubic-bezier(.22,.61,.36,1);
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --background:oklch(0.145 0 0);
  --card:oklch(0.205 0 0);
  --foreground:oklch(0.985 0 0);
  --muted:oklch(0.269 0 0);
  --muted-foreground:oklch(0.708 0 0);
  --secondary:oklch(0.269 0 0);
  --border:oklch(1 0 0 / 12%);
  --shadow:0 1px 2px rgba(0,0,0,.4);
  --shadow-lg:0 24px 60px rgba(0,0,0,.5);
  --ring:rgba(31,191,118,.22);
}

/* ---- base ---- */
body{ background:var(--background) !important; color:var(--foreground) !important;
  font-family:Geist,Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;
  -webkit-font-smoothing:antialiased; }
#page,.page-inner,.gtco-loader{ background:var(--background) !important; }
html,body,#page,.page-inner{ overflow-x:clip; }   /* contain bootstrap row gutter spill */
h1,h2,h3,h4,h5,h6{ color:var(--foreground) !important; }
a{ transition:.15s var(--ease); }
.gtco-container{ max-width:1180px !important; margin:0 auto !important; padding:0 24px !important; float:none !important; }
img{ max-width:100%; }

/* ---- top bar: hidden for a cleaner modern look (matches homepage) ---- */
.site-topbar{ display:none !important; }

/* ---- header: glass sticky nav ---- */
.site-header{ position:sticky !important; top:0; z-index:1000;
  background:color-mix(in srgb,var(--background) 82%,transparent) !important;
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-bottom:1px solid transparent !important; box-shadow:none !important; transition:.25s var(--ease); }
.site-header.scrolled{ border-bottom-color:var(--border) !important; box-shadow:0 6px 24px rgba(0,0,0,.05) !important; }
.site-header .header-inner{ max-width:1180px; margin:auto; padding:16px 24px !important;
  display:flex; align-items:center; gap:16px; }
.site-header .logo{ flex:none; display:inline-flex; align-items:center; }
.site-header .logo-img{ height:34px !important; width:auto !important; max-width:none !important; display:block; }
.site-header .main-nav{ display:flex; gap:30px; margin-left:20px; flex:1; }
.site-header .main-nav a{ color:var(--muted-foreground) !important; font-weight:600; font-size:15px; padding:8px 0; }
.site-header .main-nav a:hover{ color:var(--foreground) !important; }
.site-header .header-cta{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.site-header .login-btn{ background:var(--primary) !important; color:#fff !important;
  border:1px solid var(--primary) !important; box-shadow:0 8px 20px var(--ring) !important; border-radius:12px !important;
  padding:11px 22px !important; font-weight:700 !important; font-size:15px !important; line-height:1 !important; transition:.18s var(--ease); }
.site-header .login-btn:hover{ background:var(--primary-2) !important; border-color:var(--primary-2) !important; transform:translateY(-2px); }
.site-header .login-ghost{ background:transparent !important; color:var(--foreground) !important;
  border:1px solid var(--border) !important; box-shadow:none !important; }
.site-header .login-ghost:hover{ background:var(--muted) !important; border-color:var(--border) !important; }
.site-header .menu-toggle{ color:var(--foreground) !important; background:var(--muted) !important;
  border-radius:10px; padding:5px 11px; }
.site-mobile-nav{ background:var(--background) !important; }
.site-mobile-nav .mobile-header strong,.site-mobile-nav .mobile-header button{ color:var(--foreground) !important; }
.site-mobile-nav .mobile-header button{ background:var(--muted) !important; border:none; border-radius:10px; }
.site-mobile-nav a{ color:var(--foreground) !important; border-bottom-color:var(--border) !important; font-weight:600; }
.site-mobile-nav a.mobile-login,.site-mobile-nav a[href="app.html"]{ background:var(--primary) !important; color:#fff !important; border-radius:12px; }

/* ---- HERO: replace the photo cover with a modern gradient-mesh panel ---- */
#gtco-header,#gtco-header.gtco-cover,#gtco-header.gtco-cover-sm{
  background:
    radial-gradient(42% 60% at 82% 12%, color-mix(in srgb,var(--primary-3) 22%,transparent), transparent 70%),
    radial-gradient(38% 52% at 8% 18%, color-mix(in srgb,var(--primary) 16%,transparent), transparent 68%),
    var(--background) !important;
  min-height:0 !important; height:auto !important;
  padding:84px 0 76px !important; color:var(--foreground) !important;
  border-bottom:1px solid var(--border); position:relative; }
#gtco-header .overlay{ display:none !important; }
#gtco-header .row-mt-15em{ margin-top:0 !important; }
#gtco-header .mt-text{ padding:0 !important; }
#gtco-header .intro-text-small{ display:inline-block; color:var(--primary) !important;
  font-weight:700; text-transform:uppercase; letter-spacing:.09em; font-size:13px; margin-bottom:8px; }
#gtco-header h1{ color:var(--foreground) !important; font-size:52px; font-weight:800;
  letter-spacing:-.02em; line-height:1.06; margin:2px 0 4px !important; text-shadow:none !important; }
#gtco-header .gtco-container{ position:relative; z-index:1; }

/* ---- FEATURES section ---- */
#gtco-features,.border-bottom{ background:var(--background) !important; border-bottom:1px solid var(--border) !important; }
#gtco-features{ padding:84px 0 !important; }
.gtco-heading{ margin-bottom:52px !important; }
.gtco-heading h2{ font-size:38px; font-weight:800; letter-spacing:-.02em; margin-bottom:14px; }
.gtco-heading p{ color:var(--muted-foreground) !important; font-size:17px; line-height:1.6; }

.feature-center{ background:var(--card) !important; border:1px solid var(--border);
  border-radius:16px; padding:30px 26px !important; box-shadow:var(--shadow);
  height:100%; margin-bottom:26px; text-align:left !important; transition:.2s var(--ease); }
.feature-center:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg);
  border-color:color-mix(in srgb,var(--primary) 40%,var(--border)); }
.feature-center .icon{ display:inline-flex !important; align-items:center; justify-content:center;
  width:52px; height:52px; border-radius:14px; margin:0 0 18px !important;
  background:color-mix(in srgb,var(--primary) 12%,transparent) !important; color:var(--primary) !important;
  font-size:22px; box-shadow:none !important; }
.feature-center .icon i,.feature-center .ti-check,.feature-center .ti-check:before{ color:var(--primary) !important; }
.feature-center h3{ color:var(--foreground) !important; font-weight:700; font-size:19px; margin:0 0 10px !important; }
.feature-center p{ color:var(--muted-foreground) !important; font-size:14.5px; line-height:1.6; margin:0 0 8px !important; }
.feature-center p:last-child{ margin-bottom:0 !important; }

/* generic content typography inside sections */
#gtco-features li{ color:var(--muted-foreground) !important; }

/* Always show content — don't depend on the legacy scroll-reveal JS
   (animate-box starts at opacity:0). Add a soft fade-in on load instead. */
.animate-box{ opacity:1 !important; }
#gtco-features .feature-center{ animation:nsbFadeUp .5s var(--ease) both; }
@keyframes nsbFadeUp{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
@media(prefers-reduced-motion:reduce){ #gtco-features .feature-center{ animation:none; } }

/* ---- FOOTER ---- */
#gtco-footer{ background:var(--card) !important; color:var(--muted-foreground) !important;
  border-top:1px solid var(--border); padding:48px 0 !important; }
#gtco-footer .block,#gtco-footer small,#gtco-footer p,#gtco-footer a{ color:var(--muted-foreground) !important; }
#gtco-footer a:hover{ color:var(--primary) !important; }

/* ---- back-to-top ---- */
.gototop a,.js-gotop{ background:var(--primary) !important; color:#fff !important;
  border-radius:12px !important; box-shadow:0 8px 20px var(--ring) !important; }

/* ---- generic buttons ---- */
.btn-primary,.btn.btn-primary,.cta,a.cta{ background:var(--primary) !important; border-color:var(--primary) !important;
  color:#fff !important; border-radius:12px !important; box-shadow:0 8px 20px var(--ring) !important; }
.btn-primary:hover,.cta:hover{ background:var(--primary-2) !important; }

/* ---- theme toggle (injected by site-theme.js) ---- */
.theme-toggle{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px;
  background:transparent; border:1px solid var(--border); color:var(--foreground); border-radius:11px;
  cursor:pointer; font-size:16px; line-height:1; margin-right:12px; transition:.15s var(--ease); }
.theme-toggle:hover{ background:var(--muted); }

/* ---- responsive ---- */
@media(max-width:900px){
  .site-header .main-nav{ display:none !important; }   /* mobile: show hamburger, not inline nav */
  .site-header .header-cta{ display:none !important; }
  .site-header .menu-toggle{ display:block; margin-left:auto !important; }
  .site-header .header-inner{ padding:14px 20px !important; }
  #gtco-header h1{ font-size:38px; }
  .gtco-heading h2{ font-size:29px; }
  .theme-toggle{ margin-right:8px; }
}
@media(max-width:600px){
  #gtco-header{ padding:64px 0 56px !important; }
  #gtco-features{ padding:60px 0 !important; }
}
