/* =========================================================================
   Components — buttons, header/nav, footer, cards, chips, accordion
   ========================================================================= */

/* ---- Skip link (keyboard "bypass blocks") — hidden until focused -------- */
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 300;
    background: #fff; color: var(--ink); font-weight: 700;
    padding: 0.7rem 1.1rem; border-radius: var(--r-md); box-shadow: var(--shadow-md);
    transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-weight: 700; font-size: var(--fs-body); line-height: 1;
    padding: 0.95rem 1.6rem; border-radius: 4px;  /* BOXT buttons are near-square (~2-4px), not pills */
    transition: background-color 0.2s var(--ease), transform 0.12s var(--ease), box-shadow 0.2s var(--ease);
    white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--coral  { background: var(--coral); color: #fff; }
.btn--coral:hover  { background: var(--coral-hover); }
.btn--green  { background: var(--green); color: #fff; }
.btn--green:hover  { background: var(--green-hover); }
.btn--outline {
    background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--surface-2);
}
.btn--outline:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--white  { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--surface); }
.btn--white-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); }
.btn--white-outline:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,0.1); }
.btn--ghost { background: transparent; color: var(--coral); padding-inline: 0.5rem; }
.btn--ghost:hover { color: var(--coral-hover); text-decoration: underline; }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--fs-sm); }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--fs-lead); }

/* ---- Top trust strip ---------------------------------------------------- */
.trustbar {
    background: var(--coral-tint); color: var(--ink); font-size: var(--fs-xs);
    text-align: center; padding: 0.375rem var(--gutter); font-weight: 400; line-height: 1.3;
}
.trustbar span { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.trustbar svg { width: 16px; height: 16px; color: var(--ink); flex: 0 0 auto; }
@media (min-width: 42rem) { .trustbar { font-size: var(--fs-sm); } .trustbar svg { width: 18px; height: 18px; } }

/* ---- Header / nav ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: var(--shadow-sm); }
.nav {
    display: flex; align-items: center; gap: 0.75rem;
    height: 64px; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter);
}
.nav__logo { color: var(--coral); flex: 0 0 auto; margin-inline: auto; display: inline-flex; align-items: center; min-height: 24px; }  /* centered on mobile; 24px tap target */
.nav__logo svg { width: 104px; height: auto; }
.nav__menu { display: none; align-items: center; gap: 0.25rem; margin-left: 0.5rem; flex: 1; list-style: none; padding: 0; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.7rem 0.85rem; border-radius: var(--r-pill); font-weight: 600; color: var(--ink);
}
.nav__link:hover { background: var(--surface); }
.nav__link svg { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }
.nav__help {
    display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--coral);
    padding: 0.5rem 1.1rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 2px var(--coral);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__help:hover { background: var(--coral); color: #fff; }
.nav__help svg { width: 18px; height: 18px; }

/* Mega menu */
.megamenu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    padding: 1.5rem; display: grid; grid-auto-flow: column; gap: 2rem;
    max-width: min(92vw, 760px);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
    z-index: 120;
}
.nav__item:hover .megamenu, .nav__item:focus-within .megamenu { opacity: 1; visibility: visible; transform: translateY(0); }
.megamenu__col { min-width: 180px; }
.megamenu__title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.6rem; }
.megamenu__link { display: block; padding: 0.4rem 0; font-weight: 600; color: var(--ink); border-radius: 6px; }
.megamenu__link:hover { color: var(--coral); }
.megamenu__cta { align-self: end; }

/* Hamburger (mobile) */
.nav__toggle { display: inline-flex; width: 44px; height: 44px; border-radius: var(--r-pill); align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    content: ""; display: block; width: 24px; height: 2.5px; background: var(--coral); border-radius: 2px; transition: 0.2s var(--ease);
}
.nav__toggle span::before { transform: translateY(-7px); }
.nav__toggle span::after  { transform: translateY(5px); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,27,39,0.45); opacity: 0; transition: opacity 0.25s var(--ease); }
.drawer__panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(92vw, 380px);
    background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%);
    transition: transform 0.28s var(--ease); display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__head .nav__logo svg { width: 96px; }
