/* ===================================
   Shimabukuro Dental - Custom Styles
   Classic & Elegant Design System
   =================================== */

/* Custom Properties */
:root {
    --color-terracotta: #B5654B;
    --color-terracotta-dark: #8B4A36;
    --color-sand: #E8D5C4;
    --color-sand-light: #F5EDE6;
    --color-stone-50: #FAFAF9;
    --color-stone-100: #F5F5F4;
    --color-stone-200: #E7E5E4;
    --color-stone-300: #D6D3D1;
    --color-stone-400: #A8A29E;
    --color-stone-500: #78716C;
    --color-stone-600: #57534E;
    --color-stone-700: #44403C;
    --color-stone-800: #292524;
    --color-stone-900: #1C1917;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Tailwind Config Override */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Tailwind Colors */
@layer base {
    html {
        scroll-behavior: smooth;
    }
    
    body {
        font-family: var(--font-sans);
        color: var(--color-stone-800);
    }
    
    .font-cormorant {
        font-family: var(--font-serif);
    }
    
    .font-montserrat {
        font-family: var(--font-sans);
    }
}

/* Custom Color Classes */
.bg-terracotta {
    background-color: var(--color-terracotta) !important;
}

.bg-terracotta-dark {
    background-color: var(--color-terracotta-dark) !important;
}

.text-terracotta {
    color: var(--color-terracotta) !important;
}

.bg-sand {
    background-color: var(--color-sand) !important;
}

.bg-sand-light {
    background-color: var(--color-sand-light) !important;
}

/* Navbar Styles */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background-color: rgba(250, 250, 249, 0.95);
    box-shadow: var(--shadow-md);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Hero Section */
#hero {
    position: relative;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Service Card Hover Effects */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-0.25rem);
}

/* Smooth Transitions */
a, button {
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: var(--color-stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-terracotta);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-terracotta-dark);
}

/* Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-terracotta) !important;
    box-shadow: 0 0 0 3px rgba(181, 101, 75, 0.15) !important;
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top Button */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:hover {
    transform: translateY(-2px);
}

/* Image Placeholder Styles */
img {
    max-width: 100%;
    height: auto;
}

/* Print Styles */
@media print {
    nav, #back-to-top, .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-terracotta {
        background-color: #8B4513 !important;
    }
    
    .text-terracotta {
        color: #8B4513 !important;
    }
}

/* Utility Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up-delay-1 {
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.fade-in-up-delay-2 {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-up-delay-3 {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

/* Intersection Observer Animation Classes */
.observe-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.observe-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.observe-animate.delay-1 {
    transition-delay: 0.1s;
}

.observe-animate.delay-2 {
    transition-delay: 0.2s;
}

.observe-animate.delay-3 {
    transition-delay: 0.3s;
}

.observe-animate.delay-4 {
    transition-delay: 0.4s;
}

.observe-animate.delay-5 {
    transition-delay: 0.5s;
}
