/* Variables Proposal 2: Modern Editorial */
:root {
    --bg-color: #f4f1ea;
    /* Soft warm white/beige for editorial feel */
    --text-color: #1a1a1a;
    --accent-color: #d9388e;
    /* Bugambilia */
    --secondary-color: #213b73;
    /* Blue */
    --gold-accent: #e9c711;

    --font-display: 'Cormorant Garamond', serif;
    --font-ui: 'Montserrat', sans-serif;

    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Layout */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2rem;
    z-index: 100;
}

.logo {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    letter-spacing: 2px;
}

.logo-video-sidebar {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 1.5rem;
}

.sidebar-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    color: var(--text-color);
    border-bottom: 1px solid var(--accent-color);
}

.btn-sidebar {
    display: block;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-sidebar:hover {
    background-color: var(--text-color);
    color: #fff;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

/* Hero Split */
.hero-split {
    display: flex;
    height: 100vh;
    min-height: 600px;
}

.hero-text {
    flex: 1;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overhead {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 400px;
    margin-bottom: 3rem;
    color: #666;
}

.btn-editorial {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: #fff;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    align-self: flex-start;
}

.btn-editorial:hover {
    background-color: #b02a70;
}

.hero-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.section-editorial {
    padding: 8rem 5rem;
}

.container-editorial {
    max-width: 1000px;
    margin: 0 auto;
}

/* Manifesto */
.editorial-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.styled-list {
    list-style: none;
    margin-top: 2rem;
    border-left: 2px solid var(--gold-accent);
    padding-left: 2rem;
}

.styled-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-family: var(--font-display);
    font-style: italic;
}

.grid-quote blockquote {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.3;
    color: var(--secondary-color);
}

/* Coach */
.bg-contrast {
    background-color: #fff;
}

.coach-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.coach-img-container {
    flex: 0 0 40%;
}

.coach-img-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: 0.5s;
}

.coach-layout:hover .coach-img-container img {
    filter: grayscale(0%);
}

.subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 1rem;
}

.coach-bio h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.role {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .num {
    font-size: 2.5rem;
    font-family: var(--font-display);
    color: var(--secondary-color);
}

.stat .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Programs */
.section-header-editorial {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-editorial h2 {
    font-size: 3rem;
}

.cards-editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card-item {
    padding: 2rem;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.card-item:hover {
    border-color: var(--secondary-color);
    background-color: #fff;
}

.card-num {
    display: block;
    font-size: 3rem;
    font-family: var(--font-display);
    color: #eee;
    margin-bottom: 1rem;
}

.card-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-center {
    text-align: center;
    margin-top: 4rem;
}

.btn-dark {
    background-color: var(--text-color);
}

.btn-dark:hover {
    background-color: var(--secondary-color);
}

/* Footer */
.footer-editorial {
    background-color: #fff;
    padding: 5rem 0;
    border-top: 10px solid var(--secondary-color);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.8rem;
    color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .editorial-grid,
    .coach-layout {
        grid-template-columns: 1fr;
        display: grid;
        gap: 3rem;
    }

    .cards-editorial {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid #eee;
        background-color: #fff;
        z-index: 1000;
        transition: padding 0.3s ease, box-shadow 0.3s ease;
    }

    .sidebar.scrolled {
        padding: 0.5rem 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        border-bottom: none;
    }

    .sidebar .logo-video-sidebar {
        transition: max-height 0.3s ease;
    }

    .sidebar.scrolled .logo-video-sidebar {
        max-height: 50px;
    }

    .sidebar-nav,
    .sidebar-footer {
        display: none;
        /* Simplified for mobile example */
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .hero-split {
        flex-direction: column;
        height: auto;
    }

    .hero-text {
        padding: 3rem 1.5rem;
    }

    .section-editorial {
        padding: 4rem 1.5rem;
    }
}

/* Editorial Programs */
.editorial-programs-list {
    margin: 4rem 0;
    border-top: 1px solid #ccc;
}

.editorial-program-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
    border-bottom: 1px solid #ccc;
    align-items: center;
}

.program-type {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.program-col-name h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.program-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
}

.program-slogan {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.editorial-list-small {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-editorial-outline {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-editorial-outline:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.card-slogan {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.card-price {
    display: block;
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

@media (max-width: 900px) {
    .editorial-program-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .editorial-list-small {
        justify-content: center;
    }
}

/* Detailed Content Styles */
.detail-block {
    margin-bottom: 2rem;
}

.detail-block strong {
    display: block;
    font-family: var(--font-display);
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-style: italic;
}

.detail-block p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-detail {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: -5px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease-in-out;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-style: italic;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: var(--secondary-color);
}

.mobile-cta {
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .price-block {
        align-items: center;
        /* Fix for mobile/tablet centering */
        margin-top: 1rem;
        width: 100%;
        /* Ensure full width for centering */
    }
}

/* Loading Animation */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-editorial {
        padding: 4rem 1.5rem 3rem;
    }
    
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-brand img {
        margin: 0 auto 1rem;
    }
    
    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .socials {
        align-items: center !important;
        margin-top: 1rem !important;
    }
    
    .copyright {
        text-align: center;
        line-height: 1.8;
        padding-top: 1rem;
        border-top: 1px solid #eee;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .copyright br {
        display: none;
    }
}