/* ==========================================================================
   EnergyGuard Pro — Main Marketing Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --eg-green: #00e676;
    --eg-green-dark: #00c853;
    --eg-green-glow: rgba(0, 230, 118, 0.3);
    --eg-navy: #1a2d50;
    --eg-dark-blue: #0a1628;
    --eg-dark-green: #0d3b2e;
    --eg-light-gray: #f4f4f4;
    --eg-white: #ffffff;
    --eg-text: #333333;
    --eg-text-muted: #666666;
    --eg-text-light: #e0e0e0;
    --eg-link: #007bff;

    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    --max-width: 1200px;
    --radius: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(0, 230, 118, 0.2);

    --transition-fast: 0.2s ease;
    --transition-med: 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.3px;
    color: var(--eg-text);
    background: var(--eg-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--eg-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--eg-green-dark);
}

ul, ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--eg-text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 2px;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    letter-spacing: 1.5px;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    font-weight: 600;
    letter-spacing: 1px;
}

h4 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-2xl) var(--space-lg);
}

.section--dark {
    background: linear-gradient(135deg, var(--eg-dark-blue) 0%, var(--eg-navy) 100%);
    color: var(--eg-text-light);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: var(--eg-white);
}

.section--dark-green {
    background: linear-gradient(135deg, var(--eg-dark-blue) 0%, var(--eg-dark-green) 100%);
    color: var(--eg-text-light);
}

.section--dark-green h1,
.section--dark-green h2,
.section--dark-green h3 {
    color: var(--eg-white);
}

.section--light {
    background: var(--eg-light-gray);
    color: var(--eg-text);
}

.section--white {
    background: var(--eg-white);
    color: var(--eg-text);
}

.section__title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section__title--light {
    color: var(--eg-white);
}

.section__subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0.75rem auto var(--space-xl);
    color: var(--eg-text-muted);
    font-size: 1.2rem;
}

.section__title + .section__subtitle {
    margin-top: -2rem;
}

.section--dark .section__subtitle,
.section--dark-green .section__subtitle {
    color: var(--eg-text-light);
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-med);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: var(--eg-green);
    color: var(--eg-dark-blue);
    border-color: var(--eg-green);
}

.btn-primary:hover {
    background: var(--eg-green-dark);
    border-color: var(--eg-green-dark);
    color: var(--eg-dark-blue);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--eg-green);
    border-color: var(--eg-green);
}

.btn-secondary:hover {
    background: var(--eg-green);
    color: var(--eg-dark-blue);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   6. Site Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition-med), box-shadow var(--transition-med);
    padding: 1rem 0;
}

.site-header--scrolled {
    background: rgba(10, 22, 40, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo__icon {
    flex-shrink: 0;
}

.site-logo__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.site-logo__name {
    color: var(--eg-white);
}

.site-logo__pro {
    color: var(--eg-green);
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav__link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--eg-text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.site-nav__link:hover {
    color: var(--eg-green);
}

.site-nav__link--active {
    color: var(--eg-green);
}

/* Mobile toggle - hidden on desktop */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.85) 0%,
        rgba(26, 45, 80, 0.80) 50%,
        rgba(13, 59, 46, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__title {
    color: var(--eg-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    color: var(--eg-text-light);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   8. Audience Section
   -------------------------------------------------------------------------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.audience-card {
    padding: var(--space-lg);
    border-left: 4px solid var(--eg-green);
    background: var(--eg-white);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-sm);
}

.audience-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--eg-navy);
}

.audience-card__title i {
    color: var(--eg-green);
    margin-right: 0.5rem;
}

.audience-card__list {
    list-style: none;
}

.audience-card__list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.5;
}

.audience-card__list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--eg-green);
    position: absolute;
    left: 0;
    font-size: 0.85rem;
    top: 0.65rem;
}

/* --------------------------------------------------------------------------
   9. Stats Section
   -------------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stat-box {
    padding: var(--space-lg);
}

.stat-box__number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--eg-green);
    margin-bottom: 0.5rem;
}

.stat-box__label {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--eg-text-light);
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: linear-gradient(135deg, var(--eg-dark-blue) 0%, var(--eg-navy) 100%);
    color: var(--eg-text-light);
    padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.site-footer__tagline {
    color: var(--eg-text-light);
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.8;
}

.site-footer__heading {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--eg-green);
    margin-bottom: 1.25rem;
}

.site-footer__links li {
    margin-bottom: 0.75rem;
}

.site-footer__links a {
    color: var(--eg-text-light);
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.site-footer__links a:hover {
    color: var(--eg-green);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--eg-text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    background: var(--eg-white);
    color: var(--eg-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--eg-green);
    box-shadow: 0 0 0 3px var(--eg-green-glow);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-message--success {
    background: rgba(0, 230, 118, 0.1);
    color: var(--eg-green-dark);
    border: 1px solid var(--eg-green);
}

.form-message--error {
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
    border: 1px solid #e53e3e;
}

/* Honeypot field - hidden from humans */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Skip to Content Link (ADA Accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--eg-green);
    color: var(--eg-dark-blue);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 0.5rem 0.5rem;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--eg-green-dark);
    outline-offset: 2px;
}

.site-footer__address {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--eg-text-muted);
}
