/* =========================================
   CASA SAN ANDRÉS
   ========================================= */

:root {
    --cream: #f5efe6;
    --cream-light: #fbf8f3;
    --terracotta: #b66b50;
    --terracotta-dark: #8e4e3b;
    --olive: #59614b;
    --olive-dark: #414735;
    --brown: #43362e;
    --text: #443a34;
    --white: #ffffff;
    --border: #ded5ca;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--cream-light);
    line-height: 1.7;
}


img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


a {
    color: inherit;
    text-decoration: none;
}


.container {
    width: min(1180px, 90%);
    margin: auto;
}


/* =========================================
   HEADER
   ========================================= */

.header {
    background: var(--cream-light);
    border-bottom: 1px solid rgba(67,54,46,.1);
    position: relative;
    z-index: 10;
}


.nav {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--brown);
}


.logo span {
    display: block;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: "DM Sans", sans-serif;
    color: var(--terracotta);
}


.nav nav {
    display: flex;
    align-items: center;
    gap: 32px;
}


.nav nav a {
    font-size: 14px;
    font-weight: 600;
}


.nav-button {
    background: var(--terracotta);
    color: white !important;
    padding: 11px 22px;
    border-radius: 30px;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 690px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}


.hero-image {
    position: absolute;
    inset: 0;
}


.hero-image img {
    object-position: center;
}


.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(45,34,28,.78) 0%,
            rgba(45,34,28,.48) 48%,
            rgba(45,34,28,.08) 100%
        );
}


.hero-content {
    position: relative;
    color: white;
    padding-top: 70px;
    padding-bottom: 70px;
}


.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #f2d5c8;
}


.eyebrow.dark {
    color: var(--terracotta);
}


.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(52px, 7vw, 88px);
    line-height: 1.02;
    max-width: 750px;
    font-weight: 600;
}


.hero p {
    font-size: 18px;
    max-width: 590px;
    margin: 28px 0;
    color: rgba(255,255,255,.9);
}


.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 4px;
    font-weight: 700;
    transition: .25s ease;
}


.btn-primary {
    background: var(--terracotta);
    color: white;
}


.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
}


.btn-light {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.6);
    color: white;
}


.btn-light:hover {
    background: white;
    color: var(--brown);
}


/* =========================================
   INTRO
   ========================================= */

.intro {
    padding: 110px 0;
    background: var(--cream-light);
}


.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}


h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    color: var(--brown);
    font-weight: 600;
}


h2 span {
    color: var(--terracotta);
    display: block;
}


.intro-text {
    font-size: 17px;
}


.intro-text p + p {
    margin-top: 18px;
}


/* =========================================
   FEATURES
   ========================================= */

.features {
    background: var(--olive);
    color: white;
    padding: 60px 0;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 35px;
}


.feature {
    border-right: 1px solid rgba(255,255,255,.18);
    padding-right: 30px;
}


.feature:last-child {
    border-right: 0;
}


.feature-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-weight: 700;
}


.feature h3 {
    font-family: "Playfair Display", serif;
    font-size: 23px;
    margin-bottom: 7px;
}


.feature p {
    font-size: 14px;
    opacity: .8;
}


/* =========================================
   SPACES
   ========================================= */

.spaces {
    padding: 120px 0;
}


.section-heading {
    margin-bottom: 65px;
}


.section-heading.center {
    text-align: center;
}


.space-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
    background: white;
    margin-bottom: 45px;
    box-shadow: 0 15px 50px rgba(60,45,35,.08);
}

.space-card.reverse {
    grid-template-columns: 1fr 1fr;
}

.space-image {
    height: 380px;
    min-height: 0;
}

.space-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.space-content {
    padding: 45px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.space-number {
    color: var(--terracotta);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}


.space-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    line-height: 1.1;
    color: var(--brown);
    margin-bottom: 20px;
}


.space-content p {
    margin-bottom: 25px;
}


.space-content ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}


.space-content li {
    font-size: 14px;
    font-weight: 600;
}


/* =========================================
   AMENITIES
   ========================================= */

.amenities {
    background: var(--brown);
    color: white;
    padding: 120px 0;
}


.amenities h2 {
    color: white;
}


.amenities h2 span {
    color: #d99b82;
}


.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.15);
}


.amenity {
    padding: 35px;
    min-height: 190px;
    background: var(--brown);
}


.amenity span {
    font-size: 12px;
    color: #d99b82;
    font-weight: 700;
}


.amenity h3 {
    font-family: "Playfair Display", serif;
    font-size: 23px;
    margin: 12px 0 5px;
}


.amenity p {
    font-size: 13px;
    opacity: .7;
}


/* =========================================
   GALERIA
   ========================================= */

.gallery {
    padding: 120px 0;
    background: var(--cream);
}


.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 240px;
    gap: 14px;
}


.gallery-item {
    overflow: hidden;
}


.gallery-item.large {
    grid-row: span 2;
}


.gallery-item img {
    transition: transform .5s ease;
}


.gallery-item:hover img {
    transform: scale(1.04);
}


/* =========================================
   SEGURIDAD
   ========================================= */

.security {
    padding: 100px 0;
    background: var(--olive);
    color: white;
}


.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}


.security h2 {
    color: white;
}


.security h2 span {
    color: #d5b39e;
}


.security-text {
    font-size: 17px;
}


.security-text p + p {
    margin-top: 20px;
}


/* =========================================
   CTA
   ========================================= */

.cta {
    position: relative;
    padding: 140px 0;
    background-image: url("images/patio.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}


.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(55,39,31,.72);
}


.cta-content {
    position: relative;
}


.cta h2 {
    color: white;
    max-width: 850px;
    margin: auto;
}


.cta h2 span {
    color: #e1aa91;
}


.cta p {
    max-width: 600px;
    margin: 25px auto 30px;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    background: #302722;
    color: white;
    padding: 45px 0;
}


.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


.footer .logo {
    color: white;
}


.footer p {
    font-size: 13px;
    opacity: .65;
}


.copyright {
    font-size: 11px !important;
}


/* =========================================
   WHATSAPP
   ========================================= */

.whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
    z-index: 100;
}


.whatsapp:hover {
    transform: scale(1.08);
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {

    .nav nav a:not(.nav-button) {
        display: none;
    }

    .hero {
        min-height: 620px;
    }

    .intro-grid,
    .security-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature:nth-child(2) {
        border-right: 0;
    }

    .space-card,
    .space-card.reverse {
        grid-template-columns: 1fr;
    }

    .space-card.reverse .space-image {
        order: 0;
    }

    .space-content {
        padding: 50px 35px;
    }

    .amenities-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
    }

    .gallery-item.large {
        grid-row: span 1;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 600px) {

    .hero-content {
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero p {
        font-size: 16px;
    }

    .intro,
    .spaces,
    .amenities,
    .gallery {
        padding: 75px 0;
    }

    .features-grid,
    .amenities-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.15);
        padding-bottom: 25px;
    }

    .space-image {
        min-height: 320px;
    }

    .space-content h3 {
        font-size: 34px;
    }

    .space-content ul {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-auto-rows: 280px;
    }

    .gallery-item.large {
        grid-row: span 1;
    }

    .cta {
        padding: 100px 0;
    }

}