 /* =========================================================
    NDAMU GUEST HOUSE
    Homepage Styles
    ========================================================= */


/* =========================================================
   1. HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 100svh;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: var(--color-white);
    background: var(--color-primary);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    animation: heroZoom 12s ease-out forwards;
}

.hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(12, 31, 26, 0.82) 0%,
            rgba(12, 31, 26, 0.60) 45%,
            rgba(12, 31, 26, 0.25) 100%
        );

    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;

    width: 100%;

    padding-top: 84px;
}

.hero__inner {
    max-width: 850px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;

    margin-bottom: 1.5rem;

    color: var(--color-accent-light);

    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero__eyebrow::before {
    content: "";

    width: 38px;
    height: 1px;

    background: var(--color-accent);
}

.hero__title {
    margin-bottom: 1.5rem;

    max-width: 800px;

    color: var(--color-white);

    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.98;
}

.hero__description {
    max-width: 620px;

    margin-bottom: 2.25rem;

    color: rgba(255, 255, 255, 0.82);

    font-size: var(--text-lg);
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero__location {
    position: absolute;
    left: 0;
    bottom: 2.5rem;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 0.65rem;

    color: rgba(255, 255, 255, 0.78);

    font-size: var(--text-sm);
}

.hero__location-icon {
    color: var(--color-accent);
}


/* Hero Animation */

@keyframes heroZoom {

    from {
        transform: scale(1.02);
    }

    to {
        transform: scale(1.08);
    }
}


/* =========================================================
   2. INTRODUCTION
   ========================================================= */

.intro {
    background: var(--color-ivory);
}

.intro__grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: clamp(3rem, 7vw, 7rem);

    align-items: center;
}

.intro__media {
    position: relative;

    min-height: 600px;
}

.intro__image {
    width: 88%;
    height: 560px;

    overflow: hidden;

    border-radius: var(--radius-md);
}

.intro__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform var(--transition-slow);
}

.intro__image:hover img {
    transform: scale(1.04);
}

.intro__accent {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 42%;
    height: 45%;

    overflow: hidden;

    border: 10px solid var(--color-ivory);
    border-radius: var(--radius-md);
}

.intro__accent img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.intro__content {
    max-width: 580px;
}

.intro__title {
    margin-bottom: 1.5rem;
}

.intro__text {
    margin-bottom: 2rem;

    font-size: var(--text-lg);
    line-height: 1.85;
}

.intro__details {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1rem 2rem;

    margin-top: 2.5rem;
    padding-top: 2rem;

    border-top: 1px solid var(--color-border);
}

.intro__detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    font-size: var(--text-sm);
    font-weight: 600;
}

.intro__detail-icon {
    color: var(--color-accent);

    font-size: 1.1rem;
}


/* =========================================================
   3. ACCOMMODATION PREVIEW
   ========================================================= */

.accommodation-preview {
    background: var(--color-white);
}

.accommodation-preview__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 2rem;

    margin-bottom: var(--space-xl);
}

.accommodation-preview__header .section-header {
    margin-bottom: 0;
}

.accommodation-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 2rem;
}

.room-card {
    position: relative;

    overflow: hidden;

    min-height: 520px;

    border-radius: var(--radius-md);

    background: var(--color-primary);
}

.room-card__image {
    position: absolute;
    inset: 0;
}

.room-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform var(--transition-slow);
}

.room-card:hover .room-card__image img {
    transform: scale(1.05);
}

.room-card__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(10, 28, 23, 0.92) 0%,
            rgba(10, 28, 23, 0.25) 55%,
            rgba(10, 28, 23, 0.05) 100%
        );
}

.room-card__content {
    position: absolute;

    left: 2rem;
    right: 2rem;
    bottom: 2rem;

    z-index: 2;
}

.room-card__label {
    margin-bottom: 0.5rem;

    color: var(--color-accent-light);

    font-size: var(--text-xs);
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.room-card__title {
    margin-bottom: 0.75rem;

    color: var(--color-white);

    font-size: var(--text-3xl);
}

.room-card__description {
    max-width: 500px;

    margin-bottom: 1.25rem;

    color: rgba(255, 255, 255, 0.78);
}

.room-card__link {
    color: var(--color-white);
}


/* =========================================================
   4. FEATURES
   ========================================================= */

.features {
    position: relative;

    overflow: hidden;

    background: var(--color-primary);
}

.features::before {
    content: "";

    position: absolute;

    top: -150px;
    right: -150px;

    width: 400px;
    height: 400px;

    border: 1px solid rgba(181, 138, 74, 0.2);

    border-radius: 50%;
}

.features__header {
    position: relative;
    z-index: 1;

    max-width: 700px;

    margin-bottom: var(--space-xl);
}

.features__header .section-title {
    color: var(--color-white);
}

.features__header .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.features-grid {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.feature {
    padding: 2.5rem 2rem;

    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.feature:last-child {
    border-right: none;
}

.feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 1.5rem;

    color: var(--color-accent);

    border: 1px solid rgba(181, 138, 74, 0.4);
    border-radius: 50%;
}

.feature__title {
    margin-bottom: 0.75rem;

    color: var(--color-white);

    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 700;
}

.feature__description {
    color: rgba(255, 255, 255, 0.65);

    font-size: var(--text-sm);
    line-height: 1.7;
}


/* =========================================================
   5. DISCOVER MAKONDE
   ========================================================= */

.discover {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.discover__media {
    position: absolute;
    inset: 0;
}

.discover__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.discover__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10, 28, 23, 0.88) 0%,
            rgba(10, 28, 23, 0.55) 50%,
            rgba(10, 28, 23, 0.15) 100%
        );
}

