/* frame.css
   Copyright © 2026 LexPro. All rights reserved.

   The frame every page shares, as the Flutter SitePage draws it: the
   floating nav (site_nav.dart), its menus (nav/site_nav_menu.dart), the phone
   drawer, the footer (sections/site_footer.dart), the closing band
   (sections/closing.dart) and "Ask a question" (widgets/ask_question.dart). */

/* SiteFrame: 1200 wide with 20px gutters, 16 on a phone. */
.frame-width { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .frame-width { padding: 0 16px; } }

/* ---- The logo (ProductWordmark) ---- */
.lockup {
  --lockup: 14.5px;
  --lockup-name: calc(var(--lockup) * 1.4);
  display: inline-flex; align-items: center; gap: calc(var(--lockup-name) * .3);
  line-height: 1; white-space: nowrap;
}
.lockup__bars { width: calc(var(--lockup-name) * 1.3 * 58 / 48); height: calc(var(--lockup-name) * 1.3); flex: none; }
.lockup__text { display: inline-flex; flex-direction: column; align-items: flex-start; gap: calc(var(--lockup-name) * .14); }
.lockup__name {
  font-family: var(--font-wordmark); font-weight: 900; font-variation-settings: "wght" 900;
  font-size: var(--lockup-name); line-height: 1; letter-spacing: -0.01em; color: var(--brand-navy);
}
.lockup__by {
  font-family: var(--font-wordmark); font-weight: 800; font-variation-settings: "wght" 800;
  font-size: calc(max(7px, var(--lockup-name) * .34) * 1.1); line-height: 1.15; color: var(--gray-600);
}
.lockup--on-dark .lockup__name { color: #fff; }
.lockup--on-dark .lockup__by { color: var(--gray-300); }

/* ---- The nav (SiteNav) ---- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; }
.site-nav {
  position: relative; display: flex; align-items: stretch; height: 60px; margin: 12px 0;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--gray-100); border-radius: 16px;
  box-shadow: 0 8px 30px -14px rgba(12, 29, 58, .25);
}
.site-nav__brand {
  display: flex; align-items: center; flex: none; padding: 0 calc(14.5px * .9);
  border-radius: 15px 0 0 15px; text-decoration: none;
}
.site-nav__bar {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; margin-left: 18px; padding-right: 10px;
}
.site-nav__links { display: flex; align-items: center; gap: 4px; margin-right: 2px; flex: none; }
.site-nav__lang { gap: 8px; flex: none; }
.site-nav__login, .site-nav__demo { flex: none; }
.site-nav__menu-button { display: none; width: 48px; height: 48px; }

.nav-link {
  display: inline-flex; align-items: center; gap: 2px; padding: 8px 11px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font-family: var(--font);
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--navy-25); }
.nav-link.is-current { background: var(--navy-50); color: var(--navy-800); box-shadow: inset 0 -2px 0 var(--accent-400); }
.nav-menu { position: relative; }
.nav-menu__button { padding-right: 7px; }
.nav-menu__button .icon { transition: transform .15s ease; }
.nav-menu__button[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* The menu (SiteMenuPanel): its columns side by side while they fit the
   window, shifted left by site.js to stay on it; wrapped when they don't. */
.nav-menu__panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 50;
  padding: 14px; background: #fff; border: 1px solid var(--gray-100); border-radius: 16px;
  box-shadow: 0 3px 6px rgba(12, 29, 58, .1), 0 10px 24px rgba(12, 29, 58, .14);
  max-width: calc(100vw - 32px);
}
.nav-menu__cols { display: flex; gap: 12px; }
.nav-menu__col { width: 196px; display: flex; flex-direction: column; }
.nav-menu__panel--described .nav-menu__col { width: 380px; }
.nav-menu__panel.is-wrapped .nav-menu__cols { flex-wrap: wrap; row-gap: 16px; }
.nav-menu__heading {
  padding: 4px 12px 8px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--gray-600); line-height: 1.3;
}
.nav-menu__item {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; text-decoration: none;
}
.nav-menu__item:hover, .nav-menu__item:focus-visible { background: var(--navy-25); }
.nav-menu__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--ink);
}
.nav-menu__panel--described .nav-menu__label { font-weight: 700; }
.nav-menu__away { color: var(--gray-600); }
.nav-menu__desc { font-weight: 500; font-size: 13.5px; line-height: 1.35; color: var(--gray-600); }

