/* ============================================================
   monopole.city - Watercolor Magnetic Municipal Aesthetic
   ============================================================ */

:root {
    /* Color Palette */
    --color-cream: #F5F0E8;
    --color-sage-dark: #4A6B5A;
    --color-blue-slate: #5A6E8A;
    --color-clay: #B8764A;
    --color-sage-light: #7A9B8A;
    --color-forest: #3A5F4A;
    --color-gray-blue: #5A7A6A;
    --color-dark: #2C2C2C;

    /* Typography */
    --font-display: 'Caveat', cursive;
    --font-heading: 'Vollkorn', serif;
    --font-body: 'Vollkorn', serif;
    --font-monospace: 'Fira Code', monospace;

    /* Spacing */
    --spacing-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   HERO SECTION - Watercolor Wash with Central Text
   ============================================================ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 35% 40%, rgba(58, 95, 74, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(90, 110, 138, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 65%, rgba(184, 118, 74, 0.08) 0%, transparent 65%),
        radial-gradient(ellipse at 20% 80%, rgba(122, 155, 138, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse at 85% 70%, rgba(74, 107, 90, 0.09) 0%, transparent 60%);
    z-index: 1;
    filter: url(#watercolor-effect);
    opacity: 0.85;
}

.filter-svg {
    position: absolute;
    width: 0;
    height: 0;
    z-index: 0;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--color-forest);
    letter-spacing: 0.15em;
    margin-bottom: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    animation: fade-in 1.2s ease-out;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--color-blue-slate);
    letter-spacing: 0.3em;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    animation: fade-in 1.4s ease-out 0.2s backwards;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--color-gray-blue);
    margin-top: 2rem;
    font-style: italic;
    animation: fade-in 1.6s ease-out 0.4s backwards;
}

.animated-line {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
}

.diagonal-line {
    stroke: var(--color-forest);
    stroke-width: 3;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: draw-diagonal 2.5s ease-out 0.5s forwards;
}

@keyframes draw-diagonal {
    from {
        stroke-dashoffset: 1500;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   DIAGONAL SECTIONS - Core Layout Motif
   ============================================================ */

.diagonal-section {
    position: relative;
    padding: 8rem 5%;
    background-color: var(--color-cream);
    overflow: hidden;
}

.diagonal-section:nth-child(odd) {
    --bg-primary: rgba(74, 107, 90, 0.03);
    background: linear-gradient(135deg, var(--bg-primary) 0%, transparent 100%);
}

.diagonal-section:nth-child(even) {
    --bg-secondary: rgba(90, 110, 138, 0.03);
    background: linear-gradient(-135deg, var(--bg-secondary) 0%, transparent 100%);
}

.section-divider {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 60"><defs><filter id="wobble"><feTurbulence type="fractalNoise" baseFrequency="0.02" numOctaves="3" /><feDisplacementMap in="SourceGraphic" scale="2" /></filter></filter></defs><path d="M0,30 Q300,35 600,25 T1200,30 L1200,60 L0,60 Z" fill="%23F5F0E8" filter="url(%23wobble)" /></svg>') repeat-x;
    background-size: 1200px 60px;
    opacity: 0.7;
    transform: rotate(var(--angle, 0deg));
    transform-origin: center;
}

.section-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.section-intro {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-gray-blue);
    margin-bottom: 3rem;
    font-style: italic;
    max-width: 700px;
}

/* Metadata and Technical Text */
.neighborhood-distance,
.event-date,
time {
    font-family: var(--font-monospace);
    font-size: 0.85rem;
    font-weight: 400;
}

/* ============================================================
   GOVERNMENT SECTION - Cards Grid
   ============================================================ */

.government-section {
    background-color: rgba(245, 240, 232, 0.98);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--color-forest);
    box-shadow: 0 4px 12px rgba(58, 95, 74, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(58, 95, 74, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-forest);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.card p {
    font-size: 0.95rem;
    color: var(--color-gray-blue);
    line-height: 1.7;
}

/* ============================================================
   INFRASTRUCTURE SECTION - List Layout
   ============================================================ */

.infrastructure-section {
    background-color: rgba(245, 240, 232, 0.98);
}

.infrastructure-list {
    display: grid;
    gap: 2.5rem;
    margin-top: 2rem;
}

.infrastructure-item {
    padding: 1.5rem;
    border-left: 3px solid var(--color-clay);
    background-color: rgba(184, 118, 74, 0.03);
    border-radius: 4px;
}

.infrastructure-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-clay);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.infrastructure-item p {
    color: var(--color-dark);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================================
   NEIGHBORHOODS SECTION - Grid Cards
   ============================================================ */

.neighborhoods-section {
    background-color: rgba(245, 240, 232, 0.98);
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.neighborhood-card {
    background: linear-gradient(135deg, rgba(74, 107, 90, 0.05) 0%, rgba(90, 110, 138, 0.05) 100%);
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid var(--color-sage-light);
    transition: background-color 0.3s ease;
}

.neighborhood-card:hover {
    background: linear-gradient(135deg, rgba(74, 107, 90, 0.12) 0%, rgba(90, 110, 138, 0.12) 100%);
}

.neighborhood-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-forest);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.neighborhood-distance {
    font-size: 0.85rem;
    color: var(--color-sage-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.neighborhood-card p {
    font-size: 0.9rem;
    color: var(--color-gray-blue);
    line-height: 1.7;
}

/* ============================================================
   EVENTS SECTION - Timeline/List
   ============================================================ */

.events-section {
    background-color: rgba(245, 240, 232, 0.98);
}

.events-list {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.event {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 5px solid var(--color-blue-slate);
    box-shadow: 0 2px 8px rgba(90, 110, 138, 0.08);
    transition: box-shadow 0.3s ease;
}

.event:hover {
    box-shadow: 0 4px 16px rgba(90, 110, 138, 0.15);
}

.event-date {
    display: block;
    font-size: 0.85rem;
    color: var(--color-blue-slate);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.event-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-forest);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.event-description {
    font-size: 0.95rem;
    color: var(--color-gray-blue);
    line-height: 1.7;
}

/* ============================================================
   FOOTER SECTION
   ============================================================ */

.footer-section {
    background: linear-gradient(180deg, rgba(58, 95, 74, 0.08) 0%, rgba(90, 110, 138, 0.08) 100%);
    border-top: 2px solid var(--color-forest);
    padding: 4rem 5%;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section-block h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-forest);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section-block p {
    font-size: 0.9rem;
    color: var(--color-gray-blue);
    line-height: 1.8;
}

address {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--color-gray-blue);
    line-height: 1.8;
}

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

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--color-forest);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.status-indicator {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.status-value {
    font-weight: 600;
    color: var(--color-sage-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(58, 95, 74, 0.2);
    font-size: 0.85rem;
    color: var(--color-gray-blue);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .diagonal-section {
        padding: 4rem 4%;
    }

    .section-heading {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .cards-grid,
    .neighborhoods-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 2rem);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .diagonal-section {
        padding: 3rem 3%;
    }

    .section-intro {
        font-size: 0.95rem;
    }

    .card,
    .event,
    .neighborhood-card {
        padding: 1.5rem 1rem;
    }

    .footer-section {
        padding: 2.5rem 3%;
    }
}

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.card {
    animation: slide-in-up 0.6s ease-out;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    .animated-line,
    .section-divider {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
