/* The shared page hero: resources/views/components/page-hero.blade.php.
   One look for the first screen of every page. app.css sets
   h1 { font-size: 42px !important } and paragraph margins with !important,
   hence the !important on those properties here. */

.ph {
    --ph-primary: #0282DA;
    --ph-primary-dark: #0268AE;
    --ph-heading: #161C2D;
    --ph-text: #3C4858;
    --ph-tint: #F7FAFF;
    --ph-line: #D6E4F5;

    position: relative;
    padding: 136px 0 72px;
    font-family: Nunito, sans-serif;
    background:
        radial-gradient(900px 380px at 88% -8%, rgba(2, 130, 218, .13), transparent 65%),
        linear-gradient(180deg, var(--ph-tint) 0%, var(--ph-tint) 55%, #fff 100%);
}
[dir="rtl"] .ph {
    background:
        radial-gradient(900px 380px at 12% -8%, rgba(2, 130, 218, .13), transparent 65%),
        linear-gradient(180deg, var(--ph-tint) 0%, var(--ph-tint) 55%, #fff 100%);
}

.ph__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 64px;
    align-items: center;
}

/* Centered layout: utility pages (pricing, FAQ, contact…). */
.ph--center { padding-bottom: 48px; }
.ph--center .ph__text { max-width: 780px; margin: 0 auto; text-align: center; }
.ph--center .ph__lead { margin-inline: auto; }
.ph--center .ph__crumbs ol,
.ph--center .ph__actions,
.ph--center .ph__trust,
.ph--center .ph__after { justify-content: center; }

/* Breadcrumb */
.ph__crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ph-text);
}
.ph__crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: #9AA6B6; }
.ph__crumbs a { color: var(--ph-text); text-decoration: none; }
.ph__crumbs a:hover { color: var(--ph-primary); }
.ph__crumbs [aria-current] { color: var(--ph-heading); }

/* Eyebrow pill (homepage, in place of the breadcrumb) */
.ph__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px !important;
    padding: 6px 14px;
    border: 1px solid #DCE8F7;
    border-radius: 100px;
    background: #fff;
    color: var(--ph-heading);
    font-size: 13px;
    font-weight: 700;
}
.ph__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ph-primary);
}

/* Title and lead. balance keeps a short last line ("a booked-out business"
   rather than a lone "business"). */
.ph__title {
    text-wrap: balance;
    margin: 0 0 18px !important;
    font-size: 50px !important;
    font-weight: 800 !important;
    line-height: 1.14 !important;
    letter-spacing: -.015em;
    color: var(--ph-heading) !important;
}
.ph--center .ph__title { font-size: 44px !important; }
.ph__hl { color: var(--ph-primary); }

.ph__lead {
    max-width: 600px;
    margin: 0 0 30px !important;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ph-text);
}

/* Buttons */
.ph__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ph__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ph__btn--primary {
    background: var(--ph-primary);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(2, 130, 218, .25);
}
.ph__btn--primary:hover,
.ph__btn--primary:focus-visible { background: var(--ph-primary-dark); }
.ph__btn--ghost {
    background: #fff;
    border-color: var(--ph-line);
    color: var(--ph-heading) !important;
}
.ph__btn--ghost:hover,
.ph__btn--ghost:focus-visible { border-color: var(--ph-primary); }
.ph__btn:focus-visible { outline: 3px solid rgba(2, 130, 218, .35); outline-offset: 2px; }
.ph__btn-arrow { font-size: 18px; line-height: 1; }
[dir="rtl"] .ph__btn-arrow { transform: scaleX(-1); }

/* Small print under the buttons. */
.ph__note { margin: 16px 0 0 !important; font-size: 14px; color: var(--ph-text); }
.ph__lead a { color: var(--ph-primary); font-weight: 600; }

/* "Last updated" style pill. */
.ph__pill {
    display: inline-block;
    margin: 0 !important;
    padding: 6px 14px;
    border: 1px solid #DCE8F7;
    border-radius: 100px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--ph-text);
}
.ph__pill strong { color: var(--ph-heading); }