.drawer__close { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.drawer__close svg { width: 22px; height: 22px; }
.drawer__body { padding: 0.5rem var(--gutter) 1.5rem; }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__grouphead { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-weight: 700; font-size: var(--fs-lead); }
.drawer__grouphead svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.drawer__group.is-open .drawer__grouphead svg { transform: rotate(180deg); }
.drawer__sub { display: none; padding-bottom: 0.75rem; }
.drawer__group.is-open .drawer__sub { display: block; }
.drawer__sub a { display: block; padding: 0.5rem 0 0.5rem 0.75rem; color: var(--muted); font-weight: 600; }
.drawer__sub a:hover { color: var(--coral); }
.drawer__cta { padding: 1.25rem var(--gutter); border-top: 1px solid var(--line); margin-top: auto; }

/* ---- Chips / tags ------------------------------------------------------- */
.chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: var(--fs-xs); font-weight: 700; padding: 0.3rem 0.7rem; border-radius: var(--r-pill);
    background: var(--surface-2); color: var(--ink);
}
.chip--popular { background: var(--gold-tint); color: var(--gold); }
.chip--compact { background: var(--tint-blue); color: #2f7bb5; }

/* ---- Accordion (FAQ) ---------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.25rem 0.25rem; text-align: left; font-weight: 700; font-size: var(--fs-lead); color: var(--ink);
}
.accordion__icon { flex: 0 0 auto; width: 24px; height: 24px; position: relative; }
.accordion__icon::before, .accordion__icon::after {
    content: ""; position: absolute; inset: 0; margin: auto; background: var(--coral); border-radius: 2px;
}
.accordion__icon::before { width: 14px; height: 2px; }
.accordion__icon::after  { width: 2px; height: 14px; transition: transform 0.2s var(--ease); }
.accordion__btn[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s var(--ease); }
.accordion__btn[aria-expanded="true"] + .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding: 0 0.25rem 1.25rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer__brand-logo { color: var(--coral); }
.footer__brand-logo svg { width: 130px; }
.footer__legal-text { font-size: var(--fs-sm); color: var(--muted); margin-top: 1rem; max-width: 40ch; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer__social a {
    width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--ink); transition: 0.2s var(--ease);
}
.footer__social a:nth-of-type(1) { color: #1877f2; }  /* facebook */
.footer__social a:nth-of-type(2) { color: #111; }      /* instagram */
.footer__social a:nth-of-type(3) { color: #0a66c2; }   /* linkedin */
.footer__social a:nth-of-type(4) { color: #111; }      /* x */
.footer__social a:hover { border-color: currentColor; }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h2 { font-size: var(--fs-lead); margin-bottom: 0.9rem; }
.footer__col a { display: block; padding: 0.45rem 0; color: var(--ink); font-weight: 400; text-decoration: none; }
.footer__col a:hover { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.footer__badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.75rem; margin-top: 2.5rem; }
.footer__badges img { height: 52px; width: auto; }

/* Full-width grey legal band at the very bottom */
.footer__legal-band { background: var(--surface); padding-block: 1.75rem; margin-top: 2.5rem; }
.footer__legal-text--full { font-size: 13px; color: var(--muted); max-width: none; margin-top: 0.85rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; justify-content: center; text-align: center; }
.footer__bottom a { font-size: var(--fs-sm); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.footer__bottom a:hover { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.footer__copy { font-size: var(--fs-sm); color: var(--muted); width: 100%; margin-top: 0.85rem; text-align: center; }

/* Mobile-first breakpoints — match BOXT exactly (42rem / 66rem / 82rem) */
@media (min-width: 42rem) {
    .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 66rem) {
    .nav { gap: 1.25rem; height: 76px; }
    .nav__logo { margin-inline: 0; }
    .nav__logo svg { width: 112px; }
    .nav__menu { display: flex; flex: 0 1 auto; justify-content: flex-end; margin-left: auto; }
    .nav__toggle { display: none; }
    .footer__top { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
