/* Custom Styles for Reliable Appliance Service */

/* Color Palette */
:root {
    --forest-dark: #0f3d2e;
    --forest-light: #1a5240;
    --gold-500: #c9a84c;
    --gold-400: #d4b965;
    --off-white: #f5f5f0;
}

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

/* Custom Theme Colors */
@layer base {
    body {
        background-color: var(--forest-dark);
        color: var(--off-white);
    }
    
    .bg-forest-dark {
        background-color: var(--forest-dark);
    }
    
    .bg-forest-light {
        background-color: var(--forest-light);
    }
    
    .text-forest-dark {
        color: var(--forest-dark);
    }
    
    .text-off-white {
        color: var(--off-white);
    }
    
    .bg-gold-500 {
        background-color: var(--gold-500);
    }
    
    .bg-gold-400 {
        background-color: var(--gold-400);
    }
    
    .text-gold-500 {
        color: var(--gold-500);
    }
    
    .text-gold-400 {
        color: var(--gold-400);
    }
}

/* Font Families */
.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: var(--forest-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-400);
}

/* Service Card Hover Effect */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(201, 168, 76, 0.15);
}

/* Button Hover Effect */
button, a {
    transition: all 0.3s ease;
}

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

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

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

/* Navbar Scroll Effect */
#navbar.scrolled {
    background-color: rgba(15, 61, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form Input Focus Effect */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility */
@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;
    }
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: var(--gold-500);
    color: var(--forest-dark);
}
