/* ==========================================================================
   beglobber by RUMBO LIBRE — site stylesheet
   Built on the Beglobber design tokens (tokens.css): warm charcoal structure +
   Beglobber red accent. Flat, hairline borders, weight-driven hierarchy.
   Shadows only on genuinely floating elements.
   Mobile-first. Linear (stroke) iconography only.
   ========================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px;
}

/* ---------- Layout primitives ----------
   ONE width system for the whole site (never size a .container inline):
   --w-container  page grid, every section aligns to its left edge
   --w-intro      heading + lede column (heroes, centered section heads)
   --w-prose      long-form body copy and answer text, CTA text
   (the FAQ accordion and its answers span the full container)       */
:root {
  --w-container: 1180px;
  --w-intro: 760px;
  --w-prose: 700px;
  --gutter: 20px;
}
.container { width: 100%; max-width: var(--w-container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tint { background: var(--ocean-50); }
.section--sand { background: var(--sand); }
.section--deep { background: var(--ink-deep); color: #fff; }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
.section--top-sm { padding-top: 1rem; }
.center { text-align: center; }
.measure { max-width: var(--w-prose); }
.center .measure { margin-inline: auto; }

/* Centered section head: wave rule, eyebrow, h2, optional lede. */
.section-head { max-width: var(--w-intro); margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head .lede { max-width: var(--w-prose); margin-inline: auto; margin-bottom: 0; }
.section-head h2 { margin-bottom: .75rem; }
.section-head .wave-rule { margin-inline: auto; }
.section-foot { margin-top: clamp(2rem, 4vw, 2.75rem); text-align: center; }

/* Long-form body copy: left-aligned under the hero, readable measure. */
.prose { max-width: var(--w-prose); }
.prose .lede { margin-bottom: 1.25rem; }
.prose .lede:last-child { margin-bottom: 0; }
.prose--doc h2 { font-size: 1.4rem; margin: 2.25rem 0 .6rem; }
.prose--doc h2:first-child { margin-top: 0; }
/* Policy text: full container width; sections flow in two columns on wide screens. */
.prose--doc { max-width: none; }
.prose--doc .doc-sec { break-inside: avoid; }
.prose--doc .doc-sec:first-child h2 { margin-top: 0; }
@media (min-width: 921px) { .prose--doc { columns: 2; column-gap: clamp(2rem, 5vw, 4rem); } }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--brand-700); margin-bottom: .75rem;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); }

/* The brand "horizon / wave" rule — section separator in ocean-500. */
.wave-rule { height: 3px; width: 64px; border: 0; background: var(--brand-500); border-radius: 3px; margin: 0 0 1.5rem; }
.center .wave-rule { margin-inline: auto; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* 10 modules: 5 per row on wide screens so the last row is never an orphan. */
.grid--5 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; } }

/* ---------- Brand wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 29px; height: 35px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; text-transform: lowercase; }
.brand__by { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }
.brand__by b { color: var(--ocean-700); font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--r-btn); border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--secondary { background: #fff; color: var(--ocean-800); border-color: var(--line-field); }
.btn--secondary:hover { border-color: var(--ocean-300); color: var(--ocean-800); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.08rem; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Icons (linear / stroke) ---------- */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 12px; display: inline-grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); margin-bottom: 1rem;
}
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile--amber { background: var(--amber-50); color: var(--amber-d); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.site-nav a.navlink { color: var(--ink); font-weight: 600; font-size: .98rem; }
.site-nav a.navlink:hover { color: var(--ocean-700); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 28px; height: 28px; }

/* Language switcher — native <details>/<summary> disclosure. */
.lang-wrap { position: relative; display: inline-flex; }
.lang {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 700; font-size: .9rem; color: var(--ink); background: none; border: 1px solid var(--line-field);
  border-radius: var(--r-pill); padding: .45rem .8rem; cursor: pointer; list-style: none;
}
.lang::-webkit-details-marker { display: none; }
.lang::marker { content: ""; }
.lang .icon { width: 16px; height: 16px; color: var(--ocean-600); }
.lang__menu {
  position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--line-2);
  border-radius: 12px; box-shadow: var(--shadow-float); padding: .4rem; min-width: 160px; display: none; z-index: 60;
}
.lang-wrap[open] .lang__menu { display: block; }
.lang__menu a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.lang__menu a:hover { background: var(--ocean-50); text-decoration: none; }
.lang__menu a[aria-current="true"] { color: var(--ocean-700); background: var(--ocean-50); }

