/* =========================================================
   ALEVRA — PRIVATE RESIDENCES
   Main Stylesheet
========================================================= */


/* =========================================================
   01. RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    background: #f4f1eb;
    color: #171714;
    overflow-x: hidden;
}

body,
button,
a {
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   02. VARIABLES
========================================================= */

:root {
    --background: #f4f1eb;
    --dark: #171714;
    --muted: #77736b;
    --light: #ffffff;
    --line: rgba(23, 23, 20, 0.18);

    --serif: "Cormorant Garamond", serif;
    --sans: "Inter", sans-serif;

    --container: 1320px;
}


/* =========================================================
   03. GLOBAL
========================================================= */

.section {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    padding: 150px 0;
}

.eyebrow {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-number {
    display: flex;
    align-items: center;
    gap: 16px;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-number span:first-child {
    color: var(--muted);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 100px;
}

.section-heading h2,
.intro-content h2,
.experience-intro h2,
.location-content h2,
.availability-content h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(60px, 7vw, 110px);
    line-height: 0.88;
    letter-spacing: -0.04em;
}

em {
    font-style: italic;
    font-weight: 400;
}


/* =========================================================
   04. HEADER
========================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;

    width: 100%;
    padding: 30px 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: white;
}

.logo {
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: 0.16em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;

    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.main-nav a {
    position: relative;
}

.main-nav a:not(.nav-cta)::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: currentColor;

    transition: width 0.4s ease;
}

.main-nav a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 13px 20px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.nav-cta:hover {
    background: white;
    color: var(--dark);
}

.menu-toggle {
    display: none;

    background: none;
    border: none;

    width: 35px;
    height: 25px;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 1px;

    background: white;

    margin: 7px 0;
}


/* =========================================================
   05. HERO
========================================================= */

.hero {
    position: relative;

    min-height: 100svh;

    display: flex;
    align-items: center;

    color: white;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.20),
            rgba(0, 0, 0, 0.35)
        ),
        url("../assets/images/alevra\ villa\ hero.jpg")
        center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.20),
            transparent 35%,
            rgba(0, 0, 0, 0.35)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;

    padding-top: 100px;
    padding-left: 48%;
}

.hero-content h1 {
    max-width: 900px;

    margin: 25px 0 30px;

    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(70px, 8vw, 125px);
    line-height: 0.78;
    letter-spacing: -0.055em;
}

.hero-description {
    max-width: 390px;

    font-size: 14px;
    line-height: 1.7;

    opacity: 0.9;
}

.hero-button,
.availability-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 40px;

    padding: 17px 27px;

    border: 1px solid rgba(255, 255, 255, 0.7);

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    transition:
        background 0.35s ease,
        color 0.35s ease;
}

.hero-button:hover,
.availability-button:hover {
    background: white;
    color: var(--dark);
}

.hero-scroll {
    position: absolute;
    z-index: 2;

    bottom: 35px;
    right: 50px;

    display: flex;
    align-items: center;
    gap: 15px;

    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    transform: rotate(-90deg);
    transform-origin: right center;
}

.scroll-line {
    width: 60px;
    height: 1px;

    background: rgba(255, 255, 255, 0.7);
}


/* =========================================================
   06. INTRO
========================================================= */

.intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.intro-content {
    max-width: 850px;
}

.intro-content h2 {
    margin-bottom: 55px;
}

.intro-content p {
    max-width: 520px;

    margin-left: auto;
    margin-right: 10%;

    font-size: 15px;
    line-height: 1.9;
    color: #55524c;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;

    margin-top: 45px;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.text-link span {
    font-size: 18px;

    transition: transform 0.3s ease;
}

.text-link:hover span {
    transform: translateX(7px);
}


/* =========================================================
   07. VILLAS
========================================================= */

.villas {
    padding-top: 100px;
}

.villa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px 50px;
}

.villa-card {
    min-width: 0;
}

.villa-card-offset {
    margin-top: 180px;
}

