/* ========================================
   PAGES.CSS - Centralized Styles for All Pages
   assets/css/pages.php
======================================== */

/* ========================================
   HERO SECTIONS
======================================== */
.page-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)), 
                url('/assets/images/hero-default.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease;
}

.page-hero .subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Hero Variations */
.hero-locations { background-image: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('/assets/images/northeast-map.jpg'); }
.hero-partners { background-image: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('/assets/images/partners-hero.jpg'); }
.hero-franchise { background-image: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('/assets/images/franchise-hero.jpg'); }

/* ========================================
   CONTENT SECTIONS
======================================== */
.content-section {
    padding: 80px 0;
    background: white;
}

.content-section.gray {
    background: #f8f9fa;
}

.content-section.gradient {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 42px;
    font-family: 'Playfair Display', serif;
    color: #333;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

/* ========================================
   GRID LAYOUTS
======================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* ========================================
   CARDS
======================================== */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.card-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-link {
    color: #62a340;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 10px;
}

/* Card Variations */
.card.featured {
    border: 2px solid #62a340;
}

.card.clickable {
    cursor: pointer;
}

.card.horizontal {
    display: flex;
}

.card.horizontal .card-image {
    width: 300px;
    height: auto;
}

/* ========================================
   LOCATION CARDS
======================================== */
.location-card {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.location-card-header {
    background: linear-gradient(135deg, #62a340, #4d8232);
    color: white;
    padding: 20px;
    text-align: center;
}

.location-card h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.location-card-body {
    padding: 25px;
}

.location-features {
    list-style: none;
    margin: 20px 0;
}

.location-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-features li:before {
    content: '✓';
    color: #62a340;
    font-weight: bold;
}

/* ========================================
   STATS & METRICS
======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.stat-box {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #62a340;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: #666;
    font-size: 16px;
}

/* ========================================
   FEATURES & BENEFITS
======================================== */
.features-list {
    display: grid;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #f8f9fa;
    transform: translateX(10px);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #62a340, #4d8232);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.feature-content h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 20px;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   CTA SECTIONS
======================================== */
.cta-box {
    background: linear-gradient(135deg, #62a340, #4d8232);
    color: white;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 10px 40px rgba(98, 163, 64, 0.3);
}

.cta-box h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-white {
    background: white;
    color: #62a340;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ========================================
   FRANCHISE SPECIFIC
======================================== */
.franchise-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.benefit-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefit-card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #62a340;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   PARTNER LOGOS
======================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.partner-logo {
    background: white;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

/* ========================================
   INTERACTIVE MAP
======================================== */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   ACCORDION / FAQ
======================================== */
.accordion {
    max-width: 800px;
    margin: 40px auto;
}

.accordion-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.accordion-header {
    padding: 20px 25px;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 60px;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #62a340;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: translateY(-50%) rotate(45deg);
}

.accordion-content {
    padding: 0 25px 25px;
    display: none;
    color: #666;
    line-height: 1.8;
}

.accordion-item.active .accordion-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 350px;
        padding: 100px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 36px;
    }
    
    .page-hero .subtitle {
        font-size: 18px;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-box {
        padding: 40px 30px;
    }
    
    .cta-box h2 {
        font-size: 28px;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .map-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   STATE PAGES SPECIFIC
======================================== */
.state-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 450px;
}

.state-badge {
    display: inline-block;
    background: rgba(255,255,255,0.95);
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.city-tag {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid #62a340;
    font-weight: 500;
    transition: all 0.3s ease;
}

.city-tag:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.service-highlight {
    background: linear-gradient(135deg, #f0f9ed, #e8f5e3);
    border: 2px solid #62a340;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.warehouse-info {
    background: #fff9e6;
    border: 2px solid #ffdd99;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.warehouse-info h3 {
    color: #ff9900;
    margin-bottom: 15px;
}

.local-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    text-align: center;
}

.local-stat {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.local-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #62a340;
    display: block;
}

.local-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}