:root {
    --orange: #EB4223;
}

@font-face {
    font-family: "GothicA1";
    src: url("./contents/fonts/GothicA1-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Rawgly";
    src: url("./contents/fonts/RawglyRegular-MVyWP.woff2") format("woff2");
}

* {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    position: relative;
}

nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 20px;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 200;
    background-color: white;
}

nav ul {
    list-style: none;
    gap: 20px;
    display: flex;
}

nav ul a {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    color: black;
}

nav ul .active {
    color: var(--orange);
}

.main-button {
    background-color: var(--orange);
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    width: fit-content;
    height: fit-content;
}

.logo {
    font-family: 'GothicA1', Helvetica, Arial, sans-serif;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ── Burger button ── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 20;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: black;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animated X when open */
.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer ── */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 60px;
    /* height of nav */
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 201;
    border-top: 1px solid #eee;
}

.mobile-drawer ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-drawer.open {
    display: flex;
}

/* ── Responsive breakpoint ── */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    nav ul,
    #nav-cta-button {
        display: none;
    }

    .logo {
        position: static;
        transform: none;
        margin-right: auto;
        /* ← was margin-left, now pushes burger to the right */
    }
}

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

#hero-section {
    padding: 0 20px;
    height: 80vh;
    overflow: hidden;
    position: relative;
    margin-top: 70px;
}

#hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    border-radius: 5px;
}

.cta {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 50%;
    transform: translatey(50%);
    padding: 0 40px;
    display: flex;
    flex-direction: column;
}

.cta h1 {
    font-size: clamp(4.5rem, 8vw, 7rem);
    font-family: 'Rawgly', Arial, Helvetica, sans-serif;
    color: rgb(0, 0, 0);
    font-weight: lighter;
    line-height: 1.3;
    overflow: hidden;
}

.cta p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    color: rgba(0, 0, 0, 0.8);
    font-weight: normal;
}

.location {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
}

.location img {
    width: 1.1em;
}

/* ------------------------------------------------- Marquee Section ------------------------------------------------ */

.container {
    width: 300vw;
    margin: auto;
    padding: 16px;
    background-color: #ffffff;
    position: relative;
    display: flex;
    overflow: hidden;
}

.container::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.orb {
    font-size: clamp(2rem, 4vw, 3em);
    font-weight: bold;
    text-align: center;
    display: inline-block;
    margin: 0 30px;
    font-family: "Ubuntu", Arial, Helvetica, sans-serif;
    font-weight: normal;
    width: fit-content;
}

.orb:hover {
    transform: scale(1.2);
    cursor: pointer;
}

/* Animation Class */
.scroll-wrapper {
    display: flex;
    -webkit-animation: marquee 20s linear infinite;
    animation: marquee 20s linear infinite;
}

@-webkit-keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.scroll-wrapper .img-div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-wrapper img {
    width: 100%;

}

/* ----------------------------------------------------- Featured Properties ------------------------------------------- */

#featured-properties .heading {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-top: 40px;
}

.sec-heading {
    font-family: 'GothicA1', Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 2.5vw, 5rem);
    font-weight: 600;
}

#featured-properties .heading a {
    /* padding: 20px 25px; */
    font-size: clamp(1.5rem, 1.5vw, 3rem);
}

/* ------------------------------------------------------ cards -------------------------------------------------------- */

.grid-wrapper {
    margin-top: 20px;

}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .grid-wrapper {
        padding: 10px;
    }
}

.card {
    background: #fff;
    border: 1px solid #fff5f5;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 2px 5px 14px 0px rgba(0, 0, 0, 0.45);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

.card-body {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;

}

.card-title {
    font-size: clamp(1.5rem, 2vw, 4rem);
    font-weight: 500;
    color: #111;
    margin-bottom: 6px;
    font-family: Helvetica, Arial, sans-serif;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #4C4C4C;
    margin-bottom: 10px;
    font-family: Helvetica, Arial, sans-serif;
    width: fit-content;
    height: fit-content;
}

.card-location img {
    width: auto;
    height: 20px;
}

.pin {}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #4C4C4C;
    margin-bottom: 14px;
    font-family: Helvetica, Arial, sans-serif;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.meta-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.divider-line {
    width: 1px;
    height: 14px;
    background: #ccc;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.price {
    font-size: clamp(2rem, 2.2vw, 4.3rem);
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #111;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: #4C4C4C;
}

.badge {
    position: absolute;
    top: 0;
    z-index: 5;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 10px;
    margin: 15px 5px;
    border-radius: 4px;
    font-family: Helvetica, Arial, sans-serif;
}

.badge-sale {
    background: #fff3cd;
    color: #856404;
}

.badge-rent {
    background: #d1e7dd;
    color: #0a5c36;
}

.badge-new {
    background: #cfe2ff;
    color: #0a3674;
}

.card-footer .main-button {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 15px 50px;

}

/* --------------------------------------------------------------- Image Slideshow ------------------------------------------------------------------------- */

#image-slideshows {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #0e0e0e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#image-slideshows .section-text {
    position: relative;
    z-index: 5;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

#image-slideshows .section-text .eyebrow {
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.2rem;
    font-family: sans-serif;
}

