/* ========================================
   Las Brisas - Stylesheet
   Habitat Realty Group
   ======================================== */

/* ========== CSS RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========== CUSTOM PROPERTIES ========== */
:root {
    --color-primary: #1a3a52;
    --color-primary-light: #2d5570;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-border: #e5e5e5;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    --container-max: 1440px;
    --sidebar-width: 380px;
    --nav-height: 80px;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav__container {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo-img {
    height: 40px;
    width: auto;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav__menu-btn {
    display: none; /* Mobile only */
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.nav__menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-smooth);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--full {
    width: 100%;
}

.btn--small {
    padding: 10px 24px;
    font-size: 14px;
}

.btn--large {
    padding: 18px 48px;
    font-size: 16px;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    margin-top: var(--nav-height);
    overflow: hidden;
}

.hero__image {
    position: absolute;
    inset: 0;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero__content {
    position: relative;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 80px;
    z-index: 10;
}

.hero__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-white);
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero__title {
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero__subtitle {
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 24px;
    opacity: 0.95;
}

.hero__location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--color-white);
    opacity: 0.9;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero__scroll-indicator {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    animation: scrollIndicator 2s ease-in-out infinite;
}

@keyframes scrollIndicator {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========== MAIN LAYOUT (Sidebar + Content) ========== */
.main-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 80px;
    align-items: start;
}

/* ========== SIDEBAR (Sticky) ========== */
.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
    order: 2;
}

.sidebar__content {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px;
}

.sidebar__section {
    margin-bottom: 24px;
}

.sidebar__title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.sidebar__price {
    font-size: 36px;
    font-weight: 300;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.sidebar__value {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text);
}

.sidebar__divider {
    height: 1px;
    background: var(--color-border);
    margin: 32px 0;
}

.sidebar__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.sidebar__contact:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
}

/* ========== MAIN CONTENT ========== */
.content {
    order: 1;
}

/* ========== SECTIONS ========== */
.section {
    margin-bottom: 120px;
}

.section--dark {
    background: var(--color-bg-light);
    margin-left: -40px;
    margin-right: calc(-1 * var(--sidebar-width) - 120px);
    padding: 80px 40px;
    border-radius: 8px;
}

.section--cta {
    margin-bottom: 0;
}

.section__header {
    margin-bottom: 48px;
}

.section__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section__description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.section__description strong {
    color: var(--color-text);
    font-weight: 500;
}

/* ========== FEATURES GRID ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    padding: 32px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border-radius: 8px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.feature-card__text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ========== GALLERY ========== */
.gallery {
    display: grid;
    gap: 16px;
}

.gallery__main {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery__main:hover img {
    transform: scale(1.05);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.gallery__item {
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery__item:hover img {
    transform: scale(1.08);
}

/* ========== FLOOR PLANS ========== */
.plan-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}

.plan-filter {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.plan-filter:hover {
    color: var(--color-text);
}

.plan-filter.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.plan-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.plan-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.plan-card__image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.plan-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plan-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 20px;
}

.plan-card__content {
    padding: 24px;
}

.plan-card__title {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
}

.plan-card__type {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.plan-card__specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.spec {
    display: flex;
    flex-direction: column;
}

.spec__label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.spec__value {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
}

.plan-card__price {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.price__label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
}

.price__value {
    font-size: 28px;
    font-weight: 300;
    color: var(--color-primary);
}

/* ========== LOCATION ========== */
.location {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}

.location__map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.location__map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location__text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.poi-list__title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 20px;
}

.poi {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.poi svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.poi__info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poi__name {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}

.poi__distance {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ========== PAYMENT PLAN ========== */
.payment-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.payment-step {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-bg-light);
    border-radius: 8px;
}

.payment-step__number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    border-radius: 50%;
}

.payment-step__title {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.payment-step__amount {
    font-size: 28px;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.payment-step__description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
}

.payment-note {
    text-align: center;
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-text-light);
}

/* ========== CTA SECTION ========== */
.cta {
    text-align: center;
    padding: 80px 40px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 8px;
}

.cta__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    margin-bottom: 16px;
}

.cta__text {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta .btn--primary {
    background: var(--color-white);
    color: var(--color-primary);
}

.cta .btn--primary:hover {
    background: var(--color-bg-light);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 60px 40px 32px;
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.footer__text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer__link {
    margin-bottom: 12px;
}

.footer__link a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.footer__link a:hover {
    color: var(--color-white);
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.footer__social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer__bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-white);
    border-radius: 12px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.modal__close:hover {
    color: var(--color-text);
    background: var(--color-bg-light);
    border-radius: 50%;
}

.modal__title {
    font-size: 28px;
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: 12px;
}

.modal__text {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

/* ========== FORM ========== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 2px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .sidebar {
        order: 1;
        position: static;
    }
    
    .content {
        order: 2;
    }
    
    .section--dark {
        margin-right: -40px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .nav__container {
        padding: 0 24px;
    }
    
    .nav__menu-btn {
        display: flex;
    }
    
    .nav__actions .btn {
        display: none;
    }
    
    .main-layout {
        padding: 60px 24px;
    }
    
    .section--dark {
        margin-left: -24px;
        margin-right: -24px;
        padding: 60px 24px;
    }
    
    .hero__content {
        padding: 0 24px 60px;
    }
    
    .hero__scroll {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .location {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-plan {
        grid-template-columns: 1fr;
    }
    
    .modal__content {
        padding: 32px 24px;
    }
}
