/*
Theme Name: CG BROKER
Theme URI: https://cgbroker.in
Author: CG BROKER Developer
Description: A custom, lightweight, production-ready theme for Chhattisgarh's Largest Real Estate Broker Network. Built with pure PHP, vanilla JS, and optimized CSS.
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: cg-broker
*/

:root {
    --primary-color: #25D366; /* WhatsApp Green */
    --primary-dark: #128C7E;
    --dark-color: #1A1A1A;
    --light-bg: #FAFAFA;
    --white: #FFFFFF;
    --gray-text: #666666;
    --border-color: #EAEAEA;
    --max-width: 1200px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--white);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--dark-color);
}

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

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    font-weight: 600;
    font-size: 16px;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 30px;
}

.nav-cta:hover {
    background-color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 90% 10%, rgba(37, 211, 102, 0.05) 0%, transparent 40%);
}

.hero-tagline {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Video Section */
.video-section {
    padding: 60px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    padding-bottom: 45%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Grid Layouts & Cards */
.section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    margin-bottom: 40px;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.city-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.15);
}

.city-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
}

.city-info {
    padding: 20px;
    text-align: center;
}

.city-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.member-count {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 20px;
    display: block;
    width: 100%;
}

/* Search Bar Component */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-input {
    width: 100%;
    padding: 15px 25px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
}

/* Features Grid */
.grid-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

/* Contact Area */
.contact-section {
    padding: 80px 0;
    text-align: center;
}

.contact-box {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* Footer UI */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-desc {
    color: #AAA;
    margin-top: 15px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #AAA;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* Sticky Mobile Dock */
.mobile-sticky-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
}

.dock-container {
    display: flex;
    height: 60px;
}

.dock-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
}

.dock-call { background-color: var(--dark-color); }
.dock-wa { background-color: var(--primary-color); }

/* Responsive Media Queries */
@media(max-width: 992px) {
    .grid-6, .grid-features, .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .main-navigation {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 32px;
    }
    .grid-6, .grid-features, .footer-grid {
        grid-template-columns: 1fr;
    }
    .mobile-sticky-dock {
        display: block;
    }
    body {
        padding-bottom: 60px;
    }
}