/* =========================================
 * - CORE STYLES - WEBMOLT
 * - (header.php, footer.php, buttons, etc.)
 * - ========================================= */

/* =========================================
 * - ENHANCED CSS VARIABLES
 * - ========================================= */
:root {
    /* Primary Brand Colors - More refined */
    --primary: #0093d0;
    --primary-dark: #006ba3;
    --primary-light: #33a9db;
    --secondary: #5ec8e5;
    --secondary-dark: #4ab8d5;
    --accent: #5eead4; /* Teal accent for CTAs */

    /* Neutral Colors - Better contrast */
    --dark: #0f172a;
    --gray-dark: #334155;
    --gray: #64748b;
    --gray-medium: #94a3b8;
    --gray-light: #e2e8f0;
    --gray-lighter: #f1f5f9;
    --white: #ffffff;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing Scale - More consistent */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem; /* 8px */
    --spacing-md: 1rem; /* 16px */
    --spacing-lg: 1.5rem; /* 24px */
    --spacing-xl: 2rem; /* 32px */
    --spacing-2xl: 3rem; /* 48px */
    --spacing-3xl: 4rem; /* 64px */
    --spacing-4xl: 6rem; /* 96px */

    /* Border Radius - More variety */
    --radius-sm: 0.375rem; /* 6px */
    --radius-md: 0.5rem; /* 8px */
    --radius-lg: 0.75rem; /* 12px */
    --radius-xl: 1rem; /* 16px */
    --radius-2xl: 1.5rem; /* 24px */
    --radius-full: 9999px;

    /* Shadows - More depth */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    --gradient-dark: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(0, 100, 150, 0.95) 100%);
}

/* =========================================
 * - IMPROVED BASE STYLES
 * - ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Better text rendering */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* =========================================
 * - Main Content Wrapper & FIXED HEADER FIX
 * - ========================================= */
.sections-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Push first section down ONLY on INTERIOR pages */
body.interior-page main > section:first-of-type,
body.interior-page .sections-wrapper > section:first-of-type {
    padding-top: calc(var(--header-height) + var(--spacing-2xl));
}

/* =========================================
 * - ENHANCED HEADER & NAVIGATION
 * - ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 1001;
}

.logo img {
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo sup {
    font-weight: 400;
    font-size: 0.85rem;
    top: -0.3em;
    letter-spacing: 0.5px;
    position: relative;
    opacity: 0.7;
}

/* =========================================
 * ENHANCED HEADER BUTTON STYLES
 * Fixed spacing, padding & visual appeal
 * ========================================= */

/* Main navigation list styling */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl); /* Reduced from 2xl for better balance */
    position: static;
    flex-direction: row;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible;
}

/* Regular navigation links */
.nav-menu li:not(:last-child) a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-dark);
    position: relative;
    padding: var(--spacing-sm) 0;
    transition: color var(--transition-base);
}

/* Hover effect for regular links */
.nav-menu li:not(:last-child) a:hover {
    color: var(--primary);
}

.nav-menu li:not(:last-child) a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-menu li:not(:last-child) a:hover::after {
    width: 100%;
}

/* =========================================
 * ENHANCED "GET STARTED" BUTTON
 * ========================================= */

/* Target the last nav item (Get Started button) */
.nav-menu li:last-child {
    margin-left: var(--spacing-md); /* Extra spacing before button */
}

/* Enhanced primary button in header */
.nav-menu .btn-primary {
    padding: 0.75rem 1.75rem; /* Balanced padding */
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0, 147, 208, 0.15);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Shimmer effect on hover */
.nav-menu .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.nav-menu .btn-primary:hover::before {
    left: 100%;
}

/* Enhanced hover state */
.nav-menu .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 147, 208, 0.35);
}

/* Active/pressed state */
.nav-menu .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 147, 208, 0.25);
}

/* Optional: Pulsing attention effect (remove if too much) */
@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 147, 208, 0.15);
    }
    50% {
        box-shadow: 0 4px 16px rgba(0, 147, 208, 0.25);
    }
}

.nav-menu .btn-primary {
    animation: subtle-pulse 3s ease-in-out infinite;
}

.nav-menu .btn-primary:hover {
    animation: none; /* Stop pulse on hover */
}

