/* Residential template — page-level overrides */

.story-template-residential {
    background: linear-gradient(180deg, #f0f4f7 0%, #9ebcca 500px, #f0f4f7 1100px);
}

.story-template-residential .user-story-page-wrapper {
    margin-top: var(--header-height);
}

/* Hero — featured image as full background */

.story-hero-residential {
    position: relative;
    min-height: 654px;
    padding: 0;
    border-radius: 32px;
    margin: 0 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.story-hero-residential-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(38, 56, 80, 0.82) 28%, rgba(38, 56, 80, 0.35) 55%, transparent 75%);
}

.story-hero-residential-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 128px 64px 88px;
}

.story-hero-residential .story-back-link {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
}

.story-hero-residential .story-back-link:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.story-hero-residential .story-header {
    margin-top: 40px;
}

.story-hero-residential .story-eyebrow {
    color: #fa700d;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.story-hero-residential .story-page-title {
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.1;
    max-width: 18ch;
}

/* Content area — no card wrapper, open layout */

.story-template-residential .story-page-hero {
    padding: 0;
}

.story-template-residential .user-story-page {
    padding: 0;
}

.story-template-residential .story-full-content {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(22, 30, 35, 0.75);
}

.story-template-residential .story-full-content > :first-child {
    margin-top: 48px;
}

.story-template-residential .story-full-content > p:first-child {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(22, 30, 35, 0.75);
}

.story-template-residential .story-full-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(22, 30, 35, 0.75);
}

.story-template-residential .story-full-content h2 {
    color: #365072;
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
    margin-top: 64px;
    margin-bottom: 24px;
}

.story-template-residential .story-full-content h3 {
    color: #365072;
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
    margin-top: 48px;
    margin-bottom: 16px;
}

.story-template-residential .story-full-content h4 {
    color: #365072;
    font-family: 'Urbanist', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.story-template-residential .story-full-content a {
    color: #fa700d;
}

.story-template-residential .story-full-content blockquote {
    background: #263850;
    color: #fff;
    border-left: none;
    border-radius: 32px;
    padding: 64px;
    margin: 48px 0;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
}

.story-template-residential .story-full-content blockquote p {
    color: #fff;
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 0;
}

.story-template-residential .story-full-content img {
    border-radius: 32px;
    box-shadow: none;
}

.story-template-residential .story-full-content figure {
    margin: 48px 0;
}

.story-template-residential .story-full-content figcaption {
    color: rgba(22, 30, 35, 0.75);
    font-size: 0.875rem;
}

/* More stories section */

.story-template-residential .story-more-section {
    padding-top: 48px;
}

.story-template-residential .footer-component {
    margin-top: 0;
}

/* Responsive */

@media (max-width: 1024px) {
    .story-hero-residential {
        min-height: 520px;
    }

    .story-hero-residential-content {
        padding: 80px 40px 64px;
    }
}

@media (max-width: 768px) {
    .story-hero-residential {
        min-height: 440px;
        border-radius: 24px;
    }

    .story-hero-residential-overlay {
        background: linear-gradient(180deg, transparent 15%, rgba(38, 56, 80, 0.8) 65%);
    }

    .story-hero-residential-content {
        padding: 48px 24px 32px;
    }

    .story-hero-residential .story-header {
        margin-top: 24px;
    }

    .story-hero-residential .story-eyebrow {
        font-size: 1rem;
    }

    .story-hero-residential .story-page-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .story-template-residential .story-full-content blockquote {
        padding: 32px 24px;
        font-size: 1.1rem;
        border-radius: 24px;
    }

    .story-template-residential .story-full-content h2 {
        margin-top: 40px;
    }

    .story-template-residential .story-full-content img {
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .story-hero-residential {
        min-height: 360px;
        border-radius: 20px;
        margin: 0 6px;
    }

    .story-hero-residential-content {
        padding: 32px 20px 24px;
    }

    .story-hero-residential .story-eyebrow {
        font-size: 0.875rem;
    }

    .story-template-residential .story-full-content blockquote {
        padding: 28px 20px;
        border-radius: 20px;
    }
}
