/* =====================================================
   hero.css : ONE place for hero heading / sub-heading
   Home (.ah-hero), Segments (.hero-aptivo-bg),
   all inner pages (.page-hero)
   Link AFTER style.css on every page.
   ===================================================== */

:root {
    --hero-h1-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
    --hero-h1-weight: 700;
    --hero-sub-size: 1.1rem;
}

/* ---------- HEADING ---------- */
body section.ah-hero .ah-copy h1,
body section.hero-aptivo-bg h1,
body section.page-hero h1 {
    font-family: var(--font-display, 'Space Grotesk', sans-serif) !important;
    font-size: var(--hero-h1-size) !important;
    font-weight: var(--hero-h1-weight) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.015em !important;
    color: #ffffff;
    max-width: none !important;
    /* page-hero 760px limit remove */
}

/* ---------- SUB-HEADING ---------- */
body section.ah-hero .ah-copy .lead,
body section.hero-aptivo-bg .seg-hero-p,
body section.page-hero p {
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: var(--hero-sub-size) !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    color: #e2e8f0 !important;
    max-width: 620px;
}

/* ---------- SAME LEFT/RIGHT ALIGNMENT AS HOME ---------- */
@media (min-width: 992px) {
    body section.page-hero>.container {
        max-width: none;
        width: 100%;
        margin: 0;
        padding-left: 6.5%;
        padding-right: 6.5%;
    }
}

/* ---------- INNER PAGE SUB-HEADING: ALWAYS LEFT ALIGNED ---------- */
/* style.css has a global "p { text-align:center }" that centered it */
body section.page-hero p {
    text-align: left !important;
}

/* ---------- SINGLE-COLUMN HERO (Solutions, Contact, About...) ----------
   H1 sits directly in .container, so it needs a width limit
   (same as the half-width column on Home / Product pages) */
body section.page-hero>.container>h1 {
    max-width: 800px !important;
}

/* ---------- RIGHT-SIDE HIGHLIGHT CARD (Features, Security...) ---------- */
.ph-visual {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 28px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
}

.ph-visual-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.ph-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.25);
}

.ph-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.ph-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 14px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ph-tile:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.16);
}

.ph-tile i {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    background: #ff6a00;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.ph-tile:nth-child(2) i {
    background: #2f6fe4;
}

.ph-tile:nth-child(3) i {
    background: #7c3fc9;
}

.ph-tile:nth-child(4) i {
    background: #22a06b;
}

.ph-tile:nth-child(5) i {
    background: #159a9c;
}

.ph-tile:nth-child(6) i {
    background: #e0483f;
}

@media (max-width: 991px) {
    .ph-visual {
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    .ph-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== MOBILE: compact hero (same look as the correct phone screenshot) ===== */
@media (max-width: 767px) {

    :root {
        --hero-h1-size: 1.75rem;
        --hero-sub-size: 0.85rem;
    }

    body .ah-hero {
        padding: 28px 0 36px;
    }

    body .ah-hero__grid {
        gap: 24px;
    }

    body .ah-copy .eyebrow {
        font-size: 11px;
        padding: 6px 12px;
    }

    body .ah-copy h1 {
        margin: 14px 0;
    }

    /* buttons side by side, small (not stacked) */
    body .ah-copy .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin: 18px 0;
    }

    body .ah-copy .hero-ctas .btn-demo {
        font-size: 0.75rem;
        padding: 5px 5px 5px 16px;
        gap: 8px;
        width: auto;
    }

    body .ah-copy .hero-ctas .btn-demo .demo-arrow {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }

    body .ah-copy .hero-ctas .btn-outline {
        font-size: 0.75rem;
        padding: 9px 14px;
        width: auto;
    }

    /* tags */
    body .ah-copy .hero-tags {
        gap: 8px;
        margin-bottom: 18px;
    }

    body .ah-copy .hero-tags .hero-tag {
        font-size: 10.5px;
        padding: 5px 10px;
    }

    /* numbers (2,400+ / 1.8M+ / 99.9%) */
    body .ah-copy .hero-meta {
        gap: 22px;
    }

    body .ah-copy .hero-meta>div {
        font-size: 1rem;
    }

    body .ah-copy .hero-meta>div span {
        font-size: 10px;
    }
}
/* Mobile: hero "Book a Free Demo" hide (sticky bottom bar already has it) */
@media (max-width: 767px) {
    .ah-hero .hero-ctas .btn-demo {
        display: none !important;
    }
}
/* ===== MOBILE: smaller hero text + buttons (all pages) ===== */
@media (max-width: 767px) {

    :root {
        --hero-h1-size: 1.75rem;
        --hero-sub-size: 0.92rem;
    }

    body section.page-hero {
        padding: 40px 0 44px;
    }

    body section.page-hero .breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    body section.page-hero .eyebrow {
        font-size: 0.68rem;
        padding: 5px 12px;
    }

    body section.page-hero .hero-ctas {
        gap: 10px;
    }

    body section.page-hero .btn-demo {
        font-size: 0.8rem;
        padding: 5px 5px 5px 18px;
        gap: 10px;
    }

    body section.page-hero .btn-demo .demo-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    body section.page-hero .btn-outline {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    /* home hero */
    body .ah-copy .hero-ctas .btn-outline {
        font-size: 0.8rem;
        padding: 10px 16px;
    }
}