/* ============================================================
   HERO FIX — Proper Alignment for All Devices
   /assets/css/components/hero-fix.css
   ============================================================ */

/* ─── Hero Container ─── */
.hero,
.hero-about,
.hero-science,
.hero-contact,
.hero-clinical,
.hero-snacking,
.hero-infant,
.hero-locator,
.hero-partner,
.hero-hcp,
.hero-legal {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    min-height: 70vh;
}

/* ─── Hero Background ─── */
.hero-background,
.hero-about-background,
.hero-science-background,
.hero-contact-background,
.hero-clinical-background,
.hero-snacking-background,
.hero-infant-background,
.hero-locator-background,
.hero-partner-background,
.hero-hcp-background,
.hero-legal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image,
.hero-about-image,
.hero-science-image,
.hero-contact-image,
.hero-clinical-image,
.hero-snacking-image,
.hero-infant-image,
.hero-locator-image,
.hero-partner-image,
.hero-hcp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

/* ─── Hero Overlay ─── */
.hero-overlay,
.hero-about-overlay,
.hero-science-overlay,
.hero-contact-overlay,
.hero-clinical-overlay,
.hero-snacking-overlay,
.hero-infant-overlay,
.hero-locator-overlay,
.hero-partner-overlay,
.hero-hcp-overlay,
.hero-legal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ─── Hero Content ─── */
.hero-content,
.hero-about-content,
.hero-science-content,
.hero-contact-content,
.hero-clinical-content,
.hero-snacking-content,
.hero-infant-content,
.hero-locator-content,
.hero-partner-content,
.hero-hcp-content,
.hero-legal-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 60px 0;
    width: 100%;
}

