/* ═══════════════════════════════════════════════════════════════════
   FaithTrip — the page hero, once.

   Twenty public pages each carried their own hand-written hero block, and
   they had all drifted to the same three habits: one flat diagonal gradient,
   180px of vertical padding, and a giant emoji faded to 6% opacity floating
   off to the right. That last one is the reason the pages read as a template
   rather than an agency's site.

   This is the same treatment the hotel page got, factored out so a page
   declares what it is rather than restating how a hero is built:

     <section class="ft-ph">                    brand gradient
     <section class="ft-ph" style="--ft-ph-photo:url(...);--ft-ph-tint:...">
                                                a photograph under a darkening
                                                wash, still fully legible

   A page keeps its own identity through two custom properties and nothing
   else, so there is no cascade fight with the page-level <style> block that
   loads after this file:

     --ft-ph-tint   the gradient layer (defaults to brand navy)
     --ft-ph-photo  an optional photograph beneath it
     --ft-ph-glow   the colour of the wash behind the heading

   Loaded from b2c/layouts/master.blade.php above @yield('styles').
   ═══════════════════════════════════════════════════════════════════ */

.ft-ph {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background-color: #0D1B5E;
    background-image:
        var(--ft-ph-tint, linear-gradient(135deg, #0D1B5E 0%, #1a3a8f 48%, #0f2d6b 100%)),
        var(--ft-ph-photo, none);
    background-size: cover, cover;
    background-position: center, center 35%;
    background-repeat: no-repeat, no-repeat;
    /* Was 80px top / 100px bottom on every one of these pages — a fifth of a
       laptop screen spent on padding before the first sentence. The bottom
       never drops below 64px because most of these pages lift a strip of
       figures over the hero's lower edge with margin-top:-48px, and a shorter
       hero would let that strip sit on top of the standfirst. */
    padding: clamp(34px, 5vw, 54px) 0 clamp(64px, 7vw, 86px);
}

/* Texture. Faint enough to read as paper rather than as a pattern. */
.ft-ph::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .7;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* A wash of light behind the heading, so the middle of the block is not flat. */
.ft-ph::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -180px;
    width: 900px;
    height: 520px;
    max-width: 160%;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(ellipse at center,
        var(--ft-ph-glow, rgba(245, 166, 35, .16)) 0%, rgba(245, 166, 35, 0) 62%);
}

.ft-ph-inner { position: relative; z-index: 1; }

/* Two modifiers, for the two things pages genuinely differ on. */
/* Nothing is lifted over this hero's lower edge, so it does not need the room. */
.ft-ph--tight { padding-bottom: clamp(38px, 5vw, 52px); }
/* The transport pages set their heading against the left margin. */
.ft-ph--left { text-align: left; }
.ft-ph--left .ft-ph-sub { margin-left: 0; }
.ft-ph--left .ft-ph-crumb { justify-content: flex-start; }

/* ─── Type ─────────────────────────────────────────────────────────── */

.ft-ph-crumb {
    font-size: .78rem;
    color: rgba(255, 255, 255, .68);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ft-ph-crumb a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.ft-ph-crumb a:hover { color: #fff; text-decoration: underline; }
.ft-ph-crumb .sep { opacity: .45; }

.ft-ph-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 166, 35, .18);
    border: 1px solid rgba(245, 166, 35, .5);
    color: #F5A623;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.ft-ph-title {
    font-size: clamp(27px, 3.9vw, 42px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.5px;
    margin: 0 0 12px;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.ft-ph-title span { color: #F5A623; }

.ft-ph-sub {
    font-size: clamp(14.5px, 1.5vw, 16.5px);
    line-height: 1.7;
    color: rgba(255, 255, 255, .9);
    max-width: 640px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.ft-ph-sub:not(:last-child) { margin-bottom: 22px; }

/* ─── The strip of facts some of these pages carry under the heading ── */

.ft-ph-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0;
    max-width: 860px;
    margin: 26px auto 0;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    overflow: hidden;
}
.ft-ph-stat { padding: 16px 12px; text-align: center; position: relative; }
.ft-ph-stat + .ft-ph-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .18) 30%,
        rgba(255, 255, 255, .18) 70%, transparent);
}
.ft-ph-stat-num { font-size: 18px; font-weight: 800; line-height: 1.2; margin-bottom: 3px; }
.ft-ph-stat-lbl { font-size: 11.5px; color: rgba(255, 255, 255, .72); font-weight: 500; }

/* ─── The ground the page body sits on ─────────────────────────────── */
/* White sections on a white page have no edge. A very slightly cool ground
   under the first screenful gives the cards something to sit on. */
body.ft-ground { background: #ffffff; }
body.ft-ground .ft-ph ~ * { position: relative; }
.ft-ground-band { background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 420px); }

/* ─── Dark ─────────────────────────────────────────────────────────── */

[data-theme="dark"] .ft-ph { background-color: #050d24; }
[data-theme="dark"] .ft-ph-stats { background: rgba(255, 255, 255, .05); border-color: rgba(91, 126, 239, .18); }
[data-theme="dark"] .ft-ground-band { background: linear-gradient(180deg, #050d24 0%, #06102a 420px); }
[data-theme="dark"] body.ft-ground { background: #06102a; }

/* ─── Small screens ────────────────────────────────────────────────── */

@media (max-width: 560px) {
    .ft-ph { background-position: center, center 40%; }
    .ft-ph-sub { max-width: 100%; }
    .ft-ph-stats { grid-template-columns: repeat(2, 1fr); }
    .ft-ph-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
}

@media (prefers-reduced-motion: reduce) {
    .ft-ph, .ft-ph::before, .ft-ph::after { transition: none; animation: none; }
}
