
/* ==========================================================
   INVOMIZE AMAZON FBA — PREMIUM HERO SECTION
   Shortcode: [invomize_hero]

   Global fonts:
   assets/css/fonts.css

   Features:
   - Vertically centered hero content
   - Premium benefit checklist
   - Responsive two-column layout
   - Live GHL form
   - Animated GHL skeleton loader
   ========================================================== */

/* ==========================================================
   01. RESET
   ========================================================== */

.iaf-hero,
.iaf-hero *,
.iaf-hero *::before,
.iaf-hero *::after {
    box-sizing: border-box;
}

/* ==========================================================
   02. HERO SECTION
   ========================================================== */

.iaf-hero {
    width: 100%;
    margin: 0;
    padding: 55px 24px 75px;

    background: #FAFAFA;
    color: #16232B;
}

.iaf-hero__container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(0, 0.92fr);

    align-items: center;

    column-gap: clamp(40px, 4.5vw, 75px);

    width: 100%;
    max-width: 1425px;

    margin: 0 auto;
}

/* ==========================================================
   03. LEFT COLUMN — VERTICALLY CENTERED
   ========================================================== */

.iaf-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

/* ==========================================================
   04. EYEBROW
   ========================================================== */

.iaf-hero__eyebrow {
    display: inline-block;

    margin: 0 0 19px;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.035em;

    color: #49B99A;
}

/* ==========================================================
   05. MAIN HEADING
   ========================================================== */

.iaf-hero__title {
    width: 100%;
    max-width: 750px;

    margin: 0;
    padding: 0;

    font-family: var(--iaf-font-heading);

    font-size: clamp(44px, 4.35vw, 67px);
    font-weight: 500;
    line-height: 1.075;
    letter-spacing: -0.04em;

    color: #1A112A;

    overflow-wrap: normal;
}

.iaf-hero__accent {
    color: #49B99A;
}

/* ==========================================================
   06. DESCRIPTION
   ========================================================== */

.iaf-hero__description {
    width: 100%;
    max-width: 635px;

    margin: 28px 0 0;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.012em;

    color: #697386;
}

/* ==========================================================
   07. PREMIUM BENEFIT CHECKLIST
   ========================================================== */

.iaf-hero__benefits {
    display: flex;
    flex-direction: column;

    gap: 10px;

    width: 100%;
    max-width: 655px;

    margin: 31px 0 0;
    padding: 0;

    list-style: none;
}

/* Each benefit row */

.iaf-hero__benefit {
    display: flex;
    align-items: center;

    gap: 14px;

    width: 100%;
    min-width: 0;
    min-height: 62px;

    margin: 0;
    padding: 13px 16px;

    background: #FFFFFF;

    border: 1px solid #E3ECE8;
    border-radius: 14px;

    box-shadow:
        0 2px 8px rgba(22, 35, 43, 0.025);

    font-family: var(--iaf-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.012em;

    color: #52636D;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Hover treatment */

.iaf-hero__benefit:hover {
    background: #F5FAF8;

    border-color: #B8DED1;

    box-shadow:
        0 5px 15px rgba(73, 185, 154, 0.07);
}

/* Text */

.iaf-hero__benefit > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
}

/* ==========================================================
   08. PREMIUM CHECK ICONS
   ========================================================== */

.iaf-hero__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    margin: 0;
    padding: 0;

    background: #E6F6EF;

    border: 1px solid #D1EBE0;
    border-radius: 11px;

    color: #329F80;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.iaf-hero__check svg {
    display: block;

    width: 17px;
    height: 17px;

    stroke-width: 2.5;
}

.iaf-hero__benefit:hover .iaf-hero__check {
    background: #49B99A;
    color: #FFFFFF;
}

/* ==========================================================
   09. RIGHT COLUMN — LIVE GHL FORM
   ========================================================== */

.iaf-hero__form-column {
    width: 100%;
    min-width: 0;

    align-self: center;

    margin: 0;
    padding: 0;

    scroll-margin-top: 100px;
}

.iaf-hero__form-slot {
    position: relative;
    isolation: isolate;

    width: 100%;
    min-width: 0;
    min-height: 650px;

    margin: 0;
    padding: 0;

    overflow: visible;
}

