/* AstroFresh One-Page — frontend styles
 * Pixel-perfect to the AstroFresh Figma at 1440px, scales down to 375px.
 */

/* ─── Reset within the shortcode root only ───────────────── */
.afop-root,
.afop-root *,
.afop-root *::before,
.afop-root *::after {
    box-sizing: border-box;
}

.afop-root {
    font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
    color: #1E2630;
    font-size: 16px;
    line-height: 1.5;
    background: #fff;

    /* fallback values; the renderer also outputs an inline style block */
    --afop-navy-900: #0F1B26;
    --afop-navy-800: #1E2C3D;
    --afop-navy-700: #2D3A4A;
    --afop-navy-600: #445566;
    --afop-navy-100: #E8EEF2;
    --afop-teal-500: #1B9C9C;
    --afop-teal-400: #2BB5B5;
    --afop-teal-100: #E0F2F2;
    --afop-cream: #F5F7F9;
    --afop-gold: #F5C242;
    --afop-bronze: #CD7F32;
    --afop-silver: #C0C5CC;
}

.afop-root a { color: inherit; text-decoration: none; }
.afop-root p { margin: 0; }
.afop-root ul { list-style: none; padding: 0; margin: 0; }
.afop-root img { max-width: 100%; height: auto; display: block; }
.afop-root button { font-family: inherit; cursor: pointer; }

html { scroll-behavior: smooth; }
body.afop-site { scroll-padding-top: 100px; }

/* ─── Container ──────────────────────────────────────────── */
.afop-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ─── Buttons ────────────────────────────────────────────── */
.afop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}
.afop-btn--lg { padding: 18px 24px; font-size: 15px; min-height: 56px; }
.afop-btn--primary { background: var(--afop-teal-500); color: #fff; }
.afop-btn--primary:hover { background: var(--afop-teal-400); }
.afop-btn--dark { background: var(--afop-navy-700); color: #fff; }
.afop-btn--dark:hover { background: var(--afop-navy-600); }
.afop-btn--outline { background: transparent; color: var(--afop-teal-500); border-color: var(--afop-teal-500); }
.afop-btn--outline:hover { background: var(--afop-teal-500); color: #fff; }

/* ─── Eyebrow ────────────────────────────────────────────── */
.afop-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--afop-teal-500);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 16px;
}
.afop-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--afop-teal-500);
    display: inline-block;
}
.afop-h2 {
    font-size: 42px;
    font-weight: 600;
    line-height: 50px;
    letter-spacing: -0.5px;
    color: var(--afop-navy-800);
    margin: 0;
}
.afop-h2--on-dark { color: #fff; }

.afop-section-head { margin-bottom: 56px; }
.afop-section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 40px;
    align-items: end;
}
.afop-section-head--center { text-align: center; }
.afop-section-head--center .afop-eyebrow { justify-content: center; }
.afop-section-head__sub {
    color: #4A5260;
    font-size: 14px;
    line-height: 22px;
    margin: 0;
}
.afop-section-head__sub--on-dark { color: var(--afop-navy-100); }

.afop-link-arrow {
    color: var(--afop-teal-500);
    font-size: 14px;
    font-weight: 600;
    transition: opacity .15s ease;
}
.afop-link-arrow:hover { opacity: 0.75; }

.afop-tick {
    color: var(--afop-teal-500);
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

.afop-photo-label {
    color: #7A8290;
    font-size: 13px;
    font-weight: 500;
}
.afop-photo-label--on-dark { color: rgba(255,255,255,0.55); }

/* ─── 1. HEADER ──────────────────────────────────────────── */
.afop-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow .2s ease;
}
.afop-header.is-stuck { box-shadow: 0 4px 24px rgba(15,27,38,0.06); }
.afop-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    height: 88px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.afop-header__logo { flex-shrink: 0; }
.afop-header__logo img { max-height: 56px; width: auto; }
.afop-logo-placeholder {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: 1.5px dashed var(--afop-navy-100);
    border-radius: 10px;
    color: var(--afop-navy-700);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2px;
}
.afop-logo-placeholder--dark {
    border-color: rgba(255,255,255,0.18);
    color: #fff;
}

.afop-burger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--afop-navy-100);
    border-radius: 10px;
}
.afop-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--afop-navy-700);
    border-radius: 2px;
}

