/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Geometric Background Shapes ──────────────────────── */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 249, 243, 0.8) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 179, 120, 0.6) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(253, 249, 243, 0.15);
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(244, 179, 120, 0.2);
    bottom: 25%;
    left: 8%;
    transform: rotate(20deg);
    animation: spin-slow 15s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(253, 249, 243, 0.1);
    top: 40%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.shape-ring-1 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid rgba(253, 249, 243, 0.15);
    top: 15%;
    right: 25%;
    animation: float 12s ease-in-out infinite reverse;
}

/* CTA section shapes */
.cta-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-3 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 249, 243, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.shape-square-3 {
    width: 150px;
    height: 150px;
    background: rgba(253, 249, 243, 0.06);
    bottom: -50px;
    left: 10%;
    transform: rotate(30deg);
    animation: spin-slow 25s linear infinite;
}

/* ─── Animations ───────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ─── Hero Photo ───────────────────────────────────────── */
.hero-photo {
    mix-blend-mode: multiply;
}

/* ─── Scroll Indicator ─────────────────────────────────── */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ─── Service Cards ────────────────────────────────────── */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card.reveal {
    opacity: 0;
    transform: translateY(24px);
}

.service-card.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Property Cards ───────────────────────────────────── */
.property-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.property-card.reveal {
    opacity: 0;
    transform: translateY(24px);
}

.property-card.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Testimonial Cards ────────────────────────────────── */
.testimonial-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.testimonial-card.reveal {
    opacity: 0;
    transform: translateY(24px);
}

.testimonial-card.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ─── Navbar Scroll State ──────────────────────────────── */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 0 rgba(26, 20, 16, 0.08);
}

#navbar.scrolled .menu-line {
    background: #1A1410;
}

/* ─── Mobile Menu Animations ───────────────────────────── */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: translateY(-5px) rotate(-45deg);
}

/* ─── Utility ──────────────────────────────────────────── */
::selection {
    background: #C4653A;
    color: #FDF8F0;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #C4653A;
    outline-offset: 2px;
}
