/* Custom styles supplementing Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(3deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(12px) rotate(-3deg); }
}

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

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

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* Mobile menu bar animation */
#bar1.open {
    transform: rotate(45deg) translate(5px, 5px);
}

#bar2.open {
    opacity: 0;
}

#bar3.open {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Geometric accent shapes */
.shape-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-blob-2 {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Diagonal clip paths */
.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.clip-diagonal-reverse {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-hover:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 24px 48px rgba(92, 58, 30, 0.15);
}

/* Button styles */
.btn-primary {
    background: #e34a34;
    color: #FDF8F0;
    border-radius: 9999px;
    padding: 14px 36px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    background: #c9341f;
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(227, 74, 52, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #5C3A1E;
    border: 2px solid #5C3A1E;
    border-radius: 9999px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #5C3A1E;
    color: #FDF8F0;
    transform: scale(1.05);
}

/* Selection color */
::selection {
    background: #f9c4b8;
    color: #5C3A1E;
}

/* Focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-float, .animate-float-reverse, .animate-spin-slow {
        animation: none;
    }
}

/* Typography scale */
.font-serif {
    font-family: 'Fraunces', Georgia, serif;
}

.font-body {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}

/* Text shadow for hero */
.text-shadow {
    text-shadow: 2px 4px 12px rgba(92, 58, 30, 0.3);
}

/* Geometric accent positioning */
.geometric-accent {
    position: absolute;
    pointer-events: none;
}

/* Counter animation */
.counter {
    font-variant-numeric: tabular-nums;
}
