/* ==========================================================================
   political.quest — Luxury Magazine Quest
   Palette: #2A1018, #4A2838, #8A2040, #FBF4EE, #FFFAF4, #5A4A4A, #C0A060
   Fonts: Nunito (display + body), Space Grotesk (tutorial steps)
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    color: #4A2838;
    background-color: #FBF4EE;
    line-height: 1.85;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Nunito', sans-serif;
    color: #2A1018;
}

h1 {
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0.04em;
}

h2 {
    font-weight: 600;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    line-height: 1.2;
}

h3 {
    font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.3;
}

p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.85;
    color: #4A2838;
}

.step-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #8A2040;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FBF4EE;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -10%;
    right: -15%;
    width: 55%;
    height: 120%;
    background: linear-gradient(160deg, transparent 30%, rgba(138, 32, 64, 0.04) 60%, rgba(192, 160, 96, 0.06) 100%);
    transform: skewX(-8deg);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-label {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    color: #2A1018;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-dot {
    color: #8A2040;
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #5A4A4A;
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.hero-pull-quote {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 0;
    border-left: 4px solid #8A2040;
    padding-left: 2rem;
    text-align: left;
}

.hero-pull-quote blockquote {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    color: #2A1018;
    font-style: italic;
    line-height: 1.7;
}

/* --- Sharp-Angle Diagonal Cuts --- */
.sharp-cut {
    position: absolute;
    background-color: #8A2040;
    z-index: 1;
}

.sharp-cut-hero {
    bottom: -30px;
    left: -5%;
    width: 110%;
    height: 60px;
    transform: skewX(-12deg);
    opacity: 0.9;
}

.sharp-cut-right {
    bottom: -20px;
    right: -5%;
    width: 40%;
    height: 8px;
    transform: skewX(-12deg);
}

.sharp-cut-left {
    bottom: -20px;
    left: -5%;
    width: 40%;
    height: 8px;
    transform: skewX(-12deg);
}

.sharp-cut-footer {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: #8A2040;
    transform: skewX(-12deg);
    margin-bottom: 2rem;
}

/* --- Editorial Sections --- */
.editorial-section {
    position: relative;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header .step-label {
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #C0A060;
}

/* --- Editorial Grid Layouts --- */
.editorial-grid {
    display: grid;
    gap: 3rem;
}

.editorial-grid.two-col {
    grid-template-columns: 1fr 1fr;
}

.editorial-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.editorial-grid.reverse {
    direction: rtl;
}

.editorial-grid.reverse > * {
    direction: ltr;
}

.editorial-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.editorial-highlight {
    font-weight: 600;
    color: #8A2040;
    border-left: 3px solid #C0A060;
    padding-left: 1rem;
}

/* --- Documentary Image Frames --- */
.editorial-image-frame {
    position: relative;
}

.documentary-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #2A1018;
    overflow: hidden;
    filter: contrast(1.1) brightness(0.95);
}

#img-capitol {
    background: linear-gradient(135deg, #4A2838 0%, #2A1018 40%, #5A4A4A 100%);
}

#img-assembly {
    background: linear-gradient(160deg, #2A1018 0%, #8A2040 50%, #4A2838 100%);
}

#img-globe {
    background: linear-gradient(200deg, #5A4A4A 0%, #2A1018 50%, #4A2838 100%);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(42, 16, 24, 0.4) 100%);
}

.image-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #FFFAF4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

/* --- Editorial Cards --- */
.editorial-card {
    background-color: #FFFAF4;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(42, 16, 24, 0.08);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #8A2040;
    transform: skewX(-12deg);
    transform-origin: top left;
}

.card-title {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: #2A1018;
}

.card-text {
    font-weight: 300;
}

/* --- Pull Quote Sections --- */
.pull-quote-section {
    padding: 5rem 2rem;
    background-color: #FFFAF4;
    position: relative;
}

.pull-quote-inner {
    max-width: 900px;
    margin: 0 auto;
    border-left: 4px solid #8A2040;
    padding-left: 2.5rem;
}

.pull-quote-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: #2A1018;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pull-quote-cite {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #8A2040;
    letter-spacing: 0.1em;
    font-style: normal;
}

/* --- Documentary Panel Section --- */
.documentary-section {
    padding: 0;
    background-color: #2A1018;
    position: relative;
    overflow: hidden;
}