/* Collapsed (hamburger) nav up to 1100px: below that, five links + language + CTA do not fit on one line. */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 20px 1.25rem;
    margin-left: 0; display: none; box-shadow: var(--shadow-float);
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a.navlink { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-top: 1rem; flex-wrap: wrap; }
  /* The switcher sits at the left edge of the mobile panel: open its menu to the right. */
  .site-nav .lang__menu { right: auto; left: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ocean-50) 0%, #fff 100%); }
.hero__inner { padding-block: clamp(3.5rem, 8vw, 6.5rem); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 920px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.hero__trust { margin-top: 2rem; color: var(--faint); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.hero__trust b { color: var(--ocean-800); }
.hero__panel {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-card);
  box-shadow: var(--shadow-float); padding: 1.5rem;
}
.hero__panel-title { font-size: 1.15rem; margin-bottom: 1rem; }
.hero__panel-intro { margin: 0 0 1rem; color: var(--muted); }
/* "Why it matters" callout: the problem a module removes, in one or two sentences. */
.why-note { margin: 1.25rem 0 0; padding: .9rem 1rem; background: var(--amber-50); border-radius: 12px; color: var(--ink); font-size: .95rem; }
.why-note strong { display: block; margin-bottom: .2rem; color: var(--amber-d); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

/* Inner-page hero: breadcrumb on top, then a left-aligned heading + lede column at
   the container's left edge — the same edge every section below aligns to. */
.hero--page > .container { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero--lead > .container { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.hero--crumb > .container { padding-bottom: 0; }
.hero__body { max-width: var(--w-intro); padding-top: clamp(.5rem, 2vw, 1.25rem); }
.hero__body > :last-child { margin-bottom: 0; }
.hero__body .lede { margin-bottom: 0; }
.hero--page .hero__inner { padding-block: clamp(.5rem, 2vw, 1.25rem) 0; }
/* Tighter rhythm between an inner-page hero and its first section. */
.hero--page + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

/* Inner-page heroes: title, then subtitle, both across the full container width; any graphic sits below. */
.hero--page .hero__body, .hero__split .hero__body { max-width: none; }
.hero--page .hero__body .lede { max-width: none; }
.hero__split > :not(.hero__body) { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* "Whole operation" graphic: full-width band under the subtitle; stages flow in columns that adapt to the width. */
.cycle { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-card); padding: clamp(1.1rem, 2.5vw, 1.75rem); box-shadow: 0 12px 32px rgba(15, 60, 90, .08); }
.cycle__title { font-size: 1.15rem; margin: 0 0 .15rem; }
.cycle__caption { margin: 0 0 1.25rem; color: var(--muted); font-size: .92rem; }
.cycle__steps { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem 1.25rem; }
.cycle__step { display: flex; flex-direction: column; gap: .65rem; position: relative; }
.cycle__node { width: 40px; height: 40px; border-radius: 12px; background: var(--ocean-100); color: var(--ocean-800); display: grid; place-items: center; }
.cycle__node .icon { width: 20px; height: 20px; }
.cycle__body strong { display: block; font-size: .98rem; margin-bottom: .45rem; line-height: 1.3; }
.cycle__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.cycle__chips li { font-size: .78rem; font-weight: 600; color: var(--ocean-800); background: var(--ocean-50); border: 1px solid var(--ocean-100); border-radius: var(--r-pill); padding: .2rem .6rem; line-height: 1.3; }
.cycle__base { padding: .85rem 1rem; border-radius: 12px; background: var(--ocean-800); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.cycle__base-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.cycle__chips--base li { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
@media (min-width: 1100px) {
  .cycle__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cycle__step:not(:last-child)::before { content: ""; position: absolute; left: 50px; right: -.9rem; top: 19px; height: 2px; background: var(--ocean-100); }
}
@media (max-width: 479px) {
  .cycle__steps { grid-template-columns: 1fr; }
  .cycle__step { display: grid; grid-template-columns: 40px 1fr; column-gap: .85rem; }
  .cycle__body strong { padding-top: .5rem; }
}

/* About facts: four figures in a row on wide screens, two by two on small ones. */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(15, 60, 90, .08); overflow: hidden; }
.facts > div { padding: clamp(1.1rem, 2.5vw, 1.6rem); border-bottom: 1px solid var(--line-2); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--line-2); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts .stat__num { font-size: clamp(2rem, 3.4vw, 2.8rem); }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts > div { border-bottom: 0; border-right: 1px solid var(--line-2); }
  .facts > div:last-child { border-right: 0; }
}
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } .facts > div, .facts > div:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line-2); } .facts > div:last-child { border-bottom: 0; } }