.afop-nav { margin-left: auto; }
.afop-nav ul { display: flex; gap: 32px; }
.afop-nav a {
    color: var(--afop-navy-800);
    font-size: 14px;
    font-weight: 500;
    transition: color .15s ease;
}
.afop-nav a:hover { color: var(--afop-teal-500); }

.afop-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.afop-phone-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--afop-navy-100);
}
.afop-phone-cta__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--afop-teal-100);
    color: var(--afop-teal-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.afop-phone-cta__copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.afop-phone-cta__label {
    font-size: 10px;
    font-weight: 500;
    color: var(--afop-navy-600);
    text-transform: none;
    letter-spacing: 0.2px;
}
.afop-phone-cta__number {
    font-size: 14px;
    font-weight: 700;
    color: var(--afop-navy-800);
    letter-spacing: 0.2px;
}
.afop-header__cta { padding: 12px 18px; }

/* ─── 2. HERO ────────────────────────────────────────────── */
.afop-hero {
    background-color: var(--afop-navy-800);
    color: #fff;
    padding: 80px 0 96px;
    min-height: 720px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

/*  Two-layer background system for hero, pricing & bottom CTA:
 *  ::before holds the image with a normal `filter: blur()` so the blur
 *  applies to the image itself (not to copy/forms on top). ::after holds
 *  the tint overlay. Content sits on z-index: 2.
 */
.afop-hero::before,
.afop-pricing::before,
.afop-bottom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--afop-bg-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(var(--afop-blur, 0));
    /* Slight zoom hides the fade-to-transparent blur edge artifact. */
    transform: scale(1.04);
    pointer-events: none;
    z-index: 0;
}
.afop-hero::after,
.afop-pricing::after,
.afop-bottom-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--afop-tint-color, transparent);
    opacity: var(--afop-tint-amount, 0);
    pointer-events: none;
    z-index: 1;
}
.afop-hero > *,
.afop-pricing > *,
.afop-bottom-cta > * {
    position: relative;
    z-index: 2;
}
.afop-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(0, 440px);
    gap: 80px;
    align-items: center;
    padding: 0 120px;
}
.afop-hero__copy .afop-eyebrow { color: var(--afop-teal-400); }
.afop-hero__copy .afop-eyebrow-dot { background: var(--afop-teal-400); }
.afop-hero__title {
    margin: 0 0 28px;
    font-size: 60px;
    font-weight: 600;
    line-height: 66px;
    letter-spacing: -1px;
}
.afop-hero__title-1, .afop-hero__title-2 { display: block; }
.afop-hero__title-1 { color: #fff; }
.afop-hero__title-2 { color: var(--afop-teal-500); }
.afop-hero__sub {
    color: rgba(255,255,255,0.78);
    font-size: 16px;
    line-height: 26px;
    max-width: 600px;
    margin-bottom: 28px;
}
.afop-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin-bottom: 36px;
}
.afop-hero__badges li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 500;
}
.afop-hero__badge-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--afop-teal-400);
}
.afop-hero__cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.afop-hero__rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.afop-hero__rating-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.afop-hero__rating-stars {
    color: var(--afop-gold);
    font-size: 18px;
    letter-spacing: 1px;
}
.afop-hero__rating-text {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

/* ─── Booking form card ──────────────────────────────────── */
.afop-hero__form { display: flex; justify-content: center; }
.afop-form {
    background: #fff;
    color: #1E2630;
    border-radius: 16px;
    box-shadow: 0 30px 60px -20px rgba(15,27,38,0.45);
    padding: 28px 32px 24px;
    width: 100%;
    max-width: 440px;
    position: relative;
}
.afop-form__stripe {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: var(--afop-teal-500);
    border-radius: 0 0 4px 4px;
}
.afop-form__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--afop-navy-800);
    margin: 4px 0 8px;
    text-align: center;
}
.afop-form__sub {
    color: #4A5260;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    margin-bottom: 18px;
}
.afop-form__success {
    background: var(--afop-teal-100);
    color: #0E5D5D;
    border: 1px solid var(--afop-teal-400);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}
