/* ============================================
   AGRi Retreat — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(27, 67, 50, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(193, 105, 79, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    background: rgba(27, 67, 50, 0.04);
    border-radius: 32px;
    top: 30%;
    right: 5%;
    transform: rotate(15deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(193, 105, 79, 0.06);
    top: 20%;
    left: 5%;
    transform: rotate(-20deg);
}

.shape-stripe {
    width: 300px;
    height: 60px;
    background: repeating-linear-gradient(
        45deg,
        rgba(27, 67, 50, 0.03),
        rgba(27, 67, 50, 0.03) 10px,
        transparent 10px,
        transparent 20px
    );
    bottom: 20%;
    left: 10%;
    transform: rotate(-30deg);
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C1694F, #1B4332);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    cursor: pointer;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'DM Serif Display', serif;
    font-size: 80px;
    color: rgba(193, 105, 79, 0.15);
    line-height: 1;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive Enhancement — only active when JS runs)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-hidden.delay-1 { transition-delay: 0.1s; }
    .reveal-hidden.delay-2 { transition-delay: 0.2s; }
    .reveal-hidden.delay-3 { transition-delay: 0.3s; }
    .reveal-hidden.delay-4 { transition-delay: 0.4s; }
    .reveal-hidden.delay-5 { transition-delay: 0.5s; }
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .shape-rect-1 {
        width: 100px;
        height: 100px;
    }
    
    .shape-triangle {
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 87px solid rgba(193, 105, 79, 0.06);
    }
    
    .shape-stripe {
        width: 150px;
        height: 30px;
    }
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(27, 67, 50, 0.15);
    color: #1B4332;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF9F6;
}

::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d4a2d;
}
