/* ========================================
   Casita De Palm Springs — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Geometric Background Shapes
   ======================================== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #1b5e20;
    top: 20%;
    right: -100px;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #33691e;
    bottom: 15%;
    left: -60px;
}

.shape-rect-1 {
    width: 180px;
    height: 180px;
    background: #1b5e20;
    top: 50%;
    left: 10%;
    transform: rotate(45deg);
    border-radius: 20px;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #33691e;
    top: 70%;
    right: 5%;
}

/* ========================================
   Hero Geometric Shapes
   ======================================== */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.geo-h1 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(254, 253, 248, 0.08);
    border-radius: 50%;
    top: 10%;
    left: -80px;
    animation: float 8s ease-in-out infinite;
}

.geo-h2 {
    width: 150px;
    height: 150px;
    background: rgba(254, 253, 248, 0.04);
    top: 25%;
    right: 10%;
    transform: rotate(30deg);
    animation: float 6s ease-in-out infinite reverse;
}

.geo-h3 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(254, 253, 248, 0.1);
    border-radius: 50%;
    bottom: 20%;
    left: 15%;
    animation: float 7s ease-in-out infinite;
}

.geo-h4 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(254, 253, 248, 0.06);
    bottom: 10%;
    right: 5%;
    transform: rotate(45deg);
    animation: float 9s ease-in-out infinite reverse;
}

.geo-h5 {
    width: 60px;
    height: 60px;
    background: rgba(174, 213, 129, 0.1);
    border-radius: 50%;
    top: 40%;
    left: 5%;
    animation: float 5s ease-in-out infinite;
}

/* ========================================
   CTA Geometric Shapes
   ======================================== */
.cta-geo {
    position: absolute;
    pointer-events: none;
}

.geo-c1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(254, 253, 248, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.geo-c2 {
    width: 250px;
    height: 250px;
    border: 2px solid rgba(254, 253, 248, 0.04);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
}

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

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

/* Always visible for reduced motion or no-JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: rgba(254, 253, 248, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 94, 32, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(27, 94, 32, 0.1);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    transition: opacity 0.2s ease;
}

.mobile-link:active {
    opacity: 0.6;
}

/* Menu button animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* ========================================
   Buttons & Links
   ======================================== */
a {
    text-decoration: none;
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #a0a0a0;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .shape-rect-1 {
        width: 100px;
        height: 100px;
    }
    
    .shape-triangle-1 {
        border-left-width: 60px;
        border-right-width: 60px;
        border-bottom-width: 104px;
    }
    
    .geo-h1 {
        width: 150px;
        height: 150px;
    }
    
    .geo-h2 {
        width: 80px;
        height: 80px;
    }
    
    .geo-h4 {
        width: 100px;
        height: 100px;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 480px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-circle-2 {
        width: 80px;
        height: 80px;
    }
    
    .shape-rect-1 {
        display: none;
    }
    
    .shape-triangle-1 {
        display: none;
    }
}
