/* ========================================
   CSS Variables - Design System
   ======================================== */
:root {
    /* Colors */
    --primary-500: #3B82F6;
    --primary-600: #2563EB;
    --primary-100: #DBEAFE;
    
    --bg-page: #F9FAFB;
    --bg-surface: #FFFFFF;
    
    --text-primary: #111827;
    --text-secondary: #4B5563;
    
    --border-subtle: #E5E7EB;
    
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-xxxl: 96px;
    
    /* Border Radius */
    --radius-card: 16px;
    --radius-btn: 12px;
    
    /* Shadows */
    --shadow-md: 0px 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0px 8px 24px rgba(59, 130, 246, 0.12);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 200ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-500);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu {
    display: none;
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    padding: var(--space-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: background-color 200ms ease;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--primary-500);
    background-color: var(--primary-100);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 200ms ease-out;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-500);
    color: var(--bg-surface);
}

.btn-primary:hover {
    background-color: var(--primary-600);
    transform: scale(1.03);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-large {
    height: 56px;
    padding: 0 32px;
    font-size: 16px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('imgs/paris_7.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--space-md);
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bg-surface);
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--border-subtle);
    margin-bottom: var(--space-xl);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-surface);
    border-radius: var(--radius-card);
    padding: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.search-icon {
    margin-left: var(--space-sm);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px var(--space-sm);
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background-color: var(--primary-500);
    color: var(--bg-surface);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 200ms ease;
}

.search-btn:hover {
    background-color: var(--primary-600);
}

/* ========================================
   Destinations Section
   ======================================== */
.destinations-section {
    padding: var(--space-xxxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.destination-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.destination-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--space-lg);
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.card-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-100);
    color: var(--primary-600);
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    padding: var(--space-xxxl) 0;
}

.cta-content {
    text-align: center;
    color: var(--bg-surface);
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.cta-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: var(--bg-surface);
    color: var(--primary-500);
}

.cta-section .btn-primary:hover {
    background-color: var(--border-subtle);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--bg-page);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.footer-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 200ms ease;
}

.footer-links a:hover {
    color: var(--primary-500);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ========================================
   Accessibility - Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
