/* ============================================
   MONOPOLE.CITY — Neubrutalist Urban Blueprint
   Colors: #D0A030, #4A3080, #1A1A2A, #F8F4FA, #C0B8D0, #E8D0F0, #3A3A4A
   Fonts: Playfair Display, Work Sans, Space Grotesk
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    color: #3A3A4A;
    background-color: #F8F4FA;
    line-height: 1.8;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #1A1A2A;
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #4A3080;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.75rem;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #F8F4FA;
}

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    border-radius: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.geo-shape-1 {
    width: 300px;
    height: 300px;
    background-color: #E8D0F0;
    top: 10%;
    left: -5%;
    transform: rotate(15deg);
}

.geo-shape-2 {
    width: 200px;
    height: 200px;
    background-color: #D0A030;
    bottom: 15%;
    right: 5%;
    transform: rotate(-20deg);
}

.geo-shape-3 {
    width: 250px;
    height: 150px;
    background-color: #C0B8D0;
    top: 60%;
    left: 15%;
    transform: rotate(8deg);
}

.geo-shape-4 {
    width: 180px;
    height: 180px;
    background-color: #4A3080;
    top: 5%;
    right: 20%;
    transform: rotate(-12deg);
}

.geo-shape.visible {
    opacity: 0.15;
}

/* Depth layers */
.depth-layer {
    position: absolute;
    border: 3px solid #1A1A2A;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease;
}

.depth-back {
    width: 70%;
    height: 60%;
    max-width: 800px;
    max-height: 500px;
    background-color: #E8D0F0;
    z-index: 1;
    transform: translate(8px, 8px);
    opacity: 0;
}

.depth-mid {
    width: 70%;
    height: 60%;
    max-width: 800px;
    max-height: 500px;
    background-color: #F8F4FA;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.depth-top {
    width: 70%;
    height: 60%;
    max-width: 800px;
    max-height: 500px;
    background-color: transparent;
    border: none;
    z-index: 3;
    pointer-events: none;
}

.depth-layer.active {
    opacity: 1;
}

.depth-back.active {
    transform: translate(12px, 12px);
}

/* Hero content */
.hero-content {
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #1A1A2A;
    letter-spacing: 0.05em;
    line-height: 1.1;
    border: 3px solid #1A1A2A;
    padding: 0.5em 0.8em;
    display: inline-block;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid #4A3080;
    z-index: -1;
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: #4A3080;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 1.5rem;
}

