/* ============================================
   CENTRALIZED HOUSING SOCIETY PAGE STYLES
   Modern Card-Based Design System
   ============================================ */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-section .section-title h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .section-title p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    font-weight: 300;
}

/* Modern Card System */
.modern-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.modern-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-card h3 i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.modern-card p,
.modern-card ul {
    color: var(--secondary-color);
    line-height: 1.8;
    font-size: 1.05rem;
}

.modern-card ul {
    list-style: none;
    padding: 0;
}

.modern-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.modern-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-text);  /* #064e3b → 6.73:1 on white (was #059669 = 3.25:1 fail) */
    font-weight: bold;
}

/* Section Backgrounds */
.section-gradient-1 {
    background: linear-gradient(to bottom, #f7fafc 0%, var(--light-bg) 100%);
}

.section-gradient-2 {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05) 0%, rgba(6, 95, 70, 0.05) 100%);
}

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

.section-light {
    background: var(--light-bg);
}

/* Content Cards Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border-left: 4px solid var(--accent-color);
}

.feature-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(6, 95, 70, 0.15);
}

.feature-card h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-card h4 i {
    color: var(--accent-color);
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);  /* accent end → #065f46 = 4.54:1 (was #059669 = 3.25:1 fail) */
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
    transition: transform var(--transition-fast);
}

.stats-card:hover {
    transform: translateY(-10px);
}

.stats-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card .stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 4rem 0;
}

/* Enhanced Section Titles */
.enhanced-section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.enhanced-section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.enhanced-section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.enhanced-section-title p {
    font-size: 1.15rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Icon Boxes */
.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(6, 95, 70, 0.3);
}

.icon-box i {
    font-size: 1.8rem;
    color: var(--white);
}

/* Pricing Cards Enhancement */
.pricing-highlight {
    position: relative;
    overflow: hidden;
}

.pricing-highlight::before {
    content: 'FEATURED';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent-dark);  /* #065f46 → 4.54:1 with white (was #059669 = 3.25:1 fail) */
    color: var(--white);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Animated Elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.amenity-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border-top: 4px solid var(--accent-color);
}

.amenity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(6, 95, 70, 0.15);
}

.amenity-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amenity-card h4 i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.amenity-card ul {
    list-style: none;
    padding: 0;
}

.amenity-card ul li {
    padding: 0.5rem 0;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amenity-card ul li::before {
    content: '✓';
    color: var(--accent-text);  /* #064e3b → 6.73:1 on white (was #059669 = 3.25:1 fail) */
    font-weight: bold;
}

/* Location Section */
.location-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* FAQ Accordion */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f7fafc 0%, var(--light-bg) 100%);
    transition: background-color var(--transition-fast);
    border-left: 4px solid var(--accent-color);
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e2e8f0 100%);
}

.faq-question h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--accent-dark);  /* #065f46 → 4.54:1 with white (was #059669 = 3.25:1 fail) */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast), padding var(--transition-fast);
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem 2rem;
}

.faq-answer p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);  /* #065f46 end → 4.54:1 with white */
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.cta-button-white {
    background: var(--white);
    color: var(--primary-color);
    padding: 1.25rem 3rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button-white:hover {
    color: var(--primary-color);  /* prevent a:hover from overriding navy text */
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: var(--light-bg);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);  /* #065f46 end → 4.54:1 with white */
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 10px 40px rgba(26, 54, 93, 0.3);
    margin: 3rem auto;
    max-width: 900px;
}

.highlight-box h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.highlight-box h3 i {
    color: #ffd700;
}

.highlight-box p {
    font-size: 1.15rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #f7fafc 0%, var(--light-bg) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 3rem auto;
    max-width: 900px;
}

.info-box p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 0;
}

.info-box i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Section padding override for this page template */
.section {
    padding: 5rem 0;
}

.section:first-of-type {
    padding-top: 9rem;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .hero-section .section-title h1 {
        font-size: 2.5rem;
    }

    .hero-section .section-title p {
        font-size: 1.1rem;
    }

    .modern-card {
        padding: 1.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .enhanced-section-title h2 {
        font-size: 2rem;
    }

    .stats-card {
        padding: 1.5rem;
    }

    .stats-card .stat-number {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button-white {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }

    .hero-section .section-title h1 {
        font-size: 2rem;
    }

    .modern-card {
        padding: 1.25rem;
    }

    .icon-box {
        width: 50px;
        height: 50px;
    }

    .icon-box i {
        font-size: 1.5rem;
    }

    .enhanced-section-title h2 {
        font-size: 1.75rem;
    }

    .feature-card,
    .amenity-card {
        padding: 1.5rem;
    }
}

/* Page-specific width utilities */
.max-w-1000 {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-900 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
