/* monopole.city — MCBling Botanical City */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: #FFF5EC;
    color: #5C4A42;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* ============================================
   SPARKLE CANVAS OVERLAY
   ============================================ */
#sparkle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   FLOATING NAVIGATION
   ============================================ */
.floating-nav {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(245, 225, 212, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(212, 184, 150, 0.4);
}

.nav-link {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.2em;
    color: #9C7B6C;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 12px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
    color: #4A3728;
    background-color: rgba(232, 180, 162, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #FFF5EC;
}

.hero-map {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.city-map {
    width: min(90vw, 90vh);
    height: min(90vw, 90vh);
    opacity: 0.8;
    transition: transform 0.1s linear;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 0.15em;
    line-height: 0.95;
    color: #4A3728;
    text-shadow: 0 2px 15px rgba(212, 180, 160, 0.5);
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: #7D5A50;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-top: 12px;
}

/* Monopole pulse animation */
.monopole-pulse {
    animation: pulse 3s ease-in-out infinite;
}
.monopole-pulse-inner {
    animation: pulseInner 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { r: 12; opacity: 0.3; }
    50% { r: 20; opacity: 0.6; }
}
@keyframes pulseInner {
    0%, 100% { r: 6; opacity: 0.6; }
    50% { r: 10; opacity: 0.9; }
}

/* Botanical bloom animation */
.botanical-bloom {
    opacity: 0;
    animation: bloomIn 2s ease-out forwards;
}
.bloom-1 { animation-delay: 0.2s; }
.bloom-2 { animation-delay: 0.4s; }
.bloom-3 { animation-delay: 0.6s; }
.bloom-4 { animation-delay: 0.8s; }

@keyframes bloomIn {
    0% { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.3); }
    100% { opacity: 1; transform: translate(var(--tx, 0), var(--ty, 0)) scale(1); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.scroll-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: #9C7B6C;
}

.scroll-arrow {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, #D4B896, transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ============================================
   DISTRICTS SECTION
   ============================================ */
.districts {
    padding: 100px 5vw;
    min-height: 100vh;
    background-color: #FFF5EC;
}

.section-header {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #7D5A50;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 50px;
    text-align: center;
}

.districts-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.district-card {
    background: #F5E1D4;
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid rgba(212, 184, 150, 0.3);
    box-shadow: 0 8px 25px rgba(92, 74, 66, 0.08), 0 2px 8px rgba(92, 74, 66, 0.05);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

/* Glossy overlay */
.district-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(232, 180, 162, 0.12) 100%);
    border-radius: 12px;
    pointer-events: none;
    transition: background 0.3s ease;
}

.district-card:hover::after {
    background: linear-gradient(135deg, transparent 20%, rgba(232, 180, 162, 0.25) 100%);
}

.district-card:hover {
    transform: translateY(-8px) translateZ(30px);
    box-shadow: 0 15px 40px rgba(92, 74, 66, 0.12), 0 5px 15px rgba(92, 74, 66, 0.08);
    border-color: rgba(212, 184, 150, 0.7);
}

.district-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Card grid spans */
.district-card:nth-child(1) { grid-column: span 5; min-height: 340px; }
.district-card:nth-child(2) { grid-column: span 7; min-height: 300px; }
.district-card:nth-child(3) { grid-column: span 4; min-height: 380px; }
.district-card:nth-child(4) { grid-column: span 4; min-height: 320px; }
.district-card:nth-child(5) { grid-column: span 4; min-height: 360px; }
.district-card:nth-child(6) { grid-column: span 6; min-height: 280px; grid-column-start: 4; }

.card-label {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.2em;
    color: #9C7B6C;
    display: block;
    margin-bottom: 6px;
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    letter-spacing: 0.1em;
    color: #4A3728;
    line-height: 1.1;
    margin-bottom: 12px;
}

.card-illustration {
    width: 100%;
    max-width: 180px;
    margin: 8px auto 16px;
}

.card-illustration svg {
    width: 100%;
    height: auto;
}

.card-body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: #5C4A42;
    line-height: 1.6;
    max-width: 600px;
}

/* ============================================
   FIELD GUIDE (MARQUEE)
   ============================================ */
.field-guide {
    height: 40vh;
    min-height: 280px;
    background-color: #F5E1D4;
    border-top: 1px solid #D4B896;
    border-bottom: 1px solid #D4B896;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 30px;
    padding: 0 15px;
}

.specimen {
    width: 120px;
    flex-shrink: 0;
}

.specimen svg {
    width: 100%;
    height: auto;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   OBSERVATORY SECTION
   ============================================ */
.observatory {
    min-height: 100vh;
    padding: 80px 5vw;
    background-color: #FFF5EC;
}

.observatory-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.observatory-illustration {
    flex: 1;
    max-width: 60%;
}

.monopole-flower {
    width: 100%;
    height: auto;
}

.observatory-text {
    flex: 1;
    max-width: 480px;
}

.observatory-text .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.observatory-prose {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    color: #5C4A42;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 600px;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.footer-section {
    min-height: 50vh;
    background-color: #5C4A42;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
}

.footer-card {
    text-align: center;
    position: relative;
    padding: 60px 80px;
    max-width: 500px;
}

.rhinestone-border {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(212, 184, 150, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.rhinestone-border::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #D4B896;
    transform: rotate(45deg);
    animation: rhinestoneOrbit 12s linear infinite;
    offset-path: path('M0,0 L480,0 L480,240 L0,240 Z');
    offset-distance: 0%;
    opacity: 0.7;
    box-shadow: 0 0 8px rgba(212, 184, 150, 0.6);
}

@keyframes rhinestoneOrbit {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

.footer-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.15em;
    color: #FFF5EC;
    text-shadow: 0 2px 15px rgba(212, 180, 160, 0.3);
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.2rem;
    color: #E8B4A2;
    margin-bottom: 24px;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: #D4B896;
    margin: 0 auto 24px;
    opacity: 0.5;
}

.footer-coords {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: #D4B896;
    margin-bottom: 16px;
}

.footer-note {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1rem;
    color: #9C7B6C;
    line-height: 1.5;
    margin-bottom: 24px;
}

.footer-sparkle-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.diamond {
    width: 6px;
    height: 6px;
    background: #D4B896;
    transform: rotate(45deg);
    opacity: 0.6;
    animation: diamondPulse 2s ease-in-out infinite;
}

.diamond:nth-child(2) { animation-delay: 0.3s; }
.diamond:nth-child(3) { animation-delay: 0.6s; }
.diamond:nth-child(4) { animation-delay: 0.9s; }
.diamond:nth-child(5) { animation-delay: 1.2s; }

@keyframes diamondPulse {
    0%, 100% { opacity: 0.3; transform: rotate(45deg) scale(0.8); }
    50% { opacity: 0.9; transform: rotate(45deg) scale(1.2); }
}


/* Botanical sage accent used in illustrations */
.card-illustration svg path[stroke='#A8B89A'] {
    transition: stroke-opacity 0.3s ease;
}

.botanical-bloom circle {
    fill: #A8B89A;
}
/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .districts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .district-card:nth-child(1),
    .district-card:nth-child(2),
    .district-card:nth-child(3),
    .district-card:nth-child(4),
    .district-card:nth-child(5),
    .district-card:nth-child(6) {
        grid-column: span 1;
        min-height: auto;
    }
    .observatory-inner {
        flex-direction: column;
    }
    .observatory-illustration {
        max-width: 100%;
    }
    .observatory-text {
        max-width: 100%;
    }
    .floating-nav {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        gap: 2px;
    }
    .nav-link {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
}

@media (max-width: 600px) {
    .districts-grid {
        grid-template-columns: 1fr;
    }
    .footer-card {
        padding: 40px 30px;
    }
}