/* ===================================================================
   CORREA HOUSES - Modern CSS
   Design System: Dark luxury theme with golden accents
   Best Practices: CSS Custom Properties, Fluid Typography, 
   Container Queries ready, Modern Layout (Grid + Flexbox)
   =================================================================== */

/* --- CSS Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --clr-bg: #0a0a0f;
    --clr-bg-alt: #111118;
    --clr-bg-card: #16161f;
    --clr-bg-elevated: #1c1c28;
    --clr-surface: #22222e;
    --clr-border: rgba(255, 255, 255, 0.08);
    --clr-border-hover: rgba(255, 255, 255, 0.15);

    --clr-text: #f0f0f5;
    --clr-text-secondary: #a0a0b0;
    --clr-text-muted: #6a6a7a;

    --clr-primary: #c8a45c;
    --clr-primary-light: #e0c77a;
    --clr-primary-dark: #a88a3e;
    --clr-primary-bg: rgba(200, 164, 92, 0.1);

    --clr-accent: #4ecdc4;
    --clr-whatsapp: #25d366;
    --clr-whatsapp-hover: #1da851;
    --clr-danger: #ef4444;
    --clr-success: #22c55e;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-card: linear-gradient(145deg, var(--clr-bg-card), var(--clr-bg-elevated));

    /* Typography */
    --ff-heading: 'Playfair Display', Georgia, serif;
    --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --fs-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --fs-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --fs-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4rem);
    --fs-hero: clamp(2.75rem, 2rem + 4vw, 5rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-section: clamp(4rem, 3rem + 5vw, 8rem);

    /* Borders */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(200, 164, 92, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max: 1200px;
    --header-height: 4.5rem;
}

/* --- Scroll Behavior --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* --- Container --- */
.container {
    width: min(var(--container-max), 100% - 2rem);
    margin-inline: auto;
}

/* --- Typography Utilities --- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    white-space: nowrap;
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn svg,
.btn i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--clr-bg);
    border-color: var(--clr-primary);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

.btn--outline {
    border-color: var(--clr-border-hover);
    color: var(--clr-text);
    backdrop-filter: blur(8px);
}

.btn--outline:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    background: var(--clr-primary-bg);
}

.btn--whatsapp {
    background: var(--clr-whatsapp);
    color: #fff;
    border-color: var(--clr-whatsapp);
    font-size: var(--fs-lg);
    padding: 1rem 2rem;
}

.btn--whatsapp:hover {
    background: var(--clr-whatsapp-hover);
    border-color: var(--clr-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: var(--fs-xs);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: var(--fs-base);
}

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

/* ===================================================================
   HEADER
   =================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition-base);
    background: transparent;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    z-index: 1001;
}

.logo-img {
    height: 3rem;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(200, 164, 92, 0.2));
    transition: filter var(--transition-base);
}

.nav__logo:hover .logo-img {
    filter: drop-shadow(0 0 12px rgba(200, 164, 92, 0.4));
}

.footer__brand .logo-img {
    height: 2.5rem;
}

.nav__list {
    display: flex;
    gap: var(--space-xl);
}

.nav__link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--clr-text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--clr-primary-light);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-text);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?w=1920&q=80') center/cover no-repeat;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(3px);
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200, 164, 92, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(78, 205, 196, 0.05) 0%, transparent 60%);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero__content {
    position: relative;
    text-align: center;
    padding-top: var(--header-height);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(200, 164, 92, 0.15);
    border: 1px solid rgba(200, 164, 92, 0.35);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--clr-primary-light);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero__badge svg {
    width: 14px;
    height: 14px;
}

.hero__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
    font-size: var(--fs-xl);
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero__subtitle strong {
    color: var(--clr-primary-light);
    font-weight: 700;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-4xl);
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-family: var(--ff-heading);
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--clr-primary-light);
    line-height: 1;
}

.stat__label {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

.stat__divider {
    width: 1px;
    height: 3rem;
    background: var(--clr-border);
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2s ease-in-out infinite;
}

.hero__scroll a {
    color: var(--clr-text-muted);
    transition: color var(--transition-fast);
}

.hero__scroll a:hover {
    color: var(--clr-primary);
}

.hero__scroll svg {
    width: 28px;
    height: 28px;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===================================================================
   SECTIONS
   =================================================================== */
.section {
    padding: var(--space-section) 0;
    position: relative;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: var(--space-4xl);
}

.section__tag {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-primary);
    margin-bottom: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--clr-primary-bg);
    border-radius: var(--radius-full);
    border: 1px solid rgba(200, 164, 92, 0.15);
}

