@font-face {
    font-family: 'Myriad Pro';
    src: url('/assets/fonts/myriad-pro-black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Custom styles for Legazpi Miki Inc. */

html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8E7;
}
::-webkit-scrollbar-thumb {
    background: #C41E3A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a01830;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hide scrollbar for horizontal scroll */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hero gradient overlay */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(26, 10, 0, 0.6), rgba(26, 10, 0, 0.8));
}

/* Prose-like styles for rendered HTML content */
.content-html h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1A0A00;
}
.content-html h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1A0A00;
}
.content-html p {
    margin-bottom: 1rem;
    line-height: 1.75;
}
.content-html ul,
.content-html ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.content-html ul {
    list-style-type: disc;
}
.content-html ol {
    list-style-type: decimal;
}
.content-html li {
    margin-bottom: 0.25rem;
    line-height: 1.75;
}
.content-html a {
    color: #C41E3A;
    text-decoration: underline;
}
.content-html img {
    border-radius: 0.5rem;
    margin: 1rem 0;
    max-width: 100%;
    height: auto;
}

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* Sprite icon system */
.brand-icon {
    background-image: url('/assets/images/icons-stroke.png');
    background-size: 400% 300%; /* 4 columns × 3 rows */
    mix-blend-mode: screen;
    display: inline-block;
    pointer-events: none;
    user-select: none;
}

/* Individual icon positions (background-position: x% y%) */
.icon-baking-tools { background-position: 0% 0%; }
.icon-cake-box { background-position: 33.33% 0%; }
.icon-bubble-tea { background-position: 66.66% 0%; }
.icon-shaker { background-position: 100% 0%; }
.icon-chocolate { background-position: 0% 50%; }
.icon-measuring-cup { background-position: 33.33% 50%; }
.icon-syrup { background-position: 66.66% 50%; }
.icon-packaging { background-position: 100% 50%; }
.icon-utensils { background-position: 0% 100%; }
.icon-flour { background-position: 33.33% 100%; }
.icon-pans { background-position: 66.66% 100%; }
.icon-sauce { background-position: 100% 100%; }

/* Floating animation variants */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.float-slow { animation: float-slow 6s ease-in-out infinite; }
.float-medium { animation: float-medium 4.5s ease-in-out infinite; }
.float-fast { animation: float-fast 3.5s ease-in-out infinite; }
.pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }

/* Quirky animations for "What We Supply" section */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(8deg); }
    75% { transform: rotate(-8deg); }
}
@keyframes bounce-float {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-20px) scale(1.1); }
    60% { transform: translateY(-5px) scale(0.95); }
}
@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(5deg); }
    50% { transform: translate(-5px, -20px) rotate(-3deg); }
    75% { transform: translate(-10px, -5px) rotate(4deg); }
}

.wiggle { animation: wiggle 3s ease-in-out infinite; }
.bounce-float { animation: bounce-float 4s ease-in-out infinite; }
.drift { animation: drift 8s ease-in-out infinite; }

/* Delay classes for staggered animation */
.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.8s; }
.delay-2 { animation-delay: 1.6s; }
.delay-3 { animation-delay: 2.4s; }
.delay-4 { animation-delay: 3.2s; }
.delay-5 { animation-delay: 4s; }

/* Responsive: hide decorative icons on small screens */
@media (max-width: 768px) {
    .decorative-icons { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