/* =========================================
 * NO-SCROLL CLASS (for WhatsApp links)
 * Prevents smooth scroll behavior
 * ========================================= */
.no-scroll {
    scroll-behavior: auto !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    position: absolute;
    left: 0;
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
}

.menu-toggle span:first-child { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:last-child { bottom: 0; }

.menu-toggle.active span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* =========================================
 * - PROFESSIONAL BUTTON SYSTEM
 * - ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    /* Initial subtle shadow for depth */
    box-shadow: 0 5px 15px rgba(0, 147, 208, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px); /* Slightly more lift */
    /* More pronounced, glowing shadow on hover */
    box-shadow: 0 10px 30px rgba(0, 147, 208, 0.5),
                0 0 15px rgba(0, 147, 208, 0.4); /* Added a glow effect */
}


.btn-secondary, .btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover, .btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background-color: var(--gray-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
}

/* =========================================
 * - SECTION HEADERS - UNIFIED STYLING
 * - ========================================= */
.section-header {
    margin-bottom: var(--spacing-3xl);
    max-width: 800px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.7;
    max-width: 700px;
}

.section-header.text-center .section-subtitle {
    margin: 0 auto;
}

/* Accent for subtitles in titles */
.subtitle-accent {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: var(--spacing-xs);
}

/* =========================================
 * - REUSABLE CTA SECTION (SHARED)
 * - ========================================= */
.site-cta {
    padding: var(--spacing-4xl) 0;
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.site-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(94, 234, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}
.cta-box {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-2xl);
}
.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    line-height: 1.2;
}
.cta-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
}
.cta-benefits {
    list-style: none;
    padding: 0;
    margin: var(--spacing-xl) auto;
    max-width: 550px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}
