/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f3ef; }
::-webkit-scrollbar-thumb { background: #d9d3c9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7B2D3B; }

/* ── Selection ── */
::selection { background: #7B2D3B; color: #faf9f7; }

/* ── Navigation ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-link {
    position: relative;
    color: #3e3832;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #7B2D3B;
    transition: width 0.3s ease;
}
.nav-link:hover { color: #7B2D3B; }
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
.mobile-menu-link { text-decoration: none; }
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
.menu-line { transition: all 0.3s ease; }
#menu-toggle.active .menu-line:nth-child(1) { transform: translateY(4px) rotate(45deg); }
#menu-toggle.active .menu-line:nth-child(2) { opacity: 0; transform: translateX(-8px); }

/* ── Hero ── */
.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
}
.hero-subtitle {
    font-family: 'Inter', system-ui, sans-serif;
}
.hero-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
}
.hero-image {
    width: 110%;
    margin-left: -10%;
    height: 115%;
    object-fit: cover;
    border-radius: 0;
}
.hero-image-wrap {
    height: 100%;
    overflow: hidden;
    position: relative;
}
.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(245,243,239,0.15) 0%, transparent 40%);
    pointer-events: none;
}
.hero-float-card {
    font-family: 'Cormorant Garamond', Georgia, serif;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── Hero Animations (no JS needed for visibility) ── */
@media (prefers-reduced-motion: no-preference) {
    .hero-subtitle {
        animation: slideUp 0.8s ease forwards;
    }
    .hero-title {
        animation: slideUp 0.8s ease 0.1s forwards;
        opacity: 0;
    }
    .hero-desc {
        animation: slideUp 0.8s ease 0.2s forwards;
        opacity: 0;
    }
    .hero-btn-primary {
        animation: slideUp 0.8s ease 0.3s forwards;
        opacity: 0;
    }
    .hero-btn-secondary {
        animation: slideUp 0.8s ease 0.35s forwards;
        opacity: 0;
    }
    .hero-stats {
        animation: slideUp 0.8s ease 0.45s forwards;
        opacity: 0;
    }
    .hero-image {
        animation: heroImageIn 1.2s ease forwards;
        transform: scale(1.05);
    }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroImageIn {
    from { opacity: 0; transform: scale(1.08); }
    to { opacity: 1; transform: scale(1); }
}

/* ── Scroll Line ── */
.scroll-line-fill {
    animation: scrollFill 2s ease infinite;
}
@keyframes scrollFill {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ── Section Labels ── */
.section-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
}

/* ── Cards ── */
.site-card-img-wrap,
.rental-card-img-wrap {
    overflow: hidden;
}
.site-card-img,
.rental-card-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.site-card:hover .site-card-img,
.rental-card:hover .rental-card-img {
    transform: scale(1.05);
}

/* ── Contact Form ── */
.contact-input {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
}
.contact-input:focus {
    border-color: #7B2D3B;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}
.contact-input::placeholder {
    color: #c4bbb0;
}
.contact-submit {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}
.contact-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.contact-submit:hover::after {
    opacity: 1;
}

/* ── Reveal animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.reveal-hidden {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
    .hero-image {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    html { scroll-padding-top: 72px; }
    #navbar { background: rgba(250, 249, 247, 0.97); backdrop-filter: blur(12px); }
    .hero-title { font-size: 2.75rem; }
    .hero-float-card { display: none; }
    .hero-stats { gap: 8px; }
    .hero-stats > div:first-child { }
}
