/* ============================================
   FARMERS MARKET AND GRI — CUSTOM STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

::selection {
    background-color: #fbbf24;
    color: #2a1019;
}

/* --- Geometric Background Decorations --- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(163, 68, 101, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-circle--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation: float-slow 15s ease-in-out infinite;
}

.geo-tri {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 60px 104px 60px;
    border-color: transparent transparent rgba(163, 68, 101, 0.06) transparent;
    top: 30%;
    right: 5%;
    transform: rotate(15deg);
    animation: spin-slow 30s linear infinite;
}

.geo-square {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    bottom: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

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

@keyframes bounce-slow {
    0%, 100% { transform: translateY(-4px); }
    50% { transform: translateY(4px); }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* --- Fade In Up Animation --- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

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

#navbar.scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(78, 33, 48, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.mobile-link {
    position: relative;
}

/* --- Card Tiles --- */
.card-tile {
    perspective: 1000px;
}

.card-tile > div {
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card-tile:hover > div {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 25px 60px rgba(78, 33, 48, 0.2);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Smooth Scroll Offset --- */
section[id] {
    scroll-margin-top: 80px;
}

/* --- Form Styles --- */
input:focus,
textarea:focus {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15) !important;
}

input::placeholder,
textarea::placeholder {
    color: #c3748f;
    opacity: 0.7;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #d8a5b6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a34465;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle--2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-tri {
        display: none;
    }
    
    .geo-square {
        width: 50px;
        height: 50px;
    }
}

/* --- Print Styles --- */
@media print {
    .fixed, .geo-circle, .geo-tri, .geo-square {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
