@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    /* Color Palette - Updated per Visual Guide */
    --bg-deep: #0F2A33;
    /* Base: Depth/Leadership */
    --bg-respite: #F5F2ED;
    /* Respite: Background/Reading (Off-white) */
    --accent-gold: #C6A76D;
    /* Highlight: Matte Gold/Champagne */

    /* Warrior of the New Era Accent Palette */
    --warrior-burgundy: #4C1C24;
    --warrior-terracotta: #BA6748;
    --warrior-sand: #F2E5D5;

    --text-main: #F5F2ED;
    /* Most text on dark bg will be off-white */
    --text-dark: #0F2A33;
    /* Text on light bg will be deep blue */
    --text-gray: #A3ADB1;
    /* Muted text */

    /* Fonts - Updated per Visual Guide */
    --font-sans: 'Lato', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    background-color: var(--bg-deep);
}

body {
    min-height: 100vh;
    background-color: var(--bg-deep);
    background-image: url('../assets/warrior_phase_bg.png');
    /* Warrior Phase: Deep Burgundy / Stone / Metal texture */
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.8;
    /* Increased for better readability/respite */
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Global Dark Overlay for consistent style across all pages */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
    pointer-events: none;
    position: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    letter-spacing: -0.01em;
    color: var(--text-main);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-gold);
}

p {
    color: var(--text-gray);
    font-size: 1.15rem;
    max-width: 85ch;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-deep);
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-deep);
    transform: translateY(-2px);
}

/* Dashboard Re-structure - Single Block Logic */
.dashboard-hero {
    min-height: auto;
    /* Allow content to dictate height + padding */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    /* Header clearance */
    padding-bottom: 0;
    /* Reduced to allow overlap */
    background: transparent;
    position: relative;
    /* Removed overflow: hidden to allow image depth if needed, though grid handles it */
}

/* Background texture/element removed as it is global now */
/* .dashboard-hero::before { deleted } */

.hero-grid {
    display: grid;
    grid-template-columns: 5.5fr 4.5fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.hero-col-text {
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    /* Ensure left align */
}

.hero-col-img {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-portrait {
    width: auto;
    max-width: 100%;
    max-height: 750px;
    /* Increased limit to allow growth */
    border-radius: 4px;
    /* Soft radius */
    /* No heavy masks, just clean image */
    object-fit: contain;
    display: block;
    margin-bottom: -5px;
    /* Tiny adjustment to prevent gaps */
}

.hero-title-large {
    font-size: clamp(3rem, 7vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-main);
}

.hero-subtitle {
    color: var(--accent-gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-bio-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin: 1.5rem 0 2.5rem;
    max-width: 85ch;
    line-height: 1.7;
}

/* Authority Horizontal Block */
.authority-horizontal {
    background-color: var(--bg-deep);
    padding: 5rem 0;
    /* More breathing room */
    border-top: 1px solid rgba(198, 167, 109, 0.2);
    border-bottom: 1px solid rgba(198, 167, 109, 0.1);
    position: relative;
    z-index: 10;
    /* High z-index to cover the bottom of the image */
    margin-top: -120px;
    /* Moves the block up over the hero image */
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
    /* Adds depth to the overlap */
}

.authority-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.auth-item {
    display: flex;
    flex-direction: column;
}

.auth-item span.num {
    font-size: 1.8rem;
    color: var(--accent-gold);
    font-family: var(--font-serif);
    line-height: 1;
}

.auth-item span.label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    margin-top: 0.3rem;
}

.auth-quote {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-main);
    border-left: 1px solid var(--accent-gold);
    padding-left: 1.5rem;
    max-width: 500px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Mirror Soft Block */
.mirror-soft {
    background: var(--bg-respite);
    padding: 8rem 0;
}

.mirror-box {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    color: var(--text-dark);
}

.mirror-box h2 {
    color: var(--text-dark);
    margin-bottom: 4rem;
}

.mirror-box p {
    color: var(--text-dark);
}

.mirror-box .pain-list li {
    color: var(--text-dark);
    border-bottom: 1px solid rgba(15, 42, 51, 0.1);
    padding: 1rem 0;
    list-style: none;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-col-text {
        padding-right: 0;
        order: 1;
    }

    .hero-col-img {
        order: 2;
        min-height: auto;
    }

    .hero-portrait {
        max-height: 500px;
    }

    .hero-bio-text {
        margin: 2rem auto;
    }

    .authority-flex {
        justify-content: center;
        text-align: center;
    }

    .auth-quote {
        border-left: none;
        border-top: 2px solid var(--primary-lilac);
        padding-left: 0;
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

/* Footer Overhaul */
footer {
    padding: 5rem 0 2rem !important;
    /* Force override */
    margin-top: 0 !important;
    background-color: rgba(11, 8, 12, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-serif);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: #666;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    /* Defined height */
    display: flex;
    align-items: center;
    z-index: 1000;
    background: rgba(21, 16, 23, 0.98);
    /* Solid/Premium */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-white);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-gray);
    font-weight: 300;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Nav Trigger */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-white);
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }
}


/* Manifesto Warrior Section */
.manifesto-warrior {
    background-color: var(--warrior-burgundy);
    background-image: linear-gradient(rgba(76, 28, 36, 0.8), rgba(76, 28, 36, 0.95)), url('../assets/warrior_phase_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 10rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(186, 103, 72, 0.2);
    border-bottom: 1px solid rgba(186, 103, 72, 0.2);
}

.manifesto-warrior::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.manifesto-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.manifesto-tag {
    color: var(--warrior-terracotta);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    display: block;
}

.manifesto-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--warrior-sand);
    margin-bottom: 3rem;
    line-height: 1.2;
}

.manifesto-text {
    font-size: 1.4rem;
    color: var(--text-main);
    line-height: 1.8;
    font-family: var(--font-serif);
    font-style: italic;
    opacity: 0.9;
}

.mandala-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

/* Utilities update */
.highlight {
    color: var(--accent-gold);
}

.gold {
    color: var(--accent-gold);
}

.terracotta {
    color: var(--warrior-terracotta);
}

.deep-blue {
    color: var(--bg-deep);
}