/* Folded: the links go into the menu button and the drawer. site.js decides
   it by measuring (is-folded / is-unfolded); until it has, below 1000px. */
.site-nav.is-folded .site-nav__links,
.site-nav.is-folded .site-nav__lang { display: none; }
.site-nav.is-folded .site-nav__menu-button { display: inline-flex; }
@media (max-width: 1000px) {
  .site-nav:not(.is-unfolded) .site-nav__links,
  .site-nav:not(.is-unfolded) .site-nav__lang { display: none; }
  .site-nav:not(.is-unfolded) .site-nav__menu-button { display: inline-flex; }
}
/* A phone: a smaller Log in, and no Book a demo in the bar (the drawer has it). */
@media (max-width: 600px) {
  .site-nav__demo { display: none; }
  .site-nav__login { --btn-h: 38px; --btn-pad: 14px; --btn-fs: 14px; }
}
/* A narrow phone: everything a little tighter, so the longest name (Bell &
   Beyond) and the longest Log in ("Iniciar sesión") both fit; before, the bar
   ran over the wordmark (QA 2026-11-07, "Bell & Beyon" at 390px). */
@media (max-width: 440px) {
  .site-nav__brand { padding: 0 10px; }
  .site-nav .lockup { --lockup: 12px; }
  .site-nav__bar { margin-left: 6px; gap: 6px; padding-right: 8px; }
  .site-nav__login { --btn-pad: 10px; --btn-fs: 13px; }
}

