/* Custom Styles for EscapesByU */

/* Color Variables */
:root {
    --alabaster: #F3F0EB;
    --charcoal: #1A1A1A;
    --brass: #BFA47F;
    --slate: #7D8690;
}

/* Soft Shadow Effect - matches the "floating" aesthetic */
.shadow-soft {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

/* Typography Enhancements */
.font-display {
    letter-spacing: 1.5px;
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--brass);
    color: white;
    padding: 1rem 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--charcoal);
    color: var(--brass);
}

.btn-secondary {
    border: 2px solid var(--charcoal);
    color: var(--charcoal);
    padding: 1rem 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    background: transparent;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--charcoal);
    color: white;
}

/* Form Input Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    background-color: white;
    border: 1px solid #E5E5E5;
    padding: 0.75rem 1rem;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: var(--charcoal);
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brass);
}

/* Image Overlay Effects */
.image-overlay {
    position: relative;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.1), rgba(26, 26, 26, 0.3));
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

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

/* Simple Mobile Menu */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 49;
}

#mobile-menu-button {
    cursor: pointer;
    background: transparent;
    border: none;
}

/* Accessibility: Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--charcoal);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--brass);
    outline-offset: 2px;
}

/* Accessibility: Enhanced focus indicators */
*:focus-visible {
    outline: 3px solid var(--brass);
    outline-offset: 2px;
    border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--brass);
    outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--brass);
    outline-offset: 2px;
    border-color: var(--brass);
}

/* Custom Scrollbar (optional, for webkit browsers) */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Video Banner Styles */
video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
}

/* Ensure video covers full area on all devices */
@media (max-width: 768px) {
    video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Video container for proper aspect ratio */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* YouTube Modal Styles */
#youtube-modal {
    animation: fadeIn 0.3s ease-in-out;
}

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

#youtube-modal iframe {
    border-radius: 8px;
}

#close-modal {
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 4px;
    transition: all 0.2s;
}

#close-modal:hover {
    background: rgba(191, 164, 127, 0.9);
    transform: scale(1.05);
}