.section__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-3xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section__description {
    font-size: var(--fs-lg);
    color: var(--clr-text-secondary);
    line-height: 1.7;
}

/* ===================================================================
   ABOUT SECTION
   =================================================================== */
.about {
    position: relative;
    background: var(--clr-bg-alt);
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1920&q=80') center/cover no-repeat;
    opacity: 0.08;
    filter: blur(2px);
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.about__card {
    background: var(--gradient-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.about__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.about__card:hover {
    border-color: var(--clr-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about__card:hover::before {
    opacity: 1;
}

.about__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background: var(--clr-primary-bg);
    margin-bottom: var(--space-lg);
}

.about__card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--clr-primary);
}

.about__card h3 {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
}

.about__card p {
    color: var(--clr-text-secondary);
    font-size: var(--fs-sm);
}

/* ===================================================================
   UNITS SECTION
   =================================================================== */
.units__showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* Price Card */
.price-card {
    background: var(--gradient-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 2px;
    background: var(--gradient-primary);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0.3;
}

.price-card__tag {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-bg);
    background: var(--gradient-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.price-card__value {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.price-card__currency {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--clr-primary);
}

.price-card__amount {
    font-family: var(--ff-heading);
    font-size: var(--fs-4xl);
    font-weight: 700;
    color: var(--clr-text);
    line-height: 1;
}

.price-card__period {
    font-size: var(--fs-base);
    color: var(--clr-text-muted);
}

.price-card__note {
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
    margin-bottom: var(--space-xl);
}

.price-card__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.price-card__features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
}

.price-card__features svg {
    width: 18px;
    height: 18px;
    color: var(--clr-success);
    flex-shrink: 0;
}

/* Amenities */
.units__details-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-xl);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.amenity {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.amenity:hover {
    border-color: var(--clr-border-hover);
    background: var(--clr-bg-elevated);
}

.amenity__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: var(--clr-primary-bg);
    flex-shrink: 0;
}

.amenity__icon svg {
    width: 20px;
    height: 20px;
    color: var(--clr-primary);
}

.amenity__info h4 {
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: 2px;
}

.amenity__info p {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
}

/* ===================================================================
   HOW TO SECTION
   =================================================================== */
.how-to {
    background: var(--clr-bg-alt);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
}

.step {
    flex: 1;
    text-align: center;
    padding: var(--space-2xl);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.step:hover {
    border-color: var(--clr-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.step__number {
    font-family: var(--ff-heading);
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.step__content h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step__content p {
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
    line-height: 1.6;
}

.step__connector {
    width: 3rem;
    height: 2px;
    background: var(--clr-border);
    flex-shrink: 0;
}

.how-to__cta {
    text-align: center;
    font-size: var(--fs-base);
    color: var(--clr-text-secondary);
}

.how-to__cta strong {
    color: var(--clr-text);
}

/* ===================================================================
   GALLERY SECTION
   =================================================================== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.gallery__grid--hidden {
    display: none;
    margin-top: var(--space-xl);
}

.gallery__grid--hidden.show {
    display: grid;
}

.gallery__item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery__item--large {
    grid-column: span 2;
    grid-row: span 2;
}

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

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

.gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery__item:hover .gallery__item-overlay {
    opacity: 1;
}

.gallery__item-overlay svg {
    width: 32px;
    height: 32px;
    color: white;
}

.gallery__more {
    text-align: center;
}

/* ===================================================================
   LOCATION SECTION
   =================================================================== */
.location {
    position: relative;
    background: var(--clr-bg-alt);
}

.location::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1600573472592-401b489a3cdc?w=1920&q=80') center/cover no-repeat;
    opacity: 0.06;
    filter: blur(2px);
}

.location__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-3xl);
    align-items: start;
}

.location__address {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
}

.location__address svg {
    width: 24px;
    height: 24px;
    color: var(--clr-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.location__address h3 {
    font-size: var(--fs-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.location__address p {
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
    line-height: 1.6;
}

.location__nearby-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-lg);
}

.location__nearby {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.location__nearby li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.location__nearby li:hover {
    border-color: var(--clr-primary);
    transform: translateX(4px);
}

.nearby__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: var(--clr-primary-bg);
    flex-shrink: 0;
}

.nearby__icon svg {
    width: 18px;
    height: 18px;
    color: var(--clr-primary);
}

.location__nearby strong {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.location__nearby span {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
}

.location__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--clr-border);
}

.location__map iframe {
    display: block;
}

/* ===================================================================
   RULES SECTION
   =================================================================== */
.rules__card {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
    background: var(--gradient-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
}

.rules__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.1);
    margin-inline: auto;
    margin-bottom: var(--space-lg);
}

.rules__icon svg {
    width: 24px;
    height: 24px;
    color: var(--clr-danger);
}

.rules__card h3 {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-2xl);
}

.rules__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.rule {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--clr-bg);
    font-size: var(--fs-sm);
}

.rule svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.rule svg[data-lucide="x-circle"] {
    color: var(--clr-danger);
}

.rule svg[data-lucide="car"] {
    color: var(--clr-primary);
}

.rule svg[data-lucide="check-circle"] {
    color: var(--clr-success);
}

/* ===================================================================
   CTA SECTION
   =================================================================== */
.cta {
    background: var(--clr-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80') center/cover no-repeat;
    filter: blur(6px);
    transform: scale(1.05);
}

.cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.82);
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.cta__subtitle {
    font-size: var(--fs-xl);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2xl);
}

