/* Reset & General CSS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #FFFFFF;
    --color-text: #000000;
    --color-accent: #E95B3C;
    --color-grey-light: #F0F0F0;
    --color-grey-divider: #EEEEEE;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1400px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease;
}

/* Header */
.site-header {
    background: var(--color-bg);
    padding: 24px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 32px;
    letter-spacing: -1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.desktop-nav {
    display: flex;
    gap: 28px;
}

.desktop-nav a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: #555;
}

.desktop-nav a:hover {
    color: var(--color-text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slide Out Menu Overlay */
.slide-out-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slide-out-overlay.open {
    pointer-events: auto;
}

.slide-out-overlay.open .overlay-bg {
    opacity: 1;
}

.slide-out-panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--color-bg);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 64px 40px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1001;
    overflow-y: auto;
}

.slide-out-overlay.open .slide-out-panel {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 32px;
    right: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.close-btn svg {
    stroke-width: 1.5;
}

.panel-content {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    height: 100%;
}

.primary-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.primary-nav a {
    font-family: var(--font-body);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    transition-delay: 0s;
}

.primary-nav a:hover {
    color: var(--color-accent);
}

.slide-out-overlay.open .primary-nav a {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delay for nav items */
.slide-out-overlay.open .primary-nav a:nth-child(1) { transition-delay: 0.1s; }
.slide-out-overlay.open .primary-nav a:nth-child(2) { transition-delay: 0.15s; }
.slide-out-overlay.open .primary-nav a:nth-child(3) { transition-delay: 0.2s; }
.slide-out-overlay.open .primary-nav a:nth-child(4) { transition-delay: 0.25s; }

.secondary-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.secondary-nav a {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: #666;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.slide-out-overlay.open .secondary-nav a {
    opacity: 1;
    transform: translateX(0);
}

.slide-out-overlay.open .secondary-nav a:hover {
    color: var(--color-text);
}

.slide-out-overlay.open .secondary-nav a:nth-child(1) { transition-delay: 0.3s; }
.slide-out-overlay.open .secondary-nav a:nth-child(2) { transition-delay: 0.35s; }
.slide-out-overlay.open .secondary-nav a:nth-child(3) { transition-delay: 0.4s; }
.slide-out-overlay.open .secondary-nav a:nth-child(4) { transition-delay: 0.45s; }

.social-footer {
    margin-top: auto;
    padding-top: 40px;
    opacity: 0;
    transition: opacity 0.6s ease;
    transition-delay: 0.5s;
}

.slide-out-overlay.open .social-footer {
    opacity: 1;
}

.social-label {
    font-family: var(--font-body);
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 0.5;
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    .site-header {
        padding: 20px 24px;
    }
}

/* Page Layout */
.page-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 40px 80px 40px;
}

@media (max-width: 900px) {
    .page-content {
        padding: 24px 24px 40px 24px;
    }
}

/* Common Typography Elements */
.category-tag {
    color: var(--color-accent);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    text-transform: capitalize;
    margin-bottom: 12px;
}

.read-more {
    display: inline-block;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
}

.read-more:hover {
    text-decoration: underline;
}

.divider-line {
    height: 1px;
    background-color: var(--color-grey-divider);
    width: 100%;
    margin: 80px 0;
}

/* Hero Sidebar Layout */
.hero-sidebar-layout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 60px;
    align-items: flex-start;
}

.main-featured {
    padding-right: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-excerpt {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: #222;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-main-title {
    font-family: var(--font-body);
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 40px;
    line-height: 1;
}

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

.sidebar-category {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sidebar-title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.sidebar-divider {
    height: 1px;
    background-color: var(--color-grey-divider);
    margin: 24px 0;
    width: 100%;
}

@media (max-width: 900px) {
    .hero-sidebar-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-title {
        font-size: 48px;
    }
    .sidebar-main-title {
        font-size: 48px;
    }
    .main-featured {
        padding-right: 0;
    }
}

/* Grid Section */
.grid-section {
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.card {
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--color-grey-light);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Image Mocks */
.bg-img-1 { background: repeating-linear-gradient(45deg, #2EAA58, #2EAA58 10px, #1c7c3c 10px, #1c7c3c 20px); }
.bg-img-2 { background: #505cdd; }
.bg-img-3 { background: repeating-linear-gradient(-45deg, #2EAA58, #2EAA58 10px, #1c7c3c 10px, #1c7c3c 20px); }

.collage-mini {
    position: absolute;
    inset: 8px;
    display: flex;
    gap: 4px;
}
.collage-mini > div {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    line-height: 1;
    text-align: center;
}
.c-left { background: #E95B3C; color: #fff; }
.c-right { background: #111; color: #B18F58; }

.card-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.card-excerpt {
    font-family: var(--font-body);
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Text Banner */
.text-banner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-center {
    text-align: center;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 20px 0;
}

@media (max-width: 900px) {
    .banner-title {
        font-size: 36px;
    }
}

/* Footer Section */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 80px 40px 40px 40px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
}

.footer-left .footer-text {
    font-family: var(--font-body);
    font-size: 18px;
    color: #999;
    max-width: 300px;
    margin-bottom: 32px;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.footer-nav a {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-logo {
    max-width: var(--max-width);
    margin: 0 auto;
    font-family: var(--font-heading);
    font-size: 160px;
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
}

@media (max-width: 900px) {
    .site-footer {
        padding: 60px 24px 24px 24px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 48px;
        margin-bottom: 60px;
    }
    .footer-nav {
        align-items: flex-start;
    }
    .footer-logo {
        font-size: 80px;
        letter-spacing: -2px;
    }
}

/* Two Column Features */
.two-column-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.feature-left, .feature-right {
    display: flex;
    flex-direction: column;
}
@media (max-width: 900px) {
    .two-column-features {
        grid-template-columns: 1fr;
    }
}

/* Quote Banner */
.quote-banner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0;
}
.quote-text {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}
.quote-subtext {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #444;
    margin-bottom: 24px;
}

/* Newsletter Section */
.newsletter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0;
}
.newsletter-content {
    max-width: 500px;
}
.newsletter-title {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.newsletter-desc {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #333;
}
.newsletter-action {
    flex-shrink: 0;
}
.btn-outline {
    background: transparent;
    border: 1px solid #000;
    padding: 24px 64px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: #000;
    color: #fff;
}

@media (max-width: 900px) {
    .newsletter-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .btn-outline {
        width: 100%;
        padding: 16px 32px;
    }
}
