/* Burgess Bed & Bath - Custom Styles */
/* These styles complement the Tailwind CSS and inline styles in index.html */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #F5F0E8;
}

/* Reduce motion for users who prefer it */
@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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card {
        border-color: rgba(201, 168, 76, 0.5);
    }

    .form-input {
        border-color: rgba(201, 168, 76, 0.5);
    }
}

/* Print styles */
@media print {
    .no-print,
    #back-to-top,
    .mobile-menu {
        display: none !important;
    }

    body {
        background: white !important;
        color: #1a1a1a !important;
    }

    .bg-deep-900,
    .bg-deep-800 {
        background: white !important;
    }

    .text-sand-100,
    .text-sand-50,
    .text-sand-300,
    .text-sand-400 {
        color: #1a1a1a !important;
    }

    a {
        color: #1a1a1a !important;
        text-decoration: underline !important;
    }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-image-stack {
        height: 250px;
    }

    .hero-img-primary {
        width: 60%;
        height: 100%;
    }

    .hero-img-secondary {
        display: none;
    }
}

/* Tablet breakpoint adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .room-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Ensure images don't overflow on small screens */
img {
    max-width: 100%;
    height: auto;
}

/* Better form select styling */
select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Ensure good contrast on all interactive elements */
button,
a {
    -webkit-tap-highlight-color: rgba(201, 168, 76, 0.2);
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 768px) {
    .nav-link,
    .mobile-nav-link,
    .cta-btn,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
}
