/* ══════════ BASE ══════════ */
html { scroll-behavior: smooth; }

/* Safety net: clip any stray horizontal overflow so phones never side-scroll.
   overflow-x: clip (not hidden) does NOT create a scroll container, so it
   leaves position: sticky headers/tabs working. Older browsers without `clip`
   fall back to `visible` (current behaviour) — no regression. */
html, body { overflow-x: clip; }

/* ── Japan brand colour utilities (Murasaki Purple) ─────────────────────────
   The precompiled /assets/tailwind.css was built from the main East Marvel
   theme, so JIT arbitrary-value color classes don't exist. All brand color
   comes from these semantic classes instead — never from bg-[#4d2160]-style
   classes. */
.em-theme-text               { color: #4d2160 !important; }
.em-theme-text-hover:hover   { color: #4d2160 !important; }
.em-theme-bg                 { background-color: #4d2160 !important; }
.em-theme-bg-hover:hover     { background-color: #4d2160 !important; }
.em-theme-deep-bg-hover:hover{ background-color: #38184a !important; }
.em-theme-border             { border-color: #4d2160 !important; }
.em-theme-border-hover:hover { border-color: #4d2160 !important; }
.em-theme-border-focus:focus { border-color: #4d2160 !important; }
.em-theme-ring-focus:focus   { --tw-ring-color: rgba(77,33,96,0.3) !important;
                               box-shadow: 0 0 0 2px rgba(77,33,96,0.3); }
.em-gold-text                { color: #b8860b !important; }
.em-tint-bg                  { background-color: #f7f2fa !important; }

.nav-tagline-black-edge {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
                 -2px 0 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000;
}

/* Mobile header and menu */
#mobile-menu {
    z-index: 70;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body.em-mobile-menu-open {
    overflow: hidden;
}
@media (max-width: 430px) {
    header nav {
        gap: 0.5rem;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    /* The brand block is nav's first child: a <div> on the public pages (the
       emblem links to the parent hub, includes/site-header.css .em-hub-badge),
       still an <a> on the staff tools' headers. */
    header nav > :first-child {
        flex: 1 1 auto;
        min-width: 0;
    }
    header nav > :first-child img {
        width: 2rem !important;
        height: 2rem !important;
        margin-right: 0.5rem !important;
    }
    /* The emblem link holds the 8px gap, not the logo inside it, so the link
       ends at the logo (Thailand's rules give both the margin: a 16px gap). */
    header nav > :first-child > .em-hub-badge {
        margin-right: 0.5rem !important;
    }
    header nav > :first-child > .em-hub-badge img {
        margin-right: 0 !important;
    }
    header nav > :first-child > span {
        min-width: 0;
    }
    header nav > :first-child > span > span:first-child,
    header nav > :first-child > span > span:last-child {
        max-width: calc(100vw - 6.5rem);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    header nav > :first-child > span > span:first-child {
        font-size: 1rem !important;
    }
    header nav > :first-child > span > span:last-child {
        font-size: 0.625rem !important;
        letter-spacing: 0.04em !important;
    }
    #mobile-menu-button {
        flex: 0 0 auto;
        padding: 0.35rem;
    }
}
@media (max-width: 360px) {
    header nav > :first-child > span > span:last-child {
        display: none;
    }
}

/* ══════════ HERO ══════════ */
.hero-carousel {
    position: relative;
    /* Capped by page intent: a browse-style home page should show the trust bar
       and the first product cards above the fold. At 100vh nothing else was
       visible (measured: -76px below the hero at 1440x900). */
    height: 55vh;
    min-height: 420px;
    max-height: 520px;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    background-size: cover;
    background-position: center;
    transform: translateZ(0); 
    backface-visibility: hidden;
    will-change: opacity;
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.25) 40%,
        rgba(77,33,96,0.75) 100%
    );
}
.hero-slide.active { opacity: 1; }

.hero-content {
    position: absolute;
    bottom: 12%;
    left: 5%;
    z-index: 30;
    max-width: 660px;
}
@media (min-width: 768px) {
    .hero-content { left: 8%; bottom: 2.25rem; }
}
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
@media (min-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
}
.hero-lead {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
.hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
    max-width: 500px;
    line-height: 1.6;
}
.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #4d2160 0%, #38184a 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(77,33,96,0.4);
    letter-spacing: 0.3px;
}
.hero-kicker {
    color: #b8860b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 14px rgba(0,0,0,0.45);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
/* White-outline secondary, matching .cta-btn.secondary further down. */
.hero-cta--ghost {
    background: transparent;
    /* padding reduced by the border width so both buttons are the same height */
    padding: 12px 34px;
    border: 2px solid rgba(255,255,255,0.55);
    box-shadow: none;
}
.hero-cta--ghost:hover {
    background: #ffffff;
    color: #4d2160;
    border-color: #ffffff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(77,33,96,0.55);
}

/* Carousel controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.carousel-arrow:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.06);
}
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }
@media (max-width: 767px) {
    .carousel-arrow { display: none; }
}

.carousel-dots {
    position: absolute;
    bottom: 36px;
    right: 5%;
    display: flex;
    gap: 10px;
    z-index: 20;
}
@media (min-width: 768px) {
    .carousel-dots { right: 8%; }
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-dot.active {
    background: #b8860b;
    border-color: #b8860b;
    transform: scale(1.3);
}

@media (max-width: 767px) {
    .hero-carousel {
        height: 52vh;
        height: 52svh;
        min-height: 360px;
        max-height: 420px;
    }
    .hero-content {
        left: 1rem;
        right: 1rem;
        bottom: 4.25rem;
        max-width: none;
    }
    .hero-content h1 {
        font-size: clamp(1.7rem, 8vw, 2.1rem);
        line-height: 1.12;
        margin-bottom: 0.85rem;
    }
    .hero-content p {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 1.25rem;
        max-width: none;
    }
    .hero-cta {
        width: 100%;
        max-width: 18rem;
        text-align: center;
        padding: 0.85rem 1.25rem;
    }
    .carousel-dots {
        left: 1rem;
        right: auto;
        bottom: 1.5rem;
    }
}
/* ══════════ TRUST BAR ══════════ */
.trust-bar {
    background: #4d2160;
    color: rgba(255,255,255,0.9);
    padding: 18px 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
/* One centred row on desktop; the pipe separators became real list items so
   the accreditation logo can sit among them. */
.trust-row {
    list-style: none;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 72rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1.75rem;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}
.trust-glyph {
    color: #b8860b;
    font-size: 0.7rem;
    line-height: 1;
}
/* The ASTA mark is coloured artwork on transparency, so it needs a light
   chip to stay legible on the murasaki band. */
.trust-logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 6px;
    padding: 3px 5px;
    margin-right: 0.15rem;
}
.trust-logo-chip img {
    display: block;
    height: 22px;
    width: auto;
}
@media (max-width: 767px) {
    .trust-bar {
        padding: 0.9rem 0;
        font-size: 0.78rem;
        line-height: 1.55;
    }
}

/* ══════════ TOUR CARDS ══════════ */
.tour-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
    text-decoration: none;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.tour-card:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 20px 44px -10px rgba(77,33,96,0.25);
}

.tour-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    transform: translateZ(0);
    will-change: transform;
}

.tour-card:hover .tour-card-img {
    transform: scale(1.05) translateZ(0);
}

.tour-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.02) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
}

.tour-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(77,33,96,0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: translateZ(0);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    z-index: 5;
}

.tour-card-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b8860b;
    margin-bottom: 6px;
}

.tour-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0;
}

.tour-card-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    line-height: 1.45;
}

.tour-card-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.tour-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #b8860b;
}

.tour-card-price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
    margin-left: 4px;
}

