/* src/styles/components/hero.css */
.hero-section {
    background-color: var(--secondary-off-white);
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text-main-charcoal);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-deep-blue);
    color: var(--secondary-off-white);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* ===== FIX: Device-Specific Layouts for Hero Section ===== */

/* --- iPad Air (and similar tablets) --- */
@media (max-width: 820px) {
    .hero-container {
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 2rem;
    }
    .hero-image {
        order: -1; 
        margin-bottom: 0;
    }
    .hero-text {
        order: 2;
    }
    .hero-image img {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* --- iPhone 12 Pro (and similar modern phones) --- */
@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0;
        display: flex;
        align-items: center;
        min-height: calc(100vh - 68px); /* Full viewport height minus header */
    }
    .hero-image img {
        max-width: 250px;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text h2 {
        font-size: 1.1rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
}

/* --- iPhone SE (and other small phones) --- */
@media (max-width: 390px) {
    .hero-section {
        padding: 2rem 0;
        min-height: calc(100vh - 68px);
    }
    .hero-image img {
        max-width: 180px;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-text h2 {
        font-size: 1rem;
    }
    .hero-text p {
        display: none; /* Hide the descriptive paragraph to save space */
    }
}