/* Base Variables for Light/Dark Mode */
:root {
    /* Light mode (default) */
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #4a5568;
    --accent-primary: #D97706;
    /* Amber */
    --accent-secondary: #374151;
    /* Charcoal */
    --divider-color: #e5e7eb;
    --quote-bg: #f9fafb;
    --quote-border: var(--accent-primary);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e5e5e5;
        --text-secondary: #a3a3a3;
        --accent-primary: #b45309;
        /* Muted amber for dark mode */
        --accent-secondary: #737373;
        --divider-color: #404040;
        --quote-bg: #262626;
        --quote-border: var(--accent-primary);
    }
}

/* CHANGE: Added smooth color transitions for mode switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

        nav {
            margin-bottom: 1rem;
            text-align:right;
        }
    
        /* JS-enabled language handling */
        [data-lang] {
            display: none;
        }
    
        [data-lang].active {
            display: block;
        }
    
        /* buttons */
        .lang-btn {
            background: var(--bg-color);
            color: var(--text-color);
            border: 1px solid var(--accent-secondary);
            padding: 0.3rem 0.6rem;
            cursor: pointer;
        }
    
        .lang-btn.active {
            background: var(--text-color);
            color: var(--bg-color);
        }


body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* CHANGE: Wider layout for mindset page only */
body.mindset-page main {
    max-width: 1200px;
}

/* CHANGE: Hero section with larger, more impactful typography */
.hero {
    margin-bottom: 60px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* CHANGE: Added visual divider with subtle gradient */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--divider-color), transparent);
    margin: 48px 0;
}

/* CHANGE: Improved intro paragraph styling */
.intro {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: var(--text-secondary);
}

/* CHANGE: Added section spacing */
.content-section {
    margin: 48px 0;
}

/* CHANGE: Improved heading hierarchy and spacing */
h2 {
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 600;
    margin: 48px 0 24px 0;
    line-height: 1.3;
    color: var(--text-color);
}

p {
    font-size: 1.0625rem;
    margin: 0 0 20px 0;
    color: var(--text-color);
}

a {
    color: inherit;
    text-decoration-style: dotted;
    font-style: italic;
}

a:hover {
    text-decoration-style: solid;
}

/* CHANGE: Added emphasis styling for key phrases */
.emphasis {
    font-style: italic;
    color: var(--text-secondary);
    margin: 12px 0;
}

/* CHANGE: Redesigned testimonial with background and accent border */
.testimonial {
    margin: 40px 0;
    padding: 32px;
    background: var(--quote-bg);
    border-left: 4px solid var(--quote-border);
    border-radius: 0 8px 8px 0;
    font-size: 1.125rem;
    font-style: italic;
}

.testimonial p {
    margin: 0 0 16px 0;
    color: var(--text-color);
}

.testimonial cite {
    display: block;
    font-style: normal;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* CHANGE: Added prominent CTA button with accent color */
.cta-container {
    margin: 64px 0 48px 0;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--accent-primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

@media (prefers-color-scheme: dark) {
    .cta-button {
        box-shadow: 0 2px 8px rgba(180, 83, 9, 0.3);
    }

    .cta-button:hover {
        box-shadow: 0 4px 12px rgba(180, 83, 9, 0.4);
    }
}

footer {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--divider-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ========================================
   MINDSET PAGE SPECIFIC STYLES
   ======================================== */

/* CHANGE: Added tagline styling with accent color */
.principle-tagline {
    font-size: 1.125rem;
    text-align: center;
    color: var(--accent-primary);
    font-weight: 500;
    margin: 24px 0;
    letter-spacing: 0.02em;
}

/* CHANGE: Added grid container for three-column layout */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 48px 0;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* CHANGE: Added principle card styling with numbers */
.principle-card {
    position: relative;
    padding-left: 0;
}

.principle-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.principle-card h2 {
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* CHANGE: Improved subheading styling */
.principle-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 12px 0;
    color: var(--accent-secondary);
}

/* CHANGE: Better list styling */
.principle-card ul {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.principle-card li {
    margin-bottom: 6px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* CHANGE: Added anti-pattern callout boxes */
.anti-pattern {
    margin: 20px 0 0 0;
    padding: 16px 20px;
    background: var(--quote-bg);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
}

.anti-pattern strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.anti-pattern em {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9375rem;
}

/* CHANGE: Added closing quote section */
.closing-quote {
    margin: 64px 0 48px 0;
    padding: 32px;
    background: var(--quote-bg);
    border-radius: 8px;
    text-align: center;
}

.closing-quote p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0 0 12px 0;
}

.closing-quote p:last-child {
    margin: 0;
}

.application-note {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* CHANGE: Added footer link styling */
.footer-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-color);
}

/* CHANGE: Improved responsive spacing */
@media (max-width: 640px) {
    main {
        padding: 48px 20px;
    }

    .hero {
        margin-bottom: 40px;
    }

    .testimonial {
        padding: 24px 20px;
    }

    .cta-container {
        margin: 48px 0 32px 0;
    }

    .principle-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .closing-quote {
        padding: 24px 20px;
    }
}