.cta__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-2xl);
}

.cta__price span {
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta__price strong {
    font-family: var(--ff-heading);
    font-size: var(--fs-4xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta__price small {
    font-size: 0.5em;
}

.cta__actions {
    margin-bottom: var(--space-lg);
}

.cta__note {
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
    font-style: italic;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
    background: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer__brand p {
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
    margin-top: var(--space-md);
    line-height: 1.7;
    max-width: 350px;
}

.footer__links h4,
.footer__contact h4 {
    font-size: var(--fs-base);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--clr-text);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__links a {
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--clr-primary);
}

.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
}

.footer__contact svg {
    width: 16px;
    height: 16px;
    color: var(--clr-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer__contact a {
    color: var(--clr-text-secondary);
}

.footer__contact a:hover {
    color: var(--clr-primary);
}

.footer__bottom {
    border-top: 1px solid var(--clr-border);
    padding-top: var(--space-xl);
    text-align: center;
}

.footer__bottom p {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
}

/* ===================================================================
   WHATSAPP FLOAT
   =================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-full);
    background: var(--clr-whatsapp);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2), 0 0 0 12px rgba(37, 211, 102, 0.08); }
}

/* ===================================================================
   LIGHTBOX
   =================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox__content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    color: white;
    padding: var(--space-md);
    transition: all var(--transition-fast);
    z-index: 2001;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    color: var(--clr-primary);
}

.lightbox__close {
    top: 1rem;
    right: 1rem;
}

.lightbox__prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
    width: 28px;
    height: 28px;
}

/* ===================================================================
   ANIMATIONS
   =================================================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .units__showcase {
        grid-template-columns: 1fr;
    }

    .location__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 768px) {
    /* --- Performance: desativar backdrop-filter no mobile (muito pesado) --- */
    .header.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 15, 0.96);
    }

    .hero__badge {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .btn--outline {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* --- Desativar filter: blur em pseudo-elementos no mobile --- */
    .cta::before {
        filter: none;
        transform: none;
    }

    .about::before {
        filter: none;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(80%, 320px);
        height: 100%;
        background: var(--clr-bg-alt);
        border-left: 1px solid var(--clr-border);
        padding: 5rem var(--space-2xl) var(--space-2xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: 1000;
        will-change: transform;
        overscroll-behavior: contain;
    }

    .nav__menu.show-menu {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        gap: var(--space-md);
    }

    .nav__link {
        font-size: var(--fs-lg);
        display: block;
        padding: var(--space-sm) 0;
    }

    .nav__toggle {
        display: block;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .nav__close svg,
    .nav__toggle svg {
        width: 24px;
        height: 24px;
    }

    .nav__actions .btn {
        display: none;
    }

    .hero__title br {
        display: none;
    }

    .hero__stats {
        gap: var(--space-lg);
    }

    .stat__divider {
        height: 2rem;
    }

    .steps {
        flex-direction: column;
    }

    .step__connector {
        width: 2px;
        height: 2rem;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .gallery__item--large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .rules__grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile: tema claro - header sem blur */
@media (max-width: 768px) {
    [data-theme="light"] .header.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }

    [data-theme="light"] .nav__menu {
        border-left-color: rgba(0, 0, 0, 0.08);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .price-card {
        padding: var(--space-xl);
    }

    .gallery__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .cta__price strong {
        font-size: var(--fs-3xl);
    }
}

/* Mobile: desativar animações contínuas pesadas */
@media (max-width: 768px) {
    .whatsapp-float {
        animation: none;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    .hero__scroll {
        animation: none;
    }

    /* Reduzir delay das animações de entrada no mobile */
    [data-animate] {
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}

/* ===================================================================
   THEME TOGGLE BUTTON
   =================================================================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    background: var(--clr-primary-bg);
    border: 1px solid var(--clr-border);
    color: var(--clr-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--clr-primary);
    color: var(--clr-bg);
    border-color: var(--clr-primary);
    transform: rotate(30deg);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Hide/show icons based on theme */
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }

[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* ===================================================================
   LIGHT THEME OVERRIDES
   =================================================================== */
[data-theme="light"] {
    /* Colors */
    --clr-bg: #ffffff;
    --clr-bg-alt: #f0efe8;
    --clr-bg-card: #ffffff;
    --clr-bg-elevated: #f8f7f2;
    --clr-surface: #eeedea;
    --clr-border: rgba(0, 0, 0, 0.1);
    --clr-border-hover: rgba(0, 0, 0, 0.2);

    --clr-text: #1a1a2e;
    --clr-text-secondary: #4a4a5a;
    --clr-text-muted: #7a7a8a;

    --clr-primary: #b08830;
    --clr-primary-light: #c8a45c;
    --clr-primary-dark: #96741a;
    --clr-primary-bg: rgba(176, 136, 48, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #b08830, #c8a45c);
    --gradient-card: linear-gradient(145deg, #ffffff, #f8f7f2);

    /* Shadows — lighter for white bg */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(176, 136, 48, 0.12);
}

/* Header scrolled — light frosted glass */
[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

/* Nav links — darker for readability */
[data-theme="light"] .nav__link {
    color: #4a4a5a;
}

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.active {
    color: #b08830;
}

/* Hero section — lighter overlay for light theme */
[data-theme="light"] .hero__bg::before {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
}

[data-theme="light"] .hero__bg::after {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(176, 136, 48, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(78, 205, 196, 0.04) 0%, transparent 60%);
}

[data-theme="light"] .hero__overlay {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,0,0,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

[data-theme="light"] .hero__title {
    color: #1a1a2e;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .hero__subtitle {
    color: rgba(30, 30, 50, 0.85);
    text-shadow: none;
}

[data-theme="light"] .hero__subtitle strong {
    color: #b08830;
}

[data-theme="light"] .hero__badge {
    background: rgba(176, 136, 48, 0.12);
    border-color: rgba(176, 136, 48, 0.3);
    color: #96741a;
    backdrop-filter: blur(8px);
}

[data-theme="light"] .stat__number {
    color: #b08830;
}

[data-theme="light"] .stat__label {
    color: rgba(30, 30, 50, 0.6);
}

[data-theme="light"] .stat__divider {
    background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .hero__scroll a {
    color: rgba(30, 30, 50, 0.4);
}

[data-theme="light"] .hero__scroll a:hover {
    color: #b08830;
}

/* CTA section — lighter overlay for light theme */
[data-theme="light"] .cta::after {
    background: rgba(255, 255, 255, 0.78);
}

[data-theme="light"] .cta__title {
    color: #1a1a2e;
    text-shadow: none;
}

[data-theme="light"] .cta__subtitle {
    color: rgba(30, 30, 50, 0.75);
}

[data-theme="light"] .cta__price span {
    color: #7a7a8a;
}

[data-theme="light"] .cta__note {
    color: #7a7a8a;
}

/* About section bg image - slightly more visible */
[data-theme="light"] .about::before {
    opacity: 0.04;
}

/* Cards — subtle border shadow instead of gradient */
[data-theme="light"] .about__card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .about__card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Price card tag — readable on light */
[data-theme="light"] .price-card__tag {
    color: #ffffff;
}

/* Steps hover glow */
[data-theme="light"] .step {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .step:hover {
    box-shadow: 0 8px 24px rgba(176, 136, 48, 0.12);
}

/* Location bg image */
[data-theme="light"] .location::before {
    opacity: 0.03;
}

/* Rules card */
[data-theme="light"] .rules__card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .rule {
    background: var(--clr-bg-alt);
}

/* CTA still keeps dark overlay on image */

/* Footer — keep it dark even in light mode for contrast */
[data-theme="light"] .footer {
    background: #1a1a2e;
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .footer__brand p,
[data-theme="light"] .footer__links a,
[data-theme="light"] .footer__contact li,
[data-theme="light"] .footer__contact a {
    color: #a0a0b0;
}

[data-theme="light"] .footer__links h4,
[data-theme="light"] .footer__contact h4 {
    color: #f0f0f5;
}

[data-theme="light"] .footer__links a:hover,
[data-theme="light"] .footer__contact a:hover {
    color: #c8a45c;
}

[data-theme="light"] .footer__bottom {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .footer__bottom p {
    color: #6a6a7a;
}

[data-theme="light"] .footer__contact svg {
    color: #c8a45c;
}

/* Gallery overlay */
[data-theme="light"] .gallery__item-overlay {
    background: rgba(0, 0, 0, 0.35);
}

/* Amenity card */
[data-theme="light"] .amenity {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .amenity:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Location nearby items */
[data-theme="light"] .location__nearby li {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .location__address {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Mobile menu — light bg */
@media (max-width: 768px) {
    [data-theme="light"] .nav__menu {
        background: #ffffff;
        border-left-color: rgba(0, 0, 0, 0.08);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }
}

/* Logo filter — remove glow on light */
[data-theme="light"] .logo-img {
    filter: none;
}

[data-theme="light"] .nav__logo:hover .logo-img {
    filter: drop-shadow(0 0 8px rgba(176, 136, 48, 0.3));
}

/* Section tag border */
[data-theme="light"] .section__tag {
    border-color: rgba(176, 136, 48, 0.2);
}

/* Hero badge — keep original colors since hero stays dark */

/* Button primary text on light */
[data-theme="light"] .btn--primary {
    color: #ffffff;
}

/* Button outline on light */
[data-theme="light"] .btn--outline {
    border-color: rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
}

/* Price card border glow */
[data-theme="light"] .price-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .price-card::before {
    opacity: 0.15;
}

/* Print */
@media print {
    .header,
    .whatsapp-float,
    .hero__scroll,
    .lightbox {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}
