/* ===================================================================
   FLM 380 Wireless — style.css
   Modern blue & white repair-shop theme. Mobile-first, no frameworks.
   =================================================================== */

:root {
    --blue:        #1226e6;   /* logo electric royal blue */
    --blue-dark:   #0b1a6e;   /* logo navy (#000080) */
    --blue-light:  #e9ecfd;
    --accent:      #f9a826;   /* warm CTA */
    --accent-dark: #e08e0b;
    --ink:         #16243a;
    --muted:       #5d6b7e;
    --line:        #e3e8ef;
    --bg:          #ffffff;
    --bg-alt:      #f5f8fc;
    --white:       #ffffff;
    --radius:      14px;
    --radius-sm:   9px;
    --shadow:      0 10px 30px rgba(18, 38, 230, .12);
    --shadow-sm:   0 4px 14px rgba(16, 36, 58, .08);
    --maxw:        1140px;
    --font:        'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-head:   'Plus Jakarta Sans', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* contain the off-canvas mobile nav without breaking sticky header */
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { color: var(--muted); }
a  { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    font-family: var(--font); font-weight: 700; font-size: .98rem;
    padding: .85em 1.5em; border-radius: 50px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #3a2600; box-shadow: 0 6px 18px rgba(249,168,38,.35); }
.btn--accent:hover { background: var(--accent-dark); color: #3a2600; }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--ghost { background: var(--blue-light); color: var(--blue); }
.btn--ghost:hover { background: #d6e6fb; color: var(--blue-dark); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { color: var(--blue-dark); }
.btn--outline-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--blue); }
.btn--sm { padding: .6em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--mt { margin-top: 18px; }

.pill {
    display: inline-block; background: var(--blue-light); color: var(--blue);
    font-weight: 700; font-size: .82rem; padding: .4em 1em; border-radius: 50px;
    margin-bottom: 14px;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--blue-dark); color: #cfe0f5; font-size: .82rem; }
.topbar__inner { display: flex; gap: 22px; justify-content: center; align-items: center; padding: 7px 20px; flex-wrap: wrap; }
.topbar__item { color: #cfe0f5; }
.topbar__item a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.topbar__item a:hover { color: var(--accent); }
.topbar__phone { font-weight: 700; color: #fff; }
.topbar__phone:hover { color: var(--accent); }

/* ---------- Header / Nav ---------- */
.header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-head); font-weight: 800; }
.brand__logo { height: 52px; width: auto; }
.brand__name { font-size: 1.15rem; letter-spacing: -.2px; }
.brand:hover { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 16px; }
.nav__list { display: flex; list-style: none; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
    color: var(--ink); font-weight: 600; font-size: 1rem; padding: .55em .85em;
    border-radius: 8px; white-space: nowrap; transition: background .15s, color .15s;
}
.nav__link:hover { background: var(--bg-alt); color: var(--blue); }
.nav__link.active { color: var(--blue); background: var(--blue-light); }

/* Dropdown toggle (it's a <button>) */
.nav__sub-toggle {
    background: none; border: 0; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: .35em;
}
/* Parent that is BOTH a link (to a hub page) and a dropdown: link + caret button */
.nav__caret-btn {
    background: none; border: 0; cursor: pointer; color: var(--ink);
    padding: .55em .35em; line-height: 1; display: inline-flex; align-items: center;
}
.nav__parent-link { padding-right: .25em; }
.nav__caret { font-size: .7em; transition: transform .2s ease; }

/* Submenu — collapsed by default (drawer accordion on mobile) */
.nav__sub { display: none; list-style: none; }
.nav__item--has-sub.open .nav__sub { display: block; }
.nav__sublink {
    display: block; padding: .6em .85em; border-radius: 8px;
    color: var(--ink); font-weight: 600; white-space: nowrap;
    transition: background .15s, color .15s;
}
.nav__sublink:hover, .nav__sublink.active { background: var(--blue-light); color: var(--blue); }

/* Desktop: submenu becomes a hover/focus dropdown panel */
@media (min-width: 993px) {
    .nav__sub {
        display: block; position: absolute; top: 100%; left: 0; min-width: 252px;
        background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
        box-shadow: var(--shadow); padding: 8px; margin-top: 2px; z-index: 200;
        opacity: 0; visibility: hidden; transform: translateY(6px);
        transition: opacity .15s ease, transform .15s ease, visibility .15s;
    }
    .nav__item--has-sub:hover .nav__sub,
    .nav__item--has-sub:focus-within .nav__sub,
    .nav__item--has-sub.open .nav__sub {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
    .nav__item--has-sub:hover .nav__caret,
    .nav__item--has-sub:focus-within .nav__caret,
    .nav__item--has-sub.open .nav__caret { transform: rotate(180deg); }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45em; list-style: none; padding: 9px 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: .45em; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; color: var(--muted); opacity: .7; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(249,168,38,.14), transparent 60%),
        linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff; padding: 64px 0 72px;
}
.hero__inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; }
.hero__text h1 { color: #fff; }
.hero__text .hl { color: var(--accent); }
.hero .lead { color: #d7e4f6; font-size: 1.12rem; margin: 16px 0 26px; max-width: 540px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; font-size: .9rem; color: #cfe0f5; font-weight: 600; }
.hero__card {
    background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px;
    box-shadow: var(--shadow);
}
.hero__card h3 { margin-bottom: 6px; }
.hero__card p { font-size: .95rem; margin-bottom: 16px; }
.hero__card .btn { margin-bottom: 10px; }
.hero__card-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.hero__card-img { display: block; width: 100%; height: auto; border-radius: 12px; margin: -4px 0 18px; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Content figures (real photos in prose) ---------- */
.content-figure { margin: 0 0 24px; }
.content-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.content-figure figcaption { font-size: .84rem; color: var(--muted); text-align: center; margin-top: 9px; }

/* ---------- Trust strip ---------- */
.strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.strip__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 26px 20px; text-align: center; }
.strip__item strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--blue); }
.strip__item span { font-size: .86rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 66px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section__head p { margin-top: 10px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; }
.card__icon { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--blue-light); border-radius: 12px; margin-bottom: 14px; }
.card--link { display: flex; flex-direction: column; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.card__from { margin-top: 12px; font-weight: 700; color: var(--blue); font-family: var(--font-head); }
.card__cta { margin-top: 8px; font-weight: 700; color: var(--accent-dark); font-size: .92rem; }
.price-tag { font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: 1.15rem; margin: 6px 0 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step__num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-family: var(--font-head); margin-bottom: 14px; }
.step h4 { margin-bottom: 6px; }
.step p { font-size: .92rem; }

/* ---------- Service hero / page hero ---------- */
.service-hero, .page-hero {
    background:
        radial-gradient(700px 300px at 90% -20%, rgba(249,168,38,.12), transparent 60%),
        linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff; padding: 56px 0;
}
.service-hero h1, .page-hero h1 { color: #fff; }
.service-hero .lead, .page-hero .lead { color: #d7e4f6; margin: 14px 0 22px; max-width: 620px; }
.service-hero__text { max-width: 720px; }

.check-list { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 22px; margin: 0 0 24px; }
.check-list li { position: relative; padding-left: 28px; color: #eaf2fd; font-weight: 600; font-size: .95rem; }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.price-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 360px; }
.price-table thead th { background: var(--blue); color: #fff; text-align: left; padding: 13px 18px; font-family: var(--font-head); font-size: .95rem; }
.price-table tbody td { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--ink); }
.price-table tbody td:last-child { font-weight: 700; color: var(--blue); white-space: nowrap; }
.price-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.price-table tbody tr:hover { background: var(--blue-light); }

.price-block { margin-bottom: 42px; }
.model-no { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.price-block h2 { margin-bottom: 18px; }

.notice { background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 18px 20px; }
.notice p { color: var(--ink); margin: 0; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq__q {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 18px 50px 18px 20px; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); position: relative;
}
.faq__q::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); transition: transform .2s; }
.faq__item.open .faq__q::after { content: "−"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a p { padding: 0 20px 18px; font-size: .96rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; padding: 50px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e4f6; margin-top: 6px; }

/* ---------- Map ---------- */
.map-section iframe { display: block; }

/* ---------- Feature list (light-bg checklist) ---------- */
.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    max-width: 760px;
    margin: 0 auto;
}
.feature-list li {
    position: relative;
    padding: 12px 16px 12px 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--ink);
}
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px;
    display: grid; place-items: center;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 50%;
    font-size: .75rem; font-weight: 800;
}
.feature-list__wide { grid-column: 1 / -1; text-align: center; }
.feature-list__wide::before { display: none; }
.feature-list__wide strong { color: var(--blue); }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose p { margin-bottom: 16px; font-size: 1.05rem; }
.prose strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-card h2 { margin-bottom: 18px; }
.contact-card h3 { margin: 24px 0 10px; }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list__ic { font-size: 1.3rem; width: 42px; height: 42px; display: grid; place-items: center; background: var(--blue-light); border-radius: 10px; flex-shrink: 0; }
.contact-list strong { color: var(--ink); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours-table th { font-weight: 700; color: var(--ink); font-family: var(--font-head); }
.hours-table td { color: var(--muted); text-align: right; }
.contact-social { margin-top: 24px; }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-height: 460px; }

/* ---------- Footer ---------- */
.footer { background: #0a1336; color: #aebfd4; padding: 54px 0 0; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 40px; }
.footer__col { min-width: 0; } /* prevent the brand block from overflowing into the next column */
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__logo { background: #fff; padding: 5px 9px; border-radius: 8px; } /* keep transparent logo visible on dark footer */
.footer__about { color: #94a8c4; max-width: 320px; }
.footer__rating { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: #cfe0f5; font-size: .9rem; font-weight: 600; }
.footer__rating strong { color: #fff; }
.footer__rating-stars { color: #ffc24b; letter-spacing: 1px; }
.footer__rating:hover { color: #fff; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.footer__social a { color: #cfe0f5; background: rgba(255,255,255,.07); padding: 5px 12px; border-radius: 50px; font-size: .82rem; font-weight: 600; }
.footer__social a:hover { background: var(--blue); color: #fff; }
.footer__links { list-style: none; display: grid; gap: 9px; }
.footer__links a { color: #aebfd4; }
.footer__links a:hover { color: #fff; }
.footer__nap { font-style: normal; color: #aebfd4; line-height: 1.8; }
.footer__nap a { color: var(--accent); }
.footer__hours { margin-top: 14px; color: #94a8c4; font-size: .88rem; line-height: 1.7; }
.footer__hours strong { color: #cfe0f5; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .85rem; color: #7e93b2; text-align: center; }
.footer__bottom a { color: #cfe0f5; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; gap: 1px; background: var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.mobile-cta__btn { flex: 1; text-align: center; padding: 14px; font-weight: 700; font-size: .98rem; }
.mobile-cta__start { background: var(--accent); color: #3a2600; }
.mobile-cta__call { background: var(--blue); color: #fff; }
.mobile-cta__wa { background: #25D366; color: #fff; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__card { max-width: 440px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* Nav collapses to a hamburger drawer below 992px so the 8-item inline menu
   only shows when it comfortably fits on one line. */
@media (max-width: 992px) {
    .nav-toggle { display: flex; }
    .nav {
        position: fixed; top: 72px; right: 0; height: calc(100vh - 72px); width: min(82vw, 320px);
        background: #fff; flex-direction: column; align-items: stretch; gap: 0;
        padding: 18px; box-shadow: -10px 0 30px rgba(0,0,0,.12);
        transform: translateX(100%); transition: transform .25s ease;
    }
    .nav.open { transform: translateX(0); }
    .nav__list { flex-direction: column; gap: 2px; align-items: stretch; }
    .nav__link { padding: .8em 1em; font-size: 1.05rem; border-radius: 10px; }
    .nav__sub-toggle { width: 100%; justify-content: space-between; text-align: left; }
    .nav__item--has-sub { display: flex; flex-wrap: wrap; align-items: center; }
    .nav__parent-link { flex: 1 1 auto; }
    .nav__caret-btn { color: inherit; padding: .7em .9em; }
    .nav__sub { padding-left: 12px; flex-basis: 100%; }
    .nav__sublink { font-size: 1rem; padding: .7em 1em; }
    .nav__cta { margin-top: 14px; }
    .nav { z-index: 110; }
}

/* Dim backdrop behind the mobile nav drawer */
.nav-overlay {
    position: fixed; inset: 0; z-index: 95;
    background: rgba(8, 20, 40, .5);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
    .cards--3, .steps { grid-template-columns: 1fr 1fr; }
    .strip__grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
    .check-list { grid-template-columns: 1fr; }
    .mobile-cta { display: flex; }
    body { padding-bottom: 52px; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .cards--3, .steps, .strip__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 26px; }
    .topbar__inner { gap: 12px; font-size: .76rem; }
    .topbar__item:nth-child(2) { display: none; }
    .hero { padding: 44px 0 54px; }
    .section { padding: 48px 0; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; }
    .hero__trust { flex-direction: column; gap: 8px; }
}

/* ---------- Booking / Check-in tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.tab-btn {
    font-family: var(--font); font-weight: 700; font-size: .98rem;
    padding: .7em 1.4em; border-radius: 50px; cursor: pointer;
    border: 2px solid var(--line); background: #fff; color: var(--muted);
    transition: background .15s, color .15s, border-color .15s;
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Booking widget (WeFixIt CRM embed) ---------- */
.rs-widget-container { position: relative; }
.rs-widget-frame {
    display: block;
    width: 100%;
    height: 85vh;           /* near-full-screen; scrolls internally so the whole form is reachable */
    min-height: 720px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: #fff;
}
/* "Open full screen" link over the frame (opens vendor page in a new tab) */
.rs-fs-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .3em;
    font-family: var(--font);
    font-weight: 700;
    font-size: .82rem;
    padding: .45em 1em;
    border-radius: 50px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: rgba(7, 58, 122, .82);
    box-shadow: var(--shadow-sm);
    transition: background .15s;
}
.rs-fs-btn:hover { background: var(--blue-dark); color: #fff; }
.rs-hint { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.booking-fallback { text-align: center; margin-top: 18px; }

/* Press / Media room embed — reserve space so layout doesn't jump before it loads */
.media-room { min-height: 320px; }

/* Dedicated widget pages (Start Repair / Appointment / Check-In):
   big full-screen button on mobile, embedded form on desktop. */
.embed-mobile-cta { display: none; }
@media (max-width: 768px) {
    .embed-mobile-cta { display: block; font-size: 1.05rem; padding: 1em; white-space: normal; line-height: 1.35; }
    .embed-desktop { display: none; }
}

/* Mobile: fit the frame to the screen and make "Full screen" a full-width tappable bar */
@media (max-width: 768px) {
    .rs-widget-container { display: flex; flex-direction: column; }
    .rs-fs-btn {
        position: static;
        order: -1;
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
        padding: .8em 1em;
        font-size: .95rem;
        background: var(--blue);
    }
    .rs-widget-frame { height: 78vh; min-height: 0; }
}

/* ===================================================================
   GSAP animation support
   Pre-hide animated elements ONLY when JS is active (.js on <html>),
   so GSAP can reveal them with no flash of content. If JS/GSAP fail,
   the .js class is never added (or is removed) and content stays visible.
   =================================================================== */
.js .hero__text > *,
.js .hero__card,
.js .section__head,
.js .card,
.js .step,
.js .strip__item,
.js .faq__item,
.js .price-block,
.js .notice,
.js .cta-band__inner > *,
.js .service-hero__text > *,
.js .page-hero .container > *,
.js .contact-card,
.js .contact-map,
.js .map-section iframe,
.js .footer__col {
    opacity: 0;
}

/* Promote layers that actually animate */
.card, .step, .strip__item, .hero__card { will-change: transform; }

/* Accessibility: never hide content for reduced-motion users, even if
   JS is active — motion is skipped but everything stays fully visible. */
@media (prefers-reduced-motion: reduce) {
    .js .hero__text > *,
    .js .hero__card,
    .js .section__head,
    .js .card,
    .js .step,
    .js .strip__item,
    .js .faq__item,
    .js .price-block,
    .js .notice,
    .js .cta-band__inner > *,
    .js .service-hero__text > *,
    .js .page-hero .container > *,
    .js .contact-card,
    .js .contact-map,
    .js .map-section iframe,
    .js .footer__col {
        opacity: 1 !important;
    }
    .card, .step, .strip__item, .hero__card { will-change: auto; }
}