.villa-image {
    position: relative;

    width: 100%;
    aspect-ratio: 0.78;

    background-position: center;
    background-size: cover;

    overflow: hidden;
}

.villa-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.06);

    transition: background 0.5s ease;
}

.villa-card:hover .villa-image::after {
    background: rgba(0, 0, 0, 0);
}

.villa-image-01 {
    background-image: url("../assets/images/villa-01.jpg");
}

.villa-image-02 {
    background-image: url("../assets/images/villa-02.jpg");
}

.villa-image-03 {
    background-image: url("../assets/images/villa-03.jpg");
}

.villa-number {
    position: absolute;
    z-index: 2;

    top: 25px;
    left: 25px;

    color: white;

    font-size: 10px;
    letter-spacing: 0.15em;
}

.villa-info {
    position: absolute;
    z-index: 2;

    bottom: 25px;
    left: 25px;

    display: flex;
    gap: 20px;

    color: white;

    font-size: 9px;
    letter-spacing: 0.15em;
}

.villa-details {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 25px 0;

    border-bottom: 1px solid var(--line);
}

.villa-details h3 {
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 400;
}

.villa-details p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
    letter-spacing: 0.05em;
}

.circle-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    border: 1px solid var(--line);
    border-radius: 50%;

    font-size: 18px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.circle-arrow:hover {
    background: var(--dark);
    color: white;
}


/* =========================================================
   08. EXPERIENCE
========================================================= */

.experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;

    padding-top: 180px;
}

.experience-intro p {
    max-width: 430px;

    margin-top: 60px;

    font-size: 14px;
    line-height: 1.9;
    color: var(--muted);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;

    border-top: 1px solid var(--line);
}

.experience-item {
    min-height: 260px;

    padding: 30px;

    border-bottom: 1px solid var(--line);
}

.experience-item:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.experience-index {
    display: block;

    margin-bottom: 70px;

    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.experience-item h3 {
    margin-bottom: 12px;

    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
}

.experience-item p {
    max-width: 220px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   09. FEATURE IMAGE
========================================================= */

.feature-image {
    position: relative;

    min-height: 90vh;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    background:
        url("../assets/images/feature.jpg")
        center / cover no-repeat;
}

.feature-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.3);
}

.feature-content {
    position: relative;
    z-index: 2;

    text-align: center;
}

.feature-content p {
    margin-bottom: 25px;

    font-size: 9px;
    letter-spacing: 0.22em;
}

.feature-content h2 {
    font-family: var(--serif);
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: -0.04em;
}


/* =========================================================
   10. GALLERY
========================================================= */

.gallery-grid {
    display: grid;

    grid-template-columns: 1.4fr 0.8fr;
    grid-template-rows: 420px 300px;

    gap: 20px;
}

.gallery-item {
    background-position: center;
    background-size: cover;
}

.gallery-large {
    grid-row: span 2;
    background-image: url("/assets/images/villa-gallery-01.jpg");
}

.gallery-small:nth-child(2) {
    background-image: url("/assets/images/villa-gallery-02.jpg");
}

.gallery-small:nth-child(3) {
    background-image: url("/assets/images/villa-gallery-03.jpg");
}

.gallery-wide {
    grid-column: 1 / -1;
    background-image: url("/assets/images/villa-gallery-04.jpg");
    min-height: 500px;
}

/* =========================================================
   11. LOCATION
========================================================= */

.location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;

    padding-bottom: 180px;
}

.location-content p {
    max-width: 450px;

    margin-top: 55px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.9;
}

.location-details {
    align-self: end;

    border-top: 1px solid var(--line);
}

.location-details div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 25px 0;

    border-bottom: 1px solid var(--line);
}

.location-details span {
    font-size: 9px;
    letter-spacing: 0.18em;
}

.location-details strong {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
}


/* =========================================================
   12. AVAILABILITY
========================================================= */

.availability {
    min-height: 80vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 40px;

    background: var(--dark);
    color: white;

    text-align: center;
}

