/* SaptVidhya — Premium Elegant Design */
/* Fonts: Cormorant Garamond (headings), Inter (body) */
/* Colors: Gold (#C8A96E), Deep Purple (#2D1B4E), Cream (#FDF9F3), Dark (#1A1A2E) */

:root {
    --gold: #B8975A;
    --gold-light: #D4BC8A;
    --gold-bright: #C8A96E;
    --purple: #2D1B4E;
    --purple-light: #4A3470;
    --cream: #FDF9F3;
    --dark: #1A1A2E;
    --text: #3A3A3A;
    --text-light: #6B6B6B;
    --border: #E8E0D4;
    --bg-table: #FFFCF7;
    --font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    font-size: 0.92rem;
    -webkit-font-smoothing: antialiased;
}

/* === HEADER (compact, elegant) === */
header {
    background: var(--dark);
    padding: 0.55rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(200, 169, 110, 0.15);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
}
.logo span {
    color: var(--gold-light);
    font-weight: 400;
}
nav a {
    color: var(--gold-light);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.2s;
}
nav a:hover { color: #fff; }

/* === MAIN === */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* === HERO (compact + elegant) === */
.hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--purple) 0%, var(--dark) 100%);
    border-radius: 10px;
    margin-bottom: 2rem;
    color: #fff;
}
.hero-compact {
    padding: 1.8rem 1.5rem 1.5rem;
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    font-style: italic;
}
.hero p {
    color: var(--gold-light);
    font-size: 0.95rem;
    max-width: 550px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* === HOME CALCULATOR (inline form) === */
.home-calc {
    background: #fff;
    border-radius: 0 0 10px 10px;
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-top: 2px solid var(--gold);
}
.home-calc-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--purple);
    text-align: center;
    margin-bottom: 0.2rem;
}
.home-calc-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.home-calc-form {
    box-shadow: none;
    padding: 0;
    background: transparent;
}
.home-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1.5rem;
    margin-bottom: 1.2rem;
}

/* === PAGE TITLE === */
.page-title {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
}
.page-title h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 0.2rem;
}
.page-title .subtitle {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 400;
}

