/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: #191919;
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 50px));
    margin: auto;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 25px 0;
    transition: all .3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    flex-direction: column;
    color: #ffffff;
    line-height: 1;
}

.logo-main {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    font-weight: 600;
}

.logo-sub {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 6px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    position: relative;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    transition: .3s;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: .3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-contact {
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.6);
    padding: 11px 18px;
    font-size: 12px;
    transition: .3s;
}

.header-contact:hover {
    background: #ffffff;
    color: #151515;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: #fff;
    margin: 5px auto;
}


/* =====================================================
   MOBILE MENU
===================================================== */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: #151515;
    z-index: 999;
    transform: translateX(100%);
    transition: .4s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-inner {
    padding: 30px;
}

.mobile-menu-close {
    border: 0;
    background: none;
    color: #fff;
    font-size: 38px;
    float: right;
    cursor: pointer;
}

.mobile-menu nav {
    clear: both;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-menu nav a {
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: 28px;
}

.mobile-contact {
    display: inline-block;
    margin-top: 40px;
    color: #fff;
    border: 1px solid #fff;
    padding: 13px 25px;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 720px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #151515;
}

.hero-background {
    position: absolute;
    inset: 0;

    background-image:
        url("../images/hero.jpg");

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.75) 0%,
            rgba(0,0,0,.40) 55%,
            rgba(0,0,0,.20) 100%
        );
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    color: #fff;
    padding-top: 80px;
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 25px;
    opacity: .85;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(55px, 7vw, 96px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -3px;
}

.hero h1 span {
    display: block;
    font-style: italic;
}

.hero p {
    max-width: 500px;
    margin: 30px 0;
    font-size: 16px;
    color: rgba(255,255,255,.82);
}

.hero-buttons {
    display: flex;
    gap: 12px;
}


/* =====================================================
   BUTTONS
===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: .3s;
}

.btn-primary {
    background: #ffffff;
    color: #151515;
}

.btn-primary:hover {
    background: #151515;
    color: #fff;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.7);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #151515;
}

.btn-dark {
    background: #151515;
    color: #fff;
}

.btn-dark:hover {
    background: #333;
}

.btn-light {
    background: #fff;
    color: #151515;
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,.6);
    color: #fff;
}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

.section-padding {
    padding: 110px 0;
}

.section-label {
    display: block;
    color: #8b7355;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.section-heading h2,
.why-content h2,
.testimonial-heading h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.1;
}

.section-heading p {
    margin-top: 15px;
    color: #777;
    max-width: 550px;
}

.text-link {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.text-link span {
    font-size: 20px;
    transition: .3s;
}

.text-link:hover span {
    transform: translateX(5px);
}


/* =====================================================
   PROPERTY GRID
===================================================== */

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.property-card {
    background: #fff;
}

.property-image {
    position: relative;
    height: 330px;
    overflow: hidden;
    background: #eee;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.property-badges span {
    background: #fff;
    padding: 6px 9px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.property-arrow {
    position: absolute;
    right: 15px;
    bottom: 15px;

    width: 42px;
    height: 42px;

    border: 0;
    background: #fff;
    font-size: 18px;

    cursor: pointer;
    transition: .3s;
}

.property-card:hover .property-arrow {
    background: #151515;
    color: #fff;
}

.property-content {
    padding: 22px 0 10px;
}

.property-price {
    color: #8b7355;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.property-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 500;
}

.property-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: #777;
    font-size: 12px;
    margin-top: 10px;
}

.property-location {
    color: #999;
    font-size: 12px;
    margin-top: 7px;
}


/* =====================================================
   WHY THREE PIN
===================================================== */

.why-section {
    background: #f4f1ed;
}

.why-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.why-content h2 {
    max-width: 450px;
}

.why-content h2 span {
    display: block;
    font-style: italic;
}

.why-content p {
    color: #686868;
    max-width: 500px;
    margin: 25px 0 35px;
}

