/* Celebes Font Family */
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-Thin.woff') format('woff'); font-weight: 100; font-style: normal; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-ThinItalic.woff') format('woff'); font-weight: 100; font-style: italic; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-Light.woff') format('woff'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-LightItalic.woff') format('woff'); font-weight: 300; font-style: italic; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-Regular.woff') format('woff'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-Italic.woff') format('woff'); font-weight: 400; font-style: italic; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-SemiBold.woff') format('woff'); font-weight: 600; font-style: normal; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-SemiBoldItalic.woff') format('woff'); font-weight: 600; font-style: italic; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-Bold.woff') format('woff'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-BoldItalic.woff') format('woff'); font-weight: 700; font-style: italic; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-ExtraBold.woff') format('woff'); font-weight: 800; font-style: normal; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-ExtraBoldItalic.woff') format('woff'); font-weight: 800; font-style: italic; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-Black.woff') format('woff'); font-weight: 900; font-style: normal; }
@font-face { font-family: 'Celebes'; src: url('fonts/celebes-webfont/Celebes-BlackItalic.woff') format('woff'); font-weight: 900; font-style: italic; }

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

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

body {
    font-family: 'Celebes', sans-serif;
    font-weight: 600;
    line-height: 1.5;
    overflow-x: clip;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    max-height: 750px;
    overflow: hidden;
    position: relative;

}

.hero-track {
    display: flex;
    width: 600%;
    animation: hero-scroll 15s ease-in-out infinite;
}

.hero-track img {
    width: calc(100% / 6);
    height: auto;
    display: block;
    flex-shrink: 0;
}

@keyframes hero-scroll {
    0%      { transform: translateX(0); }
    20%     { transform: translateX(0); }
    33%     { transform: translateX(-16.666%); }
    53%     { transform: translateX(-16.666%); }
    66%     { transform: translateX(-33.333%); }
    86%     { transform: translateX(-33.333%); }
    100%    { transform: translateX(-50%); }
}

/* About Us */
.about-us {
    background-color: #213035;
    color: #ffffff;
    text-align: center;
    padding: 45px 20px 20px;
    width: 100%;

}

.about-us h2 {
    font-size: 55px;
    line-height: 60px;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-us hr {
    width: 120px;
    height: 2px;
    background-color: #ffffff;
    border: none;
    margin: 0 auto 30px;
}

.about-us p {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
}

/* Our Properties */
.our-properties {
    width: 100%;

    background-image: url('Assets/Homepage/city-skyline.png');
    background-size: cover;
    background-position: center;
    padding: 45px 20px 20px;
}

.properties-header {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
}

.properties-header h2 {
    font-size: 55px;
    line-height: 60px;
    font-weight: 700;
    margin-bottom: 15px;
}

.properties-header p {
    font-size: 20px;
    line-height: 26px;
    max-width: 650px;
    margin: 0 auto;
}

.properties-pods {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap;
}

.pod {
    flex: 1;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    border: 2px solid #213035;
}

.pod::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.65) 100%);
}

.pod-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    padding: 16px 16px 12px;
}

