/* ==========================================================================
   StallFabX public site
   Plain CSS, no build step. Sections:
   1 Tokens  2 Base  3 Buttons & utilities  4 Header  5 Hero  6 Sections
   7 Cards   8 Inner pages  9 Blog  10 Forms  11 Footer  12 Floating  13 Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy: #08111f;
  --navy-2: #0f1c30;
  --navy-3: #1a2a44;
  --orange: #f97316;
  --orange-light: #fb923c;
  --orange-ink: #c2410c;      /* orange that passes contrast as text on white */
  --orange-soft: #fff7ed;
  --text: #3f4b5c;
  --muted: #667085;
  --line: #e4e9f0;
  --soft: #f5f7fa;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 45px rgba(8, 17, 31, .10);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --container: 1240px;
  --header-h: 118px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-head); color: var(--navy); line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { color: #fff; background: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.container--narrow { width: min(820px, calc(100% - 48px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10000; padding: 10px 16px; background: var(--orange); color: var(--navy); font-weight: 700; border-radius: 6px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.icon { flex: none; }
.accent { color: var(--orange-ink); }
.muted { color: var(--muted); }
.muted a { color: var(--navy); font-weight: 600; }

/* 3. Buttons & utilities --------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 2px solid transparent; border-radius: 6px; font-family: var(--font-head); font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: .95rem; }
.btn--block { width: 100%; }
/* Navy text on orange = 6.7:1 contrast (white on orange is only 2.8:1). */
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: var(--orange-light); box-shadow: 0 12px 26px rgba(249, 115, 22, .32); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); }
.btn--ghost-navy { border-color: rgba(8, 17, 31, .55); color: var(--navy); }
.btn--ghost-navy:hover { background: rgba(8, 17, 31, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row--center { justify-content: center; }

.eyebrow { display: inline-block; margin-bottom: 14px; font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); text-decoration: none; }
.eyebrow--light { color: var(--orange-light); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .9rem; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 3px; transition: gap .2s ease, color .2s ease; }
.text-link:hover { gap: 12px; color: var(--orange-ink); }

/* 4. Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 5px 25px rgba(15, 23, 42, .08); }
.topbar { background: var(--navy); color: #fff; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.topbar p { margin: 0; color: #cbd5e1; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.topbar__contact { display: flex; gap: 24px; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: .74rem; font-weight: 600; text-decoration: none; }
.topbar__contact a:hover { color: var(--orange-light); }
.topbar__contact .icon { color: var(--orange-light); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 82px; }
.logo { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; letter-spacing: -.06em; color: var(--navy); text-decoration: none; }
.logo span { color: var(--orange); }
.logo--light { color: #fff; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a:not(.btn) { position: relative; padding: 8px 0; color: #354052; font-size: .9rem; font-weight: 600; text-decoration: none; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: width .25s ease; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--navy); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.nav__cta { display: none; }
.navbar__actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--navy); cursor: pointer; }
.menu-btn__close { display: none; }
.menu-open .menu-btn__open { display: none; }
.menu-open .menu-btn__close { display: block; }

/* 5. Hero ------------------------------------------------------------------ */
.hero { position: relative; display: flex; align-items: center; min-height: min(820px, calc(100vh - var(--header-h))); padding: 80px 0 110px; background: var(--navy); overflow: hidden; }
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; transform: scale(1.06); transition: transform 7s ease; }
.hero__slide.is-active img { transform: scale(1); }
.hero__shade { background: linear-gradient(90deg, rgba(4, 10, 22, .93) 0%, rgba(4, 12, 27, .84) 34%, rgba(4, 12, 27, .55) 60%, rgba(4, 12, 27, .2) 100%), linear-gradient(0deg, rgba(4, 10, 22, .6), transparent 40%); }
.hero__inner { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero__copy { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 span { display: block; color: var(--orange); }
.hero__lead { max-width: 600px; margin-bottom: 32px; color: #d5dce8; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__features { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: #e2e8f0; font-size: .86rem; font-weight: 600; }
.hero__features li { display: inline-flex; align-items: center; gap: 8px; }
.hero__features .icon { padding: 3px; width: 21px; height: 21px; border-radius: 50%; background: rgba(249, 115, 22, .2); color: var(--orange-light); }
.hero__controls { flex: none; width: 260px; padding-left: 22px; border-left: 2px solid var(--orange); color: #fff; }
.hero__caption { min-height: 3.2em; margin-bottom: 16px; font-family: var(--font-head); font-size: .98rem; font-weight: 600; line-height: 1.4; }
.hero__buttons { display: flex; align-items: center; gap: 14px; }
.hero__buttons button { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(8, 17, 31, .35); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.hero__buttons button:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.hero__counter { font-family: var(--font-head); font-size: .85rem; color: #cbd5e1; }
.hero__counter b { color: #fff; font-size: 1.05rem; }

/* Stats band (overlaps the hero) */
.stats { position: relative; z-index: 3; margin-top: -58px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { display: flex; align-items: center; gap: 16px; padding: 28px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--orange); }
.stat span { font-size: .88rem; font-weight: 600; line-height: 1.35; color: var(--navy); }
.stats--flat { margin-top: 0; padding-bottom: 20px; }
.stats--flat .stats__grid { box-shadow: none; border: 1px solid var(--line); }

/* Clients strip */
.clients { padding: 34px 0 0; }
.clients__inner { display: flex; align-items: center; gap: 28px; }
.clients__label { flex: none; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clients ul { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.clients li { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--navy); background: var(--soft); }

/* 6. Sections -------------------------------------------------------------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { max-width: 760px; margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.split--top { align-items: start; }
.split--media { align-items: start; }
.split h2 { margin-bottom: 0; }
.split--top h2, .split--media h2 { margin-bottom: .5em; }
.prose p { font-size: 1.05rem; }
.prose--lead p:first-child { font-size: 1.2rem; color: var(--navy); }
.prose .text-link { margin-top: 8px; }

.story { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; margin-top: clamp(40px, 5vw, 70px); }
.story__large, .story__small { border-radius: var(--radius); overflow: hidden; }
.story__large picture, .story__large img { width: 100%; height: 100%; object-fit: cover; }
.story__side { display: grid; grid-template-rows: 1fr auto; gap: 22px; }
.story__small picture, .story__small img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.story__box { padding: 34px; border-radius: var(--radius); background: var(--navy); color: #cbd5e1; }
.story__box h3 { color: #fff; font-size: 1.5rem; }
.story__box p { margin: 0; }

.statement { padding: clamp(60px, 7vw, 100px) 0; background: var(--navy); background-image: radial-gradient(circle at 85% 20%, rgba(249, 115, 22, .22), transparent 42%), linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: auto, 56px 56px, 56px 56px; color: #cbd5e1; }
.statement h2 { color: #fff; }
.statement p { margin: 0; font-size: 1.1rem; }

.wide-image { position: relative; min-height: 520px; display: flex; align-items: flex-end; background: var(--navy); overflow: hidden; }
.wide-image picture, .wide-image > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wide-image__overlay { position: relative; width: 100%; padding: 140px 0 64px; background: linear-gradient(0deg, rgba(4, 10, 22, .94) 10%, rgba(4, 10, 22, .55) 60%, transparent); }
.wide-image h2 { max-width: 760px; color: #fff; margin-bottom: 26px; }

/* 7. Cards ----------------------------------------------------------------- */
.card-grid { display: grid; gap: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.service-card { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.service-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-ink); transition: background .25s, color .25s; }
.service-card:hover .service-card__icon { background: var(--orange); color: var(--navy); }
.service-card h2, .service-card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.service-card p { color: var(--muted); font-size: .95rem; }
.service-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--navy); }
.service-card:hover .service-card__more { color: var(--orange-ink); }
.service-card__number { position: absolute; top: 26px; right: 30px; font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: #eef1f5; }

.pillar { position: relative; padding: 30px 26px; border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); background: var(--soft); }
.pillar > .icon { color: var(--orange-ink); margin-bottom: 18px; }
.pillar__number { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: #a3adbd; }
.pillar p { margin: 0; color: var(--muted); font-size: .94rem; }

.project-card { border-radius: var(--radius); background: #fff; overflow: hidden; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-card__image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.project-card__image picture, .project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-card__image img { transform: scale(1.05); }
.project-card__number { position: absolute; left: 18px; bottom: 16px; padding: 4px 12px; border-radius: 999px; background: var(--orange); color: var(--navy); font-family: var(--font-head); font-size: .78rem; font-weight: 700; }
.project-card__body { padding: 24px 26px 26px; }
.project-card__sector { display: block; margin-bottom: 8px; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.project-card h3 { margin-bottom: 0; }
.project-card--full h3 { margin-bottom: 10px; font-size: 1.35rem; }
.project-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.project-card.is-hidden { display: none; }

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 22px 0 0; }
.step::before { content: ""; position: absolute; top: 21px; left: 44px; right: 0; height: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step__number { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-size: .85rem; font-weight: 700; }
.step h3 { font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }

.testimonial { margin: 0; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.testimonial > .icon { color: var(--orange); margin-bottom: 14px; }
.testimonial blockquote { margin: 0 0 20px; color: var(--navy); font-size: 1.02rem; }
.testimonial figcaption strong { display: block; font-family: var(--font-head); color: var(--navy); }
.testimonial figcaption span { color: var(--muted); font-size: .88rem; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 4px; font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--orange-ink); transition: transform .25s ease; }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 44px 24px 4px; color: var(--text); }

/* 8. Inner pages ----------------------------------------------------------- */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(60px, 7vw, 100px); background: var(--navy); background-image: radial-gradient(circle at 88% 0%, rgba(249, 115, 22, .28), transparent 40%), linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: auto, 56px 56px, 56px 56px; color: #cbd5e1; }
.page-hero h1 { max-width: 900px; color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.page-hero p { max-width: 640px; margin: 0; font-size: 1.1rem; }
.breadcrumbs { margin-bottom: 28px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: #94a3b8; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #64748b; }
.breadcrumbs a { color: #cbd5e1; text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange-light); }
.breadcrumbs [aria-current] { color: #fff; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.media-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.media-frame picture, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--sticky { position: sticky; top: 140px; }
.check-list { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 24px; }
.check-list li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--navy); }
.check-list .icon { color: var(--orange-ink); }
.check-list--stack { flex-direction: column; gap: 0; margin-top: 12px; }
.check-list--stack li { padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font-weight: 500; align-items: flex-start; }
.check-list--stack .icon { margin-top: 4px; }
.split--media .h3 { margin-top: 34px; }

.timeline { max-width: 880px; margin-inline: auto; }
.timeline__item { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 28px; padding-bottom: 46px; }
.timeline__item::before { content: ""; position: absolute; left: 37px; top: 76px; bottom: 0; width: 2px; background: var(--line); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:last-child::before { display: none; }
.timeline__number { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: var(--navy); color: var(--orange); font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; }
.timeline__item h2 { margin: 12px 0 8px; font-size: 1.55rem; }
.timeline__item p { margin: 0; font-size: 1.05rem; }

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-family: var(--font-head); font-size: .84rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter__btn:hover { border-color: var(--navy); }
.filter__btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter__btn small { padding: 1px 8px; border-radius: 999px; background: rgba(249, 115, 22, .16); color: var(--orange-ink); font-size: .72rem; }
.filter__btn.is-active small { background: var(--orange); color: var(--navy); }
.filter__empty { padding: 40px 0; text-align: center; color: var(--muted); }

.cta-band { background: var(--orange); color: var(--navy); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(44px, 5vw, 64px); }
.cta-band h2 { margin-bottom: 6px; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.cta-band p { margin: 0; font-weight: 500; color: #3b1a05; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

.error-page { padding: clamp(80px, 12vw, 160px) 0; text-align: center; background: var(--navy); color: #cbd5e1; }
.error-page__code { display: block; font-family: var(--font-head); font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; line-height: 1; color: var(--orange); }
.error-page h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin-top: 10px; }

/* 9. Blog ------------------------------------------------------------------ */
.blog-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 10px; }
.blog-toolbar .filter { margin-bottom: 24px; }
.search { position: relative; flex: none; width: min(300px, 100%); }
.search input { width: 100%; height: 46px; padding: 0 48px 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, .18); }
.search button { position: absolute; top: 4px; right: 4px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; }
.blog-result { margin-bottom: 26px; color: var(--muted); }
.blog-result a { color: var(--orange-ink); font-weight: 600; }

.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-card__image img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.post-card__category { align-self: flex-start; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-ink); font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.post-card h3 { font-size: 1.18rem; line-height: 1.3; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--orange-ink); }
.post-card p { color: var(--muted); font-size: .93rem; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: auto 0 18px; padding-top: 6px; font-size: .8rem; color: var(--muted); }
.post-card__meta span, .post-card__meta time { display: inline-flex; align-items: center; gap: 6px; }
.post-card .text-link { align-self: flex-start; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination__item { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-head); font-size: .86rem; font-weight: 600; color: var(--navy); text-decoration: none; }
a.pagination__item:hover { border-color: var(--navy); }
.pagination__item.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination__item.is-disabled { color: #a3adbd; }

.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state .icon { color: var(--orange); margin: 0 auto 12px; }
.empty-state h2 { font-size: 1.5rem; }
.empty-state p { color: var(--muted); }

.article__header { padding: clamp(50px, 6vw, 80px) 0 clamp(110px, 12vw, 160px); background: var(--navy); background-image: radial-gradient(circle at 88% 0%, rgba(249, 115, 22, .28), transparent 40%); color: #cbd5e1; }
.article__header h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.article__lead { font-size: 1.12rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: .88rem; color: #cbd5e1; }
.article__meta span, .article__meta time { display: inline-flex; align-items: center; gap: 7px; }
.article__meta .icon { color: var(--orange-light); }
.article__image { margin: clamp(-110px, -9vw, -70px) 0 44px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--soft); }
.article__image img { width: 100%; height: 100%; object-fit: cover; }
.article__content { font-size: 1.08rem; line-height: 1.8; color: #2b3647; overflow-wrap: break-word; }
.article__content h2 { margin: 1.8em 0 .6em; font-size: 1.6rem; }
.article__content h3 { margin: 1.6em 0 .5em; font-size: 1.3rem; }
.article__content h4 { margin: 1.4em 0 .5em; font-size: 1.1rem; }
.article__content p { margin: 0 0 1.25em; }
.article__content ul, .article__content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.article__content ul { list-style: disc; }
.article__content ol { list-style: decimal; }
.article__content li { margin-bottom: .45em; }
.article__content li::marker { color: var(--orange-ink); }
.article__content a { color: var(--orange-ink); font-weight: 600; }
.article__content img { height: auto; margin: 1.6em 0; border-radius: var(--radius-sm); }
.article__content blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--orange); color: var(--navy); font-size: 1.15rem; }
.article__content table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: .95rem; }
.article__content th, .article__content td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.article__content th { background: var(--soft); color: var(--navy); }
.article__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--soft); font-size: .82rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.tags a:hover { background: var(--orange-soft); color: var(--orange-ink); }
.share { display: flex; align-items: center; gap: 8px; }
.share > span { margin-right: 4px; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.share a:hover, .share button:hover, .share button.is-copied { background: var(--navy); border-color: var(--navy); color: #fff; }
.article__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 44px 0 clamp(60px, 8vw, 100px); padding: 34px 36px; border-radius: var(--radius); background: var(--navy); color: #cbd5e1; }
.article__cta h2 { margin-bottom: 6px; color: #fff; font-size: 1.5rem; }
.article__cta p { margin: 0; }

/* 10. Forms ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { margin-top: 30px; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-ink); flex: none; }
.contact-list small { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list div > span { font-family: var(--font-head); font-weight: 600; color: var(--navy); text-decoration: none; }
.contact-list a:hover { color: var(--orange-ink); }
.form-card { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.field label span { color: var(--orange-ink); }
.field input, .field textarea { width: 100%; padding: 13px 16px; border: 1px solid #cfd6e0; border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, .18); }
.field.has-error input, .field.has-error textarea { border-color: #dc2626; }
.field__error { margin: 6px 0 0; font-size: .82rem; font-weight: 500; color: #b91c1c; }
.form-note { margin: 14px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 500; }
.alert p { margin: 0; }
.alert--success { background: #ecfdf3; border: 1px solid #a6e9c1; color: #05603a; }
.alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* 11. Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #a9b5c6; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(44px, 5vw, 70px) 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-cta h2 { max-width: 640px; margin: 0; color: #fff; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 40px; padding: clamp(40px, 5vw, 64px) 0; }
.footer-brand p { max-width: 320px; margin: 16px 0 0; font-size: .93rem; }
.site-footer h3 { margin-bottom: 18px; color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer nav a { display: block; padding: 5px 0; font-size: .93rem; text-decoration: none; transition: color .2s, padding-left .2s; }
.site-footer nav a:hover { color: var(--orange-light); padding-left: 4px; }
.footer-contact { display: grid; gap: 14px; font-size: .93rem; }
.footer-contact > * { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; }
.footer-contact .icon { margin-top: 4px; color: var(--orange-light); }
.footer-contact a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }

/* 12. Floating buttons ----------------------------------------------------- */
.float-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 800; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 28px rgba(37, 211, 102, .4); transition: transform .2s ease; }
.float-whatsapp:hover { transform: scale(1.08); }
.to-top { position: fixed; right: 29px; bottom: 92px; z-index: 800; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: var(--shadow); cursor: pointer; transition: background .2s; }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--orange); color: var(--navy); }

/* 13. Motion --------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.card-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.card-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.card-grid .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }
.steps .reveal:nth-child(5) { transition-delay: .32s; }
.steps .reveal:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__slide img { transform: none; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .step:nth-child(3)::before { display: none; }
  .hero__controls { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .topbar { display: none; }
  .navbar__inner { min-height: 76px; }
  .navbar__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: 0; padding: 0 24px; background: #fff; box-shadow: 0 18px 30px rgba(15, 23, 42, .12); overflow: hidden; visibility: hidden; transition: max-height .35s ease, padding .35s ease, visibility .35s; }
  .menu-open .nav { max-height: calc(100vh - 76px); padding: 8px 24px 24px; overflow-y: auto; visibility: visible; }
  .nav a:not(.btn) { padding: 15px 4px; border-bottom: 1px solid #edf1f5; font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav a.is-active { color: var(--orange-ink); }
  .nav__cta { display: inline-flex; margin-top: 18px; }
  .split, .contact-grid, .story { grid-template-columns: 1fr; }
  .split h2 { margin-bottom: .2em; }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .media-frame--sticky { position: static; }
  .cta-band__inner, .footer-cta, .article__cta { flex-direction: column; align-items: flex-start; }
  .blog-toolbar { flex-direction: column; }
  .search { width: 100%; }
  .clients__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 640px) {
  .container, .container--narrow { width: calc(100% - 36px); }
  .hero { min-height: 0; padding: 64px 0 96px; }
  .hero__actions .btn { width: 100%; }
  .card-grid--2, .card-grid--3, .card-grid--4, .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::before { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .stat { padding: 20px 18px; gap: 12px; }
  .stat strong { font-size: 2rem; }
  .timeline__item { grid-template-columns: 54px 1fr; gap: 18px; }
  .timeline__number { width: 54px; height: 54px; font-size: 1rem; }
  .timeline__item::before { left: 26px; top: 54px; }
  .timeline__item h2 { margin-top: 6px; font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .wide-image { min-height: 440px; }
  .article__footer { flex-direction: column; align-items: flex-start; }
  .float-whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .to-top { right: 21px; bottom: 82px; }
  .cta-band__actions, .footer-cta__actions { width: 100%; }
  .cta-band__actions .btn, .footer-cta__actions .btn { flex: 1; }
}

@media (max-width: 640px) {
  /* Even shade so hero text stays readable over any photo on narrow screens */
  .hero__shade { background: linear-gradient(180deg, rgba(4, 10, 22, .78), rgba(4, 10, 22, .9)); }
}
