/* Custom styles and overrides */

/* Smooth scroll for Safari */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: #c9950f;
    color: #2a1117;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #c9950f;
    outline-offset: 2px;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Prevent image overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #9c4f60;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5e2835;
}

/* Mobile menu transitions */
@media (max-width: 767px) {
    .mobile-menu {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Print styles */
@media print {
    nav, .hero, .cta-section, #contact-form, .hamburger {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .service-card {
        break-inside: avoid;
    }
}

/* 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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    img {
        transition: none !important;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .service-card {
        border: 2px solid currentColor;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 100svh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: translateY(-2px);
    }
    
    .btn-primary:active {
        transform: translateY(0);
    }
}

/* Wide screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
