/* =========================
   GLOBAL STYLES
========================= */
:root {
    --primary: #111827;
    --secondary: #f7f9fc;
    --accent: #2563eb;
    --accent-2: #0ea5e9; /* secondary accent for gradients */
    --white: #ffffff;
    --gray: #6b7280;
    --green: #16a34a;
    --red: #dc2626;
    --radius: 14px;
    --font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
    --shadow-md: 0 10px 25px rgba(0,0,0,.08);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--secondary);
    color: var(--primary);
    line-height: 1.6;
}

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

/* =========================
   NAVBAR
========================= */
nav {
    background: var(--white);
    border-bottom: 1px solid #eef0f4;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand a {
    display: flex;
    align-items: center;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.logo {
    height: 40px;
    margin-right: 0.5rem;
    border-radius: 100px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent);
}

/* =========================
   NAVBAR TOGGLER
========================= */
#mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

#mobile-menu-button svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    display: block;
}

#mobile-menu-button .close-icon {
    display: none;
}

#mobile-menu-button.active .hamburger {
    display: none;
}

#mobile-menu-button.active .close-icon {
    display: block;
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
    position: relative;
    text-align: center;
    color: var(--white);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-cta-button {
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   SECTION HEADERS
========================= */
.section-header {
    text-align: center;
    padding: 3rem 1rem 1rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

.section-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 0.5rem auto 0;
}

/* =========================
   MARKET OVERVIEW STYLES
========================= */
.market-grid {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.movers-tables {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.movers-tables > div {
    flex: 1;
    min-width: 250px;
}

.simple-table {
    width: 100%;
    border-collapse: collapse;
}

.simple-table th, .simple-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #eef0f4;
}

.simple-table th {
    font-weight: 600;
}

.simple-table td.green {
    color: var(--green);
    font-weight: 600;
}

.simple-table td.red {
    color: var(--red);
    font-weight: 600;
}

.market-breadth-card {
    margin-top: 1rem;
}


/* =========================
   GRID & CARD STYLES
========================= */
.services-grid,
.testimonials-grid,
.insights-grid {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.insights-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card,
.testimonial-card,
.news-card,
.blogs-card,
.top-movers-card,
.market-breadth-card,
.chart-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}



/* =========================
   FOOTER
========================= */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 2rem 1rem;
    margin-top: 2rem;
}
footer .footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
}
footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}
footer ul {
    list-style: none;
}
footer ul li {
    margin-bottom: 0.5rem;
}
footer ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}
footer ul li a:hover {
    color: var(--accent);
}
footer .footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* WhatsApp Chat Floating Button */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #2563eb;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.whatsapp-chat img {
    width: 50px;
    height: 50px;
}

.whatsapp-chat:hover {
    transform: scale(1.1);
    background-color: #0ea5e9;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet: 769px - 1024px */
@media (max-width: 1024px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content {
        max-width: 600px;
        padding: 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .market-grid,
    .services-grid,
    .testimonials-grid,
    .insights-grid {
        gap: 1rem;
        padding: 1rem;
    }
}

/* Mobile: up to 768px */
@media (max-width: 768px) {
    /* Navbar */
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem;
    }

    #mobile-menu-button {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 0;
        border-top: 1px solid #eef0f4;
    }

    /* Hero Section */
    .hero-content {
        top: 40%;
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta-button {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }

    /* Grids and Tables */
    .market-grid,
    .services-grid,
    .testimonials-grid,
    .insights-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem;
        gap: 0.75rem;
    }

    .movers-tables {
        flex-direction: column;
    }

    .movers-tables > div {
        min-width: 100%;
    }

    /* Footer */
    footer .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
}

/* Small Mobile: up to 480px */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .hero-cta-button {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }

    .nav-brand a {
        font-size: 0.9rem;
    }
}