.cta-benefits li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
}
.cta-benefits li i {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    background: rgba(94, 234, 212, 0.2);
    border-radius: 50%;
    font-size: 0.75rem;
}
.site-cta .btn-light {
    background: var(--white);
    color: var(--primary);
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.site-cta .btn-light:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}
.cta-footer {
    margin-top: var(--spacing-xl);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/*
=========================================
  Mobile Responsive Fixes for CTA
=========================================
*/
@media (max-width: 768px) {
    .site-cta {
        padding: var(--spacing-2xl) var(--spacing-md);
    }
    
    .cta-box {
        padding: var(--spacing-xl) var(--spacing-md);
        border-radius: var(--radius-lg);
        /* Prevent horizontal overflow */
        margin: 0 var(--spacing-sm);
    }
    
    .cta-content h2 {
        font-size: clamp(1.75rem, 5vw, 2rem);
        line-height: 1.3;
        margin-bottom: var(--spacing-md);
    }
    
    .cta-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: var(--spacing-lg);
    }
    
    .cta-benefits {
        /* Stack benefits in single column */
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        margin: var(--spacing-lg) auto;
        max-width: 100%;
    }
    
    .cta-benefits li {
        font-size: 0.9375rem;
        gap: var(--spacing-xs);
    }
    
    .cta-benefits li i {
        width: 20px;
        height: 20px;
        font-size: 0.6875rem;
    }
    
    .site-cta .btn-light {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        white-space: nowrap;
        display: inline-block;
        min-width: auto;
    }
    
    .cta-footer {
        margin-top: var(--spacing-lg);
        font-size: 0.875rem;
        padding: 0 var(--spacing-sm);
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .site-cta {
        padding: var(--spacing-xl) var(--spacing-sm);
    }
    
    .cta-box {
        padding: var(--spacing-lg) var(--spacing-sm);
        margin: 0;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .cta-content p {
        font-size: 0.9375rem;
    }
    
    .cta-benefits li {
        font-size: 0.875rem;
    }
}

/* =========================================
 * - GLOBAL FOOTER
 * - ========================================= */
.site-footer {
    background: linear-gradient(180deg, var(--dark) 0%, #0a0f1a 100%);
    color: var(--gray-light);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    position: relative;
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-column h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    position: relative;
    padding-bottom: var(--spacing-sm);
    font-weight: 600;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo sup {
    font-weight: 400;
    font-size: 0.85rem;
    top: -0.3em;
    letter-spacing: 0.5px;
    position: relative;
    opacity: 0.7;
}

.footer-description {
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-size: 0.9375rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-medium);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
    font-size: 0.9375rem;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-base);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(8px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Newsletter Form */
.subscribe-form {
    display: flex;
    margin-top: var(--spacing-md);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.subscribe-form input {
    flex: 1;
    border: none; /* <-- Fix for one-piece look */
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.subscribe-form input:focus {
    outline: none;
    /* border-color: var(--primary); */ /* No border to focus */
    background-color: rgba(255, 255, 255, 0.08);
}

.subscribe-form input::placeholder {
    color: var(--gray-medium);
}

.subscribe-form button {
    padding: 0.875rem 1.5rem;
    border: none;
    background: var(--gradient-primary);
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
}

.subscribe-form button:hover {
    background: var(--gradient-accent);
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    color: var(--gray-medium);
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: var(--spacing-lg);
}

.legal-links a {
    color: var(--gray-medium);
    transition: color var(--transition-base);
}

.legal-links a:hover {
    color: var(--white);
}

/* =========================================
 * - GLOBAL: Back to Top Button
 * - ========================================= */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.back-to-top i {
    transition: transform var(--transition-base);
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* =========================================
 * - SCROLL ANIMATIONS (SHARED)
 * - ========================================= */
/* Base styles for scroll animation.
 * - The .is-visible class will be added by JavaScript.
 */
.service-card,
.feature-item,
.process-step,
.faq-item,
.testimonial-featured,
.tool-card,
.benefit-card,
.portfolio-item,
.post-card {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.is-visible,
.feature-item.is-visible,
.process-step.is-visible,
.faq-item.is-visible,
.testimonial-featured.is-visible,
.tool-card.is-visible,
.benefit-card.is-visible,
.portfolio-item.is-visible,
.post-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
 * - UTILITY CLASSES
 * - ========================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* =========================================
 * - PERFORMANCE OPTIMIZATIONS
 * - ========================================= */
.btn,
.service-card,
.feature-item,
.process-step {
    will-change: transform;
}

.site-header,
.nav-menu,
.hero-tagline,
.step-number {
    transform: translateZ(0);
}

/* =========================================
 * - ACCESSIBILITY
 * - ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
 * - CORE RESPONSIVE STYLES
 * - ========================================= */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    :root {
        --container-width: 1400px;
    }
}

/* Tablet Landscape (992px - 1023px) */
@media (max-width: 1023px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-benefits {
        grid-template-columns: 1fr;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    /* Navigation - Mobile Menu */
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: var(--shadow-2xl);
        padding: var(--spacing-2xl);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    visibility 0.4s;
    }

    .nav-menu.active {
        max-height: 600px;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-light);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s, transform 0.3s;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: var(--spacing-md) 0;
        font-size: 1.125rem;
        text-align: center;
    }

    /* === NEW MOBILE BUTTON STYLES === */
    .nav-menu.active li:last-child {
        margin-left: 0;
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
        border-top: 2px solid var(--gray-light);
    }

    .nav-menu.active .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
    /* === END NEW STYLES === */

    /* Body scroll lock */
    body.menu-open {
        overflow: hidden;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    :root {
        --spacing-3xl: 3rem;
        --spacing-4xl: 4rem;
        --header-height: 70px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .cta-box {
        padding: var(--spacing-2xl);
    }

    .section-header {
        margin-bottom: var(--spacing-2xl);
    }

    /* === NEW MOBILE BUTTON STYLE === */
    .nav-menu .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    /* === END NEW STYLE === */
}

/* Small Mobile (320px - 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    .cta-box .btn {
        white-space: normal; /* Allows text to wrap */
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* NEW RULES: Make subscribe form smaller instead of stacking */
    .subscribe-form input {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .subscribe-form button {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
}

/* =========================================
 * - UNIVERSAL PAGE HEADER (for all interior pages)
 * - ========================================= */
.page-header {
    padding: var(--spacing-3xl) 0;
    text-align: center;
    color: var(--white);
    background-color: var(--dark); /* Fallback */
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Simple header for Tools, 404, etc. */
.page-header-simple {
    /* Note: The padding-top is handled by the 'main' tag in core.css */
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    background-color: var(--gray-lighter);
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: var(--spacing-2xl);
}
.page-header-simple h1 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
    text-shadow: none;
}
.page-header-simple p {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
}