/* ========================================
   pmt.moe — Scandinavian Parallax Cityscape
   ======================================== */

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

:root {
    --deep-teal-dark: #1A2828;
    --teal-grey: #3A4848;
    --warm-amber: #C09848;
    --scandi-teal: #508878;
    --nordic-cream: #F4F2EE;
    --section-light: #FAFAF6;
    --landmark-dark: #284038;
    --mixed-texture: #D0C8B8;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    color: var(--teal-grey);
    background-color: var(--nordic-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Zilla Slab', 'Georgia', serif;
    color: var(--deep-teal-dark);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    letter-spacing: -0.015em;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 500;
    line-height: 1.3;
}

.urban-label {
    font-family: 'Space Grotesk', 'Arial', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-amber);
    display: inline-block;
    margin-bottom: 1.2rem;
}

/* --- Parallax Layers --- */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.city-silhouette {
    position: absolute;
    height: 100vh;
    width: auto;
    bottom: 0;
    transition: none;
}

.city-silhouette--left {
    left: -2%;
}

.city-silhouette--right {
    right: -2%;
}

.parallax-fg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    will-change: transform;
}

.fg-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    background-color: var(--scandi-teal);
}

.fg-element--1 {
    width: 300px;
    height: 300px;
    top: 15%;
    right: -80px;
}

.fg-element--2 {
    width: 180px;
    height: 180px;
    top: 55%;
    left: -40px;
}

.fg-element--3 {
    width: 220px;
    height: 220px;
    top: 80%;
    right: 15%;
}

/* --- Sections --- */
.section {
    position: relative;
    min-height: 70vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* Mixed-media city textures */
.section__texture {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(208, 200, 184, 0.08) 60px,
            rgba(208, 200, 184, 0.08) 61px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(208, 200, 184, 0.06) 80px,
            rgba(208, 200, 184, 0.06) 81px
        );
}

.section__texture--alt {
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(80, 136, 120, 0.04) 40px,
            rgba(80, 136, 120, 0.04) 41px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(80, 136, 120, 0.04) 40px,
            rgba(80, 136, 120, 0.04) 41px
        );
}

/* --- Hero Section --- */
.section--hero {
    min-height: 100vh;
    background-color: var(--nordic-cream);
    text-align: center;
}

.section--hero .section__inner {
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: 0.04em;
    color: var(--deep-teal-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--warm-amber);
    margin: 1rem auto 0;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-title.is-visible::after {
    width: 120px;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: var(--teal-grey);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--warm-amber), transparent);
    margin: 0 auto;
}

/* --- About Section --- */
.section--about {
    background-color: var(--section-light);
}

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

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

.about-card {
    background-color: var(--nordic-cream);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(208, 200, 184, 0.4);
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover {
    border-color: var(--scandi-teal);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(26, 40, 40, 0.06);
}

.about-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.about-card__icon svg {
    width: 100%;
    height: 100%;
}

.about-card__title {
    margin-bottom: 0.8rem;
}

.about-card__text {
    font-size: 0.92rem;
    line-height: 1.75;
}

/* --- Features Section --- */
.section--features {
    background-color: var(--nordic-cream);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(208, 200, 184, 0.5);
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.feature-row:first-child {
    border-top: 1px solid rgba(208, 200, 184, 0.5);
}

.feature-row:hover {
    background-color: rgba(80, 136, 120, 0.03);
    padding-left: 1rem;
}

.feature-row__number {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--warm-amber);
    min-width: 60px;
    line-height: 1.2;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.feature-row:hover .feature-row__number {
    opacity: 1;
    color: var(--scandi-teal);
}

.feature-row__content {
    flex: 1;
}

.feature-row__title {
    margin-bottom: 0.5rem;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}

.feature-row__text {
    max-width: 600px;
    font-size: 0.95rem;
}

/* --- Gallery Section --- */
.section--gallery {
    background-color: var(--section-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border: 1px solid rgba(208, 200, 184, 0.4);
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    border-color: var(--scandi-teal);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(26, 40, 40, 0.06);
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item--wide {
    grid-column: span 3;
}

.gallery-item__inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-svg {
    transform: scale(1.03);
}

.gallery-item--tall .gallery-svg {
    flex: 1;
    height: 100%;
    object-fit: cover;
}

.gallery-item__label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-amber);
    padding: 0.8rem 1rem;
    background-color: var(--nordic-cream);
}

/* --- Closing Section --- */
.section--closing {
    background-color: var(--nordic-cream);
    text-align: center;
}

.section--closing .section__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.closing-text {
    max-width: 620px;
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 2;
    margin-bottom: 3rem;
    color: var(--teal-grey);
}

.closing-signature {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}

.closing-mark {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--deep-teal-dark);
    letter-spacing: 0.04em;
}

.closing-year {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--warm-amber);
    letter-spacing: 0.1em;
}

/* --- Footer --- */
.site-footer {
    position: relative;
    z-index: 2;
    background-color: var(--deep-teal-dark);
    padding: 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.footer-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mixed-texture);
}

.footer-text--light {
    color: var(--scandi-teal);
    opacity: 0.6;
}

.footer-divider {
    width: 30px;
    height: 1px;
    background-color: var(--warm-amber);
    opacity: 0.5;
}

/* --- Stagger Animation --- */
.stagger-item {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .gallery-item--tall {
        grid-row: span 1;
    }

    .gallery-item--wide {
        grid-column: span 1;
    }

    .feature-row {
        flex-direction: column;
        gap: 0.8rem;
    }

    .feature-row:hover {
        padding-left: 0;
    }

    .feature-row__number {
        min-width: auto;
    }

    .section__inner {
        padding: 4rem 1.5rem;
    }

    .city-silhouette {
        opacity: 0.5;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .section__inner {
        padding: 3rem 1.2rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-divider {
        width: 1px;
        height: 20px;
    }
}