.documentary-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    min-height: 500px;
}

.documentary-image-large {
    position: relative;
    min-height: 500px;
    filter: contrast(1.1) brightness(0.95);
    background: linear-gradient(160deg, #2A1018 0%, #8A2040 50%, #4A2838 100%);
}

.documentary-image-large .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, rgba(42, 16, 24, 0.8) 100%);
}

.documentary-sidebar {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}

.documentary-sidebar .section-title {
    color: #FFFAF4;
}

.documentary-sidebar .section-title::after {
    background-color: #C0A060;
}

.documentary-sidebar p {
    color: #FBF4EE;
    font-weight: 300;
    opacity: 0.9;
}

.gold-divider {
    width: 60px;
    height: 3px;
    background-color: #C0A060;
    margin: 0.5rem 0;
}

.sidebar-stat {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
}

.stat-number {
    font-weight: 600;
    font-size: 1.6rem;
    color: #C0A060;
    display: block;
    line-height: 1.2;
}

/* --- Toolkit Section --- */
.toolkit-section {
    background-color: #FFFAF4;
    max-width: none;
    padding: 6rem 2rem;
}

.toolkit-section .section-header,
.toolkit-section .toolkit-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.toolkit-item {
    background-color: #FBF4EE;
    padding: 2.5rem;
    position: relative;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.toolkit-item:hover {
    border-bottom-color: #8A2040;
    transform: translateY(-3px);
}

.toolkit-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #C0A060;
    opacity: 0.6;
    line-height: 1;
    margin-bottom: 1rem;
}

.toolkit-heading {
    margin-bottom: 0.75rem;
    color: #2A1018;
}

/* --- Footer --- */
.footer-section {
    background-color: #2A1018;
    padding: 5rem 2rem 2rem;
    color: #FBF4EE;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 3rem;
}

.footer-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #FFFAF4;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #C0A060;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #C0A060;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #FBF4EE;
    opacity: 0.7;
    padding: 0.3rem 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.footer-col li:hover {
    opacity: 1;
    color: #FFFAF4;
}

.footer-bottom {
    padding-top: 2rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: #5A4A4A;
    text-align: center;
}

/* --- Bounce-Enter Animation --- */
.bounce-enter {
    opacity: 0;
    transform: translateY(20px);
}

.bounce-enter.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Staggered delays for children */
.bounce-enter.visible .editorial-card:nth-child(1),
.bounce-enter.visible .toolkit-item:nth-child(1) { transition-delay: 0ms; }
.bounce-enter.visible .editorial-card:nth-child(2),
.bounce-enter.visible .toolkit-item:nth-child(2) { transition-delay: 100ms; }
.bounce-enter.visible .editorial-card:nth-child(3),
.bounce-enter.visible .toolkit-item:nth-child(3) { transition-delay: 200ms; }
.bounce-enter.visible .toolkit-item:nth-child(4) { transition-delay: 300ms; }

/* --- Hero Entrance Animation --- */
.hero-section .hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroEnter 800ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms forwards;
}

@keyframes heroEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .sharp-cut-hero {
    transform: skewX(-12deg) translateX(-110%);
    animation: cutSlide 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 500ms forwards;
}

@keyframes cutSlide {
    to {
        transform: skewX(-12deg) translateX(0);
    }
}

.hero-bg-accent {
    opacity: 0;
    animation: accentFade 1200ms ease 300ms forwards;
}

@keyframes accentFade {
    to {
        opacity: 1;
    }
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .editorial-grid.two-col,
    .editorial-grid.three-col {
        grid-template-columns: 1fr;
    }

    .editorial-grid.reverse {
        direction: ltr;
    }

    .documentary-grid {
        grid-template-columns: 1fr;
    }

    .documentary-image-large {
        min-height: 300px;
    }

    .documentary-sidebar {
        padding: 3rem 2rem;
    }

    .toolkit-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 4rem);
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }

    .editorial-section {
        padding: 4rem 1.5rem;
    }

    .pull-quote-inner {
        padding-left: 1.5rem;
    }

    .documentary-sidebar {
        padding: 2.5rem 1.5rem;
    }

    .toolkit-item {
        padding: 2rem 1.5rem;
    }

    .footer-section {
        padding: 3rem 1.5rem 2rem;
    }
}