.why-image {
    height: 580px;
    overflow: hidden;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =====================================================
   STATS
===================================================== */

.stats-section {
    background: #151515;
    color: #fff;
    padding: 75px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    padding: 15px;
    border-right: 1px solid rgba(255,255,255,.15);
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 500;
}

.stat-item span {
    color: rgba(255,255,255,.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


/* =====================================================
   TESTIMONIAL
===================================================== */

.testimonial-heading {
    text-align: center;
    margin-bottom: 50px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonial-card {
    background: #f5f3f0;
    padding: 40px;
}

.quote-mark {
    font-family: "Playfair Display", serif;
    font-size: 55px;
    line-height: .7;
    color: #8b7355;
}

.testimonial-card > p {
    font-family: "Playfair Display", serif;
    font-size: 19px;
    line-height: 1.5;
    margin: 25px 0 35px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #151515;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
}

.testimonial-author strong {
    display: block;
    font-size: 12px;
}

.testimonial-author span {
    color: #999;
    font-size: 11px;
}


/* =====================================================
   CTA
===================================================== */

.cta-section {
    padding: 0 0 110px;
}

.cta-box {
    position: relative;
    min-height: 500px;

    background:
        linear-gradient(
            rgba(0,0,0,.5),
            rgba(0,0,0,.6)
        ),
        url("../images/cta.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    padding: 70px;
}

.cta-content {
    color: #fff;
    max-width: 650px;
}

.cta-content h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 6vw, 70px);
    line-height: 1;
    font-weight: 500;
}

.cta-content h2 span {
    display: block;
    font-style: italic;
}

.cta-content p {
    max-width: 500px;
    color: rgba(255,255,255,.75);
    margin: 25px 0;
}

.cta-buttons {
    display: flex;
    gap: 12px;
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    background: #111;
    color: #fff;
}

.footer-main {
    padding: 80px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-logo {
    display: inline-flex;
    flex-direction: column;
    font-family: "Playfair Display", serif;
    font-size: 28px;
    line-height: 1;
}

.footer-logo small {
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 8px;
}

.footer-brand p {
    color: #888;
    font-size: 13px;
    max-width: 340px;
    margin: 25px 0;
}

.footer-trust {
    font-size: 11px;
    color: #bbb;
}

.footer-column h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 11px;
}

.footer-column a,
.footer-column p {
    color: #888;
    font-size: 12px;
    transition: .3s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-contact > a {
    display: block;
    margin-bottom: 10px;
}

.footer-contact p {
    margin-top: 15px;
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 25px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border: 1px solid #444;
    display: grid;
    place-items: center;
    color: #aaa;
    font-size: 9px;
}

.footer-bottom {
    border-top: 1px solid #292929;
    padding: 22px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p,
.footer-bottom a {
    color: #666;
    font-size: 10px;
}

.footer-bottom-inner > div {
    display: flex;
    gap: 20px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .header-contact {
        display: none;
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .container {
        width: min(100% - 32px, 1180px);
    }

    .site-header {
        padding: 18px 0;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 680px;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 55px;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        min-height: 46px;
    }

    .section-padding {
        padding: 75px 0;
    }

    .section-heading {
        display: block;
        margin-bottom: 35px;
    }

    .section-heading .text-link {
        margin-top: 25px;
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .property-image {
        height: 300px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-image {
        height: 420px;
        order: -1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 0;
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item strong {
        font-size: 38px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 30px;
    }

    .cta-section {
        padding-bottom: 75px;
    }

    .cta-box {
        min-height: 500px;
        padding: 40px 25px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-main {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
    }

    .footer-bottom-inner > div {
        flex-direction: column;
        gap: 8px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 46px;
    }

    .logo-main {
        font-size: 23px;
    }

    .property-image {
        height: 260px;
    }

    .why-image {
        height: 350px;
    }

}

/* =====================================================
   404 ERROR PAGE
===================================================== */

.error-page {
    min-height: 100vh;
    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #171717;
    color: #fff;
}

.error-bg {
    position: absolute;
    inset: 0;

    background-image: url("../images/404-bg.jpg");

    background-size: cover;
    background-position: center;
}

.error-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .82) 0%,
            rgba(0, 0, 0, .60) 50%,
            rgba(0, 0, 0, .35) 100%
        );
}

.error-page .container {
    position: relative;
    z-index: 2;
}

.error-content {
    max-width: 650px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.error-label {
    display: block;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 4px;

    color: rgba(255,255,255,.75);

    margin-bottom: 15px;
}

.error-number {
    font-family: "Playfair Display", serif;

    font-size: clamp(120px, 18vw, 220px);

    font-weight: 500;

    line-height: .85;

    letter-spacing: -10px;

    color: #fff;

    margin-left: -10px;

    opacity: .95;
}

.error-content h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(40px, 5vw, 65px);

    font-weight: 500;

    line-height: 1.05;

    margin-top: 35px;
}

.error-content p {
    max-width: 500px;

    color: rgba(255,255,255,.72);

    font-size: 15px;

    line-height: 1.8;

    margin: 25px 0 35px;
}

.error-buttons {
    display: flex;
    gap: 12px;
}

.error-buttons .btn {
    min-width: 170px;
}


/* =====================================================
   404 MOBILE
===================================================== */

@media (max-width: 767px) {

    .error-page {
        min-height: 100svh;
    }

    .error-content {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .error-number {
        font-size: 120px;
        letter-spacing: -6px;
    }

    .error-content h1 {
        font-size: 42px;
        margin-top: 25px;
    }

    .error-content p {
        font-size: 14px;
    }

    .error-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .error-buttons .btn {
        width: 100%;
        max-width: 230px;
    }

}


@media (max-width: 420px) {

    .error-number {
        font-size: 100px;
    }

    .error-content h1 {
        font-size: 36px;
    }

}