/* Long story copy flows in two columns on wide screens instead of a narrow strip on the left. */
.prose--cols { max-width: none; }
@media (min-width: 921px) { .prose--cols { columns: 2; column-gap: clamp(2rem, 5vw, 4rem); } .prose--cols p { break-inside: avoid; font-size: 1.08rem; } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 1.5rem; height: 100%; }
.card--link { transition: border-color .15s ease, transform .15s ease; display: block; color: inherit; }
.card--link:hover { border-color: var(--ocean-300); transform: translateY(-2px); text-decoration: none; }
.card h3 { margin-bottom: .4rem; }
.card h2.card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .97rem; }
.card__more { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1rem; font-weight: 700; color: var(--brand-700); font-size: .92rem; }
.card--link:hover .card__more .icon { transform: translateX(3px); }
.card__more .icon { width: 16px; height: 16px; transition: transform .15s ease; }

/* Feature row */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .icon-tile { margin-bottom: 0; flex: none; }
.feature__body h3, .feature__body h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .25rem; }
.feature__body p { color: var(--muted); margin: 0; font-size: .97rem; }
/* Phones: icon beside the title, body text across the full card width (no narrow column). */
@media (max-width: 620px) {
  .card > .feature, .grid > .feature {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; row-gap: .6rem; align-items: center;
  }
  .card > .feature .feature__body, .grid > .feature .feature__body { display: contents; }
  .card > .feature .feature__body :is(h2, h3), .grid > .feature .feature__body :is(h2, h3) { margin: 0; }
  .card > .feature .feature__body p, .grid > .feature .feature__body p { grid-column: 1 / -1; }
}

/* ---------- Module grid (platform) ---------- */
.module-grid .card { display: flex; flex-direction: column; }
.module-grid .card__more { margin-top: auto; padding-top: .75rem; }
.tag {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: .25rem .55rem; border-radius: var(--r-pill);
  background: var(--amber-50); color: var(--amber-d); border: 1px solid #efd9ad;
}
.tag--ocean { background: var(--ocean-50); color: var(--ocean-800); border-color: var(--ocean-200); }

/* Checklist */
.checklist { list-style: none; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); }
.checklist .icon { width: 20px; height: 20px; color: var(--green); margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--brand-600); line-height: 1; }
.stat__label { color: var(--muted); font-size: .9rem; margin-top: .35rem; }

