/* AIYIMA Hi-Fi Audio - Custom Styles */

/* ===== FONTS ===== */
body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== HI-FI ACCENT COLOR PALETTE ===== */
/* Warm copper/amber accent - premium audio aesthetic */
.bg-amber-100 {
    background-color: #fffbeb;
}
.bg-amber-200 {
    background-color: #fde68a;
}
.bg-amber-500 {
    background-color: #f59e0b;
}
.bg-amber-600 {
    background-color: #d97706;
}
.text-amber-200 {
    color: #fde68a;
}
.text-amber-500 {
    color: #f59e0b;
}
.text-amber-600 {
    color: #d97706;
}
.border-amber-500 {
    border-color: #f59e0b;
}
.ring-amber-500 {
    --tw-ring-color: #f59e0b;
}

/* Coral compatibility for template (map to amber) */
.bg-coral-100 { background-color: #fffbeb; }
.bg-coral-200 { background-color: #fde68a; }
.bg-coral-500 { background-color: #d97706; }
.bg-coral-600 { background-color: #b45309; }
.text-coral-200 { color: #fde68a; }
.text-coral-500 { color: #f59e0b; }
.text-coral-600 { color: #d97706; }
.border-coral-500 { border-color: #d97706; }
.ring-coral-500 { --tw-ring-color: #d97706; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-up { animation: fadeUp 0.6s ease-out forwards; }
.animate-fade-up-delay { animation: fadeUp 0.6s ease-out 0.2s forwards; opacity: 0; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ===== NAV DROPDOWN (MODELS) ===== */
.nav-dropdown-trigger { display: inline-flex; }
.nav-dropdown-trigger button { white-space: nowrap; writing-mode: horizontal-tb; text-orientation: mixed; display: inline-flex; align-items: center; }
.nav-dropdown { opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.2s, visibility 0.2s, transform 0.2s; }
.nav-dropdown-trigger:hover .nav-dropdown,
.nav-dropdown-trigger:focus-within .nav-dropdown,
.nav-dropdown-trigger.is-open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== HEADER STYLES ===== */
#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* ===== CARD HOVER EFFECTS ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* ===== TESTIMONIAL CAROUSEL (MOBILE) ===== */
.testimonial-dot {
    width: 8px; height: 8px;
    border-radius: 9999px;
    background-color: #d6d3d1;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.testimonial-dot.active { background-color: #d97706; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== SELECTION STYLES ===== */
::selection { background-color: #d97706; color: white; }
::-moz-selection { background-color: #d97706; color: white; }