.afop-field { display: block; margin-bottom: 12px; }
.afop-field__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--afop-navy-600);
    margin-bottom: 6px;
}
.afop-field input,
.afop-field select,
.afop-field textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #CDD3DA;
    border-radius: 10px;
    color: var(--afop-navy-800);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.afop-field textarea {
    height: auto;
    padding: 12px 14px;
    min-height: 72px;
    resize: vertical;
}
.afop-field input:focus,
.afop-field select:focus,
.afop-field textarea:focus {
    outline: none;
    border-color: var(--afop-teal-500);
    box-shadow: 0 0 0 3px rgba(27,156,156,0.18);
}
.afop-form__submit {
    margin-top: 6px;
    width: 100%;
    background: var(--afop-navy-700);
    color: #fff;
    border: none;
    border-radius: 12px;
    height: 52px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color .15s ease;
}
.afop-form__submit:hover { background: var(--afop-navy-800); }
.afop-form__submit span { color: #fff; }
.afop-form__submit::after {
    content: '';
    display: none;
}
.afop-form__privacy {
    color: #7A8290;
    font-size: 11px;
    text-align: center;
    margin: 12px 0 4px;
}
.afop-form__badge {
    color: var(--afop-navy-700);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* ─── 3. SERVICES ────────────────────────────────────────── */
.afop-services { background: var(--afop-cream); padding: 96px 0; }
.afop-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.afop-service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -16px rgba(15,27,38,0.18);
    position: relative;
    display: flex;
    flex-direction: column;
}
.afop-service-card__photo {
    height: 180px;
    background-color: var(--afop-navy-100);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.afop-service-card__icon {
    position: absolute;
    top: 152px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: var(--afop-teal-500);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    box-shadow: 0 10px 24px -8px rgba(27,156,156,0.6);
}
.afop-service-card__body {
    padding: 40px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.afop-service-card__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    color: var(--afop-navy-800);
}
.afop-service-card__copy {
    color: #4A5260;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 18px;
}
.afop-feature-list { margin-bottom: 18px; }
.afop-feature-list li {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 22px;
    color: var(--afop-navy-700);
    margin-bottom: 2px;
}
.afop-service-card__divider {
    border: none;
    height: 1px;
    background: #CDD3DA;
    margin: 8px 0 14px;
}
.afop-service-card__tier {
    color: var(--afop-teal-500);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 14px;
}
.afop-service-card .afop-link-arrow { margin-top: auto; }

/* ─── 4. USE CASES ───────────────────────────────────────── */
.afop-usecases { background: #fff; padding: 96px 0; }
.afop-carousel-arrows { display: inline-flex; gap: 12px; justify-self: end; }
.afop-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--afop-navy-100);
    color: var(--afop-navy-700);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.afop-arrow:hover {
    background: var(--afop-navy-100);
}
.afop-arrow--next {
    background: var(--afop-teal-500);
    color: #fff;
    border-color: var(--afop-teal-500);
}
.afop-arrow--next:hover { background: var(--afop-teal-400); border-color: var(--afop-teal-400); }
.afop-usecases__rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    scrollbar-width: thin;
}
.afop-usecases__rail::-webkit-scrollbar { height: 6px; }
.afop-usecases__rail::-webkit-scrollbar-thumb { background: var(--afop-navy-100); border-radius: 3px; }
.afop-usecase-card {
    background: var(--afop-cream);
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}
.afop-usecase-card__photo {
    height: 180px;
    background-color: var(--afop-navy-100);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.afop-usecase-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    color: var(--afop-navy-700);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 999px;
}
.afop-usecase-card__body { padding: 18px 20px 20px; }
.afop-usecase-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--afop-navy-800);
}
.afop-usecase-card__copy {
    color: #4A5260;
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 16px;
}

