/* Home Page Styles */

/* Hero Section */
.hero {
    position: relative;
    height: 900px;
    background-image: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?q=80&w=2069&auto=format&fit=crop'); /* Placeholder Image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(5, 32, 60, 0.7), rgba(5, 32, 60, 0.4));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-on-primary);
    margin-bottom: var(--spacing-sm);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

/* Search Widget */
.search-widget {
    background: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: var(--spacing-lg) auto 0;
}

.search-form {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
}

.search-form__group {
    flex: 1;
    text-align: right;
}

.search-form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.search-form__input-wrapper {
    position: relative;
}

.search-form__input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--color-surface-variant);
    color: var(--color-text-primary);
    transition: border-color 0.2s;
}

.search-form__input:focus {
    outline: none;
    border-color: var(--color-brand-blue);
    background-color: var(--color-surface);
}

.search-form__swap {
    background: var(--color-surface-variant);
    border: 1px solid var(--color-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-brand-blue);
    font-size: 1.2rem;
    margin-bottom: 4px; /* Align with inputs */
    transition: all 0.2s;
}

.search-form__swap:hover {
    background-color: var(--color-brand-blue);
    color: white;
    transform: rotate(180deg);
}

.search-form__submit {
    height: 48px; /* Match input height approx */
    padding: 0 var(--spacing-xl);
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-surface-variant);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xl);
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: -1rem auto var(--spacing-xl);
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.step-card {
    background: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    border: 1px solid var(--color-border);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-brand-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto var(--spacing-md);
}

.step-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.step-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Partners Section */
.partners {
    padding: var(--spacing-xxl) 0;
    background-color: #f8fafc;
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.partner-logo {
    background: white;
    border-radius: 16px;
    padding: 24px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    font-weight: 700;
    color: var(--color-text-secondary);
    text-align: center;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.05);
}

/* App Download Section */
.app-download {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
    overflow: hidden;
}

.app-download__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xxl);
}

.app-download__content {
    flex: 1;
    max-width: 500px;
}

.app-download__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.app-download__desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.app-download__buttons {
    display: flex;
    gap: var(--spacing-md);
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #000;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.store-icon {
    width: 32px;
    height: 32px;
}

.btn-store__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.btn-store__text span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.app-download__image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.app-mockup-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.app-mockup-image:hover {
    transform: translateY(-10px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 600px;
    }

    .hero__title {
        font-size: 1.5rem;
    }
    
    .search-widget {
        padding: var(--spacing-md);
        max-width: 100%;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form__swap {
        margin: 0 auto;
        transform: rotate(90deg);
    }
    
    .search-form__swap:hover {
        transform: rotate(270deg);
    }

    .header__nav {
        display: none; /* Simple hide for mobile for now */
    }

    .app-download__container {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .app-download__content {
        max-width: 100%;
    }

    .app-download__buttons {
        justify-content: center;
    }

    .section-desc {
        font-size: 0.9rem;
    }
}
