/* =========================================
   Answers247 Investment Guides — Main CSS
   Matching answers247.in visual identity
   ========================================= */

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --accent: #f4a261;
    --bg-light: #f8f9fa;
    --bg-section: #f1f3f5;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 32px rgba(230,57,70,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    font-size: 15px;
}

/* ---- TOPBAR ---- */
.topbar {
    background: var(--secondary);
    color: var(--white);
    padding: 6px 0;
    font-size: 13px;
}
.topbar-item { color: rgba(255,255,255,0.85); }
.topbar-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition);
}
.topbar-link:hover { color: var(--accent); }

/* ---- NAVBAR ---- */
.main-nav {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 10px 0;
    z-index: 1000;
}
.main-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--secondary) !important;
    padding: 8px 14px !important;
    font-size: 14px;
    transition: var(--transition);
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--primary) !important; }

.brand-text { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--secondary); }
.brand-text span { color: var(--primary); }

.mega-menu {
    min-width: 280px;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px 0;
}
.mega-menu .dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mega-menu .dropdown-item:hover { background: rgba(230,57,70,0.07); color: var(--primary); }
.mega-menu .dropdown-item small { font-size: 11px; }

/* ---- HERO BANNER ---- */
.city-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #2d4a7a 50%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.city-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="30" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="20" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover;
}
.city-hero .badge-pill {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 16px;
}
.city-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.city-hero h1 span { color: var(--accent); }
.city-hero .lead { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 600px; }

.hero-snapshot {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 24px;
}
.snap-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.2); padding: 0 15px; }
.snap-item:last-child { border-right: none; }
.snap-value { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.snap-label { font-size: 12px; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- SECTION STYLES ---- */
section { padding: 60px 0; }
section:nth-child(even) { background: var(--bg-section); }

.section-badge {
    display: inline-block;
    background: rgba(230,57,70,0.1);
    color: var(--primary);
    border-radius: 50px;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
}
.section-title span { color: var(--primary); }
.section-divider {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 0 0 24px;
}

/* ---- CARDS ---- */
.ig-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
    /* height: 100%; */
}
.ig-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.ig-card-body { padding: 24px; }
.ig-card-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(244,162,97,0.1));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 16px;
}