/* ─── 5. PRICING ─────────────────────────────────────────── */
.afop-pricing {
    background-color: var(--afop-navy-800);
    padding: 96px 0;
    color: #fff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.afop-pricing__head { max-width: 980px; }
.afop-pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.afop-tier {
    background: #2A3D52;
    color: #fff;
    border-radius: 16px;
    padding: 32px 32px 32px;
    position: relative;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}
.afop-tier--featured {
    background: #fff;
    color: var(--afop-navy-800);
    border-color: var(--afop-teal-500);
    box-shadow: 0 30px 60px -20px rgba(27,156,156,0.32);
    padding-top: 48px;
}
.afop-tier__stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: var(--afop-silver);
}
.afop-tier--bronze .afop-tier__stripe { background: var(--afop-bronze); }
.afop-tier--silver .afop-tier__stripe { background: var(--afop-silver); }
.afop-tier--gold .afop-tier__stripe { background: var(--afop-gold); }
.afop-tier__badge {
    position: absolute;
    top: 14px;
    left: 32px;
    background: var(--afop-teal-500);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 5px 10px;
    border-radius: 999px;
}
.afop-tier__tag {
    color: var(--afop-silver);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.afop-tier--bronze .afop-tier__tag { color: var(--afop-bronze); }
.afop-tier--gold .afop-tier__tag { color: var(--afop-gold); }
.afop-tier--featured .afop-tier__tag { color: var(--afop-teal-500); }
.afop-tier__name {
    font-size: 36px;
    font-weight: 600;
    line-height: 44px;
    margin: 0 0 12px;
    color: inherit;
}
.afop-tier__duration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 12px;
}
.afop-tier--featured .afop-tier__duration { color: var(--afop-navy-600); }
.afop-tier__desc {
    font-size: 13px;
    line-height: 20px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
}
.afop-tier--featured .afop-tier__desc { color: #4A5260; }
.afop-tier__features { flex: 1; margin-bottom: 24px; }
.afop-tier__features li {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    line-height: 22px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 4px;
}
.afop-tier--featured .afop-tier__features li { color: var(--afop-navy-800); }
.afop-tier__cta { width: 100%; min-height: 44px; }
.afop-tier__cta.afop-btn--outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.afop-tier__cta.afop-btn--outline:hover { background: var(--afop-teal-500); border-color: var(--afop-teal-500); color: #fff; }

.afop-pricing__footnote {
    text-align: center;
    color: var(--afop-navy-100);
    font-size: 13px;
}

/* ─── 6. OUR WORK ────────────────────────────────────────── */
.afop-work { background: var(--afop-cream); padding: 96px 0; }
.afop-work__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.afop-case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -16px rgba(15,27,38,0.16);
    display: flex;
    flex-direction: column;
}
.afop-case-card__split {
    /* Flex (not grid) so each half reliably fills the full split height.
     * Aspect-ratio keeps photos proportional as cards scale. */
    aspect-ratio: 5 / 4;
    min-height: 260px;
    display: flex;
}
.afop-case-card__half {
    flex: 1;
    min-width: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.afop-case-card__half--before {
    background-color: #3F4E5F;
    border-right: 2px solid #fff;
}
.afop-case-card__half--after { background-color: var(--afop-navy-100); }
.afop-case-card__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
}
.afop-case-card__tag--before { background: var(--afop-navy-800); }
.afop-case-card__tag--after  { background: var(--afop-teal-500); }
.afop-case-card__body { padding: 24px; }
.afop-case-card__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: var(--afop-navy-800);
}
.afop-case-card__location {
    color: #7A8290;
    font-size: 12px;
    margin-bottom: 16px;
}
.afop-case-card__line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 4px;
}
.afop-case-card__line--bad { color: #B85454; }
.afop-case-card__line--good { color: var(--afop-teal-500); font-weight: 600; }
.afop-work__footer { margin-top: 32px; text-align: right; }

/* ─── 7. TESTIMONIALS ────────────────────────────────────── */
.afop-testimonials { background: var(--afop-navy-100); padding: 96px 0; }
.afop-testimonials .afop-eyebrow { color: var(--afop-teal-500); justify-content: center; }
.afop-testimonials__grid {
    display: grid;
    grid-template-columns: 380px 460px 380px;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-bottom: 36px;
}
.afop-testimonials__photo {
    height: 400px;
    background-color: var(--afop-navy-700);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 20px 40px -16px rgba(15,27,38,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    text-align: center;
    padding: 16px;
}
.afop-review {
    background: var(--afop-navy-800);
    color: #fff;
    border-radius: 16px;
    padding: 28px 32px 28px;
    height: 280px;
    box-shadow: 0 15px 35px -16px rgba(15,27,38,0.32);
    position: relative;
    display: flex;
    flex-direction: column;
}
.afop-review__quote {
    color: var(--afop-teal-500);
    font-size: 64px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: Georgia, 'Times New Roman', serif;
}
.afop-review__body {
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    flex: 1;
}
.afop-review__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.afop-review__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--afop-navy-600);
    color: var(--afop-teal-400);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.afop-review__name { font-size: 13px; font-weight: 600; color: #fff; margin: 0; }
.afop-review__role { font-size: 11px; color: var(--afop-navy-100); margin: 0; }
.afop-testimonials__arrows {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ─── 8. FAQS ────────────────────────────────────────────── */
.afop-faqs { background: #fff; padding: 96px 0; }
.afop-faqs__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.afop-faqs__panel {
    background-color: var(--afop-navy-800);
    color: #fff;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.afop-faqs__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--afop-bg-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(var(--afop-blur, 0));
    transform: scale(1.04);
    pointer-events: none;
    z-index: 0;
}
.afop-faqs__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--afop-tint-color, transparent);
    opacity: var(--afop-tint-amount, 0);
    pointer-events: none;
    z-index: 1;
}
.afop-faqs__panel > * {
    position: relative;
    z-index: 2;
}
.afop-faqs__panel .afop-eyebrow { color: var(--afop-teal-400); }
.afop-faqs__panel .afop-eyebrow-dot { background: var(--afop-teal-400); }
.afop-faqs__panel-title {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 600;
    line-height: 34px;
    color: #fff;
}
.afop-faqs__panel-body {
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 24px;
}
.afop-faqs__panel-cta { width: 100%; margin-bottom: 16px; }
.afop-faqs__panel-phone {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}
.afop-faqs__panel-phone a {
    color: #fff;
    font-weight: 700;
    margin-left: 6px;
}

.afop-faq { border-bottom: 1px solid #CDD3DA; }
.afop-faq__q {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    color: var(--afop-navy-800);
    font-size: 17px;
    font-weight: 600;
}
.afop-faq__icon {
    color: #7A8290;
    font-size: 24px;
    font-weight: 400;
    width: 24px;
    text-align: center;
    transition: color .15s ease, transform .2s ease;
}
.afop-faq--open .afop-faq__icon { color: var(--afop-teal-500); }
.afop-faq__a {
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
}
.afop-faq--open .afop-faq__a {
    max-height: 400px;
    padding-bottom: 20px;
}
.afop-faq__a p {
    color: #4A5260;
    font-size: 14px;
    line-height: 22px;
    max-width: 820px;
}

/* ─── 9. SERVICE AREA ────────────────────────────────────── */
.afop-area { background: var(--afop-cream); padding: 96px 0; }
.afop-area__inner { text-align: center; max-width: 960px; }
.afop-area .afop-eyebrow { justify-content: center; }
.afop-area__copy {
    font-size: 26px;
    line-height: 38px;
    font-weight: 600;
    color: var(--afop-navy-800);
    margin: 0 auto 36px;
    max-width: 800px;
}
.afop-area__cta-row {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.afop-area__phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.afop-area__phone-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--afop-teal-100);
    color: var(--afop-teal-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.afop-area__phone-copy { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.afop-area__phone-label { font-size: 12px; color: var(--afop-navy-600); }
.afop-area__phone-number { font-size: 18px; font-weight: 700; color: var(--afop-navy-800); }

/* ─── 10. TRUST BADGES ───────────────────────────────────── */
.afop-trust { background: #fff; padding: 80px 0; }
.afop-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.afop-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.afop-trust__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--afop-teal-100);
    color: var(--afop-teal-500);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.afop-trust__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    color: #1E2630;
}
.afop-trust__title span { display: block; }
.afop-trust__title-accent { color: var(--afop-teal-500); }
.afop-trust__body {
    color: #4A5260;
    font-size: 14px;
    line-height: 22px;
    max-width: 360px;
}

/* ─── 11. BOTTOM CTA ─────────────────────────────────────── */
.afop-bottom-cta {
    background-color: var(--afop-navy-800);
    padding: 96px 0;
    color: #fff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.afop-bottom-cta__grid {
    display: grid;
    grid-template-columns: 440px minmax(0, 1fr);
    gap: 80px;
    align-items: center;
}
.afop-bottom-cta__copy .afop-eyebrow { color: var(--afop-teal-400); }
.afop-bottom-cta__copy .afop-eyebrow-dot { background: var(--afop-teal-400); }
.afop-bottom-cta__title {
    margin: 0 0 28px;
    font-size: 60px;
    font-weight: 600;
    line-height: 68px;
    letter-spacing: -1px;
}
.afop-bottom-cta__title span { display: block; }
.afop-bottom-cta__title--accent { color: var(--afop-teal-500); }
.afop-bottom-cta__sub {
    color: rgba(255,255,255,0.78);
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 28px;
    max-width: 600px;
}

/* ─── 12. FOOTER ─────────────────────────────────────────── */
.afop-footer { background: var(--afop-navy-900); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.afop-footer__grid {
    display: grid;
    grid-template-columns: 320px 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}
.afop-footer__logo {
    display: inline-block;
    max-height: 48px;
    margin-bottom: 18px;
}
.afop-footer__tagline {
    color: var(--afop-teal-400);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.afop-footer__about {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    line-height: 20px;
    max-width: 320px;
}
.afop-footer__heading {
    color: var(--afop-teal-400);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.afop-footer__col ul li { margin-bottom: 10px; font-size: 14px; }
.afop-footer__col ul a { color: rgba(255,255,255,0.75); transition: color .15s ease; }
.afop-footer__col ul a:hover { color: #fff; }
.afop-footer__col--contact ul li { display: flex; align-items: center; gap: 8px; }
.afop-footer__socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.afop-footer__socials li { margin: 0 !important; }
.afop-footer__socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--afop-navy-800);
    color: var(--afop-teal-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s ease;
}
.afop-footer__socials a:hover { background: var(--afop-navy-700); }
.afop-footer__divider { height: 1px; background: var(--afop-navy-800); margin: 8px 0 24px; }
.afop-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}
.afop-footer__legal { display: flex; gap: 24px; }
.afop-footer__legal a { color: rgba(255,255,255,0.55); }
.afop-footer__legal a:hover { color: #fff; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1199px) {
    .afop-container { padding: 0 40px; }
    .afop-header__inner { padding: 0 40px; }
    .afop-hero__grid { padding: 0 40px; grid-template-columns: 1fr; gap: 56px; }
    .afop-hero__form { justify-content: flex-start; }
    .afop-services__grid,
    .afop-pricing__grid,
    .afop-work__grid,
    .afop-trust__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .afop-testimonials__grid { grid-template-columns: 1fr 1fr; }
    .afop-testimonials__photo { display: none; }
    .afop-section-head--split { grid-template-columns: 1fr; align-items: start; }
    .afop-carousel-arrows { justify-self: start; }
    .afop-bottom-cta__grid { grid-template-columns: 1fr; gap: 56px; }
    .afop-faqs__grid { grid-template-columns: 1fr; }
    .afop-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Floating widgets (phone + WhatsApp) ─────────────────── */
.afop-floats {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    font-family: 'Instrument Sans', system-ui, sans-serif;
}

/* Phone-call button */
.afop-call {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--afop-teal-500);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 14px 30px -8px rgba(27, 156, 156, 0.5),
                0 6px 12px -4px rgba(15, 27, 38, 0.18);
    transition: transform .2s ease, box-shadow .2s ease, background-color .15s ease;
    isolation: isolate;
}
.afop-call:hover,
.afop-call:focus-visible {
    transform: translateY(-2px) scale(1.04);
    background: var(--afop-teal-400);
    color: #fff;
    box-shadow: 0 18px 36px -10px rgba(27, 156, 156, 0.55),
                0 6px 12px -4px rgba(15, 27, 38, 0.2);
}
.afop-call__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--afop-teal-500);
    opacity: 0.45;
    animation: afopCallPulse 2.4s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes afopCallPulse {
    0%   { transform: scale(0.85); opacity: 0.5; }
    70%  { transform: scale(1.6);  opacity: 0;   }
    100% { transform: scale(1.6);  opacity: 0;   }
}

/* WhatsApp widget — now a sibling inside .afop-floats, not self-positioned */
.afop-wa {
    position: relative;
    --afop-wa-green: #25D366;
    --afop-wa-green-dark: #128C7E;
    --afop-wa-header: #075E54;
}
.afop-wa__bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--afop-wa-green);
    color: #fff;
    border: none;
    box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.5),
                0 6px 12px -4px rgba(15, 27, 38, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}
.afop-wa__bubble:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 18px 36px -10px rgba(37,211,102,0.55),
                0 6px 12px -4px rgba(15,27,38,0.2);
}
.afop-wa__bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--afop-wa-green);
    opacity: 0.45;
    animation: afopWaPulse 2.4s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes afopWaPulse {
    0%   { transform: scale(0.85); opacity: 0.5; }
    70%  { transform: scale(1.6);  opacity: 0;   }
    100% { transform: scale(1.6);  opacity: 0;   }
}

.afop-wa__popup {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(15, 27, 38, 0.35),
                0 12px 24px -10px rgba(15, 27, 38, 0.18);
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}
.afop-wa[data-state="open"] .afop-wa__popup {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.afop-wa[data-state="open"] .afop-wa__bubble-pulse { animation: none; opacity: 0; }

.afop-wa__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.afop-wa__close:hover { background: rgba(255,255,255,0.28); }

.afop-wa__header {
    background: var(--afop-wa-header);
    color: #fff;
    padding: 16px 44px 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.afop-wa__avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.afop-wa__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.afop-wa__avatar-initial {
    font-weight: 700;
    font-size: 16px;
}
.afop-wa__avatar-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    background: var(--afop-wa-green);
    border: 2px solid var(--afop-wa-header);
    border-radius: 50%;
}
.afop-wa__name {
    margin: 0 0 2px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}
.afop-wa__status {
    margin: 0;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    line-height: 1.2;
}

.afop-wa__body {
    padding: 16px 16px 4px;
    background:
        linear-gradient(180deg, #ECE5DD 0%, #DDD3C7 100%);
    background-image:
        radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(180deg, #ECE5DD 0%, #DDD3C7 100%);
    background-size: 8px 8px, auto;
}
.afop-wa__bubble-title,
.afop-wa__bubble-text {
    position: relative;
    margin: 0 0 10px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 12px;
    border-top-left-radius: 4px;
    color: #1E2630;
    font-size: 13px;
    line-height: 18px;
    max-width: 86%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.afop-wa__bubble-title { font-weight: 600; }
.afop-wa__bubble-text { margin-bottom: 16px; }

.afop-wa__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: var(--afop-wa-green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease;
}
.afop-wa__cta:hover { background: var(--afop-wa-green-dark); color: #fff; }

@media (max-width: 480px) {
    .afop-floats { right: 16px; bottom: 16px; gap: 10px; }
    .afop-call { width: 56px; height: 56px; }
    .afop-wa__bubble { width: 56px; height: 56px; }
    .afop-wa__popup { width: calc(100vw - 32px); right: 0; }
}

/* ─── Reveal-on-scroll animations ────────────────────────── *
 * Targets are hidden via the `html.afop-js` guard so users with
 * JavaScript off never see a blank section. Each animated element
 * picks up `.afop-in` when it enters the viewport (see frontend.js).
 * `prefers-reduced-motion` opts everyone out automatically.
 */
@media (prefers-reduced-motion: no-preference) {
    html.afop-js .afop-hero__copy,
    html.afop-js .afop-hero__form,
    html.afop-js .afop-section-head,
    html.afop-js .afop-service-card,
    html.afop-js .afop-usecase-card,
    html.afop-js .afop-tier,
    html.afop-js .afop-case-card,
    html.afop-js .afop-review,
    html.afop-js .afop-testimonials__photo,
    html.afop-js .afop-faqs__panel,
    html.afop-js .afop-faq,
    html.afop-js .afop-trust__item,
    html.afop-js .afop-area__inner,
    html.afop-js .afop-bottom-cta__form,
    html.afop-js .afop-bottom-cta__copy,
    html.afop-js .afop-pricing__footnote,
    html.afop-js .afop-work__footer,
    html.afop-js .afop-footer__grid > * {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity .75s cubic-bezier(.16,.84,.32,1),
                    transform .75s cubic-bezier(.16,.84,.32,1);
        will-change: opacity, transform;
    }

    /* Hero form drifts in from the side instead of bottom */
    html.afop-js .afop-hero__form,
    html.afop-js .afop-bottom-cta__copy {
        transform: translateY(28px) scale(.98);
    }

    /* Final / "in viewport" state */
    html.afop-js .afop-hero__copy.afop-in,
    html.afop-js .afop-hero__form.afop-in,
    html.afop-js .afop-section-head.afop-in,
    html.afop-js .afop-service-card.afop-in,
    html.afop-js .afop-usecase-card.afop-in,
    html.afop-js .afop-tier.afop-in,
    html.afop-js .afop-case-card.afop-in,
    html.afop-js .afop-review.afop-in,
    html.afop-js .afop-testimonials__photo.afop-in,
    html.afop-js .afop-faqs__panel.afop-in,
    html.afop-js .afop-faq.afop-in,
    html.afop-js .afop-trust__item.afop-in,
    html.afop-js .afop-area__inner.afop-in,
    html.afop-js .afop-bottom-cta__form.afop-in,
    html.afop-js .afop-bottom-cta__copy.afop-in,
    html.afop-js .afop-pricing__footnote.afop-in,
    html.afop-js .afop-work__footer.afop-in,
    html.afop-js .afop-footer__grid > .afop-in {
        opacity: 1;
        transform: none;
    }

    /* Stagger sibling items inside grids/rails */
    html.afop-js .afop-services__grid > *:nth-child(2),
    html.afop-js .afop-pricing__grid > *:nth-child(2),
    html.afop-js .afop-work__grid > *:nth-child(2),
    html.afop-js .afop-trust__grid > *:nth-child(2),
    html.afop-js .afop-faqs__list > .afop-faq:nth-child(2),
    html.afop-js .afop-usecases__rail > *:nth-child(2),
    html.afop-js .afop-footer__grid > *:nth-child(2) {
        transition-delay: 90ms;
    }
    html.afop-js .afop-services__grid > *:nth-child(3),
    html.afop-js .afop-pricing__grid > *:nth-child(3),
    html.afop-js .afop-work__grid > *:nth-child(3),
    html.afop-js .afop-trust__grid > *:nth-child(3),
    html.afop-js .afop-faqs__list > .afop-faq:nth-child(3),
    html.afop-js .afop-usecases__rail > *:nth-child(3),
    html.afop-js .afop-footer__grid > *:nth-child(3) {
        transition-delay: 180ms;
    }
    html.afop-js .afop-faqs__list > .afop-faq:nth-child(4),
    html.afop-js .afop-usecases__rail > *:nth-child(4),
    html.afop-js .afop-footer__grid > *:nth-child(4) {
        transition-delay: 270ms;
    }
    html.afop-js .afop-usecases__rail > *:nth-child(5) { transition-delay: 360ms; }
    html.afop-js .afop-usecases__rail > *:nth-child(6) { transition-delay: 450ms; }

    /* Hero form lags behind the copy slightly so eyes follow the copy first */
    html.afop-js .afop-hero__form { transition-delay: 150ms; }
    html.afop-js .afop-bottom-cta__copy { transition-delay: 150ms; }
}

@media (max-width: 767px) {
    .afop-container { padding: 0 20px; }
    .afop-header__inner { padding: 0 20px; height: 72px; gap: 12px; }
    .afop-header__cta { padding: 10px 14px; font-size: 13px; }
    .afop-phone-cta { display: none; }
    .afop-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--afop-navy-100); }
    .afop-nav.is-open { display: block; }
    .afop-nav ul { flex-direction: column; padding: 16px 20px; gap: 18px; }
    .afop-burger { display: inline-flex; margin-left: 0; }
    .afop-header__actions { margin-left: auto; }

    .afop-hero { padding: 56px 0 72px; min-height: 0; }
    .afop-hero__grid { padding: 0 20px; gap: 40px; }
    .afop-hero__title { font-size: 40px; line-height: 46px; }
    .afop-hero__sub { font-size: 15px; line-height: 24px; }
    .afop-hero__cta-row .afop-btn { flex: 1; }

    .afop-services, .afop-usecases, .afop-pricing, .afop-work, .afop-testimonials, .afop-faqs, .afop-area, .afop-bottom-cta { padding: 64px 0; }
    .afop-trust { padding: 56px 0; }
    .afop-services__grid,
    .afop-pricing__grid,
    .afop-work__grid,
    .afop-trust__grid,
    .afop-testimonials__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .afop-review { height: auto; min-height: 220px; }
    .afop-h2 { font-size: 30px; line-height: 36px; }
    .afop-area__copy { font-size: 20px; line-height: 28px; }
    .afop-bottom-cta__title { font-size: 40px; line-height: 46px; }
    .afop-footer__grid { grid-template-columns: 1fr; }
    .afop-footer__bottom { flex-direction: column; align-items: flex-start; }
    .afop-footer__legal { flex-wrap: wrap; }
}
