/* =========================================================
   Cosmopratico LDA — Stylesheet (V2 multi-page)
   Palette: Red #FF0013 · White #FFFFFF · Navy #0B001C · Black #000000
   ========================================================= */
:root {
  --red: #FF0013;
  --red-dark: #d4000f;
  --navy: #0B001C;
  --navy-2: #150a28;
  --black: #000000;
  --ink: #14101e;
  --gray: #5d5a68;
  --line: #e8e6ee;
  --bg-alt: #f6f5f9;
  --white: #ffffff;
  --whatsapp: #25d366;
  --radius: 16px;
  --maxw: 1180px;
  --shadow: 0 10px 30px rgba(11,0,28,.08);
  --shadow-lg: 0 24px 60px rgba(11,0,28,.16);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.14; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(255,0,19,.30); }
.btn--red:hover { background: var(--red-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--whatsapp { background: var(--whatsapp); color: #04341c; }
.btn--whatsapp:hover { filter: brightness(.96); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #cfc9da; font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; gap: 22px; min-height: 40px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #cfc9da; }
.topbar__item:hover { color: #fff; }
.topbar__spacer { flex: 1; }
.lang-switch { display: inline-flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang-switch__btn { border: 0; background: transparent; color: #c7c2d3; font: inherit; font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; cursor: pointer; transition: .2s; }
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn.is-active { background: var(--red); color: #fff; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); }
.logo__mark { width: 40px; height: 40px; color: var(--red); flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { font-weight: 800; letter-spacing: .02em; font-size: 19px; color: currentColor; }
.logo--light { color: #fff; }
.logo--light .logo__mark { color: #fff; }
.logo__img { height: 32px; width: auto; max-width: 240px; display: block; }
.logo--light .logo__img { height: 34px; }
.logo__fallback { display: inline-flex; align-items: center; gap: 11px; }
.logo__img + .logo__fallback { display: none; }
@media (max-width: 520px) { .logo__img { height: 26px; max-width: 190px; } }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: 15.5px; color: var(--ink); position: relative; }
.nav a:hover { color: var(--red); }
.nav a.is-active { color: var(--red); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red); border-radius: 2px; }
.nav__cta { color: #04341c !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ---------- Hero (home) — bold dark ---------- */
.hero { position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(255,0,19,.30), transparent 56%),
    radial-gradient(820px 520px at -5% 115%, rgba(124,58,237,.20), transparent 52%),
    linear-gradient(155deg, var(--navy-2) 0%, var(--navy) 58%, #05000f 100%);
  padding: clamp(60px, 8vw, 116px) 0; }
.hero::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; -webkit-mask-image: radial-gradient(700px 500px at 75% 20%, #000, transparent 75%); mask-image: radial-gradient(700px 500px at 75% 20%, #000, transparent 75%); opacity: .5; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); padding: 8px 15px; border-radius: 999px; margin-bottom: 24px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); }
.hero h1 { color: #fff; font-size: clamp(35px, 5.3vw, 62px); line-height: 1.07; letter-spacing: -.025em; margin-bottom: 22px; }
.hero h1 .accent { background: linear-gradient(90deg, #ff8088, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(17px, 1.9vw, 20px); color: #c5bfd6; max-width: 600px; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 0; margin-top: 50px; flex-wrap: wrap; }
.hero__trust div { display: flex; flex-direction: column; padding: 0 28px; position: relative; }
.hero__trust div:first-child { padding-inline-start: 0; }
.hero__trust div + div::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,.14); }
.hero__trust strong { font-size: 34px; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.hero__trust span { font-size: 13px; color: #a79fbb; }
/* floating badge on the hero image */
.hero__badge { position: absolute; inset-inline-start: -18px; bottom: 28px; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.35); display: flex; align-items: center; gap: 11px; z-index: 2; }
.hero__badge .hb-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,0,19,.1); color: var(--red); display: grid; place-items: center; flex: none; }
.hero__badge b { display: block; font-size: 15px; color: var(--navy); line-height: 1.1; }
.hero__badge span { font-size: 12px; color: var(--gray); }
.hero__stars { position: absolute; inset-inline-end: 16px; top: 16px; background: rgba(11,0,28,.6); backdrop-filter: blur(6px); color: #fff; border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; z-index: 2; }
.hero__stars b { color: #ffd24a; }

.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.1); }
.hero__media::after { content: ""; position: absolute; inset-inline-end: -16px; bottom: -16px; width: 130px; height: 130px; background: linear-gradient(135deg, var(--red), #b3000d); border-radius: 20px; z-index: -1; }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Image + text feature band ---------- */
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.feature__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature__body h2 { font-size: clamp(25px, 3.4vw, 38px); margin-bottom: 16px; }
.feature__body p { color: var(--gray); font-size: 17px; margin-bottom: 14px; }
.feature__body .btn { margin-top: 10px; }

/* ========== NEW HOME — cover hero ========== */
.cover { position: relative; min-height: min(94vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; }
.cover__bg { position: absolute; inset: 0; z-index: 0; }
.cover__bg img { width: 100%; height: 100%; object-fit: cover; }
.cover__overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,0,28,.58) 0%, rgba(11,0,28,.30) 32%, rgba(11,0,28,.94) 100%), radial-gradient(1000px 560px at 86% 4%, rgba(255,0,19,.40), transparent 58%); }
.cover__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: clamp(96px,17vh,190px) 24px clamp(26px,4vw,46px); }
.cover .eyebrow { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.cover h1 { color: #fff; font-size: clamp(40px, 6.6vw, 80px); line-height: 1.01; letter-spacing: -.03em; max-width: 14ch; margin-bottom: 22px; text-shadow: 0 6px 40px rgba(0,0,0,.35); }
.cover__sub { font-size: clamp(17px, 2vw, 21px); color: #e7e3f0; max-width: 580px; margin-bottom: 34px; }
.cover__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn--glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--glass:hover { background: #fff; color: var(--navy); }
.btn--white { background: #fff; color: var(--red-dark); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.btn--white:hover { background: #ffe9eb; }
.cover__strip { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px 0; max-width: var(--maxw); margin: 0 auto; padding: 22px 24px clamp(30px,4vw,46px); border-top: 1px solid rgba(255,255,255,.16); }
.cover__strip > div { padding: 0 clamp(18px,3vw,42px); border-inline-start: 1px solid rgba(255,255,255,.14); }
.cover__strip > div:first-child { border: 0; padding-inline-start: 0; }
.cover__strip strong { display: block; font-size: clamp(26px,3vw,40px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.cover__strip span { font-size: 12.5px; color: #b6aecb; }

/* ========== Bento services ========== */
.section__head--left { text-align: start; margin-inline: 0; max-width: 680px; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bento__card { position: relative; min-height: 380px; border-radius: 24px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); isolation: isolate; }
.bento__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.bento__card:hover img { transform: scale(1.06); }
.bento__tint { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,0,28,.08) 0%, rgba(11,0,28,.55) 55%, rgba(11,0,28,.9) 100%); }
.bento__card--pro .bento__tint { background: linear-gradient(180deg, rgba(80,0,8,.10) 0%, rgba(140,0,12,.5) 55%, rgba(11,0,28,.92) 100%); }
.bento__tag { position: absolute; top: 20px; inset-inline-start: 22px; z-index: 1; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,.25); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; }
.bento__body { padding: 32px clamp(24px,3vw,38px) 34px; }
.bento__body h3 { color: #fff; font-size: clamp(24px,2.6vw,30px); margin-bottom: 10px; }
.bento__body p { color: rgba(255,255,255,.86); font-size: 15.5px; margin-bottom: 18px; max-width: 42ch; }
.bento__cta { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; }
.bento__cta::after { content: "→"; transition: transform .2s ease; }
.bento__card:hover .bento__cta::after { transform: translateX(5px); }

/* ========== Dark feature band ========== */
.band-dark { background: linear-gradient(155deg, var(--navy-2) 0%, var(--navy) 70%, #05000f 100%); color: #fff; padding: clamp(58px,8vw,104px) 0; position: relative; overflow: hidden; }
.band-dark h2 { color: #fff; }
.band-dark p { color: #c5bfd6 !important; }
.section__kicker--light { color: #ff6b76; }

/* ========== CTA cover ========== */
.cta-cover { position: relative; color: #fff; text-align: center; overflow: hidden; padding: clamp(70px,10vw,120px) 0; }
.cta-cover__bg { position: absolute; inset: 0; z-index: 0; }
.cta-cover__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(255,0,19,.92) 0%, rgba(11,0,28,.88) 100%); }
.cta-cover .container { position: relative; z-index: 2; }
.cta-cover h2 { color: #fff; font-size: clamp(30px,4vw,48px); margin-bottom: 14px; letter-spacing: -.02em; }
.cta-cover p { color: rgba(255,255,255,.92); font-size: 18px; max-width: 600px; margin: 0 auto 28px; }

@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .cover h1 { max-width: 100%; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: clamp(48px, 7vw, 86px) 0; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 14px; }
.page-hero p { color: #c8c2d6; font-size: 18px; max-width: 680px; }
.breadcrumb { font-size: 13.5px; color: #b0a8c2; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--red); }

/* Phone numbers always shown left-to-right (Latin), even in Arabic/RTL */
a[href^="tel:"], [data-cosmo="phone"] { direction: ltr; unicode-bidi: isolate; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9.5vw, 118px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__kicker { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section__kicker--light { color: #ff5b67; }
.section__head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.section__lead { margin-top: 14px; color: var(--gray); font-size: 17px; }

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

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--red); background: rgba(255,0,19,.08); border-radius: 12px; margin-bottom: 16px; }
.card--why { text-align: center; }
.card__photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; box-shadow: var(--shadow); border: 3px solid #fff; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: 15.5px; }

/* ---------- Service cards ---------- */
.service { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); overflow: hidden; }
.service__media { margin: -30px -26px 22px; height: 178px; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.section--alt .service { box-shadow: none; }
.service h3 { font-size: 20px; margin-bottom: 12px; padding-bottom: 14px; border-bottom: 3px solid var(--red); display: inline-block; }
.service > p { color: var(--gray); font-size: 15px; margin-bottom: 18px; }
.ticks { list-style: none; margin: 0 0 22px; display: grid; gap: 10px; flex: 1; }
.ticks li { position: relative; padding-inline-start: 28px; font-size: 14.5px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 18px; height: 18px; background: var(--red); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }
.service .btn { margin-top: auto; }

/* ---------- Home service teaser ---------- */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.teaser__card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 40px 34px; color: #fff; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.teaser__card--ind { background: linear-gradient(150deg, var(--navy) 0%, #2a1147 100%); }
.teaser__card--pro { background: linear-gradient(150deg, var(--red) 0%, #b3000d 100%); }
.teaser__card h3 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.teaser__card p { color: rgba(255,255,255,.86); margin-bottom: 22px; font-size: 15.5px; }
.teaser__card .btn { align-self: flex-start; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; }
.step__num { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.step:nth-child(odd) .step__num { background: var(--red); }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 14.5px; }

/* ---------- Testimonials ---------- */
.tst { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 30px 28px; box-shadow: 0 10px 30px rgba(11,0,28,.05); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tst:hover { transform: translateY(-5px); box-shadow: 0 22px 52px rgba(11,0,28,.12); border-color: transparent; }
.tst::before { content: "\201C"; position: absolute; top: 14px; inset-inline-end: 26px; font-family: Georgia, "Times New Roman", serif; font-size: 70px; line-height: 1; color: var(--line); pointer-events: none; }
.tst__stars { color: #ffb400; font-size: 16px; letter-spacing: 3px; margin-bottom: 16px; position: relative; }
.tst__text { font-size: 15.5px; color: #2a2535; line-height: 1.75; margin-bottom: 22px; flex: 1; }
.tst__who { display: flex; align-items: center; gap: 13px; padding-top: 20px; border-top: 1px solid var(--line); }
.tst__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-alt); color: var(--navy); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.tst__name { font-weight: 800; font-size: 15px; color: var(--navy); }
.tst__role { font-size: 12.5px; color: var(--gray); }
.tst__verified { margin-top: 18px; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; background: rgba(19,122,55,.08); border: 1px solid rgba(19,122,55,.22); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: #137a37; transition: background .15s, transform .15s; }
.tst__verified:hover { background: rgba(19,122,55,.15); transform: translateY(-1px); }
.tst__verified svg { width: 15px; height: 15px; flex: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(11,0,28,.86); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; animation: cosmo-fade .2s ease; }
.lightbox img { max-width: min(420px, 92vw); max-height: 92vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 18px; inset-inline-end: 22px; background: rgba(255,255,255,.16); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: rgba(255,255,255,.28); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq__q { width: 100%; text-align: start; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; color: var(--navy); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__q::after { content: "+"; color: var(--red); font-size: 24px; font-weight: 700; flex: none; transition: transform .25s; }
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a-inner { padding: 0 22px 20px; color: var(--gray); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, #b3000d 100%); color: #fff; text-align: center; padding: clamp(48px, 6vw, 76px) 0; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 18px; margin-bottom: 26px; max-width: 620px; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact__info h2 { font-size: clamp(24px, 3vw, 34px); }
.contact__lead { color: var(--gray); margin: 14px 0 26px; font-size: 17px; }
.contact__list { list-style: none; display: grid; gap: 16px; margin-bottom: 26px; }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 15.5px; }
.contact__list a:hover { color: var(--red); }
.contact__ico { font-size: 18px; }
.map { border: 0; width: 100%; height: 280px; border-radius: var(--radius); margin-top: 8px; }

.assessment { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: var(--shadow-lg); }
.assessment h3 { grid-column: 1/-1; font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,0,19,.12); }
.field textarea { resize: vertical; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); }
.field--check label { font-weight: 500; font-size: 13.5px; color: var(--gray); }
.form__note { grid-column: 1 / -1; font-size: 14px; margin: 0; min-height: 18px; }
.form__note.is-ok { color: #0a7c2f; font-weight: 600; }
.form__note.is-err { color: var(--red); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b7afc6; padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer__brand p { margin: 16px 0; font-size: 14.5px; max-width: 320px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; color: #b7afc6; font-size: 14.5px; margin-bottom: 10px; }
.footer__col a:hover { color: #fff; }
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; color: #d4cee0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13.5px; }
.footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__credit { color: #8e86a3; }
.footer__credit strong { color: #fff; font-weight: 700; letter-spacing: .02em; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: #04341c; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .2s; }
.fab-whatsapp:hover { transform: scale(1.08); }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; inset-block-end: 16px; inset-inline-start: 16px; z-index: 60; max-width: 420px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.cookie[hidden] { display: none; }

/* ---------- Scrolling marquee (promo) ---------- */
.marquee { background: linear-gradient(90deg, var(--red), var(--red-dark)); color: #fff; overflow: hidden; }
.marquee__track { display: inline-flex; white-space: nowrap; animation: cosmo-marquee 24s linear infinite; padding: 9px 0; }
.marquee__item { padding: 0 2.6rem; font-weight: 700; font-size: 14px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes cosmo-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .marquee__track { animation-direction: reverse; }

/* ---------- Promo pop-up ---------- */
.promo-pop { position: fixed; inset: 0; z-index: 200; background: rgba(11,0,28,.55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: cosmo-fade .2s ease; }
@keyframes cosmo-fade { from { opacity: 0; } to { opacity: 1; } }
.promo-pop__box { position: relative; background: #fff; border-radius: 18px; max-width: 420px; width: 100%; overflow: hidden; box-shadow: var(--shadow-lg); }
.promo-pop__x { position: absolute; top: 10px; inset-inline-end: 12px; background: rgba(0,0,0,.28); color: #fff; border: 0; width: 30px; height: 30px; border-radius: 50%; font-size: 19px; line-height: 1; cursor: pointer; z-index: 2; }
.promo-pop__img { width: 100%; height: 170px; object-fit: cover; display: block; }
.promo-pop__body { padding: 24px 26px 28px; text-align: center; }
.promo-pop__body h3 { font-size: 22px; margin: 0 0 10px; }
.promo-pop__body p { color: var(--gray); margin: 0 0 18px; font-size: 15.5px; }
.cookie p { font-size: 13.5px; color: var(--gray); margin: 0; }

/* ---------- Legal ---------- */
.legal { padding: clamp(48px, 7vw, 80px) 0; }
.legal__wrap { max-width: 820px; margin: 0 auto; }
.legal__back { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; margin-bottom: 24px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.legal .updated { color: var(--gray); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--ink); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-inline-start: 22px; }
.legal .notice { background: rgba(255,0,19,.06); border: 1px solid rgba(255,0,19,.25); border-radius: 12px; padding: 16px 18px; color: var(--red-dark); font-size: 14.5px; margin: 24px 0; }
.legal .fill { background: #fff3b0; color: #7a5d00; padding: 1px 7px; border-radius: 5px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.legal table.legal__id { border-collapse: collapse; width: 100%; margin: 8px 0 4px; }
.legal table.legal__id td { border: 1px solid var(--line); padding: 9px 12px; font-size: 15px; vertical-align: top; }
.legal table.legal__id td:first-child { width: 38%; color: var(--gray); font-weight: 600; }

/* ---------- Blog ---------- */
.blog { padding: clamp(40px, 6vw, 72px) 0; }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card__media { aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 60%, var(--red) 220%); position: relative; display: grid; place-items: center; overflow: hidden; }
.post-card__media svg { width: 46%; height: auto; color: rgba(255,255,255,.92); }
.post-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card__cat { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .01em; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.post-card__meta { font-size: 13px; color: var(--gray); }
.post-card__title { font-size: 19px; line-height: 1.25; }
.post-card__excerpt { color: var(--gray); font-size: 14.5px; flex: 1; }
.post-card__more { color: var(--red); font-weight: 700; font-size: 14.5px; margin-top: 4px; }
.post-card:hover .post-card__more { text-decoration: underline; }
.post-card__link { position: absolute; inset: 0; z-index: 1; }
.post-card { position: relative; }

/* ---------- Article (single post) ---------- */
.article { padding: clamp(40px, 6vw, 72px) 0; }
.article__wrap { max-width: 760px; margin: 0 auto; }
.article__back { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; margin-bottom: 22px; }
.article__cat { display: inline-block; background: rgba(255,0,19,.08); color: var(--red-dark); font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.article h1 { font-size: clamp(28px, 4.2vw, 44px); margin-bottom: 12px; }
.article__meta { color: var(--gray); font-size: 14px; margin-bottom: 28px; }
.article__lead { font-size: 19px; color: var(--ink); margin-bottom: 26px; font-weight: 500; }
.article__hero { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); margin: 4px 0 26px; box-shadow: var(--shadow); }
.article h2 { font-size: 23px; margin: 34px 0 12px; }
.article h3 { font-size: 18px; margin: 24px 0 8px; }
.article p, .article li { font-size: 16.5px; color: #2a2535; margin-bottom: 14px; }
.article ul, .article ol { padding-inline-start: 22px; margin-bottom: 14px; }
.article a { color: var(--red); font-weight: 600; text-decoration: underline; }
.article .btn { color: #fff; text-decoration: none; }
.article__cta { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 38px; text-align: center; }
.article__cta h3 { margin: 0 0 8px; font-size: 20px; }
.article__cta p { margin-bottom: 16px; }

/* ---------- RTL ---------- */
[dir="rtl"] .hero__content, [dir="rtl"] .page-hero { text-align: right; }
[dir="rtl"] .nav a.is-active::after { left: 0; right: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .blog__grid { grid-template-columns: 1fr 1fr; }
  .hero__inner, .feature__grid { grid-template-columns: 1fr; gap: 32px; }
  .feature__media { order: -1; }
  .contact__grid, .teaser { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease; visibility: hidden; }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav a.is-active::after { display: none; }
  .nav__cta { margin: 12px 24px; }
  .nav-toggle { display: flex; }
  .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: 1fr; }
  .assessment { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Floating buttons: chat + lead ---------- */
.fab { position: fixed; inset-inline-end: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s; border: 0; cursor: pointer; color: #fff; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 26px; height: 26px; }
.fab-lead { inset-block-end: 86px; background: var(--red); }

/* ---------- Modal (lead capture) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(11,0,28,.55); }
.modal__box { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(440px, 92vw); max-height: 92vh; overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px 26px; }
.modal__box--form { background: transparent; box-shadow: none; border: 0; padding: 0; width: min(540px, 94vw); }
.modal__box--form .modal__close { top: 16px; inset-inline-end: 18px; z-index: 2; }
.modal__close { position: absolute; top: 10px; inset-inline-end: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--gray); cursor: pointer; }
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal__sub { color: var(--gray); font-size: 14.5px; margin-bottom: 18px; }
.lead-field { margin-bottom: 12px; }
.lead-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.lead-field input, .lead-field select, .lead-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 15px; background: #fff; }
.lead-field textarea { resize: vertical; min-height: 70px; }
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus { outline: none; border-color: var(--red); }
.lead-check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--gray); margin: 4px 0 16px; }
.lead-note { font-size: 13.5px; margin-top: 10px; min-height: 18px; }
.lead-note.is-ok { color: #137a37; }
.lead-note.is-err { color: var(--red-dark); }

/* ---------- Chatbot ---------- */
.chat { position: fixed; inset-block-end: 150px; inset-inline-end: 22px; z-index: 80; width: min(360px, 92vw); height: min(520px, 70vh); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: none; flex-direction: column; overflow: hidden; }
.chat.is-open { display: flex; }
.chat__head { background: var(--navy); color: #fff; padding: 13px 15px; display: flex; align-items: center; gap: 10px; }
.chat__head .logo__mark { width: 28px; height: 28px; color: #fff; flex: none; }
.chat__title { font-weight: 800; font-size: 15px; }
.chat__status { font-size: 11.5px; color: #b9b2c9; }
.chat__close { margin-inline-start: auto; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.chat__body { flex: 1; overflow-y: auto; padding: 15px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 9px; }
.chat__msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.chat__msg--bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-end-start-radius: 4px; }
.chat__msg--user { background: var(--red); color: #fff; align-self: flex-end; border-end-end-radius: 4px; }
.chat__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chat__opt { background: #fff; border: 1px solid var(--red); color: var(--red-dark); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: .15s; }
.chat__opt:hover { background: var(--red); color: #fff; }
.chat__opt--human { border-color: var(--whatsapp); color: #04341c; }
.chat__opt--human:hover { background: var(--whatsapp); color: #04341c; }
.chat__foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat__input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 14px; }
.chat__input:focus { outline: none; border-color: var(--red); }
.chat__send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat__send svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .chat { inset-block-end: 86px; height: 64vh; }
  .fab-chat { inset-block-end: 150px; }
}
