/*
 * Home page: phones only.
 * Loaded with media="(max-width: 767.98px)", so tablets and desktops never apply any of this.
 * Selectors start with "html body" so they win over the page's own inline <style> blocks.
 */

/* Room at the bottom so the sticky quote bar never covers the last lines of the page */
html body { padding-bottom: 76px; }

/* ── Header ─────────────────────────────────────────────────────────── */
html body .mobile_phone_btn { width: 44px; height: 44px; min-width: 44px; }
html body .openbtn:focus-visible { outline: 3px solid #ff784f; outline-offset: 2px; }

/* Extra items in the phone menu */
html body .wim-menu-extra { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 4px; list-style: none; }
html body .wim-menu-extra .btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; }
html body .wim-menu-extra__link { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: #550266; font-weight: 600; font-size: 16px; text-decoration: none; }
html body .wim-menu-extra__link small { font-weight: 400; font-size: 13px; opacity: .75; }

/* ── Hero: lighter phone photo, headline and button higher up ─────────── */
html body .new_home_hero::after {
    background-image: url("../img/hero/hero-bg-new-home-mobile.webp?v=2");
    background-size: 100% auto;
    background-position: top center;
}
html body .new_home_hero { padding-top: 250px; min-height: 0; }
html body .new_home_hero .global__list { padding-top: 22px; }
html body .new_home_hero .hero__title_rm small { font-size: inherit; }

html body .wim-hero-rating {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; margin-top: 10px; padding: 0 6px;
    color: #fff; font-size: 15px; text-decoration: none;
}
html body .wim-hero-rating[hidden] { display: none; }
html body .wim-hero-rating__stars { color: #ffc93c; letter-spacing: 1px; font-size: 16px; }
html body .wim-hero-rating strong { font-weight: 700; }

/* ── Sectors: simple 2-column grid instead of the carousel ──────────── */
html body .home_sectors__slider { display: none !important; }
html body .wim-sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
html body .wim-sectors__item {
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: 16px; background: #fff; text-decoration: none;
    box-shadow: 0 6px 18px -10px rgba(85, 2, 102, .35); border: 1px solid #ece1f3;
}
html body .wim-sectors__item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
html body .wim-sectors__item span {
    display: flex; align-items: center; min-height: 48px; padding: 8px 12px;
    color: #550266; font-weight: 600; font-size: 14.5px; line-height: 1.25;
}
html body .home_sectors__footer .btn { min-height: 48px; display: inline-flex; align-items: center; }

/* ── "Protection available": compact rows instead of tall cards ──────── */
html body .extra_new_home .guides_card_list { display: flex; flex-direction: column; gap: 12px; }
html body .extra_new_home .coverd__card {
    position: relative; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; max-width: none;
    min-height: 0; height: auto; margin: 0; padding: 14px 44px 14px 14px; border-radius: 16px;
}
html body .extra_new_home .coverd__card .thumbnail {
    flex: 0 0 56px; width: 56px; height: 56px; min-height: 0; padding: 0; margin: 0;
    border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
html body .extra_new_home .coverd__card .thumbnail ._image,
html body .extra_new_home .coverd__card .thumbnail img { width: 44px; height: 44px; max-width: 44px; object-fit: contain; margin: 0; padding: 0; }
html body .extra_new_home .coverd__card .text { padding: 0; margin: 0; text-align: left; flex: 1 1 auto; min-width: 0; }
html body .extra_new_home .coverd__card .text .h3 { font-size: 16px; line-height: 1.3; margin: 0 0 2px; padding: 0; text-align: left; }
html body .extra_new_home .coverd__card .text p:not(.h3) { font-size: 14px; line-height: 1.4; margin: 0; padding: 0; text-align: left; }
/* The whole row is the link (the "Learn more" button is stretched over the row and
   visually replaced by a small arrow) */
html body .extra_new_home .coverd__card .text,
html body .extra_new_home .coverd__card .ctaBtn { position: static; margin: 0; padding: 0; }
html body .extra_new_home .coverd__card .ctaBtn .btn {
    position: absolute; inset: 0; z-index: 2; display: block; width: auto; height: auto; min-height: 0;
    padding: 0; margin: 0; border: 0; border-radius: 16px; background: transparent; box-shadow: none;
    overflow: hidden; color: transparent; cursor: pointer; -webkit-tap-highlight-color: rgba(85, 2, 102, .08);
}
html body .extra_new_home .coverd__card .ctaBtn .btn > * { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body .extra_new_home .coverd__card .ctaBtn .btn:focus-visible { outline: 3px solid #ff784f; outline-offset: 2px; }
html body .extra_new_home .coverd__card::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -5px;
    border-right: 2px solid #ff784f; border-top: 2px solid #ff784f; transform: rotate(45deg);
}

/* ── Tap-to-open sections (guide + footer); only active once the script has run ── */
html body .wim-acc .wim-acc__head { margin: 0; padding: 0; border-bottom: 1px solid #ece1f3; }
html body .wim-acc .wim-acc__btn {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-height: 52px; padding: 12px 2px; margin: 0;
    background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
html body .wim-acc .wim-acc__chev {
    flex: 0 0 auto; width: 10px; height: 10px; margin-right: 6px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .2s ease;
}
html body .wim-acc .wim-acc__btn[aria-expanded="true"] .wim-acc__chev { transform: rotate(-135deg); }
html body .wim-acc .wim-acc__panel { padding: 12px 0 18px; }
html body .wim-acc .wim-acc__panel[hidden] { display: none; }

/* Guide */
html body .home_insurance_guide__body.wim-acc h3.wim-acc__head { font-size: 18px; line-height: 1.3; margin: 0; scroll-margin-top: 20px; }
html body .home_insurance_guide__toc a { min-height: 44px; display: inline-flex; align-items: center; }

/* Footer */
html body .footer.wim-acc .footer__devider { grid-template-columns: 1fr; grid-gap: 0; gap: 0; }
html body .footer.wim-acc .footer__devider .footer__widget { margin: 0; padding: 0; width: 100%; }
html body .footer.wim-acc .footer__devider .wim-acc__head { border-bottom-color: rgba(255, 255, 255, .18); }
html body .footer.wim-acc .footer__devider .wim-acc__btn { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
html body .footer.wim-acc .footer__devider .wim-acc__panel { padding: 4px 0 12px; }
html body .footer .footer__devider ul li a,
html body .footer .footer__cp ul li a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Sticky quote bar ────────────────────────────────────────────────── */
html body .wim-cta-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    padding: 10px 92px calc(10px + env(safe-area-inset-bottom)) 12px;
    background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 20px -8px rgba(85, 2, 102, .35);
    transform: translateY(110%); transition: transform .25s ease; visibility: hidden;
}
html body .wim-cta-bar.is-on { transform: translateY(0); visibility: visible; }
html body .wim-cta-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; border-radius: 999px; text-decoration: none;
    background: linear-gradient(90.22deg, #ff784f 2.84%, #feaf48 99.81%);
    color: #fff; font-weight: 700; font-size: 17px;
}
html body .wim-cta-bar__btn small { font-weight: 500; font-size: 14px; opacity: .95; }
@media (prefers-reduced-motion: reduce) {
    html body .wim-cta-bar { transition: none; }
    html body .wim-acc .wim-acc__chev { transition: none; }
}

/* ── Reviews: no customer photos on phones ───────────────────────────── */
html body .home_feedback .home_feedback_illustration { display: none; }