/* === VIDHYA CARDS (Home) === */
.vidhya-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.vidhya-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.3rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 3px solid var(--gold);
}
.vidhya-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.vidhya-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 0.3rem;
}
.vidhya-card .lens {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.vidhya-card p {
    font-size: 0.83rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    line-height: 1.5;
}

/* === TABLES === */
.table-section {
    margin-bottom: 2rem;
}
.table-section h2 {
    font-family: var(--font-heading);
    color: var(--purple);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--gold);
}
.table-section h3 {
    font-family: var(--font-heading);
    color: var(--purple-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.note {
    background: #FFF8F0;
    border-left: 2px solid var(--gold);
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    border-radius: 0 4px 4px 0;
    color: var(--text-light);
}
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 1rem;
}
thead {
    background: var(--purple);
    color: var(--gold-light);
}
th {
    padding: 0.6rem 1rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
td {
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
tbody tr:hover {
    background: var(--bg-table);
}
tbody tr:last-child td {
    border-bottom: none;
}
.highlight-row {
    background: #FFF8F0;
    font-weight: 500;
}

/* === SUB-NAV === */
.sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}
.sub-nav a {
    background: var(--purple);
    color: var(--gold-light);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}
.sub-nav a:hover, .sub-nav a.active {
    background: var(--gold);
    color: var(--purple);
}

/* === READ MORE === */
a.read-more {
    display: inline-block;
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
}
a.read-more:hover { color: var(--gold); }

/* === FOOTER === */
footer {
    background: var(--dark);
    color: rgba(212, 188, 138, 0.7);
    text-align: center;
    padding: 1.2rem;
    margin-top: 2rem;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}
footer a { color: var(--gold); text-decoration: none; }

/* === CALCULATOR NAV BUTTON === */
.nav-calc {
    background: var(--gold) !important;
    color: var(--dark) !important;
    padding: 0.25rem 0.7rem;
    border-radius: 3px;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
}
.nav-calc:hover {
    background: #fff !important;
    color: var(--purple) !important;
}

/* === CALCULATOR FORM === */
.calc-container {
    max-width: 700px;
    margin: 0 auto;
}
.calc-form {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.calc-section {
    margin-bottom: 1.8rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid var(--border);
}
.calc-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0.8rem;
}
.calc-section h2 {
    font-family: var(--font-heading);
    color: var(--purple);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.section-desc {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
.optional-badge {
    background: rgba(184, 151, 90, 0.15);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.65rem;
    padding: 0.12rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    color: var(--purple);
    margin-bottom: 0.25rem;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
}
.required { color: #c0392b; }
.calc-input {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
    background: #FDFBF8;
    color: var(--text);
}
.calc-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(184, 151, 90, 0.12);
}
.help-text {
    display: block;
    color: #aaa;
    font-size: 0.72rem;
    margin-top: 0.15rem;
    letter-spacing: 0.1px;
}
.error {
    display: block;
    color: #c0392b;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.radio-group {
    display: flex;
    gap: 1.2rem;
    padding: 0.4rem 0;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 400 !important;
    color: var(--text) !important;
    cursor: pointer;
    font-size: 0.85rem;
}
.calc-submit {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--purple);
    color: var(--gold);
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    text-align: center;
    text-decoration: none;
}
.calc-submit:hover {
    background: var(--dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.25);
}

/* === AI READING (guru narrative) === */
.ai-reading {
    background: linear-gradient(135deg, #FAF7FF 0%, #FFF8F0 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}
.ai-badge {
    display: inline-block;
    background: var(--purple);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.25rem 0.8rem;
    border-radius: 3px;
    margin-bottom: 1.5rem;
}
.ai-section {
    margin-bottom: 1.8rem;
}
.ai-section:last-child {
    margin-bottom: 0;
}
.ai-section h2 {
    font-family: var(--font-heading);
    color: var(--purple);
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(184, 151, 90, 0.3);
}
.ai-text {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text);
}
.ai-text br + br {
    display: block;
    margin-top: 0.5rem;
    content: "";
}
.detail-divider {
    text-align: center;
    margin: 2rem 0 1.5rem;
    position: relative;
}
.detail-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}
.detail-divider span {
    position: relative;
    background: var(--cream);
    padding: 0 1rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* === CALCULATOR RESULTS === */
.result-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 2rem;
    justify-content: center;
}
.result-nav a {
    background: var(--purple);
    color: var(--gold-light);
    padding: 0.35rem 0.8rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.result-nav a:hover {
    background: var(--gold);
    color: var(--dark);
}
.result-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.result-section:last-of-type {
    border-bottom: none;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.3rem;
}
.section-num {
    background: var(--purple);
    color: var(--gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.section-header h2 {
    font-family: var(--font-heading);
    color: var(--purple);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}
.section-lens {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.result-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.2rem;
    border-left: 3px solid var(--gold);
}
.result-card h3 {
    font-family: var(--font-heading);
    color: var(--purple);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.result-card p {
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
    line-height: 1.55;
}
.result-card.full-width {
    grid-column: 1 / -1;
}
.result-card.highlight-card {
    border-left-color: var(--purple);
    background: linear-gradient(135deg, #FAF7FF, #fff);
}
.result-card.good-card {
    border-left-color: #2E8B57;
}
.result-card.warn-card {
    border-left-color: #CD853F;
}
.big-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 0.4rem;
}
.mini-table {
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
}
.mini-table td {
    padding: 0.25rem 0.4rem;
    font-size: 0.82rem;
}
.mini-table td:first-child {
    font-weight: 500;
    color: var(--purple);
    width: 35%;
}

/* Number boxes (Numerology) */
.number-summary {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}
.number-box {
    text-align: center;
    background: #fff;
    border: 1px solid var(--gold);
    border-radius: 6px;
    padding: 0.8rem 1.3rem;
    min-width: 110px;
}
.number-big {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--purple);
    line-height: 1;
}
.number-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.3rem;
    display: block;
}

/* Mantra card */
.mantra-card {
    text-align: center;
    background: linear-gradient(135deg, #FAF7FF, #FFF8F0);
}
.mantra-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--purple);
    padding: 0.6rem;
    margin-bottom: 0.3rem;
    line-height: 1.6;
    font-style: italic;
}
.mantra-hindi {
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

/* Plant meta */
.plant-meta {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Result footer */
.result-footer {
    text-align: center;
    margin-top: 2rem;
}
.result-footer .calc-submit {
    display: inline-block;
    width: auto;
    padding: 0.6rem 2rem;
}
.disclaimer {
    color: #aaa;
    font-size: 0.73rem;
    margin-top: 1rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 0.4rem; }
    nav a { margin-left: 0.6rem; font-size: 0.7rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero-compact { padding: 1.3rem 1rem 1rem; }
    main { padding: 1rem; }
    table { font-size: 0.78rem; }
    th, td { padding: 0.45rem; }
    .vidhya-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .home-form-grid { grid-template-columns: 1fr; }
    .home-calc { padding: 1.3rem; }
    .result-grid { grid-template-columns: 1fr; }
    .number-summary { flex-direction: column; align-items: center; }
    .number-box { min-width: 180px; }
    .calc-form { padding: 1.2rem; }
    .big-text { font-size: 1.1rem; }
    .mantra-text { font-size: 1rem; }
    .nav-calc { margin-top: 0.2rem; }
}
