
/* =========================================================
   EVERDELL APARTMENTS
   Main Stylesheet
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
    --brand: #42c7c0;
    --brand-dark: #167f82;
    --ink: #18313a;
    --cream: #f7f5ef;
    --muted: #6c7a80;
    --line: #e7eceb;
    --gold: #c9a85c;

    --dark: #17343d;
    --dark-deep: #10282f;

    --white: #ffffff;

    --shadow-sm: 0 5px 24px rgba(20, 48, 56, .07);
    --shadow-md: 0 15px 45px rgba(18, 44, 52, .08);
    --shadow-lg: 0 20px 50px rgba(24, 49, 58, .08);
}


/* =========================================================
   RESET / GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    background: var(--dark);
    color: #d9e7e7;
    font-size: .84rem;
    padding: 8px 0;
}

.topbar a {
    color: #d9e7e7;
    text-decoration: none;
}

.topbar a:hover {
    color: #ffffff;
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-nav {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.brand {
    display: inline-block;
    text-decoration: none;
}

.brand img {
    height: 82px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.nav-link {
    font-weight: 600;
    color: #27444b !important;
    padding: .8rem .8rem !important;
}

.nav-link.active,
.nav-link:hover {
    color: var(--brand-dark) !important;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn-brand {
    background: var(--brand-dark);
    color: #ffffff;
    border: 0;
    border-radius: 5px;
    font-weight: 700;
    padding: .7rem 1.2rem;
}

.btn-brand:hover {
    background: #0e676a;
    color: #ffffff;
}

.btn-outline-brand {
    border: 1px solid var(--brand-dark);
    color: var(--brand-dark);
    font-weight: 700;
    border-radius: 5px;
}

.btn-outline-brand:hover {
    background: var(--brand-dark);
    color: #ffffff;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 76vh;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.hero .carousel-item {
    height: 76vh;
    min-height: 590px;
    background-size: cover;
    background-position: center;
}

.hero .overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 26, 31, .82) 0%,
            rgba(7, 26, 31, .54) 43%,
            rgba(7, 26, 31, .15) 78%,
            rgba(7, 26, 31, .18)
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;

    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    font-weight: 700;
    color: #8fe2dc;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: .98;
    margin: 14px 0 22px;
}

.hero p {
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 610px;
    color: #eef6f5;
}

.hero .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 3px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 65px 0;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .75rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.12;
}

.lead-soft {
    color: var(--muted);
    line-height: 1.8;
}


/* =========================================================
   STAT BAND
========================================================= */

.stat-band {
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    padding: 30px 10px;
    text-align: center;
}

.stat strong {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    color: var(--brand-dark);
    display: block;
}

.stat span {
    font-size: .82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}


/* =========================================================
   IMAGE CARDS
========================================================= */

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #eeeeee;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-card.tall {
    height: 620px;
}

.image-card.medium {
    height: 420px;
}

.image-card.small {
    height: 290px;
}

.image-card .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 26px;

    color: #ffffff;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, .75)
        );
}


/* =========================================================
   FEATURE CARDS
========================================================= */

.feature-card {
    border: 1px solid var(--line);
    padding: 30px;
    height: 100%;
    transition: .25s ease;
    background: #ffffff;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;

    display: grid;
    place-items: center;

    background: #e6f8f6;
    color: var(--brand-dark);

    font-size: 1.3rem;

    margin-bottom: 18px;
}

.feature-card h5 {
    font-weight: 700;
}


/* =========================================================
   GALLERY STRIP
========================================================= */

.gallery-strip .carousel-item {
    padding: 0 7px;
}

