/*
Theme Name: RenewForever Pro
Theme URI: https://renew-forever.com
Author: RenewForever Team
Author URI: https://renew-forever.com
Description: A modern, conversion-optimized theme for streaming device renewal services. Features clean design, e-commerce integration, and full Elementor compatibility.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: renewforever
Tags: e-commerce, business, clean, modern, green, elementor, woocommerce

This theme is designed for renewal service businesses selling streaming device subscriptions.
*/

/* ===================================
   CSS VARIABLES - GREEN THEME PALETTE
   =================================== */
:root {
    /* Primary Green Colors */
    --primary-green: #2ecc71;
    --primary-green-dark: #27ae60;
    --primary-green-light: #4cd787;
    --primary-green-pale: #a8e6cf;
    
    /* Accent Colors */
    --accent-teal: #1abc9c;
    --accent-mint: #7dcea0;
    --accent-forest: #196f3d;
    
    /* Neutral Colors */
    --dark-charcoal: #2c3e50;
    --medium-gray: #7f8c8d;
    --light-gray: #ecf0f1;
    --off-white: #f8f9fa;
    --pure-white: #ffffff;
    
    /* Status Colors */
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
    --info: #3498db;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-green: 0 4px 16px rgba(46,204,113,0.25);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-charcoal);
    background-color: var(--pure-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark-charcoal);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--medium-gray);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ===================================
   BUTTONS
   =================================== */
.btn,
button.btn,
input[type="submit"],
.elementor-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--pure-white);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,204,113,0.35);
    color: var(--pure-white);
}

.btn-secondary {
    background: var(--pure-white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--pure-white);
}

.btn-outline {
    background: transparent;
    color: var(--dark-charcoal);
    border: 2px solid var(--light-gray);
}

.btn-outline:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    background: var(--pure-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    color: var(--dark-charcoal);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-green);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-charcoal);
    cursor: pointer;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green-pale) 0%, var(--pure-white) 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    color: var(--dark-charcoal);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--medium-gray);
    margin-bottom: var(--spacing-lg);
}

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

/* ===================================
   PRODUCT CARDS
   =================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-teal) 100%);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: var(--spacing-md) 0;
}

.product-price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--medium-gray);
}

.product-features {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--medium-gray);
    position: relative;
    padding-left: 1.5rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
    background: var(--off-white);
    padding: var(--spacing-xl) var(--spacing-md);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-teal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
    color: var(--pure-white);
}

/* ===================================
   TRUST BADGES
   =================================== */
.trust-section {
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    background: var(--pure-white);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge-icon {
    font-size: 3rem;
    color: var(--primary-green);
}

.trust-badge-text {
    font-weight: 600;
    color: var(--dark-charcoal);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: var(--dark-charcoal);
    color: var(--light-gray);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--pure-white);
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-gray);
}

.footer-section a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: var(--medium-gray);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--pure-white);
        box-shadow: var(--shadow-md);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* ===================================
   ELEMENTOR COMPATIBILITY
   =================================== */
.elementor-widget-container {
    box-sizing: border-box;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

/* Make Elementor buttons inherit theme styles */
.elementor-button-wrapper .elementor-button {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-radius: var(--radius-md);
}

.elementor-button-wrapper .elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

/* ===================================
   WOOCOMMERCE COMPATIBILITY
   =================================== */
.woocommerce .button,
.woocommerce button.button {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--pure-white);
    border-radius: var(--radius-md);
}

.woocommerce .button:hover {
    background: var(--primary-green-dark);
    color: var(--pure-white);
}

.woocommerce .price {
    color: var(--primary-green);
}

.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--primary-green);
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.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); }

.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); }

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-green);
    color: var(--pure-white);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); }
.badge-error { background: var(--error); }
.badge-info { background: var(--info); }