/* ==========================================================
   10. ACTUAL GHL IFRAME
   ========================================================== */

.iaf-hero__ghl-frame,
.iaf-hero__form-slot iframe {
    display: block;

    width: 100%;
    max-width: 100%;

    height: 650px;
    min-height: 650px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 12px;

    background: transparent;

    vertical-align: top;
}

/*
 * The official GoHighLevel embed script
 * can adjust the iframe height.
 *
 * Avoid max-height and overflow:hidden
 * so the form is not clipped.
 */

/* ==========================================================
   11. GHL SKELETON LOADER
   ========================================================== */

.iaf-ghl-skeleton {
    position: absolute;
    z-index: 2;

    inset: 0 auto auto 0;

    display: flex;
    flex-direction: column;

    gap: 20px;

    width: 100%;
    min-height: 650px;

    padding: 30px;

    background: #FAFAFA;

    border: 1px solid #DDE7E3;
    border-radius: 16px;

    box-shadow:
        0 5px 18px rgba(22, 35, 43, 0.045);

    pointer-events: none;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

/* Hide skeleton after iframe load */

.iaf-hero__form-slot.iaf-ghl-is-loaded
.iaf-ghl-skeleton {
    opacity: 0;
    visibility: hidden;
}

/* ==========================================================
   12. SKELETON SHIMMER
   ========================================================== */

.iaf-ghl-skeleton__line,
.iaf-ghl-skeleton__input,
.iaf-ghl-skeleton__button {
    display: block;

    background: linear-gradient(
        100deg,
        #E5E8EA 10%,
        #F3F5F5 35%,
        #E5E8EA 60%
    );

    background-size: 200% 100%;

    animation:
        iaf-ghl-shimmer 1.6s linear infinite;
}

/* Placeholder lines */

.iaf-ghl-skeleton__line {
    width: 100%;
    height: 13px;

    border-radius: 6px;
}

.iaf-ghl-skeleton__line--small {
    width: 55%;
    height: 12px;
}

.iaf-ghl-skeleton__line--medium {
    width: 72%;
}

.iaf-ghl-skeleton__line--label {
    width: 48%;
    height: 12px;
}

/* Top */

.iaf-ghl-skeleton__top {
    width: 100%;
}

/* Progress */

.iaf-ghl-skeleton__progress {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.iaf-ghl-skeleton__progress span {
    height: 5px;

    background: #E5E8EA;
    border-radius: 100px;
}

.iaf-ghl-skeleton__progress span:first-child {
    background: #49B99A;
}

/* Heading */

.iaf-ghl-skeleton__heading {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.iaf-ghl-skeleton__heading
.iaf-ghl-skeleton__line {
    height: 19px;
}

/* Description */

.iaf-ghl-skeleton__description {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

/* Fields */

.iaf-ghl-skeleton__field {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.iaf-ghl-skeleton__input {
    width: 100%;
    height: 56px;

    border: 1px solid #D8DDE0;
    border-radius: 15px;
}

/* Button placeholder */

.iaf-ghl-skeleton__button {
    width: 100%;
    height: 56px;

    border-radius: 15px;

    background: linear-gradient(
        100deg,
        #A8DDCC,
        #D1EFE5,
        #A8DDCC
    );

    background-size: 200% 100%;
}

/* Footer */

.iaf-ghl-skeleton__footer {
    display: flex;
    justify-content: center;

    margin-top: 5px;
}

/* Shimmer animation */

@keyframes iaf-ghl-shimmer {

    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================
   13. SMALL DESKTOP
   ========================================================== */

@media (max-width: 1199px) {

    .iaf-hero {
        padding: 45px 24px 60px;
    }

    .iaf-hero__container {
        column-gap: 35px;
    }

    .iaf-hero__title {
        font-size: clamp(38px, 4.5vw, 54px);
    }

    .iaf-hero__description {
        font-size: 15px;
        line-height: 1.6;
    }

    .iaf-hero__benefits {
        gap: 9px;
        margin-top: 25px;
    }

    .iaf-hero__benefit {
        padding: 12px 13px;

        font-size: 13px;
        line-height: 1.45;
    }

    .iaf-hero__check {
        flex-basis: 31px;

        width: 31px;
        height: 31px;
    }
}

/* ==========================================================
   14. TABLET — STACK COLUMNS
   ========================================================== */

@media (max-width: 900px) {

    .iaf-hero {
        padding: 42px 24px 60px;
    }

    .iaf-hero__container {
        max-width: 700px;

        grid-template-columns:
            minmax(0, 1fr);

        row-gap: 42px;
    }

    .iaf-hero__content {
        align-items: flex-start;
        justify-content: flex-start;

        padding: 0;
    }

    .iaf-hero__title {
        max-width: 700px;

        font-size: clamp(43px, 7vw, 60px);
    }

    .iaf-hero__description {
        max-width: 680px;
    }

    .iaf-hero__benefits {
        max-width: 100%;
    }

    .iaf-hero__benefit {
        font-size: 14px;
    }

    .iaf-hero__form-column {
        width: 100%;
        max-width: 600px;

        margin: 0 auto;

        align-self: start;
    }

    .iaf-hero__form-slot {
        min-height: 650px;
    }

    .iaf-hero__ghl-frame,
    .iaf-hero__form-slot iframe {
        height: 650px;
        min-height: 650px;
    }
}

/* ==========================================================
   15. MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .iaf-hero {
        padding: 35px 18px 50px;
    }

    .iaf-hero__container {
        row-gap: 35px;
    }

    /* Eyebrow */

    .iaf-hero__eyebrow {
        margin-bottom: 16px;

        font-size: 15px;
        line-height: 1.4;
    }

    /* Heading */

    .iaf-hero__title {
        font-size: clamp(35px, 9vw, 46px);
        line-height: 1.09;
        letter-spacing: -0.035em;
    }

    /* Description */

    .iaf-hero__description {
        margin-top: 23px;

        font-size: 14px;
        line-height: 1.6;
        letter-spacing: -0.01em;
    }

    /* Premium checklist */

    .iaf-hero__benefits {
        margin-top: 25px;
        gap: 9px;
    }

    .iaf-hero__benefit {
        align-items: center;

        gap: 11px;
        min-height: 0;

        padding: 12px;

        border-radius: 12px;

        font-size: 12px;
        line-height: 1.5;
    }

    .iaf-hero__check {
        flex: 0 0 30px;

        width: 30px;
        height: 30px;

        border-radius: 9px;
    }

    .iaf-hero__check svg {
        width: 15px;
        height: 15px;
    }

    /* GHL form */

    .iaf-hero__form-column {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;

        scroll-margin-top: 75px;
    }

    .iaf-hero__form-slot {
        min-height: 650px;
    }

    .iaf-hero__ghl-frame,
    .iaf-hero__form-slot iframe {
        width: 100%;
        height: 650px;
        min-height: 650px;

        border-radius: 10px;
    }

    /* Skeleton */

    .iaf-ghl-skeleton {
        min-height: 650px;

        padding: 22px 18px;
        gap: 18px;

        border-radius: 12px;
    }

    .iaf-ghl-skeleton__input {
        height: 52px;
    }

    .iaf-ghl-skeleton__button {
        height: 52px;
    }
}

/* ==========================================================
   16. SMALL MOBILE
   ========================================================== */

@media (max-width: 375px) {

    .iaf-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .iaf-hero__title {
        font-size: 34px;
    }

    .iaf-hero__eyebrow {
        font-size: 14px;
    }

    .iaf-hero__benefit {
        font-size: 11.5px;
        padding: 10px;
        gap: 9px;
    }

    .iaf-hero__check {
        flex-basis: 27px;

        width: 27px;
        height: 27px;
    }

    .iaf-hero__ghl-frame,
    .iaf-hero__form-slot iframe {
        border-radius: 8px;
    }

    .iaf-ghl-skeleton {
        padding: 20px 15px;
    }
}

/* ==========================================================
   17. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .iaf-hero__benefit,
    .iaf-hero__check,
    .iaf-ghl-skeleton {
        transition: none;
    }

    .iaf-ghl-skeleton__line,
    .iaf-ghl-skeleton__input,
    .iaf-ghl-skeleton__button {
        animation: none;
    }
}
