/* EvolveWithRashi — Website Styles */
/* Palette: Teal / Beige / Cream / Gold */

:root {
    --teal: #2A7B7B;
    --teal-dark: #1A5454;
    --teal-light: #3D9999;
    --beige: #F0E4D0;
    --beige-light: #F5ECD9;
    --cream: #FAF3E7;
    --cream-dark: #F5EDE0;
    --gold: #C5A059;
    --gold-dark: #A8842E;
    --gold-light: #D9B978;
    --text-dark: #2C2C2C;
    --text-medium: #4A4A4A;
    --text-light: #6B6B6B;
    --border: #D9CDB5;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1100px;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-dark);
    background: var(--cream);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── HEADER ─── */
.site-header {
    background: var(--teal-dark);
    color: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.logo:hover { color: var(--gold); }

.main-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--beige);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
    background: var(--teal);
    color: var(--white);
}

.main-nav a.active {
    background: var(--gold);
    color: var(--teal-dark);
    font-weight: bold;
}

/* ─── BREADCRUMBS ─── */
.breadcrumb-bar {
    background: var(--beige);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--teal);
    text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; }

/* ─── MAIN CONTENT ─── */
main {
    padding: 40px 24px;
    min-height: 60vh;
}

main h1 {
    color: var(--teal-dark);
    font-size: 2rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gold);
}

main h2 {
    color: var(--teal-dark);
    font-size: 1.5rem;
    margin: 32px 0 16px;
}

main h3 {
    color: var(--teal);
    font-size: 1.2rem;
    margin: 24px 0 12px;
}

main h4 {
    color: var(--gold-dark);
    font-size: 1.05rem;
    margin: 20px 0 8px;
}

main p {
    margin-bottom: 16px;
    color: var(--text-medium);
}

main strong { color: var(--text-dark); }

main ul, main ol {
    margin: 12px 0 16px 24px;
}

main li {
    margin-bottom: 8px;
    color: var(--text-medium);
}

main a {
    color: var(--teal);
    text-decoration: underline;
}

main a:hover { color: var(--gold-dark); }

main blockquote {
    border-left: 4px solid var(--gold);
    background: var(--beige-light);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-medium);
}

main blockquote p { margin-bottom: 8px; }

main hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

main code {
    background: var(--beige);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--teal-dark);
}

/* ─── TIER SECTION ─── */
.tier-section {
    background: var(--beige-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 32px 0;
}

.tier-section h2 {
    color: var(--gold-dark);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 8px;
}

.tier-section h3 {
    color: var(--teal-dark);
    background: var(--beige);
    padding: 10px 16px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.tier-section strong { color: var(--teal-dark); }

/* ─── CTA BUTTONS (inline) ─── */
main p strong + a, main a[href*="leakmap"], main a[href*="career"], main a[href*="untaught"] {
    /* Inline CTA links get special styling */
}

/* CTA-style links detected by arrow */
main a:has(.rarr) { }

/* ─── LANDING PAGE ─── */
.page-landing main h1 {
    font-size: 2.5rem;
    text-align: center;
}

/* ─── B2B PAGES ─── */
.page-b2b .tier-section {
    border-left: 4px solid var(--teal);
}

/* ─── RELATED PAGES ─── */
.related-pages {
    background: var(--cream-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    margin: 32px 0;
}

.related-pages h3 {
    color: var(--gold-dark);
    margin-bottom: 12px;
}

.related-pages ul { list-style: none; margin-left: 0; }
.related-pages li { margin-bottom: 6px; }

/* ─── PREV/NEXT BAR ─── */
.prev-next-bar {
    background: var(--beige);
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.prev-next-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.prev-link, .next-link {
    color: var(--teal);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: background 0.2s;
}

.prev-link:hover, .next-link:hover {
    background: var(--teal);
    color: var(--white);
}

.next-link { margin-left: auto; }

/* ─── FOOTER ─── */
footer {
    background: var(--teal-dark);
    color: var(--beige);
    padding: 40px 0 24px;
    margin-top: 40px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.footer-col h4 {
    color: var(--gold-light);
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-col p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--beige);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }

.footer-col a {
    color: var(--beige);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-col a:hover { color: var(--gold-light); text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }
    
    .main-nav {
        justify-content: center;
    }
    
    .main-nav a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    main h1 { font-size: 1.6rem; }
    main h2 { font-size: 1.3rem; }
    
    .prev-next-bar .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .next-link { margin-left: 0; }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .main-nav a {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    main { padding: 24px 16px; }
    .container { padding: 0 16px; }
}

/* ─── Tier Selector Forms ──────────────────────────────────── */
.tier-selector-form {
    background: #FAF7F2;
    border: 1px solid #C5A059;
    border-radius: 8px;
    padding: 28px 24px;
    margin: 32px 0;
}

.tier-selector-form h3 {
    color: #1F2B3D;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #C5A059;
}

.tier-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e0d8cc;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tier-option:hover {
    border-color: #C5A059;
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.15);
}

.tier-option input[type="radio"] {
    margin-top: 4px;
    accent-color: #1F2B3D;
    min-width: 18px;
    height: 18px;
}

.tier-label {
    color: #1F2B3D;
    font-size: 1rem;
    line-height: 1.5;
}

.tier-selector-form .cta-button {
    display: inline-block;
    background: #1F2B3D;
    color: #FAF7F2;
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.tier-selector-form .cta-button:hover {
    background: #2D4A3E;
}

/* ─── CTA Section (single-price products) ─────────────────── */
.cta-section {
    text-align: center;
    margin: 32px 0;
}

.cta-section .cta-button {
    display: inline-block;
    background: #1F2B3D;
    color: #FAF7F2;
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.cta-section .cta-button:hover {
    background: #2D4A3E;
}

.payment-note {
    color: #666;
    font-size: 0.85rem;
    margin-top: 12px;
}

/* ─── Hero Images ──────────────────────────────────────────── */
.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0 32px 0;
    display: block;
}

/* ─── Pricing Tables ──────────────────────────────────────── */
table.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

table.pricing-table th {
    background: #1F2B3D;
    color: #FAF7F2;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
}

table.pricing-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e2d8;
    color: #333;
    font-size: 0.95rem;
}

table.pricing-table tr:last-child td {
    border-bottom: none;
}

table.pricing-table tr:hover td {
    background: #f9f6f0;
}

/* ─── Offering Cards (LeakMap etc.) ──────────────────────── */
.offering-card {
    background: #fff;
    border: 1px solid #e0d8cc;
    border-left: 4px solid #C5A059;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
}

.offering-card h3 {
    color: #1F2B3D;
    font-family: 'Playfair Display', Georgia, serif;
    margin: 0 0 12px 0;
}

.offering-card .price {
    color: #C5A059;
    font-weight: 600;
    font-size: 1.05rem;
}

.offering-card .cta-button {
    display: inline-block;
    background: #2D4A3E;
    color: #FAF7F2;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-top: 12px;
    transition: background 0.2s;
}

.offering-card .cta-button:hover {
    background: #1F2B3D;
}
