/*
 Theme Name:   RR Wealth GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  GeneratePress Child Theme for RR Wealth (Premium Dense Design)
 Author:       RR Wealth
 Author URI:   https://rrwealth.in
 Template:     generatepress
 Version:      1.0.0
*/

/* Design System & Root Tokens */
:root {
    --primary-navy: #0F172A;
    --navy-light: #1E293B;
    --emerald-green: #059669;
    --emerald-hover: #047857;
    --accent-gold: #D97706;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #1EBE57;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Global Reset (scoping slightly for GP) */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Base structural overrides for the custom front page */
.rr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a.btn {
    text-decoration: none;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-navy);
    color: #94A3B8;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: #E2E8F0;
}

/* Header & Navigation */
.custom-header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 10px 0;
    gap: 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: -0.5px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-accent {
    color: var(--emerald-green);
}

.nav-menu {
    display: flex;
    gap: 16px;
    font-weight: 500;
    font-size: 0.9rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--emerald-green);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    max-height: 44px;
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--emerald-green);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--emerald-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
    color: #FFFFFF;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #FFFFFF;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    color: #FFFFFF;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
}

.btn-outline:hover {
    background-color: var(--primary-navy);
    color: #FFFFFF;
}

.btn-full {
    width: 100%;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--emerald-green);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.highlight {
    color: var(--emerald-green);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Quick Hero Calculator */
.hero-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 6px;
}

.hero-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.quick-calc-inputs label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 4px;
}

.quick-calc-inputs input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

.quick-calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-light);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.quick-calc-result strong {
    font-size: 1.2rem;
    color: var(--emerald-green);
}

/* Section Global */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #FFFFFF;
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.rr-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.rr-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--emerald-green);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.rr-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-navy);
}

.rr-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.card-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.card-list li {
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}

.card-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--emerald-green);
    font-weight: bold;
}

/* Interactive Simulators */
.simulator-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.sim-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: var(--emerald-green);
    border-bottom-color: var(--emerald-green);
}

.sim-content {
    display: none;
}

.sim-content.active {
    display: block;
}

.sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.slider-group {
    margin-bottom: 24px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.slider-value {
    color: var(--emerald-green);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--emerald-green);
}

.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #FFFFFF;
}

.sim-results {
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.result-box {
    margin-bottom: 16px;
}

.res-title {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.res-amount {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.highlight-box .res-amount {
    color: var(--emerald-green);
}

.total-box .res-amount {
    font-size: 1.8rem;
    color: var(--primary-navy);
}

/* Why Choose Us Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 24px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-list {
    margin: 24px 0;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.info-icon {
    font-size: 1.5rem;
}

.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-feedback {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

/* Footer */
.custom-footer {
    background-color: var(--primary-navy);
    color: #94A3B8;
    padding: 40px 0 20px 0;
    font-size: 0.88rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-brand p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #94A3B8;
    margin-top: 4px;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    margin: 20px 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
}

/* TOC Auto-Scroll Styling for Blog Posts */
.rr-toc-container {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 100px; /* Below the sticky header */
}

.rr-toc-container h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.rr-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rr-toc-list li {
    margin-bottom: 12px;
}

.rr-toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: block;
    border-left: 2px solid transparent;
    padding-left: 10px;
}

.rr-toc-list a:hover,
.rr-toc-list a.active-toc {
    color: var(--emerald-green);
    border-left-color: var(--emerald-green);
    font-weight: 600;
}

/* Mobile Menu Toggle & Wrapper */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-navy);
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1000;
}

.header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 10px 0;
    gap: 20px;
}

.header-nav-wrapper {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-grid, .sim-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-nav-wrapper {
        display: none; /* Hidden initially */
        flex-direction: column;
        width: 100%;
        gap: 20px;
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        margin-top: 10px;
        background: var(--bg-white);
    }

    .header-nav-wrapper.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
}

/* WordPress Menu Utility Class for Client Login Button */
/* Add "nav-btn-login" to the CSS Classes field in Appearance -> Menus */
.main-navigation .main-nav ul li.nav-btn-login a {
    background-color: var(--accent-gold) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 8px 18px !important;
    font-weight: 600;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
    margin-left: 15px;
    transition: transform 0.2s ease;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.main-navigation .main-nav ul li.nav-btn-login a:hover {
    transform: translateY(-2px);
    background-color: #B45309 !important;
}

/* Floating WhatsApp Button */
.floating-wa-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.floating-wa-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.floating-wa-btn:hover {
    transform: translateY(-5px);
    background-color: var(--whatsapp-hover);
    color: white;
}

@media (max-width: 768px) {
    .floating-wa-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}