/* City Icons */
.city-icon {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.city-icon-1 {
    width: 80px;
    height: 120px;
    top: 12%;
    right: 8%;
}

.city-icon-2 {
    width: 70px;
    height: 70px;
    bottom: 18%;
    left: 6%;
}

.city-icon-3 {
    width: 50px;
    height: 100px;
    top: 20%;
    left: 12%;
}

.city-icon-4 {
    width: 60px;
    height: 75px;
    bottom: 10%;
    right: 15%;
}

.city-icon-5 {
    width: 90px;
    height: 45px;
    top: 8%;
    left: 35%;
}

.city-icon.drawn {
    opacity: 1;
}

.city-icon path,
.city-icon line,
.city-icon rect,
.city-icon circle,
.city-icon polygon,
.city-icon polyline,
.city-icon ellipse {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 2s ease;
}

.city-icon.drawn path,
.city-icon.drawn line,
.city-icon.drawn rect,
.city-icon.drawn circle,
.city-icon.drawn polygon,
.city-icon.drawn polyline,
.city-icon.drawn ellipse {
    stroke-dashoffset: 0;
}

/* --- Content Sections --- */
.content-section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Fade-reveal */
.fade-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Panel Stack (layered depth) */
.panel-stack {
    position: relative;
}

.panel {
    border: 3px solid #1A1A2A;
}

.panel-shadow {
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    background-color: #E8D0F0;
    z-index: 1;
}

.panel-main {
    position: relative;
    background-color: #F8F4FA;
    z-index: 2;
    padding: 3rem;
}

/* Section headings */
.section-heading {
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-body {
    font-weight: 300;
    max-width: 700px;
    margin-bottom: 1rem;
}

.section-body:last-child {
    margin-bottom: 0;
}

/* --- Districts Grid --- */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.district-card {
    position: relative;
}

.district-card-shadow {
    position: absolute;
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
    background-color: #D0A030;
    border: 3px solid #1A1A2A;
    z-index: 1;
    transition: transform 0.3s ease;
}

.district-card-body {
    position: relative;
    background-color: #F8F4FA;
    border: 3px solid #1A1A2A;
    padding: 2rem 1.5rem;
    z-index: 2;
    transition: transform 0.3s ease;
}

.district-card:hover .district-card-body {
    transform: translate(-3px, -3px);
}

.district-card:hover .district-card-shadow {
    transform: translate(3px, 3px);
}

.district-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.district-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1A1A2A;
}

.district-desc {
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #3A3A4A;
}

/* --- Blueprint Section --- */
.blueprint-canvas {
    margin-top: 2rem;
    border: 2px solid #C0B8D0;
    background-color: #F8F4FA;
    overflow: hidden;
    position: relative;
}

.blueprint-svg {
    width: 100%;
    height: auto;
    display: block;
}

.bp-building {
    transition: fill-opacity 0.5s ease, stroke 0.3s ease, stroke-width 0.3s ease;
}

.bp-building:hover {
    fill-opacity: 0.7;
}

.bp-node {
    transition: r 0.3s ease;
}

.blueprint-note {
    margin-top: 1.5rem;
    font-style: italic;
    color: #4A3080;
    font-weight: 400;
}

/* --- Manifesto Section --- */
.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.manifesto-item {
    border-left: 4px solid #D0A030;
    padding-left: 1.5rem;
}

.manifesto-number {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 2rem;
    color: #D0A030;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.manifesto-text {
    font-weight: 400;
    line-height: 1.7;
    color: #3A3A4A;
}

/* --- Metrics Section --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.metric-block {
    text-align: center;
    border: 3px solid #1A1A2A;
    padding: 2rem 1rem;
    position: relative;
    background-color: #F8F4FA;
}

.metric-block::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid #4A3080;
    z-index: -1;
    background-color: #E8D0F0;
}

.metric-value {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 3rem;
    color: #1A1A2A;
    display: block;
    line-height: 1;
}

.metric-unit {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #D0A030;
    display: block;
    margin-top: 0.25rem;
}

.metric-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: #4A3080;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-top: 0.75rem;
}

/* --- Architectural Layers Section --- */
.layers-stack {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.arch-layer {
    border: 3px solid #1A1A2A;
    padding: 2rem 2.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.arch-layer-3 {
    background-color: #F8F4FA;
    z-index: 3;
    transform: translate(-8px, -8px);
    border-bottom: none;
}

.arch-layer-2 {
    background-color: #E8D0F0;
    z-index: 2;
    border-bottom: none;
}

.arch-layer-1 {
    background-color: #C0B8D0;
    z-index: 1;
    transform: translate(8px, 8px);
}

.arch-layer:hover {
    transform: translate(0, 0);
}

.arch-layer-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #4A3080;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.arch-layer-desc {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #3A3A4A;
    line-height: 1.6;
    display: block;
}

.arch-layer-1 .arch-layer-label {
    color: #1A1A2A;
}

.arch-layer-1 .arch-layer-desc {
    color: #1A1A2A;
}

/* --- Footer --- */
.site-footer {
    padding: 4rem 2rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: #1A1A2A;
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #4A3080;
    margin-top: 0.25rem;
}

.footer-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: #C0B8D0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-border {
    margin-top: 2rem;
    height: 3px;
    background-color: #1A1A2A;
    width: 100%;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .content-section {
        padding: 4rem 1.25rem;
    }

    .panel-main {
        padding: 2rem 1.5rem;
    }

    .panel-shadow {
        top: 5px;
        left: 5px;
        right: -5px;
        bottom: -5px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .city-icon-1 {
        width: 50px;
        height: 75px;
    }

    .city-icon-2 {
        width: 45px;
        height: 45px;
    }

    .city-icon-3 {
        width: 35px;
        height: 70px;
    }

    .city-icon-4 {
        width: 40px;
        height: 50px;
    }

    .city-icon-5 {
        width: 60px;
        height: 30px;
    }

    .depth-back,
    .depth-mid,
    .depth-top {
        width: 88%;
        height: 55%;
    }

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

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

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .arch-layer {
        padding: 1.5rem;
    }

    .arch-layer-3 {
        transform: translate(-4px, -4px);
    }

    .arch-layer-1 {
        transform: translate(4px, 4px);
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .depth-back,
    .depth-mid,
    .depth-top {
        width: 92%;
        height: 50%;
    }

    .geo-shape-1 {
        width: 180px;
        height: 180px;
    }

    .geo-shape-2 {
        width: 120px;
        height: 120px;
    }

    .geo-shape-3 {
        width: 150px;
        height: 90px;
    }

    .geo-shape-4 {
        width: 100px;
        height: 100px;
    }
}
