/* 
   style.css — Design System Premium
   Theme: Forest Green & Soft Gold (Elegance & Accessibility)
*/

:root {
    /* Colors */
    --primary: #2D5A27;
    --primary-dark: #1A3A17;
    --primary-light: #4A7C43;
    --secondary: #C5A059;
    --secondary-dark: #A68541;
    --accent: #E8DCC4;
    
    --white: #FFFFFF;
    --gray-50: #F8F9F5;
    --gray-100: #F1F3EE;
    --gray-200: #E2E8DF;
    --gray-300: #CAD4C5;
    --gray-400: #93A68A;
    --gray-500: #6B7C62;
    --gray-600: #4B5545;
    --gray-700: #374133;
    --dark: #1A2F18;
    
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Typography */
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: var(--transition); }

ul { list-style: none; }

/* 2. LAYOUT COMPONENTS */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section { padding: var(--space-xxl) 0; }

/* 3. TYPOGRAPHY */
h1, h2, h3, h4 {
    color: var(--dark);
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: var(--space-lg); }
h3 { font-size: 1.5rem; margin-bottom: var(--space-sm); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 4. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(45, 90, 39, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(45, 90, 39, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(45, 90, 39, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(45, 90, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 90, 39, 0); }
}

/* 5. HEADER */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.logo span { color: var(--secondary); }

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.nav-link:hover { color: var(--primary); }

/* 6. HERO SECTION */
.hero {
    background: var(--white);
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-content { z-index: 2; }

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    transform: perspective(1000px) rotateY(-5deg);
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 7. WIDGET STYLES */
.widget-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    padding: var(--space-xl) 0;
    color: white;
}

.widget-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-2xl);
    max-width: 900px;
    margin: 0 auto;
}

/* 8. CARDS & GRIDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

/* 9. BADGES */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.badge-primary { background: var(--gray-100); color: var(--primary); }
.badge-gold { background: var(--accent); color: var(--secondary-dark); }

/* 10. REVEAL ANIMATIONS */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 11. BREADCRUMBS */
.breadcrumb {
    padding: 20px 0;
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-sep { color: var(--gray-400); }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-current { color: var(--primary); }

/* 12. PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    padding: var(--space-xl) 0;
    color: white;
}

.page-header h1 { color: white !important; margin-bottom: var(--space-sm); }
.page-header p { color: var(--gray-400); font-size: 1.1rem; max-width: 600px; }

/* 13. DIRECTORY GRIDS */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.region-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.cities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 2rem 0;
}

.city-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.city-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--gray-50);
    transform: translateX(4px);
}

/* 14. FOOTER */
.site-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: var(--space-xxl) 0 var(--space-lg);
}

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

.footer-title { color: white; margin-bottom: var(--space-md); }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--white); }

/* RESPONSIVE */
@media (max-width: 991px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-badge { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

/* 15. REVIEWS */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.review-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.review-stars { color: #FFB400; margin-bottom: 10px; font-size: 1.2rem; }
.review-text { font-style: italic; color: var(--gray-600); margin-bottom: 15px; }
.review-author { font-weight: 800; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.review-author::before { content: '✓'; display: inline-flex; width: 20px; height: 20px; background: var(--success); color: white; border-radius: 50%; font-size: 0.7rem; align-items: center; justify-content: center; }

/* 16. COMPARISON TABLE */
.comparison-wrapper { overflow-x: auto; margin: var(--space-xl) 0; }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.comparison-table th, .comparison-table td {
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}
.comparison-table th { background: var(--dark); color: white; font-weight: 700; }
.comparison-table tr:hover { background: var(--gray-50); }
.check-yes { color: var(--success); font-weight: 900; }
.check-no { color: var(--error); opacity: 0.5; }

/* 17. FAQ ACCORDION */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: white;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.faq-question {
    padding: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    transition: var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    color: var(--gray-600);
}
.faq-item.active .faq-answer { padding: 1.2rem; max-height: 200px; }
.faq-item.active .faq-question { border-bottom: 1px solid var(--gray-100); color: var(--primary); }

/* 18. STICKY CTA */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    transition: var(--transition);
}
.sticky-cta.visible { transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) { .sticky-cta { display: none; } }