/* BryanStay Custom Styles */

/* Hero background image */
.hero-section {
    background-image: url('/images/luxury-budget.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Cookie consent modal styles */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    padding: 24px;
}

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

/* Custom animations */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.blog-teaser {
    transition: all 0.3s ease;
}

.blog-teaser:hover {
    transform: translateY(-3px);
}

/* Form styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 139, 139, 0.1);
}

/* Loading animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Newsletter form success state */
.success-message {
    background: linear-gradient(135deg, #2E8B8B, #014421);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.error-message {
    background: linear-gradient(135deg, #F88379, #e74c3c);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
    nav {
        backdrop-filter: blur(10px);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-tropical-teal\/10,
    .bg-coral-pink\/10,
    .bg-gold\/10,
    .bg-deep-green\/10 {
        background-color: transparent;
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

/* Print styles */
@media print {
    .fixed,
    .cookie-consent,
    nav,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: none;
        color: black;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #2E8B8B;
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2E8B8B;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2E8B8B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #014421;
}

/* Selection colors */
::selection {
    background: #2E8B8B;
    color: white;
}

::-moz-selection {
    background: #2E8B8B;
    color: white;
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-overlay {
    position: relative;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.content-overlay {
    position: relative;
    z-index: 2;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Contact form specific styles */
.form-field {
    position: relative;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
    transform: translateY(-24px) scale(0.875);
    color: #2E8B8B;
}

.form-field label {
    position: absolute;
    left: 16px;
    top: 16px;
    transition: all 0.2s ease;
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

/* Newsletter signup enhancements */
.newsletter-input {
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    transform: scale(1.02);
}

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

/* Aspect ratio utilities */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Grid improvements */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