#image-slideshows .section-text h2 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 500;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 1.2rem;
    font-family: 'GothicA1', Helvetica, Arial, sans-serif;
}

#image-slideshows .section-text h2 em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
}

#image-slideshows .section-text p {
    font-size: clamp(0.8rem, 1.3vw, 0.95rem);
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    font-family: sans-serif;
    text-transform: uppercase;
}

#image-slideshows .trail-img {
    position: absolute;
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 6px;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    will-change: transform, opacity;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

#image-slideshows .trail-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    font-family: sans-serif;
    z-index: 20;
    pointer-events: none;
    animation: trailPulse 2.5s ease-in-out infinite;
}

@keyframes trailPulse {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }
}

/* ------------------------------------------------------------------- Catagories ------------------------------------------------------------------------------------------------- */

#shop-by-categories {
    width: 100%;
    margin: 50px 0;
}

#shop-by-categories .section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
}

/* ── GRID ── */
.grid-wrapper {
    margin-top: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ── FILTER TABS ── */
.filter-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-tab {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px dashed #bbb;
    background: transparent;
    color: #333;
    transition: all 0.2s ease;
    font-family: Helvetica, Arial, sans-serif;
}

.filter-tab:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.filter-tab.active {
    background: var(--orange);
    color: #fff;
    border: 1.5px solid var(--orange);
}

/* --------------------------------------------------------------------------- Why Choose Us -------------------------------------------------------------------------------------- */

#why-choose-us {
    padding: 150px 20vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#why-choose-us h2 {
    font-size: clamp(3rem, 3vw, 5rem);
}

#why-choose-us p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    padding: 10px 10vw;
}

#why-choose-us a {
    border-radius: 50px;
    padding: 10px 40px;
    margin: 50px 0;
    display: block;
}

.trust-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.trusted-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 30%;
    height: 70px;
    justify-content: center;
    font-size: 1.3rem;
    font-family: Helvetica, Arial, sans-serif;
}


/* --------------------------------------------------------------- About Me Section ---------------------------------------------------------- */

#about-me {
    padding: 150px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#about-me div {
    overflow: hidden;
}

#about-me img {
    width: 100%;
    height: 100%;
    border-radius: 5px;

}

#about-me .right-div {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

#about-me .right-div h3 {
    font-size: 1.3rem;
    font-family: Helvetica, Arial, sans-serif;
    margin-top: -5px;
}

#about-me .right-div div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#about-me .right-div div p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
}

#about-me .right-div div a {
    padding: 10px 30px;
}

/* ---------------------------------------------------- Testimonials ------------------------------------------------------ */

#testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    border: 1px white solid;
}

#testimonials .sec-heading {
    color: var(--orange);
    text-align: center;
    display: flex;
    align-items: end;
    padding: 50px;
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 500;
}

#testimonials div {
    /* height: 60vh; */
}

.testi-div {
    background-color: black;
    color: white;
    padding: 150px 70px;
    border: 1px white solid;
}

.testi-div h3 {
    font-family: "GothicA1", Helvetica, Arial, sans-serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.testi-div p {
    font-family: "GothicA1", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

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

footer {
    background-color: black;
    color: white;
    padding: 70px 70px;
    border: white 2px solid;
    border-top: none;
}

footer .logo {
    color: white;
    position: static;
    text-align: left;
    font-size: clamp(2rem, 6vw, 10rem);
    display: block;
    z-index: 10;
    position: relative;
    margin-bottom: 30px;
}

footer p {
    width: 50%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 100;
    opacity: 0.8;
    margin-bottom: 50px;
}

.socials {
    display: flex;
    gap: 10px;
    padding-bottom: 20px;
}

.socials img {
    width: 30px;
}

.footer-info {
    display: flex;
    border-top: white 2px solid;
    padding-top: 20px;
    justify-content: space-between;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-info h4 {
    font-weight: 100;
}

.footer-info h4 span {
    font-weight: 600;
}

.footer-info a {
    text-decoration: none;
    color: white;
}

.footer-info a span {
    color: var(--orange);
}

/* ---------------------------------------------- For tab -------------------------------------------- */

@media (max-width: 1023px) {
    .container {
        width: 400vw;
    }

    .card-img {
        width: 100%;
        height: 250px;
    }

    .card-footer .main-button {
        width: 100%;
        text-align: center;
    }

    #why-choose-us p {
        padding: 10px 0;
    }

    #why-choose-us a {
        margin: 30px 0;
    }

    #why-choose-us {
        padding: 100px 5vw;
    }

    .testi-div {
        padding: 80px 50px;
    }

    footer p {
        width: 100%;
    }

    #about-me {
        grid-template-columns: repeat(2, 1fr);
    }

    #empty-div {
        display: none;
    }

}