/* ─── Hero Headlines ─── */
.hero-headline,
.hero-about-headline,
.hero-science-headline,
.hero-contact-headline,
.hero-clinical-headline,
.hero-snacking-headline,
.hero-infant-headline,
.hero-locator-headline,
.hero-partner-headline,
.hero-hcp-headline,
.hero-legal-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-headline { font-size: 56px; color: #FFFFFF; }
.hero-about-headline { font-size: 42px; color: #FFFFFF; }
.hero-science-headline { font-size: 42px; color: #FFFFFF; }
.hero-contact-headline { font-size: 42px; color: #FFFFFF; }

/* ─── Hero Subheadlines ─── */
.hero-subheadline,
.hero-about-subheadline,
.hero-science-subheadline,
.hero-contact-subheadline,
.hero-clinical-subheadline,
.hero-snacking-subheadline,
.hero-infant-subheadline,
.hero-locator-subheadline,
.hero-partner-subheadline,
.hero-hcp-subheadline {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 24px;
}

.hero-subheadline,
.hero-about-subheadline,
.hero-science-subheadline,
.hero-contact-subheadline { color: rgba(255,255,255,0.9); }

/* ─── Hero Actions ─── */
.hero-actions,
.hero-about-actions,
.hero-science-actions,
.hero-contact-actions,
.hero-clinical-actions,
.hero-snacking-actions,
.hero-infant-actions,
.hero-locator-actions,
.hero-partner-actions,
.hero-hcp-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE — Hero
   ============================================================ */

/* ─── Tablet (1024px) ─── */
@media (max-width: 1024px) {
    .hero,
    .hero-about,
    .hero-science,
    .hero-contact,
    .hero-clinical,
    .hero-snacking,
    .hero-infant,
    .hero-locator,
    .hero-partner,
    .hero-hcp,
    .hero-legal {
        min-height: 60vh;
    }

    .hero-headline { font-size: 42px; }
    .hero-about-headline { font-size: 36px; }
    .hero-science-headline { font-size: 36px; }
    .hero-contact-headline { font-size: 36px; }

    .hero-subheadline,
    .hero-about-subheadline,
    .hero-science-subheadline,
    .hero-contact-subheadline {
        font-size: 17px;
    }
}

/* ─── Mobile (768px) ─── */
@media (max-width: 768px) {
    .hero,
    .hero-about,
    .hero-science,
    .hero-contact,
    .hero-clinical,
    .hero-snacking,
    .hero-infant,
    .hero-locator,
    .hero-partner,
    .hero-hcp,
    .hero-legal {
        min-height: 55vh;
        align-items: flex-start;
        padding-top: 30px;
    }

    .hero-content,
    .hero-about-content,
    .hero-science-content,
    .hero-contact-content,
    .hero-clinical-content,
    .hero-snacking-content,
    .hero-infant-content,
    .hero-locator-content,
    .hero-partner-content,
    .hero-hcp-content,
    .hero-legal-content {
        padding: 30px 0;
        max-width: 100%;
    }

    .hero-headline { font-size: 32px; }
    .hero-about-headline { font-size: 28px; }
    .hero-science-headline { font-size: 28px; }
    .hero-contact-headline { font-size: 28px; }

    .hero-headline br,
    .hero-about-headline br,
    .hero-science-headline br,
    .hero-contact-headline br {
        display: none;
    }

    .hero-subheadline,
    .hero-about-subheadline,
    .hero-science-subheadline,
    .hero-contact-subheadline {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-actions,
    .hero-about-actions,
    .hero-science-actions,
    .hero-contact-actions,
    .hero-clinical-actions,
    .hero-snacking-actions,
    .hero-infant-actions,
    .hero-locator-actions,
    .hero-partner-actions,
    .hero-hcp-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn,
    .hero-about-actions .btn,
    .hero-science-actions .btn,
    .hero-contact-actions .btn,
    .hero-clinical-actions .btn,
    .hero-snacking-actions .btn,
    .hero-infant-actions .btn,
    .hero-locator-actions .btn,
    .hero-partner-actions .btn,
    .hero-hcp-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Fix hero image position on mobile */
    .hero-image,
    .hero-about-image,
    .hero-science-image,
    .hero-contact-image,
    .hero-clinical-image,
    .hero-snacking-image,
    .hero-infant-image,
    .hero-locator-image,
    .hero-partner-image,
    .hero-hcp-image {
        object-position: center 35%;
    }

    /* Fix overlay for better text readability on mobile */
    .hero-overlay,
    .hero-about-overlay,
    .hero-science-overlay,
    .hero-contact-overlay,
    .hero-clinical-overlay,
    .hero-snacking-overlay,
    .hero-infant-overlay,
    .hero-locator-overlay,
    .hero-partner-overlay,
    .hero-hcp-overlay,
    .hero-legal-overlay {
        background: linear-gradient(135deg, rgba(0,51,102,0.85) 0%, rgba(0,51,102,0.6) 100%) !important;
    }
}

/* ─── Extra Small (480px) ─── */
@media (max-width: 480px) {
    .hero,
    .hero-about,
    .hero-science,
    .hero-contact,
    .hero-clinical,
    .hero-snacking,
    .hero-infant,
    .hero-locator,
    .hero-partner,
    .hero-hcp,
    .hero-legal {
        min-height: 50vh;
        padding-top: 20px;
    }

    .hero-headline { font-size: 28px; }
    .hero-about-headline { font-size: 24px; }
    .hero-science-headline { font-size: 24px; }
    .hero-contact-headline { font-size: 24px; }

    .hero-subheadline,
    .hero-about-subheadline,
    .hero-science-subheadline,
    .hero-contact-subheadline {
        font-size: 14px;
    }

    .hero-content,
    .hero-about-content,
    .hero-science-content,
    .hero-contact-content,
    .hero-clinical-content,
    .hero-snacking-content,
    .hero-infant-content,
    .hero-locator-content,
    .hero-partner-content,
    .hero-hcp-content,
    .hero-legal-content {
        padding: 20px 0;
    }

    .hero-image,
    .hero-about-image,
    .hero-science-image,
    .hero-contact-image,
    .hero-clinical-image,
    .hero-snacking-image,
    .hero-infant-image,
    .hero-locator-image,
    .hero-partner-image,
    .hero-hcp-image {
        object-position: center 30%;
    }
}