/* Custom Styles for Tobara Bakery */

/* Base Typography Settings */
html {
    scroll-behavior: smooth;
}

body {
    /* Custom Cream Background - Fallback */
    background-color: #FDFBF7;
}

/* Smooth Scroll Offset for Fixed Nav */
section[id] {
    scroll-margin-top: 100px;
}

/* Blob Animation for Hero Background */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

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

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

::-webkit-scrollbar-thumb {
    background: #064E3B; /* emerald-900 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #065F46; /* emerald-800 */
}

/* Scroll Reveal Animation Classes */
/* Default state: visible (no JS required for basic readability) */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: translateY(0) translateX(0);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* If JS is disabled, they stay visible. 
   If JS is enabled, JS adds 'active' class to trigger animation from hidden state. */
.js .reveal-up, 
.js .reveal-left, 
.js .reveal-right {
    opacity: 0;
}

.js .reveal-up {
    transform: translateY(30px);
}

.js .reveal-left {
    transform: translateX(-30px);
}

.js .reveal-right {
    transform: translateX(30px);
}

.js .reveal-up.active,
.js .reveal-left.active,
.js .reveal-right.active {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Staggered Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #064E3B;
    outline-offset: 2px;
}
