/*
 * Cashflow Finvest - Groww-Inspired Design
 * Brand Palette: Emerald Green, Deep Teal, Clean White
 */

:root {
    /* Brand Colors */
    --primary-color: #00b386;
    /* Emerald Green - Growth/Trust (CTA) */
    --primary-dark: #009e74;
    /* Darker Green for Hover */
    --secondary-color: #1c2635;
    /* Dark Charcoal - Headings/Footer */
    --accent-color: #e5fcf4;
    /* Light Mint - Backgrounds/Accents */

    /* Neutrals */
    --text-primary: #44475b;
    /* Charcoal for Headings */
    --text-secondary: #7c7e8c;
    /* Slate Grey for Body */
    --bg-body: #ffffff;
    /* Pure White Body */
    --bg-light: #f5f6fa;
    /* Very Light Grey for Sections */
    --border-light: #eaecf0;
    /* Subtle Borders */

    /* Spacing & Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-secondary);
    font-family: 'Roboto', sans-serif;
    /* Clean, modern sans-serif */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-dark {
    color: var(--secondary-color) !important;
}

/* --- Navbar (Groww Style) --- */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 1.5rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* --- Buttons --- */
.btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 179, 134, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 179, 134, 0.35);
}

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

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* --- Cards (Groww Style) --- */
.card-groww {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-groww:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Hero Section --- */
.hero-section {
    background-color: #ffffff;
    padding: 100px 0 60px;
    position: relative;
}

.hero-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

/* --- Footer --- */
.footer-groww {
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
    padding-top: 4rem;
    color: var(--text-secondary);
    margin-top: 10rem;
    /* Added spacing */
}

.footer-groww h5 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-groww a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-light);
    margin-top: 3rem;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* --- Utilities --- */
.bg-subtle {
    background-color: var(--bg-light);
}

.rounded-xl {
    border-radius: var(--radius-lg);
}

/* --- Range Slider Styling (For Calculators) --- */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e0e0e0;
    /* Light grey track */
    border-radius: 2px;
}