/* ============================================================
   Homepage Styles
   ============================================================ */

/* ── Hero Section ─────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 50%, #4f8df5 100%);
    padding: 80px 0 100px;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--gray-50);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-content h2.hero-sub-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    opacity: 0.95;
}

.hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 40px;
}

/* ── Search Form ──────────────────────────────────────── */
.search-box {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-field .input-wrapper {
    position: relative;
}

.search-field input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    color: var(--gray-800);
    transition: all var(--transition-fast);
    outline: none;
}

.search-field input:focus {
    border-color: var(--primary-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.search-btn {
    padding: 12px 32px;
    height: 48px;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 4px;
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.autocomplete-dropdown.active {
    display: block;
    animation: fadeIn 0.15s var(--ease);
}

.autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background var(--transition-fast);
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background: var(--primary-50);
    color: var(--primary-700);
}

.autocomplete-item i {
    color: var(--gray-400);
}

/* ── Features Section ─────────────────────────────────── */
.features-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--gray-500);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--primary-50);
    color: var(--primary-600);
    margin-bottom: 16px;
}

.feature-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

/* ── Popular Routes Section ───────────────────────────── */
.routes-section {
    padding: 0 0 80px;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.route-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 16px;
}

.route-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.route-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
}

.route-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.route-info p {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin: 0;
}

.route-price {
    margin-left: auto;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-600);
    font-size: 1rem;
    white-space: nowrap;
}

/* ── CTA Section ──────────────────────────────────────── */
.cta-section {
    padding: 0 0 80px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}

.cta-box p {
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    margin: 0 auto 24px;
    position: relative;
}

.cta-box .btn {
    background: #fff;
    color: var(--primary-700);
    position: relative;
}

.cta-box .btn:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.25rem; }
    .search-form { grid-template-columns: 1fr 1fr; }
    .search-btn { grid-column: span 2; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .routes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .hero { padding: 60px 0 80px; min-height: auto; }
    .hero-content h1 { font-size: 1.75rem; }
    .hero-content p { font-size: 1rem; }
    .search-box { padding: 20px; border-radius: var(--radius-lg); }
    .search-form { grid-template-columns: 1fr 1fr; }
    .search-field:nth-child(3) { grid-column: span 2; }
    .search-btn { grid-column: span 2; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .feature-card { padding: 24px 16px; }
    .feature-card svg { width: 28px; height: 28px; }
    .feature-icon { width: 56px; height: 56px; }
    .routes-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 24px; }
}
