/* Homepage landing sections (About → Contact) — load after styles2.css + mobile.css */

body.home-page {
    background: #ffffff;
    color: #0f172a;
}

/* Prevent legacy section skins from breaking the landing layout */
body.home-page .landing-section.about,
body.home-page .landing-section.experience {
    background: transparent;
}

body.home-page .landing-section.contact.landing-section--dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Alternating bands: hero is 1st section; landing blocks start at 2nd */
body.home-page section.landing-section--light:nth-of-type(even) {
    background: #f8fafc;
}

body.home-page section.landing-section--light:nth-of-type(odd) {
    background: #ffffff;
}

body.home-page .landing-section {
    border-top: 1px solid #e8edf3;
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

body.home-page .landing-section:first-of-type {
    border-top: none;
}

body.home-page .landing-section--dark {
    border-top: none;
}

body.home-page .landing-section .container {
    padding-left: clamp(1.25rem, 4vw, 2rem);
    padding-right: clamp(1.25rem, 4vw, 2rem);
}

.landing-section-inner {
    max-width: 960px;
    margin: 0 auto;
}

/* Banner image */
.landing-section-visual {
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.landing-section-image.section-entry-image {
    width: 100%;
    max-width: 100%;
    height: clamp(240px, 36vw, 460px);
    margin: 0;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.landing-section-image.section-entry-image::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, transparent 42%);
    opacity: 1;
}

/* Copy block */
.landing-section-copy {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.landing-section-head {
    margin-bottom: 1.5rem;
}

.landing-section-title {
    font-size: clamp(1.85rem, 4.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.landing-section-tagline {
    max-width: 36rem;
    margin: 0 auto;
    font-size: clamp(1.02rem, 2.4vw, 1.15rem);
    line-height: 1.6;
    color: #64748b;
}

.landing-section-divider {
    width: 64px;
    height: 4px;
    margin: 1.35rem auto 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #4c68d7 0%, #6b46c1 100%);
}

.landing-section-intro {
    margin: 0 auto 1.5rem;
    font-size: clamp(1rem, 2.4vw, 1.08rem);
    line-height: 1.75;
    color: #475569;
}

.landing-section-highlights {
    margin: 0 auto 1.75rem;
    text-align: left;
}

.landing-section-list {
    margin: 0;
    padding: 0;
}

.landing-section-list li {
    padding-left: 1.65rem;
    margin-bottom: 0.7rem;
    color: #475569;
    line-height: 1.6;
}

.landing-section-list li::before {
    content: "✓";
    color: #ff6b35;
    font-weight: 800;
}

.landing-section-actions {
    margin-top: 0.5rem;
    text-align: center;
}

.landing-section-actions .btn-preview {
    min-width: min(100%, 220px);
    padding: 0.8rem 2rem;
    border-radius: 999px;
}

/* News */
.landing-section.landing-news .landing-section-copy {
    max-width: 800px;
}

.landing-section-posts {
    margin: 0 0 0.25rem;
    padding: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    text-align: left;
}

body.home-page section.landing-news.landing-section--light:nth-of-type(even) .landing-section-posts {
    background: #ffffff;
}

.landing-section-post {
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid #eef2f6;
}

.landing-section-post:last-child {
    border-bottom: none;
}

.landing-section-post-title {
    margin: 0 0 0.35rem;
    font-size: 1.12rem;
}

.landing-section-post-excerpt {
    margin: 0 0 0.5rem;
}

.landing-section-cta--inline {
    font-size: 0.92rem;
    font-weight: 600;
    color: #4c68d7;
}

.landing-section-empty {
    padding: 1rem 0;
    color: #64748b;
    font-style: italic;
}

/* Contact */
.landing-section--dark .landing-section-copy {
    max-width: 880px;
}

.landing-section--dark .landing-section-title,
.landing-section--dark .landing-section-tagline,
.landing-section--dark .landing-section-intro {
    color: #ffffff;
}

.landing-section--dark .landing-section-tagline {
    color: rgba(255, 255, 255, 0.85);
}

.landing-section--dark .landing-section-intro {
    color: rgba(255, 255, 255, 0.92);
}

.landing-section--dark .landing-section-divider {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.landing-section--dark .landing-section-list li {
    color: rgba(255, 255, 255, 0.9);
}

.landing-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.75rem, 4vw, 2.75rem);
    align-items: center;
    margin-top: 0.5rem;
    text-align: left;
}

.landing-contact-details {
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.landing-contact-details i {
    color: #ff6b35;
    margin-top: 0.15rem;
    width: 1.15rem;
    text-align: center;
    flex-shrink: 0;
}

.landing-contact-details a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.landing-contact-details a:hover {
    border-bottom-color: #ff6b35;
}

.landing-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.landing-section--dark .landing-contact-buttons .btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
}

.landing-section--dark .landing-contact-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.landing-section--dark .landing-contact-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

@media (max-width: 768px) {
    .landing-section-image.section-entry-image {
        height: clamp(200px, 48vw, 280px);
        border-radius: 14px;
    }

    .landing-section-copy,
    .landing-section-head,
    .landing-section-intro,
    .landing-section-actions {
        text-align: center;
    }

    .landing-section-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-section-highlights {
        max-width: 100%;
    }

    .landing-contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .landing-contact-details li {
        justify-content: center;
    }

    .landing-contact-buttons .btn {
        width: 100%;
    }
}