.gallery-strip .img-wrap {
    height: 390px;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   APARTMENT CARDS
========================================================= */

.apartment-card {
    border: 0;
    border-radius: 4px;
    overflow: hidden;

    box-shadow: var(--shadow-md);

    background: #ffffff;
    height: 100%;
}

.apartment-card img {
    height: 290px;
    width: 100%;
    object-fit: cover;
}

.apartment-card .body {
    padding: 26px;
}


/* =========================================================
   TAGS
========================================================= */

.tag {
    display: inline-block;

    padding: 6px 10px;

    background: #e7f8f6;
    color: var(--brand-dark);

    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}


/* =========================================================
   DETAIL LIST
========================================================= */

.detail-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.detail-list li {
    display: flex;
    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid var(--line);

    color: #53656a;
}

.detail-list i {
    color: var(--brand-dark);
}


/* =========================================================
   DARK SECTIONS
========================================================= */

.dark-section {
    background: var(--dark);
    color: #ffffff;
}

.dark-section .lead-soft {
    color: #c4d5d7;
}

.quote-box {
    border-left: 4px solid var(--brand);
    padding-left: 22px;
}


/* =========================================================
   FLOOR PLAN
========================================================= */

.floorplan {
    background: var(--cream);
    padding: 20px;
}

.floorplan img {
    max-height: 690px;
    width: 100%;
    object-fit: contain;
}


/* =========================================================
   MAP
========================================================= */

.map-frame {
    width: 100%;
    height: 460px;
    border: 0;
}


/* =========================================================
   CONTACT PAGE
========================================================= */

/*
   IMPORTANT:
   The contact page contains two Bootstrap columns:

   LEFT:
   Contact details

   RIGHT:
   Enquiry form

   Bootstrap rows normally use align-items: stretch.
   Because the enquiry form is taller, that can cause the
   left column/card to stretch all the way down.

   These rules explicitly force both columns to retain
   their natural height.
*/

#enquiry > .container > .row {
    align-items: flex-start !important;
}

#enquiry > .container > .row > [class*="col-"] {
    align-self: flex-start !important;
    height: auto !important;
}


/* ---------------------------------------------------------
   Contact Card
--------------------------------------------------------- */

#enquiry .contact-card {
    display: block;

    width: 100%;

    height: auto !important;
    min-height: 0 !important;

    padding: 30px;

    border: 1px solid var(--line);
    border-radius: 4px;

    background: #ffffff;

    box-shadow:
        0 10px 35px rgba(24, 49, 58, .04);

    align-self: flex-start !important;

    flex: none !important;
}


/* ---------------------------------------------------------
   Contact Details Card
--------------------------------------------------------- */

/*
   Extra protection specifically for the left-hand
   contact-details card.
*/

#enquiry .col-lg-5 .contact-card {
    height: auto !important;
    min-height: 0 !important;

    flex: none !important;

    align-self: flex-start !important;
}


/* ---------------------------------------------------------
   Contact Card Headings
--------------------------------------------------------- */

.contact-card h4 {
    color: var(--ink);
    font-weight: 700;
}


/* ---------------------------------------------------------
   Contact Card Text
--------------------------------------------------------- */

.contact-card p {
    color: var(--muted);
    line-height: 1.7;
}

.contact-card p strong {
    color: var(--ink);
}


/* ---------------------------------------------------------
   Contact Links
--------------------------------------------------------- */

.contact-card a {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    color: #0e676a;
}


/* ---------------------------------------------------------
   Contact Dividers
--------------------------------------------------------- */

.contact-card hr {
    border: 0;
    border-top: 1px solid var(--line);

    margin: 22px 0;

    opacity: 1;
}


/* ---------------------------------------------------------
   Contact Icons
--------------------------------------------------------- */

.contact-card p > i {
    color: var(--brand-dark);
}


/* ---------------------------------------------------------
   Contact Form Labels
--------------------------------------------------------- */

.contact-card .form-label {
    color: var(--ink);

    font-weight: 600;

    margin-bottom: 7px;
}


/* ---------------------------------------------------------
   Contact Form Controls
--------------------------------------------------------- */

