/* =========== RESET & VARIABLES =========== */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #3b82f6;
    --secondary-dark: #2563eb;
    --accent: #f59e0b;
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --container-padding: 1.5rem;
    --max-width: 1200px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Global Container (only applies if no local .container styling overrides strongly) */
.global-container { 
    width: 100%; 
    max-width: var(--max-width); 
    margin: 0 auto; 
    padding: 0 var(--container-padding); 
}

/* =========== HEADER / NAV =========== */
.site-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-sm); padding: 0;
    border-bottom: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
}
.site-header * {
    box-sizing: border-box;
}
.site-header .header-inner { 
    display: flex; align-items: center; justify-content: space-between; height: 64px; 
    width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--container-padding);
}
.site-header .logo-flex { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; font-size: 1.25rem; color: var(--text-main); text-decoration: none; }
.site-header .logo-img { height: 38px; width: auto; }
.site-header .logo-text-green { color: var(--primary); }
.site-header .logo-text-blue { color: var(--secondary); }

.site-header .desktop-nav { display: none; gap: 0.25rem; align-items: center; }
.site-header .desktop-nav a {
    padding: 0.5rem 0.75rem; border-radius: 8px; font-weight: 500; font-size: 0.9rem;
    color: var(--text-muted); transition: all 0.2s; text-decoration: none;
}
.site-header .desktop-nav a:hover { background: #f0fdf9; color: var(--primary); }
.site-header .desktop-nav a.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; padding: 0.5rem 1.1rem; box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.site-header .desktop-nav a.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.4); }

/* Mobile menu */
.site-header .hamburger {
    display: flex; background: none; border: none; cursor: pointer;
    padding: 8px; border-radius: 8px; color: var(--text-main);
    flex-direction: column; gap: 5px; transition: background 0.2s;
}
.site-header .hamburger:hover { background: var(--bg-body); }
.site-header .hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: all 0.3s; }
.site-header .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header .hamburger.open span:nth-child(2) { opacity: 0; }
.site-header .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header .mobile-nav {
    display: none; background: white; border-top: 1px solid var(--border);
    padding: 0.5rem 0 1rem; width: 100%; position: absolute; top: 100%; left: 0;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
.site-header .mobile-nav.open { display: block; }
.site-header .mobile-nav a {
    display: block; padding: 0.75rem 1.5rem; color: var(--text-muted); text-decoration: none;
    font-weight: 500; border-bottom: 1px solid #f5f5f5; transition: all 0.2s;
}
.site-header .mobile-nav a:hover { background: #f0fdf9; color: var(--primary); }
.site-header .mobile-nav a.mob-cta { background: var(--primary); color: white; margin: 0.75rem 1.5rem 0; border-radius: 8px; text-align: center; }

@media (min-width: 768px) {
    .site-header .desktop-nav { display: flex; }
    .site-header .hamburger { display: none; }
}

/* =========== FOOTER =========== */
.site-footer { 
    background: #1e293b; color: #94a3b8; padding: 4rem 0 2rem; 
    font-family: 'Inter', sans-serif;
}
.site-footer * { box-sizing: border-box; }
.site-footer .footer-container { 
    width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--container-padding); 
}
.site-footer h3, .site-footer h4 { color: white; margin-bottom: 1.25rem; margin-top: 0; }
.site-footer p { margin-top: 0; margin-bottom: 1rem; }
.site-footer a { text-decoration: none; color: inherit; transition: color 0.2s; }
.site-footer a:hover { color: white; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-grid { display: grid; gap: 2rem; margin-bottom: 3rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer .footer-col ul li { margin-bottom: 0.625rem; }
.site-footer .footer-col ul li a { font-size: 0.9rem; color: #94a3b8; transition: color 0.2s; }
.site-footer .footer-bottom { border-top: 1px solid #334155; padding-top: 2rem; font-size: 0.875rem; }
.site-footer .footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.site-footer .footer-legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer .footer-legal-links a { font-size: 0.82rem; color: #64748b; }
.site-footer .footer-legal-links a:hover { color: white; }

/* =========== MOBILE STICKY CTA =========== */
.global-mobile-sticky {
    position: fixed; bottom: 0; width: 100%;
    background: var(--primary); padding: 0.875rem 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 999;
    display: none; text-align: center; text-decoration: none;
    font-family: 'Inter', sans-serif; box-sizing: border-box;
}
.global-mobile-sticky a {
    display: block; background: white; color: var(--primary);
    font-weight: 700; border-radius: 8px; padding: 0.75rem 1.5rem; text-decoration: none;
}
@media (max-width: 767px) {
    .global-mobile-sticky { display: block; }
    /* Padding to prevent overlap with sticky */
    body { padding-bottom: 80px; }
}
