
html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Libre Caslon Display", serif;
    background: #E6D2B5;
}

h1,
h2,
h3,
p,
a,
button {
    font-family: "Libre Caslon Display", serif;
}


/* ========================================
   HEADER
======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    padding: 0 8%;

    background: #E6D2B5;

    z-index: 9999;
}

nav a {
    color: black;
    text-decoration: none;

    margin-left: 35px;

    font-size: 22px;

    display: inline-block;

    transition: transform 0.3s ease;
}

nav a:hover {
    transform: scale(1.15);
}


/* ========================================
   HERO
======================================== */

.hero {
    width: 100%;
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        url("images/download.png");

    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;

    color: white;

    padding: 90px 8% 0;
}

.hero h2 {
    font-size: clamp(45px, 5vw, 80px);

    line-height: 1.05;

    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 22px;

    margin-top: 25px;

    font-style: italic;
}

.hero-button {
    margin-top: 50px;

    padding: 18px 55px;

    background: #E6D2B5;

    color: black;

    text-decoration: none;

    font-size: 22px;

    border: 1px solid black;

    transition: transform 0.3s ease;
}

.hero-button:hover {
    transform: scale(1.08);
}


/* ========================================
   MAIN SECTIONS
======================================== */

.about,
.services,
.portfolio {
    width: 100%;

    padding: 100px 8%;

    text-align: center;
}

h2 {
    font-size: 80px;

    margin-bottom: 40px;
}


/* ========================================
   PORTFOLIO COVER
======================================== */

.portfolio-link {
    display: inline-block;

    max-width: 100%;

    transition: transform 0.3s ease;
}

.portfolio-link img {
    width: 600px;

    max-width: 100%;

    display: block;

    border-radius: 12px;
}

.portfolio-link:hover {
    transform: scale(1.05);
}


/* ========================================
   ABOUT
======================================== */

.about p {
    font-size: 24px;

    line-height: 1.6;

    max-width: 800px;

    margin: auto;
}


/* ========================================
   SERVICES
======================================== */

.service-container {
    width: 100%;

    display: flex;

    justify-content: center;

    gap: 30px;
}

.service-card {
    background: white;

    padding: 40px;

    max-width: 300px;

    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
}


/* ========================================
   CONTACT
======================================== */

.contact {
    width: 100%;

    min-height: 100vh;

    padding: 100px 8%;

    background: #111;

    color: white;

    text-align: center;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;
}

.contact p {
    font-size: 28px;
}

.contact a,
.contact-page a {
    display: inline-block;

    margin-top: 30px;

    padding: 18px 50px;

    background: #E6D2B5;

    color: black;

    text-decoration: none;

    font-size: 22px;

    border: 1px solid black;

    transition: transform 0.3s ease;
}

.contact a:hover,
.contact-page a:hover {
    transform: scale(1.08);
}


/* ========================================
   PORTFOLIO PAGE
======================================== */

.portfolio-page {
    width: 100%;

    padding: 130px 8% 50px;
}


/* ========================================
   PROPERTY GRID
======================================== */

.property-grid {
    width: 100%;
    max-width: 1200px;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px;

    margin: 50px auto;
}

.property-card {
    width: 100%;
    min-width: 0;

    display: block;

    text-decoration: none;

    color: black;
}

.property-card:last-child {
    grid-column: 2;
}

.property-card img {
    width: 100%;
    max-width: 100%;

    aspect-ratio: 3 / 2;

    object-fit: cover;

    display: block;

    border-radius: 12px;

    transition: transform 0.3s ease;
}

.property-card:hover img {
    transform: scale(1.03);
}


/* ========================================
   PROPERTY GALLERY
======================================== */

.property-gallery {
    width: 100%;

    padding-top: 130px;

    padding-left: 8%;
    padding-right: 8%;
}

#gallery {
    width: 100%;
    max-width: 1200px;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 25px;

    margin: 50px auto;
}

#gallery img {
    width: 100%;
    max-width: 100%;

    aspect-ratio: 3 / 2;

    object-fit: cover;

    display: block;

    border-radius: 12px;

    cursor: pointer;

    transition: transform 0.3s ease;
}

#gallery img:hover {
    transform: scale(1.03);
}


/* ========================================
   LIGHTBOX
======================================== */

.lightbox {
    display: none;

    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.92);

    justify-content: center;
    align-items: center;

    z-index: 10000;

    padding: 40px;
}

.lightbox-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 90vw;
    max-height: 90vh;

    object-fit: contain;
}


/* LIGHTBOX BUTTONS */