.contact-card .form-control,
.contact-card .form-select {
    border-radius: 3px;

    border: 1px solid #d8e1e1;

    padding: .85rem 1rem;

    color: var(--ink);

    background: #ffffff;
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
    border-color: var(--brand);

    box-shadow:
        0 0 0 .2rem rgba(66, 199, 192, .14);
}


/* ---------------------------------------------------------
   Contact Textarea
--------------------------------------------------------- */

.contact-card textarea.form-control {
    resize: vertical;

    min-height: 150px;
}


/* ---------------------------------------------------------
   Contact Submit Button
--------------------------------------------------------- */

.contact-card .btn-brand {
    padding: .8rem 1.4rem;
}


/* ---------------------------------------------------------
   Enquiry Form
--------------------------------------------------------- */

#enquiry form {
    margin: 0;
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
    padding: 90px 0;

    background:
        linear-gradient(
            110deg,
            #17343d,
            #226e70
        );

    color: #ffffff;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.breadcrumb a {
    color: #a8dedb;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ffffff;
}


/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {
    columns: 3 280px;
    column-gap: 16px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform .5s ease;
}

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


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: var(--dark-deep);
    color: #bcd0d2;
    padding: 70px 0 25px;
}


/* ---------------------------------------------------------
   Footer Logo
--------------------------------------------------------- */

.footer .footer-logo-link {
    display: inline-block;

    margin: 0;
    padding: 0;

    text-decoration: none;
}

.footer .footer-logo {
    display: block;

    /*
       IMPORTANT:
       The old logo had width="700" and was overflowing
       into the Explore and Visit columns.

       This forces the logo to stay within its column.
    */

    width: 220px !important;
    max-width: 100%;

    height: auto !important;

    object-fit: contain;
    object-position: left center;

    background: #ffffff;

    padding: 6px;

    border-radius: 3px;
}


/* ---------------------------------------------------------
   Footer Description
--------------------------------------------------------- */

.footer-brand-column > p {
    max-width: 430px;

    color: #bcd0d2;

    line-height: 1.75;

    margin-bottom: 0;
}


/* ---------------------------------------------------------
   Footer Headings
--------------------------------------------------------- */

.footer h6 {
    color: #ffffff;

    text-transform: uppercase;

    letter-spacing: .12em;

    font-size: .75rem;

    font-weight: 700;

    margin: 0 0 20px;
}


/* ---------------------------------------------------------
   Footer Navigation
--------------------------------------------------------- */

.footer .footer-links a {
    display: block;

    color: #bcd0d2;

    text-decoration: none;

    margin: 0 0 13px;
    padding: 0;

    line-height: 1.5;
}

.footer .footer-links a:hover {
    color: #ffffff;

    transform: translateX(3px);
}


/* ---------------------------------------------------------
   Footer Social Icons
--------------------------------------------------------- */

.footer .footer-socials {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 22px;
}

.footer .footer-socials .social {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin: 0;
    padding: 0;

    border: 1px solid #466269;

    border-radius: 50%;

    color: #bcd0d2;

    text-decoration: none;

    font-size: 1.05rem;
}

.footer .footer-socials .social:hover {
    background: var(--brand);

    border-color: var(--brand);

    color: var(--dark-deep);

    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   Footer Contact
--------------------------------------------------------- */

.footer .footer-contact p {
    display: flex;

    align-items: flex-start;

    gap: 13px;

    margin: 0 0 17px;

    color: #bcd0d2;

    line-height: 1.6;
}

.footer .footer-contact p > i {
    flex: 0 0 20px;

    color: #a9d7d5;

    font-size: 1.1rem;

    margin-top: 2px;
}

.footer .footer-contact a {
    display: inline;

    margin: 0;
    padding: 0;

    color: #bcd0d2;

    text-decoration: none;
}

.footer .footer-contact a:hover {
    color: #ffffff;
}


/* ---------------------------------------------------------
   Footer Bottom
--------------------------------------------------------- */

.footer .footer-bottom {
    margin-top: 50px;

    padding-top: 22px;

    border-top: 1px solid #29434a;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;

    color: #8fa9ad;

    font-size: .78rem;
}


/* =========================================================
   FLOATING WHATSAPP
========================================================= */

.floating-whatsapp {
    position: fixed;

    right: 22px;
    bottom: 22px;

    width: 56px;
    height: 56px;

    display: flex !important;

    align-items: center;
    justify-content: center;

    background: #25d366;

    color: #ffffff !important;

    border-radius: 50%;

    font-size: 1.65rem;

    text-decoration: none !important;

    z-index: 1000;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .22);

    margin: 0 !important;
}