/* ---------- Logos / countries ---------- */
.countries { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.country-pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line-2); font-weight: 600; font-size: .9rem; color: var(--ink);
}
.country-pill .icon { width: 16px; height: 16px; color: var(--ocean-600); }
/* Home: where our clients are (dotted map + country list). */
.clients-reach {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; margin-top: clamp(2rem, 4vw, 3rem);
}
.clients-map { margin: 0; }
.clients-map img { display: block; width: 100%; height: auto; }
.clients-reach__body h3 { margin-top: 0; }
@media (max-width: 860px) {
  .clients-reach { grid-template-columns: minmax(0, 1fr); }
  .clients-map { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ---------- Forms (lead capture) ---------- */
.form-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-card); padding: clamp(1.5rem, 3vw, 2.25rem); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.field label .req { color: var(--rose); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-field); border-radius: var(--r-btn); padding: .8rem .9rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-50); outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
/* Custom select — remove the OS arrow, use a consistent stroke chevron. */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556368' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px 18px;
}
.field .hint { color: var(--faint); font-size: .82rem; }
.field .field-error { color: var(--red-d); font-size: .82rem; font-weight: 600; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); }
/* Honeypot — hidden from humans, visible to bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.form-consent input { width: auto; margin-top: 3px; }
.form-alert { margin: 0 0 .75rem; padding: .7rem .85rem; border: 1px solid var(--red-d); border-radius: var(--r-btn);
  color: var(--red-d); font-size: .88rem; font-weight: 600; line-height: 1.4; }
/* reCAPTCHA v3: the floating badge is hidden and replaced by Google's required text under the submit button. */
.grecaptcha-badge { visibility: hidden !important; }
.form-recaptcha { margin: .65rem 0 0; font-size: .76rem; line-height: 1.45; color: var(--muted); }
.form-recaptcha a { color: inherit; text-decoration: underline; }
.alert { border-radius: var(--r-card); padding: 1rem 1.25rem; margin-bottom: 1.25rem; border: 1px solid; font-weight: 600; }
.alert--success { background: var(--green-50); border-color: #bfe3c6; color: #1f5e30; }
.alert--error { background: var(--rose-50); border-color: #eccdd8; color: var(--red-d); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: var(--faint); padding-block: 1rem; }
.breadcrumb a { color: var(--muted); display: inline-block; padding-block: .25rem; }
.breadcrumb .icon { width: 14px; height: 14px; }

/* ---------- FAQ ---------- */
/* The accordion spans the full container, like every other block on the page; the answer text keeps a
   comfortable line length (--w-prose) so wide cards never mean long lines. */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 0 1.25rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--ocean-600); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; max-width: none; }

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 720px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-card);
  box-shadow: var(--shadow-float); padding: 1rem 1.25rem;
  display: flex; gap: .85rem 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.consent-banner[hidden] { display: none; }
/* The demo modal owns the screen while open: the banner steps aside and comes back when the modal closes. */
body.modal-open .consent-banner { display: none; }
.consent-banner__text { margin: 0; font-size: .9rem; color: var(--muted); flex: 1 1 320px; }
.consent-banner__actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.consent-banner__actions .btn { padding: .6rem 1.15rem; font-size: .92rem; }
@media (max-width: 560px) {
  .consent-banner { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .85rem; }
  .consent-banner__text { flex: 0 0 auto; }
  .consent-banner__actions { justify-content: flex-end; }
}