.pod-content h3 {
    font-size: 40px;
    line-height: 45px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pod-content p {
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    margin-bottom: 30px;
}

.pod-btn {
    position: relative;
    z-index: 1;
    display: block;
    background-color: #213035;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    padding: 20px 28px;
    border-radius: 2px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.03em;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.pod-btn:hover {
    background-color: #192528;
    transform: translateY(-2px);
}

/* Booking modal */
.booking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.booking-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.booking-modal {
    background: #ffffff;
    position: relative;
    border-radius: 2px;
    max-height: 90vh;
    overflow-y: auto;
    width: 60vw;
    max-width: 960px;
    min-width: 500px;
}

.booking-modal-header {
    position: relative;
    height: 320px;
    display: flex;
    align-items: flex-end;
    border-radius: 2px 2px 0 0;
    overflow: hidden;
}

.booking-modal-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.booking-modal-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.booking-modal-slide.active {
    opacity: 1;
}

.booking-modal-header::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.booking-modal-header-text {
    position: relative;
    z-index: 2;
    padding: 0 24px 18px;
}

.booking-modal-eyebrow {
    font-family: 'Celebes', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
}

.booking-modal-title {
    font-family: 'Celebes', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.booking-modal-body {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.booking-modal-form {
    padding: 28px 32px 80px;
    flex: 0 0 auto;
}

.booking-modal-panel {
    display: none;
}

@media (min-width: 1150px) {
    .booking-modal-panel {
        display: block;
        flex: 1;
        min-width: 0;
        background-color: #ffffff;
        background-image: url('Assets/FindYourNest.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border-left: 1px solid rgba(0,0,0,0.07);
    }
}

.booking-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    background: rgba(0,0,0,0.35);
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #ffffff;
    padding: 2px 8px 4px;
    border-radius: 2px;
    transition: background 0.15s ease;
}

.booking-modal-close:hover {
    background: rgba(0,0,0,0.6);
}

@media (max-width: 480px) {
    .booking-overlay {
        align-items: flex-end;
    }

    .booking-modal {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: 88vh;
        border-radius: 2px 2px 0 0;
        transform: translateY(100%);
        transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .booking-overlay.active .booking-modal {
        transform: translateY(0);
    }

    .booking-modal-header {
        border-radius: 2px 2px 0 0;
        height: 24vh;
    }

    .booking-modal-header::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 2px;
        z-index: 3;
    }

    .booking-modal-body {
        flex-direction: column;
    }

    .booking-modal-form {
        padding: 20px 20px 24px;
    }

    .booking-modal-panel {
        display: none;
    }
}

@media (max-width: 1400px) {
    .properties-pods {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pod {
        flex: 0 0 calc(50% - 10px);
    }

    .pod:last-child {
        flex: 0 0 calc(50% - 10px);
    }
}

/* Benefits */
.benefits {
    width: 100%;

    background-color: #213035;
    padding: 60px;
}

.benefits-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
    color: #ffffff;
}

.benefit {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.benefit-icon[src] {
    filter: invert(1) drop-shadow(0px 6px 12px rgba(0,0,0,0.8));
    mix-blend-mode: screen;
}

svg.benefit-icon {
    filter: drop-shadow(0px 6px 12px rgba(0,0,0,0.8));
}

.benefit h3 {
    font-size: 42px;
    line-height: 46px;
    font-weight: 700;
    margin-bottom: 40px;
}

.benefit p {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    max-width: 260px;
}

/* Why Us */
.why-us {
    width: 100%;

    background-image: url('Assets/Homepage/Why Background.png');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
}

.why-content {
    text-align: center;
    color: #ffffff;
}

.why-content h2 {
    font-size: 55px;
    line-height: 60px;
    font-weight: 700;
    margin-bottom: 20px;
}

.why-subtitle {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 50px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.why-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff;
    flex-shrink: 0;
}

.why-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-item p {
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    max-width: 220px;
}

/* Contact */
.contact {
    width: 100%;

    display: flex;
    min-height: 500px;
}

.contact-left {
    width: 35%;
    background-color: #213035;
    color: #ffffff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-left h2 {
    font-size: 46px;
    line-height: 50px;
    font-weight: 700;
}

.contact-left address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 20px;
    line-height: 28px;
}

.contact-left address a {
    color: #ffffff;
    text-decoration: none;
}

.contact-left address a:hover {
    text-decoration: underline;
}

.contact-socials {
    display: flex;
    gap: 20px;
}

.contact-socials a {
    color: #ffffff;
}

.contact-socials a:hover {
    color: #aaaaaa;
}

.contact-right {
    width: 65%;
    background-image: url('Assets/Homepage/contact-background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.contact-form {
    background-color: #213035;
    padding: 30px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-intro {
    color: #ffffff;
    font-size: 18px;
    line-height: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #ffffff;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    background-color: #ffffff;
    border: none;
    padding: 10px;
    font-family: 'Celebes', sans-serif;
    font-size: 14px;
    width: 100%;
}

.form-group textarea {
    resize: vertical;
}

.form-submit {
    background-color: #ffffff;
    color: #213035;
    border: none;
    padding: 14px;
    font-family: 'Celebes', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.form-submit:hover {
    background-color: #e0e0e0;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    min-width: max-content;
}

.header-inner {
    display: flex;
    align-items: center;
}

.header-house {
    width: 253px;
    height: 160px;
    object-fit: contain;
    margin-right: 50px;
    display: block;
}

.header-inner > a {
    display: contents;
    line-height: 0;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.header-inner > a:focus,
.header-inner > a:active {
    outline: none;
    background: none;
}

.header-inner::after {
    content: '';
    width: 303px;
    flex-shrink: 0;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-center h1 {
    font-size: 55px;
    line-height: 60px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #111;
}

.header-center hr {
    width: 75px;
    height: 10px;
    border: none;
    background-color: #111;
    margin-bottom: 15px;
}

.tagline {
    font-size: 30px;
    line-height: 32px;
    color: #444;
    margin-bottom: 20px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 145px;
    border-radius: 2px;
    background-color: #213035;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.btn-contact:hover {
    background-color: #192528;
}

@media (max-width: 820px) {
    /* Header: fluid scaling, always centred, never wraps */
    .site-header {
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }
    .header-inner::after {
        width: clamp(80px, 22vw, 186px);
    }
    .header-house {
        width: clamp(70px, 19vw, 156px);
        height: auto;
        aspect-ratio: 253/160;
        margin-right: clamp(8px, 3vw, 24px);
        flex-shrink: 0;
    }
    .header-center h1 {
        font-size: clamp(18px, 4.5vw, 36px);
        line-height: 1.2;
        white-space: nowrap;
        margin-bottom: clamp(4px, 1vw, 10px);
    }
    .header-center hr {
        width: clamp(28px, 7vw, 58px);
        height: clamp(2px, 0.6vw, 5px);
        margin-bottom: clamp(4px, 1vw, 10px);
    }
    .tagline {
        font-size: clamp(9px, 2.2vw, 18px);
        line-height: 1.3;
        white-space: nowrap;
        margin-bottom: clamp(6px, 1.5vw, 14px);
    }
    .btn-contact {
        height: clamp(28px, 6vw, 44px);
        font-size: clamp(10px, 1.6vw, 13px);
        width: clamp(95px, 17.5vw, 133px);
    }

    /* Properties pods: single column */
    .properties-pods {
        flex-wrap: wrap;
    }
    .pod {
        flex: 0 0 100%;
    }
    .pod:last-child {
        flex: 0 0 100%;
    }

    /* Benefits: stack vertically */
    .benefits {
        padding: 40px 20px;
    }
    .benefits-grid {
        flex-direction: column;
        align-items: center;
    }

    /* Why Us: 2-column grid */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }

    .why-grid .why-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* Contact: stack vertically */
    .contact {
        flex-direction: column;
    }
    .contact-left {
        width: 100%;
    }
    .contact-right {
        width: 100%;
        min-height: 300px;
    }
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 450px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-grid .why-item:last-child:nth-child(odd) {
        grid-column: 1;
    }
}
