/* =====================================================================
   Sub-page fixes (Nov 2026) - loaded by every page except index.html,
   after tw-pages.css. Page-specific rules are scoped with the body class
   gm-page-<file-name> (e.g. gm-page-podcast). See SUBPAGES-FIX-NOTES.md.
   ===================================================================== */

/* ---------- all sub-pages ---------- */
/* In-page links (#services, #get-involved, ...) used to land under the fixed header. */
html { scroll-padding-top: 112px; }
@media (max-width: 767.98px) { html { scroll-padding-top: 88px; } }

body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: rgba(177, 38, 60, .18); color: inherit; }

/* Keyboard focus was invisible on most buttons and links. */
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(177, 38, 60, .55);
    outline-offset: 3px;
}

img { max-width: 100%; }

/* ---------- Podcast ---------- */
/* Hero sat under the fixed header (its eyebrow and the top of the title were hidden). */
.gm-page-podcast .mcm-statement {
    margin-top: 0;
    padding-top: clamp(124px, 12vw, 156px);
}
.gm-page-podcast #statement-heading {
    font-weight: 600;
    letter-spacing: -.02em;
}
@media (max-width: 640px) {
    .gm-page-podcast .mcm-statement { padding-top: 104px; }
    .gm-page-podcast #statement-heading { font-size: clamp(36px, 10.5vw, 46px); line-height: 1; }
}
/* The "Local / Stories featured" and player pills: a later rule put them back to
   position:absolute below 900px, so on tablets and phones they piled on top of
   each other over the photo. Stack them under the photo instead. */
@media (max-width: 900px) {
    .gm-page-podcast .hosts-art .showcase-pill {
        position: relative;
        left: auto; right: auto; top: auto; bottom: auto;
        transform: none !important;
        width: min(100%, 360px);
        margin: 14px auto 0;
        justify-content: center;
    }
    .gm-page-podcast .hosts-art .showcase-pill + .showcase-pill { margin-top: 10px; }
    .gm-page-podcast .hosts-art { margin-bottom: 8px; }
}
/* The "Voice of local business" banner carries its own text; on phones the
   cover-crop cut it off at both sides. Show the whole graphic. */
@media (max-width: 640px) {
    .gm-page-podcast .about-visual img,
    .gm-page-podcast .hero-art img {
        min-height: 0;
        height: auto;
        object-fit: contain;
        border-radius: 18px;
    }
    .gm-page-podcast .about-visual,
    .gm-page-podcast .hero-art { box-shadow: none; background: none; }
    .gm-page-podcast .about-visual::before,
    .gm-page-podcast .about-visual::after,
    .gm-page-podcast .hero-art::before,
    .gm-page-podcast .hero-art::after { display: none; }
    .gm-page-podcast h2 { font-size: clamp(26px, 7.4vw, 32px); }
}

/* ---------- Testimonials (Review.html) ---------- */
/* "Trusted by 250+ brands": dark red on near-black was barely readable. */
.gm-page-review .text-accent-red.tracking-\[0\.2em\] { color: #F3A1AD; }
/* The floating review card is meant to overlap the "Website" rating card, but it
   covered the "Based on client submissions" line. Give that card room underneath. */
.gm-page-review .gm-website-card { padding-bottom: 4.25rem; }
@media (max-width: 767.98px) {
    .gm-page-review section h2.text-5xl { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.08; }
    .gm-page-review section h2.text-5xl br { display: none; }
    .gm-page-review section h2.text-5xl > span { display: block; }
}

/* ---------- Photo & Video (VedioAndPhoto.html) ---------- */
/* "View Our Work" was near-black (#1B1811) on the dark hero - practically invisible. */
.gm-page-vedioandphoto .hero-ctas .btn-fill {
    background: #B1263C;
    border-color: #B1263C;
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(177, 38, 60, .8);
}
.gm-page-vedioandphoto .hero-ctas .btn-fill:hover {
    background: #8F1B2F;
    border-color: #8F1B2F;
    color: #fff;
}
/* If the hero photo is slow or blocked, keep the hero readable. */
.gm-page-vedioandphoto .hero-bg { background: #14110c; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* =====================================================================
   Shared page background (Nov 16): the same backdrop as the homepage's
   phone section - soft white / light blue with the tiled Glory Media
   logo watermark - behind every sub-page.
   assets/js/gm-backdrop.js makes full-width light sections see-through
   (adds .gm-see-through) and gives full-width dark ones the brand navy
   (.gm-navy-block); cards and panels keep their own colours.
   ===================================================================== */
html { background-color: #F4F8FE; }
body { background-color: transparent !important; background-image: none !important; }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        url("../bg-logo-tile.webp?v=4") 0 0 / 150px 300px repeat,
        radial-gradient(45% 40% at 6% 8%, rgba(30, 93, 168, .12), transparent 70%),
        radial-gradient(40% 45% at 96% 30%, rgba(111, 168, 232, .18), transparent 70%),
        radial-gradient(50% 40% at 70% 100%, rgba(18, 62, 115, .09), transparent 70%),
        linear-gradient(180deg, #FFFFFF 0%, #F4F8FE 40%, #EDF3FC 100%);
}
.gm-see-through {
    background-color: transparent !important;
    background-image: none !important;
}
.gm-navy-block {
    background:
        radial-gradient(70% 60% at 88% 0%, rgba(111, 168, 232, .30), transparent 60%),
        radial-gradient(60% 70% at 0% 100%, rgba(30, 93, 168, .38), transparent 62%),
        linear-gradient(160deg, #123E73 0%, #0B2A55 52%, #071C3D 100%) !important;
}

/* =====================================================================
   Larger text (Nov 16). Tailwind's text-xs / sm / base / lg / xl use these
   variables; each goes up ~1.5px (12->13.5, 14->15.5, 16->17, 18->19, 20->21).
   Sizes set directly in each page's own CSS are raised by assets/js/gm-readable.js.
   ===================================================================== */
:root {
    --text-xs: 0.84375rem;
    --text-sm: 0.96875rem;
    --text-base: 1.0625rem;
    --text-lg: 1.1875rem;
    --text-xl: 1.3125rem;
}
