/* ========================================
   Dominion Honey Company — Custom Styles
   ======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8ea;
}
::-webkit-scrollbar-thumb {
    background: #e4614a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b53826;
}

/* ========================================
   Geometric Hero Shapes
   ======================================== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #fefcf7;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #f5d89a;
    top: 60%;
    right: 5%;
    animation-delay: -2s;
}

.shape-circle-3 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    bottom: 20%;
    left: 15%;
    animation-delay: -4s;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: #ffffff;
    top: 25%;
    right: 15%;
    transform: rotate(45deg);
    animation-delay: -1s;
    border-radius: 12px;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid #f5d89a;
    top: 15%;
    left: 25%;
    animation-delay: -3s;
}

.shape-ring-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid #ffffff;
    bottom: 15%;
    right: 20%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(3deg);
    }
    66% {
        transform: translateY(10px) rotate(-2deg);
    }
}

/* Stagger animation delays for shapes */
.shape-circle-2 { animation-delay: -2s; }
.shape-circle-3 { animation-delay: -4s; }
.shape-square-1 { animation-delay: -1s; }
.shape-triangle-1 { animation-delay: -3s; }
.shape-ring-1 { animation-delay: -5s; }

/* ========================================
   Scroll Reveal Animations
   (progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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; }
}

/* Ensure content is visible by default (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Navbar Scroll State
   ======================================== */
.nav-scrolled {
    background: rgba(254, 252, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .font-display {
    color: #6e401e !important;
}

.nav-scrolled .text-terracotta-600 {
    color: #d14a32 !important;
}

/* ========================================
   Mobile Menu Animation
   ======================================== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}

/* ========================================
   Gallery Hover Effects
   ======================================== */
.grid img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   Button Focus States
   ======================================== */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #e4614a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   Form Input Focus Ring
   ======================================== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(228, 97, 74, 0.15);
}

/* ========================================
   Utility: Section Padding
   ======================================== */
section {
    position: relative;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    nav, #mobile-menu-btn, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .geo-shape {
        display: none;
    }
}
