/* Custom styles for The Portmoor */

:root {
    --terracotta-600: #B8623E;
    --terracotta-700: #A35032;
    --sand-200: #F3ECD4;
    --sand-300: #EAD9B0;
    --cream: #FDF8F4;
    --warm-dark: #2C1810;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--warm-dark);
    background-color: var(--cream);
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

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

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

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

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

/* Selection color */
::selection {
    background-color: rgba(184, 98, 62, 0.2);
    color: var(--warm-dark);
}

/* Date input styling */
input[type="date"] {
    color-scheme: light;
}

/* Mobile menu animation */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Image loading optimization */
img {
    will-change: transform;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--terracotta-600);
    outline-offset: 2px;
}

/* 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;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    nav, #contact, .mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
    }
}

/* Enhanced hover states */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--terracotta-600);
    box-shadow: 0 0 0 3px rgba(184, 98, 62, 0.1);
}

/* Smooth page transitions */
@media (prefers-reduced-motion: no-preference) {
    body {
        animation: fadeIn 0.5s ease-out;
    }
}

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