.close,
.prev,
.next {
    position: absolute;

    color: white;

    background: transparent;

    border: none;

    outline: none;

    padding: 10px;

    cursor: pointer;

    z-index: 10001;

    user-select: none;

    line-height: 1;

    -webkit-tap-highlight-color: transparent;
}

.close:focus,
.prev:focus,
.next:focus {
    outline: none;

    box-shadow: none;
}

.close:focus-visible,
.prev:focus-visible,
.next:focus-visible {
    outline: none;
}

.close {
    top: 20px;

    right: 35px;

    font-size: 50px;
}

.prev {
    left: 30px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 50px;
}

.next {
    right: 30px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 50px;
}


/* ========================================
   CONTACT PAGE
======================================== */

.contact-page {
    width: 100%;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 130px 8% 50px;
}

.contact-page p {
    font-size: 28px;

    max-width: 700px;

    line-height: 1.5;
}

.contact-page p:last-of-type {
    margin-top: 50px;
}

.contact-page-body {
    width: 100%;
    overflow-x: hidden;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    #gallery,
    .property-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        min-width: 0;
        max-width: 100%;

        overflow-x: hidden;
    }


    /* HEADER */

    header {
        width: 100%;

        height: 70px;

        padding: 0 10px;
    }

    nav {
        width: 100%;

        display: flex;

        justify-content: center;

        flex-wrap: wrap;
    }

    nav a {
        font-size: 16px;

        margin-left: 8px;
        margin-right: 8px;
    }


    /* HERO */

    .hero {
        width: 100%;

        min-height: 100vh;

        padding: 70px 8% 0;
    }

    .hero h2 {
        font-size: 48px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-button {
        font-size: 18px;

        padding: 15px 35px;
    }


    /* MAIN SECTIONS */

    .about,
    .services,
    .portfolio {
        width: 100%;

        padding: 80px 8%;
    }

    h2 {
        font-size: 55px;
    }


    /* ====================================
       PORTFOLIO PAGE
       3 ON TOP + 1 CENTERED
    ==================================== */

    .portfolio-page {
        width: 100%;

        padding: 110px 4% 50px;
    }

    .property-grid {
        width: 100%;

        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 10px;

        margin: 40px auto;
    }

    .property-card {
        width: 100%;

        min-width: 0;
    }

    .property-card:last-child {
        grid-column: 2;
    }

    .property-card img {
        width: 100%;
    }


    /* ====================================
       PROPERTY GALLERY
       3 PHOTOS SIDE-BY-SIDE
    ==================================== */

    .property-gallery {
        width: 100%;

        padding-top: 110px;

        padding-left: 4%;
        padding-right: 4%;
    }

    #gallery {
        width: 100%;

        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 7px;

        margin: 40px auto;
    }

    #gallery img {
        width: 100%;

        aspect-ratio: 3 / 2;

        object-fit: cover;

        border-radius: 5px;
    }


    /* ====================================
       SERVICES
    ==================================== */

    .service-container {
        width: 100%;

        flex-direction: column;

        align-items: center;

        gap: 20px;
    }

    .service-card {
        width: 100%;

        max-width: 400px;
    }


    /* ====================================
       MOBILE LIGHTBOX
    ==================================== */

    .lightbox {
        width: 100vw;
        height: 100vh;

        padding: 15px 55px;
    }

    .lightbox-image {
        max-width: 78vw;

        max-height: 82vh;
    }

    .close {
        top: 15px;

        right: 15px;

        font-size: 40px;
    }

    .prev {
        left: 2px;

        font-size: 36px;
    }

    .next {
        right: 2px;

        font-size: 36px;
    }


    /* ====================================
       CONTACT SECTION
    ==================================== */

    .contact {
    width: 100%;
    min-height: 100svh;
    height: auto;

    padding: 80px 8%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: #111;
    color: white;
}

    .contact h2 {
        margin-bottom: 30px;
    }

    .contact p {
        font-size: 22px;

        line-height: 1.5;
    }


    /* ====================================
       CONTACT PAGE
    ==================================== */

    .contact-page {
        width: 100%;

        min-height: 100vh;

        padding: 110px 8% 50px;
    }

    .contact-page p {
        font-size: 22px;
    }

}

html,
body,
header,
section,
main,
footer {
    max-width: 100%;
}

@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: clip;
    }

    section {
        width: 100%;
        max-width: 100%;
    }

    .hero,
    .portfolio,
    .about,
    .services,
    .contact {
        width: 100%;
        max-width: 100%;
    }
}
/* FIX MOBILE RIGHT EDGE */
@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .contact {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .contact::before,
    .contact::after {
        box-sizing: border-box;
    }
}