/* City Grid Card */
.city-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    border: 2px solid transparent;
}
.city-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    text-decoration: none;
}
.city-card-header {
    background: linear-gradient(135deg, var(--secondary), #2d4a7a);
    color: white;
    padding: 20px;
    position: relative;
}
.city-card-header .city-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.city-card-header h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}
.city-card-header small { color: rgba(255,255,255,0.75); font-size: 12px; }
.city-card-header .featured-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
}
.city-card-body { padding: 16px 20px; }
.city-card-body .stat { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.city-card-body .stat strong { color: var(--secondary); }
.city-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}
.city-card-footer span {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* ---- INFRASTRUCTURE TIMELINE ---- */
.infra-timeline { position: relative; padding-left: 30px; }
.infra-timeline::before {
    content: '';
    position: absolute;
    left: 10px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(var(--primary), var(--accent));
}
.infra-item {
    position: relative;
    margin-bottom: 28px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--primary);
}
.infra-item::before {
    content: '';
    position: absolute;
    left: -23px; top: 20px;
    width: 12px; height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.2);
}
.infra-item h6 { font-family: var(--font-heading); font-weight: 700; color: var(--secondary); margin-bottom: 6px; }
.infra-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}
.status-construction { background: rgba(255,193,7,0.15); color: #856404; }
.status-approved { background: rgba(13,110,253,0.1); color: #0d6efd; }
.status-operational { background: rgba(25,135,84,0.1); color: #198754; }
.status-ongoing { background: rgba(230,57,70,0.1); color: var(--primary); }
.status-development { background: rgba(102,16,242,0.1); color: #6610f2; }

/* ---- PRICE TABLE ---- */
.price-table {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.price-table table { margin: 0; }
.price-table thead th {
    background: var(--secondary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 18px;
    border: none;
}
.price-table tbody td { padding: 12px 18px; border-color: var(--border); vertical-align: middle; }
.price-table tbody tr:hover { background: rgba(230,57,70,0.04); }
.yield-badge {
    background: rgba(25,135,84,0.1);
    color: #198754;
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* ---- PROS/CONS ---- */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media(max-width:768px) { .pros-cons-grid { grid-template-columns: 1fr; } }

.pros-box, .cons-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.pros-box { border-top: 4px solid #198754; }
.cons-box { border-top: 4px solid var(--primary); }
.pros-box h5 { color: #198754; font-family: var(--font-heading); font-weight: 700; }
.cons-box h5 { color: var(--primary); font-family: var(--font-heading); font-weight: 700; }

.pros-list li, .cons-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}
.pros-list li:last-child, .cons-list li:last-child { border-bottom: none; }
.pros-list li i { color: #198754; margin-top: 3px; }
.cons-list li i { color: var(--primary); margin-top: 3px; }

/* ---- INVESTOR PROFILES ---- */
.investor-card {
    background: linear-gradient(135deg, var(--secondary), #2d4a7a);
    color: white;
    border-radius: var(--radius);
    padding: 24px;
    height: 100%;
}
.investor-card .profile-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.investor-card h6 { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; }
.investor-card .budget-tag {
    background: rgba(244,162,97,0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* ---- FAQ ACCORDION ---- */
.faq-accordion .accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
    background: var(--white);
    font-size: 15px;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(230,57,70,0.05);
    box-shadow: none;
}
.faq-accordion .accordion-button::after {
    filter: none;
    color: var(--primary);
}
.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 10px;
    overflow: hidden;
}

/* ---- ENQUIRY FORM ---- */
.enquiry-card {
    background: linear-gradient(135deg, var(--secondary), #1a3050);
    border-radius: var(--radius);
    padding: 32px;
    color: white;
    position: sticky;
    top: 90px;
}
.enquiry-card h4 { font-family: var(--font-heading); font-weight: 700; }
.enquiry-card .form-control, .enquiry-card .form-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: var(--radius-sm);
}
.enquiry-card .form-control::placeholder { color: rgba(255,255,255,0.5); }
.enquiry-card .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(244,162,97,0.2);
    color: white;
}
.enquiry-card .form-select option { background: var(--secondary); }
.enquiry-card label { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 500; }

/* ---- BUTTONS ---- */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.3);
    color: white;
}
.btn-secondary-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-secondary-custom:hover { background: var(--primary); color: white; }

/* ---- TOC SIDEBAR ---- */
.toc-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    position: sticky;
    top: 90px;
    border: 1px solid var(--border);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.toc-sidebar h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.toc-link {
    display: block;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.toc-link:hover, .toc-link.active {
    background: rgba(230,57,70,0.07);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* ---- STATS BAR ---- */
.stats-bar {
    background: linear-gradient(135deg, var(--secondary), #2d4a7a);
    padding: 40px 0;
    color: white;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}
.stat-text { font-size: 14px; color: rgba(255,255,255,0.8); }

/* ---- INDEX PAGE ---- */
.hero-index {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a3a6b 60%, var(--primary-dark) 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}
.hero-index h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.hero-index h1 span { color: var(--accent); }
.hero-index p { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 30px; }

.search-bar-wrap {
    background: white;
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.search-bar-wrap input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 15px;
    color: var(--text-dark);
    background: transparent;
}
.search-bar-wrap button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.search-bar-wrap button:hover { background: var(--primary-dark); }

/* State filter tabs */
.state-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.state-tab {
    padding: 6px 16px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    transition: var(--transition);
}
.state-tab:hover, .state-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* ---- BREADCRUMB ---- */
.breadcrumb-section {
    background: var(--bg-section);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }

/* ---- CHART CONTAINER ---- */
.chart-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

/* ---- AREA CARDS ---- */
.area-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 18px;
    transition: var(--transition);
    height: 100%;
}
.area-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.area-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}
.badge-premium { background: rgba(102,16,242,0.1); color: #6610f2; }
.badge-affordable { background: rgba(25,135,84,0.1); color: #198754; }
.badge-mid { background: rgba(13,110,253,0.1); color: #0d6efd; }
.badge-commercial { background: rgba(230,57,70,0.1); color: var(--primary); }

/* ---- EDUCATION / HEALTHCARE LISTS ---- */
.inst-list { list-style: none; padding: 0; }
.inst-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.inst-list li:last-child { border-bottom: none; }
.inst-list li .inst-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(244,162,97,0.1));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

/* ---- ALERT BOX ---- */
.info-alert {
    background: linear-gradient(135deg, rgba(29,53,87,0.07), rgba(230,57,70,0.05));
    border: 1px solid rgba(29,53,87,0.15);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 14px;
}
.info-alert i { color: var(--primary); }

/* ---- FOOTER ---- */
.site-footer { background: var(--secondary); color: white; margin-top: 0; }
.footer-top { padding: 60px 0 30px; }
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.footer-bottom p { margin: 0; }
.footer-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-about { color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}
.footer-contact li i { color: var(--accent); margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    margin-right: 8px;
    text-decoration: none;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}
.back-to-top.show { opacity: 1; }
.back-to-top:hover { background: var(--primary-dark); color: white; transform: translateY(-3px); }

/* ---- ADMIN ---- */
.admin-sidebar {
    background: var(--secondary);
    min-height: 100vh;
    padding: 0;
    color: white;
}
.admin-brand {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--accent);
}
.admin-main {
    background: var(--bg-section);
    min-height: 100vh;
    padding: 30px;
}
.admin-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

/* ---- RESPONSIVE ---- */
@media(max-width: 768px) {
    section { padding: 40px 0; }
    .city-hero { padding: 50px 0 40px; }
    .hero-index { padding: 50px 0; }
    .snap-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 10px; }
    .toc-sidebar { display: none; }
}

/* ---- UTILITY ---- */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-secondary-custom { background: var(--secondary) !important; }
.fw-heading { font-family: var(--font-heading); }