.availability-content h2 {
    margin-top: 30px;
}

.availability-button {
    border-color: rgba(255, 255, 255, 0.6);
}


/* =========================================================
   13. FOOTER
========================================================= */

.site-footer {
    padding: 80px 50px 30px;

    background: var(--dark);
    color: white;
}

.footer-top {
    display: flex;
    justify-content: space-between;

    padding-bottom: 100px;
}

.footer-brand h2 {
    font-family: var(--serif);
    font-size: 50px;
    font-weight: 400;
    letter-spacing: 0.12em;
}

.footer-brand p {
    margin-top: 20px;

    color: #99958d;

    font-size: 11px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 120px;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-links span {
    margin-bottom: 10px;

    color: #77736b;

    font-size: 9px;
    letter-spacing: 0.18em;
}

.footer-links a {
    font-size: 11px;

    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;

    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    color: #77736b;

    font-size: 9px;
    letter-spacing: 0.05em;
}


/* =========================================================
   14. RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

    .section {
        width: min(100% - 50px, var(--container));
        padding: 110px 0;
    }

    .site-header {
        padding: 25px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        width: calc(100% - 50px);
    }

    .hero-scroll {
        display: none;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .intro-content p {
        margin-left: 0;
        margin-right: 0;
    }

    .villa-grid {
        gap: 60px 25px;
    }

    .villa-card-offset {
        margin-top: 100px;
    }

    .experience {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .location {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .footer-links {
        gap: 60px;
    }
}


/* =========================================================
   15. RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {

    .section {
        width: calc(100% - 36px);
        padding: 90px 0;
    }

    .site-header {
        padding: 22px 18px;
    }

    .logo {
        font-size: 24px;
    }

    .hero-content {
        width: calc(100% - 36px);
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: clamp(65px, 19vw, 105px);
    }

    .hero-description {
        max-width: 290px;
        font-size: 13px;
    }

    .section-heading {
        display: block;
        margin-bottom: 65px;
    }

    .section-heading h2 {
        margin-top: 35px;
        font-size: 65px;
    }

    .intro-content h2,
    .experience-intro h2,
    .location-content h2 {
        font-size: 65px;
    }

    .villa-grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .villa-card-offset {
        margin-top: 0;
    }

    .villa-image {
        aspect-ratio: 0.82;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-item:nth-child(odd) {
        border-right: none;
    }

    .experience-item {
        min-height: 230px;
    }

    .gallery-grid {
        display: grid;

        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 350px);

        gap: 12px;
    }

    .gallery-large {
        grid-row: auto;
    }

    .gallery-wide {
        grid-column: auto;
    }

    .feature-image {
        min-height: 75vh;
    }

    .feature-content h2 {
        font-size: 70px;
    }

    .location {
        gap: 60px;
    }

    .availability {
        min-height: 70vh;
    }

    .availability-content h2 {
        font-size: 70px;
    }

    .site-footer {
        padding: 65px 20px 25px;
    }

    .footer-top {
        flex-direction: column;
        gap: 70px;
        padding-bottom: 70px;
    }

    .footer-links {
        gap: 60px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }
}

/* =========================================================
   JAVASCRIPT ANIMATIONS
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}




/* =========================================================
   MOBILE MENU
========================================================= */

@media (max-width: 900px) {

    .main-nav {
        position: fixed;

        top: 0;
        right: 0;

        width: 100%;
        height: 100svh;

        padding: 120px 30px 40px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        gap: 30px;

        background: #171714;

        transform: translateX(100%);

        transition: transform 0.45s ease;
    }

    .main-nav.menu-open {
        transform: translateX(0);
    }

    .main-nav a {
        color: white;

        font-family: var(--serif);
        font-size: 42px;
        font-weight: 400;

        letter-spacing: -0.02em;
        text-transform: none;
    }

    .main-nav .nav-cta {
        margin-top: 20px;

        font-family: var(--sans);
        font-size: 10px;
        letter-spacing: 0.15em;
        text-transform: uppercase;
    }

    .menu-toggle {
        position: relative;
        z-index: 101;
    }

    .menu-toggle.active span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-toggle.active span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .menu-toggle span {
        transition: transform 0.3s ease;
    }

}

/* =========================================================
   AVAILABILITY MODAL
========================================================= */

.availability-trigger {
    cursor: pointer;
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    appearance: none;
    -webkit-appearance: none;
}

.availability-modal {
    position: fixed;
    inset: 0;

    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(15, 15, 13, 0.75);

    backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

.availability-modal.active {
    opacity: 1;
    visibility: visible;
}

.availability-modal-inner {
    position: relative;

    width: min(900px, 100%);

    max-height: 90vh;
    overflow-y: auto;

    padding: 70px;

    background: var(--background);
    color: var(--dark);

    transform: translateY(30px);

    transition: transform 0.5s ease;
}

.availability-modal.active .availability-modal-inner {
    transform: translateY(0);
}

.modal-close {
    position: absolute;

    top: 25px;
    right: 30px;

    width: 42px;
    height: 42px;

    border: 1px solid var(--line);
    border-radius: 50%;

    background: transparent;

    font-size: 24px;
    font-weight: 300;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.modal-close:hover {
    background: var(--dark);
    color: white;
}

.modal-heading h2 {
    margin-top: 25px;

    font-family: var(--serif);
    font-size: clamp(60px, 7vw, 100px);
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: -0.04em;
}

.availability-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;

    margin-top: 70px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.18em;
}

.form-field input,
.form-field select {
    width: 100%;

    height: 58px;

    padding: 0 15px;

    border: 1px solid var(--line);

    background: transparent;

    color: var(--dark);

    font-family: var(--sans);
    font-size: 12px;
    font-weight: 300;

    outline: none;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--dark);
}

.availability-submit {
    grid-column: 1 / -1;

    height: 60px;

    margin-top: 15px;

    border: none;

    background: var(--dark);
    color: white;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    transition:
        background 0.3s ease,
        gap 0.3s ease;
}

.availability-submit:hover {
    background: #34342f;
    gap: 35px;
}


/* =========================================================
   AVAILABILITY RESULTS
========================================================= */

.availability-results {
    display: none;

    margin-top: 50px;

    border-top: 1px solid var(--line);
}

.availability-results.visible {
    display: block;
}

.result-heading {
    padding: 30px 0 20px;

    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
}

.result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 0;

    border-top: 1px solid var(--line);
}

