/* =========================================================
   PRAVYAM FINANCIAL SERVICES — Brand Stylesheet
   Colors: Navy #003366 | Blue #0072CE | Green #16A34A
           Gold #D4AF37 | Cream #F8F4E6 | Charcoal #333333
   Font: Montserrat
   ========================================================= */

:root {
    --navy: #003366;
    --blue: #0072CE;
    --green: #16A34A;
    --gold: #D4AF37;
    --cream: #F8F4E6;
    --charcoal: #333333;
    --white: #FFFFFF;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
}

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

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- HEADER ---------- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand-logo {
    display: flex;
    align-items: center;
}
.brand-logo .logo-img {
    height: 58px;
    width: auto;
}
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--navy);
    color: var(--white);
    padding: 12px 20px;
    z-index: 1000;
    border-radius: 0 0 6px 0;
    font-weight: 600;
}
.skip-link:focus {
    left: 0;
}
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
    font-weight: 500;
    font-size: 14.5px;
    color: var(--charcoal);
    transition: color .2s;
}
.main-nav a:hover { color: var(--blue); }

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--blue); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { opacity: .9; }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #012a52 100%);
    color: var(--white);
    padding: 90px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold), var(--green), var(--blue));
}
.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}
.hero .subtitle {
    font-size: 18px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.hero p.desc {
    max-width: 680px;
    margin: 0 auto 32px;
    font-size: 16px;
    color: #dbe6f2;
}
.hero .hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- SECTIONS ---------- */
.section { padding: 70px 0; }
.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 620px;
    margin: 0 auto 40px;
    font-size: 15.5px;
}
.bg-cream { background: var(--cream); }

/* Grid cards */
.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow);
    transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card .icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    color: var(--green);
    margin-bottom: 16px;
}
.card h3 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: #555; }

/* Brand pillars: Plan / Invest / Protect / Grow */
.pillars { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-top: 30px; }
.pillar { text-align: center; }
.pillar .circle {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    font-size: 26px; color: var(--white);
}
.pillar.plan .circle { background: var(--gold); }
.pillar.invest .circle { background: var(--green); }
.pillar.protect .circle { background: var(--navy); }
.pillar.grow .circle { background: var(--blue); }
.pillar span { font-weight: 600; color: var(--navy); }

/* Calculator forms */
.calc-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    max-width: 520px;
    margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #d9d9d9; border-radius: 6px;
    font-size: 14.5px; font-family: inherit;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.result-box {
    background: var(--cream);
    border-left: 4px solid var(--green);
    border-radius: 6px;
    padding: 18px;
    margin-top: 20px;
}
.result-box .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.result-box .row strong { color: var(--navy); }

/* Auth forms */
.auth-wrapper {
    max-width: 440px; margin: 60px auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}
.auth-wrapper h2 { color: var(--navy); text-align: center; margin-bottom: 24px; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: #fdecea; color: #b3261e; border: 1px solid #f3c2be; }
.alert-success { background: #e8f6ee; color: #16A34A; border: 1px solid #b7e4c7; }

/* Dashboard */
.dashboard-layout { display: flex; min-height: 80vh; }
.sidebar {
    width: 240px; background: var(--navy); color: var(--white);
    padding: 30px 0; flex-shrink: 0;
}
.sidebar .brand { padding: 0 24px 24px; font-weight: 700; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.15); margin-bottom: 16px; }
.sidebar a {
    display: block; padding: 12px 24px; font-size: 14.5px; color: #cfe0f2;
    border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.08); border-left-color: var(--gold); color: var(--white); }
.main-content { flex: 1; padding: 34px; background: var(--cream); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.stat-card h4 { font-size: 13px; color: #777; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.stat-card .value { font-size: 24px; font-weight: 700; color: var(--navy); }

table.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data-table th { background: var(--navy); color: var(--white); text-align: left; padding: 12px 16px; font-size: 13.5px; }
table.data-table td { padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 14px; }
table.data-table tr:last-child td { border-bottom: none; }

/* Footer */
.site-footer { background: var(--navy); color: #cfe0f2; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--gold); font-size: 15px; margin-bottom: 14px; }
.footer-grid a { display: block; font-size: 13.5px; color: #cfe0f2; padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; text-align: center; font-size: 13px; color: #9fb6cf; }

@media (max-width: 768px) {
    .main-nav { display: none; }
    .dashboard-layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .hero h1 { font-size: 30px; }
}
