/* ============================================================
   EnergyScout — base.css
   Tokens, reset, navigation, buttons and footer.
   One definition, loaded by every page on the site.
   Page-specific sheets (home.css / page.css / location.css)
   load after this and only add what is unique to them.
   ============================================================ */

:root{
    --scout-dark:#0a1410;
    --scout-darker:#060d09;
    --scout-green:#4a6741;
    --scout-light:#8fb384;
    --scout-glow:#a8d99c;
    --scout-gold:#c4a962;
    --scout-cream:#f4f1e8;
    --scout-white:#ffffff;
    --gradient-nature:linear-gradient(135deg,#4a6741 0%,#2d3f28 50%,#1a2517 100%);
    --gradient-glow:linear-gradient(135deg,#8fb384 0%,#4a6741 100%);
    --shadow-glow:0 0 60px rgba(143,179,132,.3);
    --transition-smooth:cubic-bezier(.4,0,.2,1);
}

/* ---- reset ---- */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Outfit',sans-serif;background:var(--scout-dark);color:var(--scout-cream);line-height:1.7;overflow-x:hidden}
a{color:var(--scout-glow);text-decoration:none;transition:color .3s ease}
.container{max-width:1200px;margin:0 auto;padding:0 2rem}

/* ---- navigation ----------------------------------------------------------
   Solid by default so every page has a readable bar. The homepage opts into
   the transparent-until-scrolled treatment via #navbar in home.css.        */
nav{
    position:fixed;top:0;left:0;right:0;z-index:1000;
    padding:1.5rem 5%;display:flex;justify-content:space-between;align-items:center;
    background:rgba(10,20,16,.98);
    backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
    transition:all .4s var(--transition-smooth);
}
.nav-logo{display:flex;align-items:center;gap:.75rem;text-decoration:none;z-index:1001}
.nav-logo img{height:70px;transition:transform .3s ease}
.nav-logo:hover img{transform:scale(1.05)}
.nav-links{display:flex;gap:2.5rem;list-style:none;align-items:center}
.nav-links a{
    color:var(--scout-cream);text-decoration:none;font-weight:500;font-size:.95rem;
    letter-spacing:.5px;position:relative;padding:.5rem 0;transition:color .3s ease;
}
.nav-links a::after{content:'';position:absolute;bottom:0;left:0;width:0;height:2px;background:var(--scout-glow);transition:width .3s var(--transition-smooth)}
.nav-links a:hover{color:var(--scout-glow)}
.nav-links a:hover::after{width:100%}
.nav-cta{
    background:var(--gradient-glow);color:var(--scout-dark)!important;
    padding:.85rem 2rem!important;border-radius:50px;font-weight:600!important;
    transition:all .3s ease!important;box-shadow:0 4px 20px rgba(143,179,132,.3);
}
.nav-cta::after{display:none!important}
.nav-cta:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(143,179,132,.5)}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;gap:.75rem;padding:1.1rem 2.5rem;border-radius:50px;font-weight:600;font-size:1rem;text-decoration:none;transition:all .3s var(--transition-smooth);cursor:pointer;border:none}
.btn-primary{background:var(--scout-glow);color:var(--scout-dark);box-shadow:0 4px 30px rgba(143,179,132,.4)}
.btn-primary:hover{transform:translateY(-3px);box-shadow:0 10px 40px rgba(143,179,132,.6)}
.btn-secondary{background:transparent;color:var(--scout-cream);border:2px solid rgba(244,241,232,.3)}
.btn-secondary:hover{border-color:var(--scout-glow);color:var(--scout-glow)}
.btn svg{width:20px;height:20px;transition:transform .3s ease}
.btn:hover svg{transform:translateX(5px)}

/* ---- footer --------------------------------------------------------------
   Two layouts share one shell: the four-column brand footer used by the home
   page and the state hubs, and the single-row footer on template pages.    */
footer{background:var(--scout-dark);border-top:1px solid rgba(143,179,132,.1);padding:80px 5% 40px}
footer p{opacity:.85}

/* single-row variant: a .footer-links sitting directly inside <footer> */
footer>.footer-links{display:flex;justify-content:center;gap:2rem;margin-bottom:1rem;flex-wrap:wrap;text-align:center}
footer>.footer-links+p{text-align:center;opacity:.6;font-size:.9rem}

/* four-column variant */
.footer-container{max-width:1400px;margin:0 auto 4rem;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:4rem}
.footer-brand img{height:80px;margin-bottom:1.5rem}
.footer-brand p{color:rgba(244,241,232,.6);margin-bottom:1.5rem}
.footer-social{display:flex;gap:1rem}
.footer-social a{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(143,179,132,.1);border:1px solid rgba(143,179,132,.2);transition:all .3s ease}
.footer-social a:hover{background:var(--scout-glow);border-color:var(--scout-glow)}
.footer-social a svg{width:20px;height:20px;color:var(--scout-cream);transition:color .3s ease}
.footer-social a:hover svg{color:var(--scout-dark)}
.footer-container .footer-links h4{font-size:1rem;font-weight:600;margin-bottom:1.5rem;color:var(--scout-cream)}
.footer-container .footer-links ul{list-style:none;display:flex;flex-direction:column;gap:.75rem}
.footer-links a{color:rgba(244,241,232,.6);text-decoration:none;font-size:.95rem;transition:color .3s ease}
.footer-links a:hover{color:var(--scout-glow)}
.footer-bottom{padding-top:2rem;border-top:1px solid rgba(143,179,132,.1);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.footer-bottom p{color:rgba(244,241,232,.5);font-size:.9rem}
.footer-bottom-links{display:flex;gap:2rem}
.footer-bottom-links a{color:rgba(244,241,232,.5);text-decoration:none;font-size:.9rem;transition:color .3s ease}
.footer-bottom-links a:hover{color:var(--scout-glow)}

@media (max-width:1024px){
    .footer-container{grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
    nav{padding:1rem 5%}
    .nav-logo img{height:50px}
    .nav-links{display:none}
    .footer-container{grid-template-columns:1fr;gap:2rem}
    .footer-bottom{flex-direction:column;text-align:center}
    footer{padding:56px 5% 32px}
}

/* ---- utilities-hub token aliases ---- */
:root{
    --night:var(--scout-dark);--night-2:var(--scout-darker);
    --panel:rgba(143,179,132,.08);--edge:rgba(143,179,132,.20);--edge-2:rgba(143,179,132,.34);
    --cream:var(--scout-cream);--dim:rgba(244,241,232,.70);--faint:rgba(244,241,232,.48);
    --sage:var(--scout-glow);--sage-2:var(--scout-light);--amber:#e0b458;--rust:#d08a6a;
    --d:'Playfair Display',Georgia,serif;
    --s:'Outfit',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
body.uhub{margin:0;background:var(--night);color:var(--dim);font-family:var(--s);font-size:17px;line-height:1.68;-webkit-font-smoothing:antialiased;overflow-x:hidden}