.result-card-info h3 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
}

.result-card-info p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 10px;
    letter-spacing: 0.06em;
}

.result-status {
    color: #596451;

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.result-request {
    padding: 12px 18px;

    border: 1px solid var(--line);

    background: transparent;

    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.result-request:hover {
    background: var(--dark);
    color: white;
}


/* =========================================================
   MODAL MOBILE
========================================================= */

@media (max-width: 700px) {

    .availability-modal {
        padding: 12px;
    }

    .availability-modal-inner {
        padding: 60px 25px 35px;

        max-height: 94vh;
    }

    .availability-form {
        grid-template-columns: 1fr;

        margin-top: 50px;
    }

    .availability-submit {
        grid-column: auto;
    }

    .result-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

}

.location-region {
    margin-top: 42px;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #171714;
}

.location-distances {
    width: 100%;
}

.location-distance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    border-top: 1px solid rgba(23, 23, 20, 0.18);
}

.location-distance:last-child {
    border-bottom: 1px solid rgba(23, 23, 20, 0.18);
}

.location-distance span {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.location-distance strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 400;
}

.location-region {
    margin-top: 42px;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #171714;
}

@media (max-width: 768px) {

    .hero {
        padding-left: 0;
    }

    .hero-content {
        width: 100%;
        max-width: none;
        margin-left: 0;
        padding: 0 30px;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(58px, 16vw, 78px);
        line-height: 0.9;
    }

    .hero-description {
        max-width: 330px;
    }

}