/* A card on the visual side (the request-demo form). */
.ph__card {
    padding: 32px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(22, 28, 45, .05), 0 24px 60px rgba(22, 28, 45, .12);
}

/* Trust line */
.ph__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ph-text);
}
.ph__trust li { display: flex; align-items: center; gap: 7px; }
.ph__trust li::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ph-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.ph__after { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }

/* Visual side */
.ph__media { position: relative; }
.ph__media img { display: block; max-width: 100%; height: auto; }

/* A grid of photos (industries). */
.ph__mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-bottom: 24px;
}
.ph__mosaic img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(22, 28, 45, .12);
}
.ph__mosaic img:nth-child(2n) { transform: translateY(24px); }

/* Blog posts: the article keeps its own column, with the hero's background,
   breadcrumb and title type. .article-container sets heading sizes with
   !important, hence the two-class selectors. */
.ph-article {
    background:
        radial-gradient(900px 380px at 88% -8%, rgba(2, 130, 218, .13), transparent 65%),
        linear-gradient(180deg, #F7FAFF 0, #F7FAFF 260px, #fff 560px);
}
[dir="rtl"] .ph-article {
    background:
        radial-gradient(900px 380px at 12% -8%, rgba(2, 130, 218, .13), transparent 65%),
        linear-gradient(180deg, #F7FAFF 0, #F7FAFF 260px, #fff 560px);
}
.ph-article .blog-article .ph__title {
    margin: 0 0 18px !important;
    font-size: 40px !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    letter-spacing: -.015em;
    color: #161C2D !important;
}
.ph-article .ph__crumbs a { color: #3C4858; }

/* Sections that come straight after a hero were spaced for the old heroes'
   wave dividers (about 90px of top padding); the hero's own bottom padding
   is enough now. */
.ph + #directory,
.ph + #faq-section,
.ph + #contact-us,
.ph + .section,
.ph + .advantages-section.blog-listing {
    margin-top: 0 !important;
    padding-top: 24px !important;
}

/* Industry category pages: the section after the hero used to be the hero
   itself (app.css gives it a tinted background and 172px of top padding). */
.industry-details .industry-header.ph-follow {
    padding: 8px 0 72px !important;
    background: #fff !important;
}
.industry-details .industry-header.ph-follow .desc { max-width: 860px; margin: 0 0 8px; font-size: 17px; line-height: 1.7; color: var(--ph-text, #3C4858); }
.industry-details .industry-header.ph-follow .category-cards { margin-top: 32px; }

/* ---- Breakpoints ------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .ph__title { font-size: 42px !important; }
    .ph--center .ph__title { font-size: 40px !important; }
    .ph__grid { gap: 40px; }
}

@media (max-width: 991.98px) {
    .ph__grid { grid-template-columns: minmax(0, 1fr); }
    .ph__media { max-width: 560px; }
}

@media (max-width: 767.98px) {
    .ph { padding: 104px 0 44px; }
    .ph--center { padding-bottom: 32px; }
    .ph__title,
    .ph--center .ph__title { font-size: 32px !important; line-height: 1.18 !important; }
    .ph__lead { margin-bottom: 24px !important; font-size: 16px; }
    .ph__btn { flex: 1 1 100%; }
    .ph__trust { gap: 8px 16px; font-size: 13px; }
    .ph__eyebrow { margin-bottom: 14px !important; }
    .ph__mosaic { gap: 10px; }
    .ph-article .blog-article .ph__title { font-size: 30px !important; }
}

/* Hero illustrations (components/hero-image). The soft ones fade out at the
   edges, where the illustration's glow would otherwise end in a hard line. */
.ph__image--soft {
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
        linear-gradient(180deg, transparent 0, #000 7%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
        linear-gradient(180deg, transparent 0, #000 7%, #000 88%, transparent 100%);
    mask-composite: intersect;
}
