/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Typography - Serif for headings */
h1, h2, h3, h4, h5, h6,
.font-serif {
    font-family: 'Playfair Display', 'Georgia', serif;
}

/* Cookie Consent Popup */
.cookie-popup {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    border-top: 3px solid #d97706;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-content button {
        width: 100%;
    }
}

/* Route Cards Interactive */
.route-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.route-card:hover {
    background-color: #fafaf9;
    transform: translateX(4px);
}

.route-details {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Card Transitions */
.team-card img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Form Input Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Button Hover Effects */
button,
a.inline-block {
    transition: all 0.2s ease;
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, transform, box-shadow;
    transition-duration: 150ms;
    transition-timing-function: ease-in-out;
}

button:active,
a.inline-block:active {
    transform: translateY(1px);
}

/* Header Sticky Shadow */
header.sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Prose Styling for Content */
.prose p {
    margin-bottom: 1rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* Grid Layout Enhancements */
.grid {
    gap: 2rem;
}

/* Shadow Utilities */
.shadow-custom {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Accent Line */
.accent-line {
    width: 4rem;
    height: 0.25rem;
    background-color: #d97706;
}

/* Card Hover Effects */
.bg-white {
    transition: box-shadow 0.3s ease;
}

.bg-white:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Image Overlay Effects */
.relative img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.relative:hover img {
    transform: scale(1.02);
}

/* Loading States */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Checkbox Custom Styling */
input[type="checkbox"] {
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #d97706;
    border-color: #d97706;
}

/* Link Underlines */
a {
    text-decoration: none;
}

/* Footer Links */
footer a {
    transition: color 0.2s ease;
}

/* Mobile Menu Transitions */
#mobileMenu {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Smooth Page Load */
body {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .cookie-popup {
        display: none;
    }
}

/* Selection Styling */
::selection {
    background-color: #fef3c7;
    color: #78350f;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #a8a29e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #78716c;
}
