/* ============================================================
   DELIMA DIGITALS — MOBILE / RESPONSIVE FIXES
   Loaded after main.css. Everything mobile-specific lives in
   max-width media queries so desktop layouts are untouched.
   Spacing system on phones: 20px side gutter, 40px under the
   fixed header, 64px (tablet) / 56px (phone) section rhythm.
   ============================================================ */

/* ── Dark buttons placed on dark panels were invisible (all sizes) ── */
.about-final .btn-dark,
.about-guarantee .btn-dark,
.pricing-bundle .btn-dark {
    background: var(--green);
    color: var(--ink);
}
.about-final .btn-dark:hover,
.about-guarantee .btn-dark:hover,
.pricing-bundle .btn-dark:hover { background: #d4ff8a; }

@media (max-width: 768px) {

    /* ── No sideways scrolling ── */
    main > section, main > div, body > section, body > div:not(.mobile-menu), .site-footer { overflow-x: clip; }
    h1, h2, h3, h4, p, li, a { overflow-wrap: break-word; }

    /* ── One side gutter everywhere ── */
    .container { padding-left: 20px; padding-right: 20px; }
    .results-overflow { margin: 0 -20px; padding: 0 20px; }

    /* ── Section rhythm (was 100–120px top AND bottom) ── */
    .section,
    .section.section--off,
    .section.section--dark { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }
    .cta-band { padding: 64px 0; }
    .about-final, .about-statement { padding: 64px 0; }
    .footer-main { padding: 56px 0 40px; gap: 36px; }

    /* ── Hero tops: content starts 40px below the 68px header on every page ── */
    .hero-left { padding: 40px 20px 48px; }
    .hero-right { padding: 32px 20px; }
    .hero-stat, .hero-stat:first-child, .hero-stat:last-child { padding: 20px; }
    .svc-hero-left { padding: 108px 20px 48px; }          /* pill was hidden behind header */
    .svc-hero-right { padding: 0 20px 56px; }
    .pricing-hero, .about-hero, .results-hero { padding-top: 48px; }
    .pricing-hero, .about-hero { padding-bottom: 56px; }
    .contact-hero-left { padding-top: 48px; }
    .blog-hero { padding: 48px 0 40px !important; }
    body .cs-hero { padding: 48px 0 56px; }
    .post-hero { padding-top: 48px; }
    main.page-content { padding-top: 108px; }             /* privacy / terms sat 12px under header */
    .mm-pad[style*="padding-top:148px"] { padding-top: 108px !important; padding-bottom: 56px !important; }

    /* ── Headings: even line lengths, no single orphaned words ── */
    h1, h2, h3 { text-wrap: balance; }
    .cta-band-inner { align-items: center; text-align: center; }

    /* ── Header & mobile menu ── */
    .mobile-toggle { width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; margin-right: -11px; }
    .mobile-menu { padding: 84px 20px 32px; }
    .mobile-nav { margin-bottom: 24px; }
    .mobile-nav a { padding: 14px 0; font-size: 1.15rem; }
    .mobile-ctas .btn { justify-content: center; }

    /* ── Tap targets ── */
    .btn { min-height: 44px; justify-content: center; }
    .rf-btn { min-height: 44px; }
    .bc-link { padding: 10px 16px; }
    .footer-col ul { gap: 4px; }
    .footer-col a { display: inline-block; padding: 6px 0; font-size: 0.875rem; }

    /* ── Forms: 16px text stops iOS zooming in on tap ── */
    input:not([type=checkbox]):not([type=radio]):not([type=submit]),
    select, textarea,
    .svc-form input, .svc-form select, .svc-form textarea,
    .form-group input, .form-group select, .form-group textarea { font-size: 16px !important; min-height: 48px; }
    textarea, .svc-form textarea, .form-group textarea { min-height: 110px; }
    .form-group label { font-size: 0.78rem; }
    .svc-form-row, .form-row { grid-template-columns: 1fr; }

    /* ── Readable small text (nothing under 12px) ── */
    .label, .footer-title, .footer-col h4, .footer-loc, .tb-label,
    .rc-cat, .pc-num, .cs-tag, .cs-industry, .price-badge,
    .svc-label-pill, .svc-form-badge, .svc-result-cat, .svc-price-badge,
    .cr-strip-label, .al-region, .ag-badge, .mega-badge,
    .footer-col .footer-title, .post-cat, .ac-col-label, .blog-cat,
    .blog-featured-tag, body .cs-hero .cs-pill { font-size: 0.75rem; }

    /* ── Pricing ── */
    .psb-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .psb-link { min-height: 44px; display: inline-flex; align-items: center; }
    .section .container > div[style*="grid-template-columns:1fr 1.5fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }
    .pricing-bundle { padding: 32px 24px; gap: 28px; }
    .pb-right .btn { width: 100%; }

    /* ── About: comparison table as stacked rows ── */
    .ac-header, .ac-row { grid-template-columns: 1fr 1fr; }
    .ac-header > div:first-child { display: none; }
    .ac-header > div { padding: 12px 14px; font-size: 0.72rem; }
    .ac-row > .ac-label { grid-column: 1 / -1; padding: 12px 14px 4px; font-size: 0.9rem; }
    .ac-row > div { padding: 8px 14px 14px; font-size: 0.82rem; line-height: 1.5; }

    /* ── Case study fact strip ── */
    body .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .cs-facts div { padding: 20px 16px; }

    /* ── Blog posts: long words / tables / embeds can't widen the page ── */
    .post-layout { grid-template-columns: minmax(0, 1fr); }
    .post-content { min-width: 0; }
    .post-content img, .post-content iframe, .post-content video { max-width: 100%; height: auto; }
    .post-content table, .post-content pre { display: block; max-width: 100%; overflow-x: auto; }
}

@media (max-width: 480px) {
    .section,
    .section.section--off,
    .section.section--dark { padding: 56px 0; }
    .cta-band, .about-final, .about-statement { padding: 56px 0; }

    /* Button pairs: stacked, full width, same size */
    .hero-actions, .cta-band-actions, .about-final-ctas, .cs-cta-actions, .mm-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }
    .hero-actions .btn, .cta-band-actions .btn, .about-final-ctas .btn, .cs-cta-actions .btn, .mm-btns a {
        width: 100%;
        justify-content: center;
    }
}

/* ── Industries box on service pages (creators.css forced a cramped 2-col grid with
      gaps that showed as thick grey bars and clipped the names) ── */
@media (max-width: 768px) {
    body .svc-industries { grid-template-columns: 1fr; gap: 1px; }
    body .svc-industry { padding: 16px 18px; gap: 14px; align-items: center; }
    body .svc-industry h4 { margin-bottom: 0; font-size: 0.95rem; }
    body .svc-industry p { margin-top: 4px; }
}

/* ── Footer logo: inline SVG, flush left, dot follows the page accent colour ── */
.footer-brand-col .footer-logo { display: block; height: 28px; width: auto; margin-bottom: 20px; }

/* ── "Signs you need help" heading (Influencer Marketing page): top lines up with the h2 beside it ── */
.svc-signs-title { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.02em; margin: 34px 0 20px; }
@media (max-width: 768px) { .svc-signs-title { font-size: 1.3rem; margin: 0 0 16px; } }

/* ── Feature card titles that wrap to two lines need breathing room ── */
.svc-feature h3 { line-height: 1.3; }

/* ── Influencer Marketing page: tighter gap between "Why it matters" and "What's included" ── */
.page-creators-brand .svc-why { padding-bottom: 40px; }
.page-creators-brand .svc-included { padding-top: 40px; }
.page-creators-brand .svc-signs-title { margin-top: 0; }
@media (max-width: 768px) {
    .page-creators-brand .svc-why { padding-bottom: 28px; }
    .page-creators-brand .svc-included { padding-top: 28px; }
}

/* ── Section intro lines: no single word left alone on the last line ── */
.section-header p { text-wrap: balance; }

/* ── Hero stat row: numbers line up even when one label wraps ── */
.svc-hero-proof { align-items: flex-start; }

/* ── CTA band heading: two-line heading needs more line spacing ── */
.cta-band h2 { line-height: 1.2; }

/* ── Services directory page: whole card is the link ── */
.svc-directory .svc-industry { color: inherit; text-decoration: none; }
.svc-directory .svc-industry h4 { color: var(--ink); }

/* ── Hero headings on hub pages (Blog, Industries, Services): even line lengths ── */
.blog-headline { text-wrap: balance; }

/* ── Homepage: "What is online reputation management?" explainer ── */
.ormx-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: start; }
.ormx-copy { padding-top: 4px; }
.ormx-copy .label { display: block; margin-bottom: 16px; }
.ormx-copy h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 22px; text-wrap: balance; }
.ormx-copy p { font-size: 1.05rem; line-height: 1.75; color: var(--ink-60); }
.ormx-copy strong, .ormx-side strong { color: var(--ink); font-weight: 700; }
.ormx-note { margin-top: 28px; padding: 18px 22px; border-left: 4px solid var(--green); background: #fff; border-radius: 0 12px 12px 0; font-size: 1rem; line-height: 1.7; color: var(--ink-60); box-shadow: 0 10px 30px -22px rgba(10,10,10,.35); }
.ormx-lead { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; color: var(--ink); }
.ormx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ormx-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; font-size: 1rem; line-height: 1.5; color: var(--ink-60); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ormx-item:hover { transform: translateX(4px); border-color: transparent; box-shadow: 0 14px 34px -20px rgba(10,10,10,.35); }
.ormx-num { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--green); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font: 700 .9rem var(--font-head); }
@media (max-width: 1024px) { .ormx-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 600px) {
    .ormx-copy p { font-size: 1rem; }
    .ormx-item { padding: 14px 16px; gap: 14px; font-size: .95rem; }
    .ormx-num { width: 34px; height: 34px; }
    .ormx-note { padding: 16px 18px; }
}
/* lightest green already used on the site (service row hover tint) */
.section.section--off.ormx { background: #f7fbef; }
.ormx-link { color: inherit; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ormx-link:hover { text-decoration-color: var(--ink); }