@media (max-width: 768px) {


    #about-me div {
        width: 46vw;
    }

    #empty-div {
        display: none;
    }

    .cta h1 {
        margin-bottom: 10px;
        line-height: 1;
        overflow: visible;
    }

    #testimonials {
        grid-template-columns: repeat(2, 1fr);
    }

    .testi-div {
        padding: 50px 30px;
    }

    #testimonials .sec-heading {
        padding: 30px;
        font-size: clamp(2.5rem, 4vw, 5rem);
    }

    footer .logo {
        font-size: clamp(5rem, 6vw, 10rem);
        position: static;
        margin-bottom: 20px;
    }

    footer {
        padding: 50px;
    }
}

@media (max-width: 580px) {
    .cta h1 {
        font-size: clamp(3rem, 20vw, 8rem);
    }

    .cta p {
        font-size: clamp(1rem, 5vw, 4rem);
    }

    .container {
        width: 1000vw;
    }

    #featured-properties .heading a {
        text-align: right;
        width: fit-content;
        display: none;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
        padding: 10px 10px;
    }

    .card-title {
        font-size: clamp(1.8rem, 2vw, 4rem);
        font-weight: 500;
        color: #111;
        margin-bottom: 6px;
        font-family: Helvetica, Arial, sans-serif;
    }

    .card-footer {
        margin-top: 10px;
    }

    .filter-tab {
        padding: 8px 18px;
        border-radius: 6px;
        font-size: 1.4rem;
    }

    .filter-tabs {
        margin-bottom: 20px;
    }

    #why-choose-us {
        padding: 100px 10px;
    }

    .trust-icons {
        width: 100%;
        gap: 20px;
        justify-content: space-around;
        text-align: center;
    }

    .trusted-badge {
        font-size: 1.5rem;
        width: 40%;
    }

    #about-me {
        padding: 150px 20px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    #about-me .right-div h3 {
        font-size: 1.3rem;
        font-family: Helvetica, Arial, sans-serif;
        margin-top: 0;
    }

    #about-me {
        padding: 50px 20px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    #about-me div {
        width: 100%;
    }

    #about-me .right-div h3 {
        margin-bottom: 20px;
    }

    #about-me .right-div div {
        gap: 20px;
    }

    #hero-section {
        height: 65vh;
    }
}

@media (max-width: 430px) {
    #featured-properties .heading {
        margin-top: 20px;
    }

    .grid-wrapper {
        margin-top: 0;
        padding: 0;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
        padding: 10px 0;
        gap: 0px;
        padding-bottom: 0;
    }

    .card {
        padding: 5px;
        box-shadow: none;
        border-radius: 0;
    }

    .card-img {
        height: 170px;
    }

    .card-title {
        font-size: clamp(1.5rem, 2vw, 4rem);
    }

    .card-footer .main-button {
        font-size: 1.2rem;
        font-weight: 700;
        padding: 10px 20px;
    }

    .card-body {
        padding-bottom: 0;
    }

    .price {
        font-size: clamp(1.5rem, 2.2vw, 4.3rem);
    }

    #image-slideshows .trail-hint {
        text-align: center;
    }

    #shop-by-categories {
        margin: 30px 0;
    }

    .trusted-badge {
        font-size: 1.2rem;
        width: 45%;
        overflow: visible;
    }

    .trusted-badge img {
        width: 20%;
    }

    .trusted-badge div {
        width: 80%;
    }

    #testimonials {
        grid-template-columns: 1fr;
    }

    .testi-div {
        padding: 30px 40px;
        padding-bottom: 80px;
    }

    #testimonials .sec-heading {
        background-color: rgb(214, 214, 214);
        border: 2px white solid;
        font-weight: 600;
    }

    footer .logo {
        font-size: clamp(3rem, 6vw, 10rem);
        position: static;
        margin-bottom: 20px;
    }

    #featured-properties .heading {
        padding: 0 10px;
    }

    .card-location {
        width: 100%;
    }

    .card-location div {
        width: 10%;
    }

    .card-location img {
        width: 100%;
        height: auto;
        display: block;
    }

    .card-location h3 {
        width: 80%;
        font-weight: 500;
        font-size: clamp(1rem, 1.5vw, 1.3rem);
    }

    .footer-info {
        flex-direction: column;
    }

    #hero-section {
        padding: 0 10px;
    }

    .cta {
        padding: 0 25px;
    }

    nav {
        padding: 15px 10px;
    }

}