.floating-whatsapp:hover {
    background: #1ebe5d;

    color: #ffffff !important;

    transform: translateY(-2px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    /* -----------------------------------------------------
       Navigation
    ----------------------------------------------------- */

    .brand img {
        height: 70px;
        max-width: 200px;
    }


    /* -----------------------------------------------------
       Hero
    ----------------------------------------------------- */

    .hero {
        min-height: 650px;
    }

    .hero .carousel-item {
        min-height: 650px;
    }


    /* -----------------------------------------------------
       Sections
    ----------------------------------------------------- */

    .section {
        padding: 75px 0;
    }


    /* -----------------------------------------------------
       Image Cards
    ----------------------------------------------------- */

    .image-card.tall {
        height: 480px;
    }


    /* -----------------------------------------------------
       Contact Page
    ----------------------------------------------------- */

    #enquiry > .container > .row {
        align-items: flex-start !important;
    }

    #enquiry > .container > .row > [class*="col-"] {
        align-self: flex-start !important;
        height: auto !important;
    }

    #enquiry .contact-card,
    #enquiry .col-lg-5 .contact-card,
    #enquiry .col-lg-7 .contact-card {
        height: auto !important;
        min-height: 0 !important;
    }


    /* -----------------------------------------------------
       Footer
    ----------------------------------------------------- */

    .footer .footer-logo {
        width: 210px !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

    /* -----------------------------------------------------
       Topbar
    ----------------------------------------------------- */

    .topbar {
        font-size: .74rem;
    }

    .topbar .container {
        justify-content: center;
    }


    /* -----------------------------------------------------
       Navigation
    ----------------------------------------------------- */

    .brand img {
        height: 62px;
        max-width: 185px;
    }


    /* -----------------------------------------------------
       Hero
    ----------------------------------------------------- */

    .hero h1 {
        font-size: 3rem;
    }

    .hero .carousel-item {
        min-height: 610px;
    }


    /* -----------------------------------------------------
       Sections
    ----------------------------------------------------- */

    .section {
        padding: 62px 0;
    }


    /* -----------------------------------------------------
       Page Hero
    ----------------------------------------------------- */

    .page-hero {
        padding: 65px 0;
    }


    /* -----------------------------------------------------
       Gallery
    ----------------------------------------------------- */

    .gallery-strip .img-wrap {
        height: 300px;
    }


    /* -----------------------------------------------------
       Contact
    ----------------------------------------------------- */

    #enquiry .contact-card {
        padding: 24px;

        height: auto !important;
        min-height: 0 !important;
    }


    /* -----------------------------------------------------
       Footer
    ----------------------------------------------------- */

    .footer {
        padding: 55px 0 25px;
    }

    .footer .footer-logo {
        width: 190px !important;
    }

    .footer .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        margin-top: 40px;
    }


    /* -----------------------------------------------------
       WhatsApp
    ----------------------------------------------------- */

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;

        width: 52px;
        height: 52px;

        font-size: 1.45rem;
    }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 375px) {

    .hero h1 {
        font-size: 2.5rem;
    }

    .brand img {
        height: 56px;
        max-width: 165px;
    }

    .footer .footer-logo {
        width: 175px !important;
    }

}