/* ---- The phone drawer (SiteMenuDrawer) ---- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .54); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(304px, 85vw); overflow-y: auto;
  padding: 8px 8px 24px; background: #fff; box-shadow: -8px 0 24px rgba(0, 0, 0, .16);
}
.drawer__top { display: flex; justify-content: flex-end; padding: 4px 4px 8px; }
.drawer__close { border-color: transparent; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px;
  padding: 0 16px; border-radius: 10px; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 17px; line-height: 1.2;
}
.drawer__link:hover { background: var(--navy-25); }
.drawer__link.is-current { background: var(--navy-50); color: var(--navy-800); }
.drawer__summary { list-style: none; cursor: pointer; }
.drawer__summary::-webkit-details-marker { display: none; }
.drawer__chevron { transition: transform .15s ease; }
.drawer__group[open] .drawer__chevron { transform: rotate(180deg); }
.drawer__group[open] { padding-bottom: 8px; }
.drawer__item { padding-left: 32px; min-height: 48px; }
.drawer__heading {
  padding: 10px 16px 4px 32px; font-size: 12px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--gray-600);
}
.drawer__lang { margin: 16px 16px 0; }
.drawer__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 16px 0; }
html.drawer-open { overflow: hidden; }

/* ---- The closing band (ClosingCtaSection) ---- */
.closing-cta { background: var(--board); padding: 84px 24px; text-align: center; color: #fff; }
.closing-cta__heading {
  font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  max-width: 1080px; margin: 0 auto 14px;
}
.closing-cta__body { max-width: calc(34 * 17px); margin: 0 auto; color: var(--chalk-dim); }
.closing-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.home-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 12px; background: var(--palette-accent); color: var(--ink); border: 2px solid var(--palette-accent);
  font-weight: 700; font-size: 16.5px; text-decoration: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.home-button:hover { background: var(--palette-accent-deep); border-color: var(--palette-accent-deep); }
.home-button--ghost { background: transparent; color: var(--chalk); border-color: rgba(244, 247, 252, .4); box-shadow: none; }
.home-button--ghost:hover { background: rgba(244, 247, 252, .08); border-color: rgba(244, 247, 252, .4); }

/* ---- The footer (SiteFooter) ---- */
.site-footer { background: #14243e; color: #c4d0e6; font-size: 15px; line-height: 1.5; padding: 56px 0 40px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 14fr 10fr 10fr 10fr; column-gap: 28px; }
.site-footer__home { display: inline-block; }
.site-footer__tagline { margin-top: 10px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store-badge { height: 40px; width: auto; }
/* The product's social pages: small round sticker icons, outlined in the
   footer's text colour with a short offset shadow; white on hover. */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 2px solid #c4d0e6; color: #c4d0e6; background: rgba(255, 255, 255, .04);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); transition: transform .12s ease, color .12s ease, border-color .12s ease;
}
.site-footer .social-link:hover { color: #fff; border-color: #fff; transform: translate(-1px, -1px); }
.social-link:focus-visible { outline-offset: 2px; }
.social-link__icon { display: block; }
@media (prefers-reduced-motion: reduce) { .social-link { transition: none; } .site-footer .social-link:hover { transform: none; } }
.site-footer__heading {
  font-size: 13px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: #fff; line-height: 1.5;
  margin-bottom: 10px;
}
.site-footer__group li { padding: 4px 0; font-weight: 500; }
.site-footer__main { margin-top: 18px; }
.site-footer__giant {
  margin-top: 24px; font-size: clamp(64px, 16vw, 210px); font-weight: 800; line-height: .85; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14); white-space: nowrap; overflow: hidden;
  user-select: none;
}
/* "Bell & Beyond" is nearly twice Carline's length: at 210px it ran past the
   1160px column and was cut to "Beyonc". */
[data-product="aftercare"] .site-footer__giant { font-size: clamp(48px, 14vw, 180px); }
.site-footer__rule { margin: 10px 0 16px; border: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__fine { display: flex; gap: 24px; font-size: 13px; }
.site-footer__legal { flex: none; }
.site-footer__credits { flex: 1; display: grid; gap: 4px; }
.site-footer .is-underlined { text-decoration: underline; }
/* On a tablet the brand takes the first row and the three link columns
   share the next (two across left the third alone on a row of its own). */
@media (max-width: 980px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 800px) { .site-footer__fine { flex-direction: column; gap: 12px; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---- Ask a question ---- */
.ask { position: fixed; right: 20px; bottom: 20px; z-index: 30; }
@media (max-width: 600px) { .ask { right: 12px; bottom: 12px; } }
.ask__launcher {
  border: 2px solid #fff; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
html:not(.js) .ask__launcher, .ask.is-shown .ask__launcher { opacity: 1; visibility: visible; transform: none; }
.ask.is-open .ask__launcher { display: none; }
.ask__panel {
  width: min(380px, calc(100vw - 40px)); max-height: min(680px, calc(100vh - 40px)); overflow-y: auto;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 20px; box-shadow: var(--shadow-card), 0 24px 48px -12px rgba(12, 29, 58, .25);
}
.ask__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 0 20px; }
.ask__title { font-size: 19px; font-weight: 700; }
.ask__head .icon-button { border-color: transparent; }
.ask__body { padding: 4px 20px 20px; }
.ask__step { display: grid; gap: 14px; }
.ask__h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.ask__choices { display: grid; gap: 10px; }
.ask__choices .btn { justify-content: flex-start; height: auto; min-height: 44px; padding: 10px 16px; white-space: normal; text-align: left; line-height: 1.3; }
.ask__intro { font-size: 15px; }
.ask__note { font-size: 14px; color: var(--gray-600); }
.ask__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.ask__failure { color: var(--red-700); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .ask__launcher { transition: none; } }