/* ---------- System showcase (product mockups) ---------- */
.showcase-rows { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.showcase-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.showcase-row:nth-child(even) { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.showcase-row:nth-child(even) .app-frame { order: 2; }
.app-frame { margin: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-float); }
.app-frame svg { display: block; width: 100%; height: auto; max-width: none; }
.app-frame--feature { max-width: 900px; margin: 0 auto clamp(1.75rem, 4vw, 2.5rem); }
.itineraries-hero__screen { margin-top: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0; }
/* Platform: itinerary builder steps. */
.builder-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.builder-step { display: flex; flex-direction: column; }
.builder-step__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.builder-step__head .icon-tile { margin-bottom: 0; }
.builder-step__num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--brand-600); color: #fff; font-weight: 800; font-size: 1rem;
}
.builder-step p { color: var(--muted); }
.builder-step__points { margin: .25rem 0 0; padding: 0; font-size: .95rem; }
.builder-note {
  display: flex; gap: .6rem; align-items: center; justify-content: center; text-align: left;
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0; max-width: var(--w-intro); font-weight: 600; color: var(--ink);
}
.builder-note .icon { width: 22px; height: 22px; color: var(--brand-600); flex: none; }
.showcase-cap h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.showcase-cap p { color: var(--muted); margin: 0; font-size: 1.02rem; }
@media (max-width: 860px) {
  .showcase-row, .showcase-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .showcase-row:nth-child(even) .app-frame { order: 0; }
}
.app-figure { margin: 0; display: grid; gap: .9rem; }
.app-figure figcaption { color: var(--muted); font-size: .97rem; }
.app-figure figcaption strong { color: var(--ink); }
/* A single product screen (module pages): same frame, centered at the intro width. */
.screen { max-width: 960px; margin-inline: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-deep); color: #fff; border-radius: var(--r-card); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: var(--w-prose); margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,.75); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3 { color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .35rem; }
.footer-col a { font-size: .94rem; }
/* Comfortable tap target for stacked footer links (>=24px, WCAG 2.5.8). */
.footer-col ul a { display: inline-block; padding-block: .3rem; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__by { color: rgba(255,255,255,.6); }
.site-footer .brand__by b { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-bottom a { display: inline-block; padding-block: .25rem; }
.footer-legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.footer-link-btn {
  background: none; border: 0; padding: .25rem 0; font: inherit; color: rgba(255,255,255,.75); cursor: pointer;
}
.footer-link-btn:hover { color: #fff; text-decoration: underline; }
.footer-bottom { align-items: center; }
.footer-lang a { display: inline-block; padding-block: .25rem; }
@media (min-width: 821px) {
  .footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 1.5rem; }
  .footer-bottom > :last-child { justify-self: end; }
}

/* ---------- Demo modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(24, 19, 17, .55); backdrop-filter: blur(2px); animation: modal-fade .15s ease; }
.modal__dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 40px); overflow-y: auto;
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-float);
  padding: clamp(1.5rem, 4vw, 2.25rem); animation: modal-rise .2s ease;
}
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; background: var(--ocean-50); color: var(--ocean-800);
  border: 0; cursor: pointer; transition: background .15s ease;
}
.modal__close:hover { background: var(--ocean-100); }
.modal__close .icon { width: 20px; height: 20px; }
/* Compact modal: everything fits without scrolling on a typical laptop or phone. */
.modal__dialog { max-width: 480px; padding: clamp(1.1rem, 3vw, 1.5rem) clamp(1.1rem, 3vw, 1.6rem); }
.modal [data-demo-panel="form"] > .icon-tile { display: none; }
/* 44px: minimum comfortable touch target. */
.modal__close { top: 8px; right: 8px; width: 44px; height: 44px; }
.modal .form-grid { gap: .6rem; }
.modal .field { gap: .2rem; }
.modal .field label { font-size: .84rem; }
/* 16px keeps iOS Safari from zooming the page when a field gets focus. */
.modal .field input:not([type="checkbox"]) { padding: .55rem .8rem; font-size: max(1rem, 16px); }
.modal .form-consent { font-size: .8rem; }
.modal .btn--lg { padding-block: .7rem; }
body.modal-open { overflow: hidden; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .modal__overlay, .modal__dialog { animation: none; } }

/* ---------- Skip link & utilities ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ocean-800); color: #fff; padding: .75rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.icon--sm { width: 16px; height: 16px; }
.meta-line { display: inline-flex; align-items: center; gap: .35rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Mobile hardening ---------- */
/* Grid/flex children may shrink below their min-content (long PT/ES words in
   headings were pushing the hero past 320px). */
.hero__inner > *, .grid > *, .footer-grid > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
/* No dictionary hyphenation ("multides-tino"): only break a word when it really cannot fit the line. */
@media (max-width: 420px) { h1 { overflow-wrap: break-word; } }
.form-consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--brand-600); }
.form-consent { cursor: pointer; }
@media (max-width: 620px) {
  /* Comfortable touch targets (≥44px) for stacked text links. */
  .footer-col ul { gap: 0; }
  .footer-col ul a, .footer-bottom a { padding-block: .7rem; }
  .breadcrumb a { padding-block: .7rem; }
  .brand { padding-block: .25rem; min-height: 44px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
}
/* Long CTA labels (PT "Solicitar uma demonstração") must wrap instead of overflowing. */
.btn { max-width: 100%; }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; line-height: 1.25; } .btn--lg { padding-inline: 1.25rem; } }
.tag { font-size: max(.72rem, 12px); }
/* Trust row: icon and text on one line. */
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust .icon { width: 18px; height: 18px; color: var(--green); flex: none; }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Layout & component helpers (no inline styles in templates) ---------- */
/* Two-up split: copy/benefits on one side, form or card on the other. Stacks <= 900px. */
.grid--split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .grid--split { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 1.25rem; }
.stack--sm { gap: 1rem; }
.stack--lg { gap: 2rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }
.form-title { font-size: 1.4rem; margin-bottom: 1.25rem; }
.feature__label { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.card-foot { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; }
.card-actions { margin-top: 1.25rem; display: flex; justify-content: flex-end; }
.card .tag + h3 { margin-top: .75rem; }
.card--guide { display: flex; flex-direction: column; gap: .15rem; }
.card--guide .tag { align-self: flex-start; }
.card--guide p { margin-bottom: .75rem; }
.card .card__lead { color: var(--ink); font-weight: 600; font-size: 1rem; }
.card--guide .card__meta { margin-top: auto; padding-top: .5rem; margin-bottom: 0; }
.card__meta { color: var(--faint); font-size: .85rem; margin-top: 1rem; }
.empty-state { color: var(--muted); text-align: center; margin: clamp(2rem, 4vw, 2.75rem) auto 0; max-width: var(--w-prose); }
.empty-state .hero__cta { justify-content: center; }
.countries--start { justify-content: flex-start; }
/* "What's included": the product types Beglobber handles, shown in every included block. */
.product-types { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin-top: clamp(1.25rem, 3vw, 1.75rem); }
.product-types__label { font-weight: 700; color: var(--ink); }
.product-types__list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.muted-note { color: var(--faint); margin: 0; }
.footer-about { margin-top: 1rem; max-width: 34ch; }
.footer-contact { display: flex; align-items: center; gap: .5rem; width: fit-content; margin-top: .25rem; padding-block: .3rem; font-weight: 600; color: #fff; }
.footer-contact .icon { width: 18px; height: 18px; flex: none; opacity: .85; }
.footer-lang { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-lang a[aria-current="true"] { color: #fff; font-weight: 700; }

/* Demo modal pieces. */
.modal__title { font-size: 1.3rem; margin: 0 2.5rem .25rem 0; }
.modal__sub { color: var(--muted); margin-bottom: .9rem; font-size: .92rem; line-height: 1.4; }
.modal textarea { min-height: 84px; }
.btn--block { width: 100%; }
.modal__success { text-align: center; padding: 1rem 0; }
.modal__success[hidden] { display: none; }
.icon-tile--green { background: var(--green-50); color: var(--green); margin-inline: auto; }

/* 404 inside the normal layout, and the standalone 500 page. */
.notfound { text-align: center; padding-block: clamp(4rem, 10vw, 7rem); }
.notfound__mark { margin: 0 auto 1.5rem; }
.notfound .lede { max-width: var(--w-prose); margin-inline: auto; }
.notfound .hero__cta { justify-content: center; }
.standalone { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.standalone__inner { max-width: var(--w-prose); }
.standalone .lede { margin-bottom: 1rem; }

/* Consent checkbox: vertically centred on the (one or two line) label, no inherited field padding. */
.form-consent { line-height: 1.4; align-items: center; }
.form-consent input[type="checkbox"] {
  appearance: auto; width: 18px; height: 18px; padding: 0; border: 0; background: none; box-shadow: none;
  margin: 0; flex: none; accent-color: var(--ocean-700);
}
.modal .form-consent { margin-bottom: .25rem; }

/* Segment hero panel (key points below the intro). */
.card--panel { height: auto; box-shadow: 0 12px 32px rgba(15, 60, 90, .08); }
.card__title { font-size: 1.15rem; line-height: 1.3; margin-bottom: .75rem; }
.hero__split .hero__body .icon-tile { margin-bottom: 1rem; }
@media (min-width: 800px) { .card--panel .checklist { columns: 2; column-gap: 2.5rem; } .card--panel .checklist li { break-inside: avoid; } }

/* Module hero: the detail panel sits below the subtitle across the full width (text left, feature list right). */
.hero__panel--wide { display: grid; gap: 1.25rem 2.5rem; align-items: start; }
.hero__panel--wide .hero__panel-intro { font-size: 1.05rem; color: var(--ink); }
.hero__panel--wide .why-note { margin-top: 0; }
@media (min-width: 900px) { .hero__panel--wide { grid-template-columns: 1fr 1fr; } }

/* ---------- Compact vertical rhythm (consistent on every page) ---------- */
.section { padding-block: clamp(2.25rem, 5vw, 4rem); }
.section-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.section-foot { margin-top: clamp(1.25rem, 3vw, 2rem); }
.hero__inner { padding-block: clamp(2.25rem, 5vw, 4rem); }
.hero--page > .container { padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.hero--lead > .container { padding-top: clamp(1rem, 2vw, 1.75rem); }
.hero--page + .section { padding-top: clamp(1rem, 2vw, 1.75rem); }
.hero__body { padding-top: .25rem; }
.hero h1 { margin-bottom: .6rem; }
.hero__cta { margin-top: 1.25rem; }
.hero__split > :not(.hero__body) { margin-top: clamp(1rem, 2.5vw, 1.5rem); }
.breadcrumb { padding-block: .5rem; }
.eyebrow { margin-bottom: .5rem; }
/* Hero icon: a visible 40px chip close to the title. */
.hero .icon-tile { display: grid; width: 40px; height: 40px; border-radius: 10px; margin-bottom: .6rem; background: #fff; border: 1px solid var(--ocean-100); }
.hero .icon-tile .icon { width: 22px; height: 22px; }
.hero .icon-tile--amber { background: var(--amber-50); border-color: #efd9ad; }
.icon-tile { margin-bottom: .75rem; }
.cta-band { padding: clamp(1.75rem, 4vw, 2.5rem); }

/* Tighter gaps between consecutive blocks (hero -> section, section -> section). */
.section { padding-block: clamp(1.75rem, 4vw, 3rem); }
.hero__inner { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2rem); }
.hero:not(.hero--page) + .section { padding-top: clamp(1.25rem, 3vw, 2rem); }
.section-head { margin-bottom: clamp(1rem, 2.5vw, 1.75rem); }
.section--top-sm { padding-top: .75rem; }
.cta-band { margin-block: 0; }
.section { padding-block: clamp(1.5rem, 3.5vw, 2.5rem); }
.hero:not(.hero--page) + .section { padding-top: clamp(1rem, 2.5vw, 1.75rem); }

/* Client names: plain text pills (no logos, no testimonials). */
.clients-list { list-style: none; margin: 1rem 0 0; padding: 0; }