.discover__content {
    position: relative;
    z-index: 2;

    max-width: 650px;
}

.discover__content .section-label {
    color: var(--color-accent-light);
}

.discover__title {
    margin-bottom: 1.5rem;

    color: var(--color-white);

    font-size: clamp(2.75rem, 5vw, 4.5rem);
}

.discover__description {
    margin-bottom: 2rem;

    color: rgba(255, 255, 255, 0.8);

    font-size: var(--text-lg);
}


/* =========================================================
   6. GALLERY PREVIEW
   ========================================================= */

.gallery-preview {
    background: var(--color-ivory);
}

.gallery-grid {
    display: grid;

    grid-template-columns: 1.15fr 0.85fr 0.85fr;

    grid-template-rows: 250px 250px;

    gap: 1rem;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    border-radius: var(--radius-sm);
}

.gallery-item:first-child {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;

    padding: 1.5rem;

    background:
        linear-gradient(
            to top,
            rgba(10, 28, 23, 0.6),
            transparent 50%
        );

    opacity: 0;

    transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__title {
    color: var(--color-white);

    font-size: var(--text-sm);
    font-weight: 600;
}


/* =========================================================
   7. LOCATION
   ========================================================= */

.location {
    background: var(--color-white);
}

.location__grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4rem;

    align-items: stretch;
}

.location__map {
    min-height: 480px;

    overflow: hidden;

    background: var(--color-sand);

    border-radius: var(--radius-md);
}

.location__map iframe {
    width: 100%;
    height: 100%;

    border: 0;
}

.location__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    max-width: 500px;
}

.location__address {
    margin: 1.5rem 0 2rem;

    padding: 1.5rem 0;

    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.location__address strong {
    display: block;

    margin-bottom: 0.35rem;

    color: var(--color-primary);
}

.location__actions {
    display: flex;
    gap: 1rem;
}


/* =========================================================
   8. FINAL CTA
   ========================================================= */

.final-cta {
    position: relative;

    overflow: hidden;

    padding-block: 7rem;

    background: var(--color-primary);
}

.final-cta::before,
.final-cta::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(181, 138, 74, 0.18);

    border-radius: 50%;
}

.final-cta::before {
    width: 450px;
    height: 450px;

    top: -250px;
    left: -150px;
}

.final-cta::after {
    width: 550px;
    height: 550px;

    right: -300px;
    bottom: -350px;
}

.final-cta__content {
    position: relative;
    z-index: 1;

    max-width: 750px;

    margin-inline: auto;

    text-align: center;
}

.final-cta__title {
    margin-bottom: 1.25rem;

    color: var(--color-white);

    font-size: clamp(2.75rem, 5vw, 4.5rem);
}

.final-cta__description {
    max-width: 580px;

    margin: 0 auto 2rem;

    color: rgba(255, 255, 255, 0.72);

    font-size: var(--text-lg);
}

.final-cta__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


/* =========================================================
   9. RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {

    .intro__grid {
        gap: 3rem;
    }

    .intro__media {
        min-height: 500px;
    }

    .intro__image {
        height: 480px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature:nth-child(2) {
        border-right: none;
    }

    .feature:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .location__grid {
        gap: 3rem;
    }
}


@media (max-width: 768px) {

    .hero {
        min-height: 760px;
    }

    .hero__content {
        padding-top: 100px;
    }

    .hero__description {
        font-size: var(--text-base);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;

        max-width: 280px;
    }

    .hero__location {
        bottom: 1.5rem;
    }


    /* Introduction */

    .intro__grid {
        grid-template-columns: 1fr;
    }

    .intro__media {
        min-height: 450px;
        order: 1;
    }

    .intro__content {
        order: 2;
    }

    .intro__image {
        width: 90%;
        height: 430px;
    }

    .intro__accent {
        width: 38%;
        height: 42%;
    }


    /* Accommodation */

    .accommodation-preview__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .accommodation-grid {
        grid-template-columns: 1fr;
    }

    .room-card {
        min-height: 480px;
    }


    /* Features */

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .feature:last-child {
        border-bottom: none;
    }


    /* Discover */

    .discover {
        min-height: 600px;
    }


    /* Gallery */

    .gallery-grid {
        grid-template-columns: 1fr 1fr;

        grid-template-rows: 240px 240px 240px;
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }


    /* Location */

    .location__grid {
        grid-template-columns: 1fr;
    }

    .location__map {
        min-height: 350px;
        order: 2;
    }

    .location__content {
        order: 1;
    }

    .location__actions {
        flex-direction: column;
        align-items: stretch;
    }


    /* CTA */

    .final-cta {
        padding-block: 5rem;
    }

    .final-cta__actions {
        flex-direction: column;
        align-items: stretch;

        max-width: 280px;

        margin-inline: auto;
    }
}


@media (max-width: 480px) {

    .hero {
        min-height: 700px;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__location {
        font-size: var(--text-xs);
    }

    .intro__media {
        min-height: 380px;
    }

    .intro__image {
        height: 360px;
    }

    .intro__details {
        grid-template-columns: 1fr;
    }

    .room-card {
        min-height: 420px;
    }

    .room-card__content {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        grid-template-rows:
            280px
            220px
            220px
            220px;
    }

    .gallery-item:first-child {
        grid-column: auto;
    }
}