.tour-card-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}

.tour-card:hover .tour-card-link { 
    color: #b8860b; 
}

/* Filter */
.filter-btn {
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.filter-btn.active {
    background: #4d2160 !important;
    color: white !important;
    border-color: #4d2160;
    box-shadow: 0 2px 10px rgba(77,33,96,0.3);
}
.filter-btn:not(.active):hover {
    border-color: #4d2160;
    color: #4d2160;
}

/* ---------- WHY SECTION ---------- */
.why-section {
    background-color: #38184a;
    background-image: radial-gradient(circle at top right, rgba(184,134,11,0.08) 0%, transparent 60%), linear-gradient(135deg, #4d2160 0%, #1f0b29 100%);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
}


.why-subtitle {
    color: #b8860b;
    font-size: 0.95rem; 
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.why-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(184,134,11,0.1);
    border: 1px solid rgba(184,134,11,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ══════════ TESTIMONIALS ══════════ */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
}
.testimonial-card::before {
    content: "\201C";
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: rgba(77,33,96,0.08);
    position: absolute;
    top: 10px;
    left: 22px;
    line-height: 1;
}
.stars { color: #b8860b; font-size: 0.85rem; letter-spacing: 2px; }

/* ══════════ VISA ══════════ */
.visa-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.visa-accordion:hover { border-color: rgba(77,33,96,0.3); }

/* ══════════ SCROLL REVEAL ══════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ══════════ CUSTOM BUTTONS ══════════ */
.dest-btn {
    border: 2px solid #4d2160;
    color: #4d2160;
    background-color: transparent;
}
.dest-btn:hover {
    background-color: #4d2160;
    color: #ffffff;
}

/* ══════════ FOOTER ══════════ */
.site-footer {
    background-color: #1e293b;
    color: #f8fafc;
}
.footer-brand {
    color: #b8860b; 
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-heading {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-link {
    color: #94a3b8; 
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: #ffffff; 
}
.footer-text {
    color: #94a3b8;
    line-height: 1.6;
}
/* ══════════ 6 · CTA SECTION ══════════ */
.cta-section {
    
    background-color: #38184a;
    background-image: radial-gradient(circle at top right, rgba(184,134,11,0.08) 0%, transparent 60%), linear-gradient(135deg, #4d2160 0%, #1f0b29 100%);
    color: white;
   
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

/* Solid page top banner typography (matches destination marketing hero). Skip on photo heroes. */
.page-banner-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}
.page-banner-lead {
    color: #cbd5e1;
    line-height: 1.6;
}
.page-banner-note {
    color: rgba(203, 213, 225, 0.95);
    line-height: 1.65;
}
.page-banner-side-label {
    color: rgba(203, 213, 225, 0.9);
}
.page-banner-side-muted {
    color: rgba(203, 213, 225, 0.78);
}
.cta-section.page-banner--compact {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.cta-section.page-banner--py16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
@media (max-width: 767px) {
    .cta-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .cta-section.page-banner--compact {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .cta-section.page-banner--py16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .page-banner-title {
        overflow-wrap: anywhere;
    }
    .page-banner-lead {
        font-size: 1rem !important;
    }
    main article[id^="pkg-"] {
        gap: 1.25rem;
        padding-bottom: 2.5rem;
        scroll-margin-top: 5rem;
    }
    main article[id^="pkg-"] img {
        height: 13rem;
    }
    main article[id^="pkg-"] h2 {
        font-size: 1.35rem;
        line-height: 1.25;
    }
    #contact-form {
        padding: 1.25rem !important;
        border-radius: 0.75rem !important;
    }
    #contact-form .grid {
        gap: 1.25rem !important;
    }
    #contact-form textarea {
        min-height: 10rem !important;
    }
}

/* Package detail — closing “Ready to start…” band: no gradient / brand fill */
.cta-section.cta-section--plain {
    background-color: #f8fafc;
    background-image: none;
    color: #0f172a;
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.cta-section.cta-section--plain .page-banner-title {
    color: #1e293b;
}
.cta-section.cta-section--plain .page-banner-lead {
    color: #475569;
}
.cta-section.cta-section--plain .page-banner-note {
    color: #64748b;
}

/* Take The Next Step — supporting copy */
.cta-prose {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}
.cta-prose-lead {
    font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.45;
    letter-spacing: 0.02em;
    margin: 0 0 1rem;
}
.cta-prose-body {
    font-size: clamp(0.9375rem, 1.9vw, 1.0625rem);
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}
.cta-prose-body strong {
    color: #b8860b;
    font-weight: 700;
}
/* Opens floating trip list (includes/trip-cart.js) */
.cta-prose-trip-list-btn {
    font: inherit;
    font-size: inherit;
    font-weight: 700;
    color: #b8860b;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    display: inline;
    vertical-align: baseline;
    transition: color 0.2s ease;
}
.cta-prose-trip-list-btn:hover {
    color: #fff;
}
.cta-prose-trip-list-btn:focus-visible {
    outline: 2px solid #b8860b;
    outline-offset: 2px;
    border-radius: 2px;
}
.cta-prose-link {
    color: #b8860b;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease;
}
.cta-prose-link:hover {
    color: #fff;
}
.cta-prose-note {
    font-size: clamp(0.875rem, 1.65vw, 1rem);
    color: rgba(203, 213, 225, 0.9);
    line-height: 1.65;
    margin: 0;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.cta-prose-note strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}


.cta-button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}
@media (min-width: 640px) {
    .cta-button-group:not(.cta-button-group--split) {
        flex-direction: row;
        gap: 1.5rem;
    }
}

/* Take The Next Step: three browse buttons in a row; Contact Us primary below (always visible) */
.cta-button-group--split {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 1rem;
}
.cta-button-group-browse {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
}
.cta-cta-contact {
    flex-shrink: 0;
    width: 100%;
    max-width: 22rem;
}
@media (min-width: 640px) {
    .cta-button-group-browse {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
        align-items: stretch;
    }
    .cta-button-group-browse .cta-btn {
        min-width: 0;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 44px;
        padding: 10px 6px;
        font-size: 0.75rem;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        box-sizing: border-box;
    }
    .cta-cta-contact {
        width: auto;
        min-width: min(240px, 100%);
        max-width: none;
    }
}
@media (min-width: 900px) {
    .cta-button-group-browse {
        gap: 0.65rem;
    }
    .cta-button-group-browse .cta-btn {
        padding: 12px 12px;
        font-size: 0.875rem;
        min-height: 48px;
    }
}
@media (max-width: 639px) {
    .cta-button-group-browse .cta-btn {
        width: 100%;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }
}


.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}
@media (min-width: 640px) {
    .cta-btn {
        width: auto;
        min-width: 240px; 
    }
}


.cta-btn.primary {
    background: linear-gradient(135deg, #4d2160 0%, #38184a 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(77,33,96,0.4);
    border: 2px solid transparent;
}
.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(77,33,96,0.55);
}


.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.cta-btn.secondary:hover {
    background: white;
    color: #4d2160;
    border-color: white;
    transform: translateY(-2px);
}

/* ── Hero: phone layout ──────────────────────────────────────────────────
   Deliberately the LAST max-width:767px block in this file. There are four
   others above; at equal specificity the last one wins, so rules placed
   earlier were silently overridden. */
@media (max-width: 767px) {
    .hero-kicker {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        margin-bottom: 0.45rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    .hero-actions .hero-cta {
        display: block;
        width: 100%;
        min-height: 44px;
        padding: 12px 20px;
        text-align: center;
        box-sizing: border-box;
    }
    /* the phone padding above resets the desktop compensation, so the ghost
       button needs it again here or the stacked pair is 4px uneven */
    .hero-actions .hero-cta--ghost {
        padding: 10px 18px;
    }
    .hero-content {
        bottom: 3.25rem;
    }
    .hero-content h1 {
        margin-bottom: 0.6rem;
    }
    .hero-kicker {
        margin-bottom: 0.35rem;
    }
    .hero-lead {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
    .trust-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem 1rem;
        justify-items: center;
    }
    .trust-item { white-space: normal; text-align: left; }
    .trust-item--logo { grid-column: 1 / -1; }
}

/* Small phones (iPhone SE and similar): the hero floor drops to 360px, which
   is shorter than the hero content, so trim one more line and tighten. */
@media (max-width: 374px) {
    .hero-kicker {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
    }
    .hero-lead {
        -webkit-line-clamp: 2;
        margin-bottom: 0.85rem;
    }
    .hero-content {
        bottom: 2.5rem;
    }
}
