/* Consulting Maghreb Expertise — homepage styles */

:root {
  /* palette (tweakable via JS vars) */
  --paper:       oklch(0.987 0.004 95);
  --paper-2:     oklch(0.965 0.006 92);
  --ink:         #16263f;   /* brand navy (logo) */
  --ink-2:       #36465f;
  --ink-soft:    oklch(0.52 0.025 258);
  --line:        oklch(0.88 0.008 258);
  --line-soft:   oklch(0.92 0.006 258);
  --accent:      #bf9b4d;   /* brand gold (logo) */
  --accent-deep: #97772d;
  --accent-tint: #f2ead4;
  --navy:        #14233f;   /* brand deep navy */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* keep anchored sections clear of the sticky nav when jumped to */
section[id], header[id] { scroll-margin-top: 90px; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.55;
}

::selection { background: var(--accent-tint); color: var(--ink); }

.serif { font-family: var(--serif); }

/* headline mode: serif (default) or sans */
body[data-head="sans"] h1,
body[data-head="sans"] h2,
body[data-head="sans"] .headline {
  font-family: var(--sans);
  letter-spacing: -0.02em;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- typographic helpers ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}
.eyebrow.center::before { display: none; }

.headline {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.headline em { font-style: italic; color: var(--accent-deep); }

.lede {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  max-width: 56ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600;
  padding: 13px 22px;
  border-radius: 2px;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }
.btn-gold { background: var(--accent); color: oklch(0.22 0.03 60); }
.btn-gold:hover { background: var(--accent-deep); color: var(--paper); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-link { color: var(--ink); font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.btn-link .arrow { transition: transform .25s ease; }
.btn-link:hover .arrow { transform: translateX(4px); }
.btn-link::after { content: ""; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
}
.brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.brand .bname { display: flex; flex-direction: column; justify-content: center; line-height: 1.12; }
.brand .bname b { font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em; white-space: nowrap; }
.brand .bname span { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .18s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.lang span { opacity: .5; }
.lang button { color: var(--ink-soft); transition: color .18s; }
.lang button.on { color: var(--accent-deep); }
.lang button:hover:not(.on) { color: var(--ink-2); }
/* mobile language switch */
.mm-lang { display: flex; gap: 10px; padding: 18px 0 4px; }
.mm-lang button { flex: 1; border: 1px solid var(--line); border-radius: 3px; padding: 11px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .18s; }
.mm-lang button.on { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-tint); }

/* ---------- mobile nav ---------- */
.burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 4px; }
.burger:hover { background: var(--paper-2); }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: 74px; z-index: 49;
  background: var(--paper); border-bottom: 1px solid transparent;
  padding-inline: var(--gutter);
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden;
  transition: max-height .42s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.mobile-menu.show { max-height: calc(100vh - 74px); overflow-y: auto; border-color: var(--line); box-shadow: 0 24px 40px -28px oklch(0.3 0.03 255 / 0.45); }
.mobile-menu > a { font-family: var(--serif); font-size: 21px; color: var(--ink); padding: 19px 2px; border-bottom: 1px solid var(--line-soft); transition: color .18s, padding .2s; }
.mobile-menu > a:first-child { padding-top: 26px; }
.mobile-menu > a:hover { color: var(--accent-deep); padding-left: 8px; }
.mobile-menu .mm-cta { font-family: var(--sans); margin: 24px 0 6px; justify-content: center; border-bottom: none; font-size: 16px; padding: 16px 22px; }
.mobile-menu .mm-cta:hover { padding-left: 22px; }
.mobile-menu .mm-contact { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 30px; }
.mobile-menu .mm-contact a { font-family: var(--sans); font-size: 15px; color: var(--ink-soft); padding: 0; border: none; }
.mobile-menu .mm-contact a:hover { color: var(--accent-deep); padding-left: 0; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(48px, 6vw, 76px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 52% at 86% 16%, oklch(0.74 0.10 80 / 0.13), transparent 70%),
    radial-gradient(46% 50% at 4% 92%, oklch(0.55 0.06 255 / 0.06), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.14fr; gap: clamp(32px, 5vw, 60px); align-items: start; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); margin: 22px 0 0; }
.hero .lede { margin-top: 26px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { margin-top: 40px; display: flex; gap: 34px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta .m b { font-family: var(--serif); font-size: 30px; font-weight: 500; display: block; line-height: 1; }
.hero-meta .m span { font-size: 13px; color: var(--ink-soft); margin-top: 6px; display: block; }

/* hero visual */
.hero-visual { position: relative; margin-top: clamp(34px, 5vw, 62px); }
.hero-visual::after {
  content: ""; position: absolute; z-index: 0; right: -15px; bottom: -15px;
  width: 56%; height: 66%; border-radius: 12px; pointer-events: none;
  border: 1px solid color-mix(in oklch, var(--accent) 75%, transparent);
}
.frame {
  position: relative; z-index: 1; border: 1px solid var(--line); background: var(--paper-2);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 34px 70px -36px oklch(0.28 0.05 255 / 0.34), 0 12px 26px -18px oklch(0.28 0.05 255 / 0.22);
}
.placeholder {
  background-image: repeating-linear-gradient(135deg, oklch(0.86 0.012 88) 0 1.5px, transparent 1.5px 11px);
  background-color: oklch(0.93 0.008 90);
  display: grid; place-items: center; color: var(--ink-soft);
  position: relative;
}
.placeholder::after {
  content: ""; position: absolute; inset: 0;
  border: 1px dashed oklch(0.78 0.015 88);
  margin: 10px; border-radius: 2px; pointer-events: none;
}
.placeholder .ph-label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.04em;
  background: var(--paper); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 2px; color: var(--ink-2);
  position: relative; z-index: 1; box-shadow: 0 2px 10px -4px oklch(0.3 0.03 255 / 0.3);
}
/* real images */
.ph-img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--paper-2); color: transparent; }
.svc-visual .ph-img, .detail-visual .ph-img, .member .av .ph-img, .frame .ph-img {
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.svc-visual:hover .ph-img, .detail-visual:hover .ph-img, .member:hover .av .ph-img, .hero-visual:hover .frame .ph-img {
  transform: scale(1.045);
}
.hero-card {
  position: absolute; left: -26px; bottom: 34px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; padding: 18px 20px; width: 248px;
  box-shadow: 0 26px 60px -30px oklch(0.3 0.03 255 / 0.5);
}
.hero-card .hc-top { display: flex; justify-content: space-between; align-items: baseline; }
.hero-card .hc-top small { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-card .hc-val { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-top: 4px; }
.hero-card .hc-bar { height: 6px; border-radius: 3px; background: var(--line-soft); margin-top: 14px; overflow: hidden; }
.hero-card .hc-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.hero-card .hc-trend { font-size: 12px; color: var(--accent-deep); margin-top: 10px; font-weight: 600; }

/* ---------- trust strip (text only) ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); cursor: default; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding: 22px 0; cursor: default; }
.trust .tlabel {
  position: relative; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap; cursor: default;
}
.trust .tlabel::after {
  content: ""; position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 15px; background: var(--line);
}
.trust .logos { display: flex; align-items: center; gap: 18px 38px; flex-wrap: wrap; cursor: default; }
.trust .logos span {
  position: relative; font-family: var(--serif); font-size: 19px; color: var(--ink-2);
  opacity: .72; font-weight: 500; letter-spacing: 0.01em; cursor: default; user-select: none;
  transition: color .22s ease, transform .22s ease, opacity .22s ease;
  display: inline-block;
}
.trust .logos span:hover {
  color: var(--accent-deep);
  opacity: 1;
  transform: scale(1.04);
}
.trust .logos span:not(:first-child)::before {
  content: ""; position: absolute; left: -19px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 15px; background: var(--line);
}
@media (max-width: 760px) {
  .trust-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .trust .tlabel { white-space: normal; }
  .trust .tlabel::after {
    position: static; display: block; width: 30px; height: 2px; margin: 10px auto 0;
    transform: none; background: var(--accent); opacity: .85;
  }
  .trust .logos { gap: 14px 26px; justify-content: center; }
  .trust .logos span { font-size: 16px; }
  .trust .logos span:not(:first-child)::before { left: -13px; height: 13px; }
}

/* ---------- section frame ---------- */
section.block { padding: clamp(64px, 8vw, 116px) 0; }
.sec-head { max-width: 720px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 50px); margin-top: 18px; }
.sec-head .lede { margin-top: 20px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lede { margin-inline: auto; }

/* ---------- stats band ---------- */
.statband { background: var(--navy); color: var(--paper); }
.statband .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.statband .stat { padding: clamp(38px, 5vw, 60px) 30px; border-left: 1px solid oklch(1 0 0 / 0.12); }
.statband .stat:first-child { border-left: none; padding-left: 0; }
.statband .stat:last-child { padding-right: 0; }
.statband .stat b { font-family: var(--serif); font-size: clamp(42px, 5vw, 60px); font-weight: 500; line-height: 1; display: block; white-space: nowrap; }
.statband .stat b .u { color: var(--accent); }
.statband .stat > span { display: block; margin-top: 14px; color: oklch(1 0 0 / 0.66); font-size: 14px; line-height: 1.45; }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 80px); margin-top: 56px; align-items: start; }
.svc-tabs { display: flex; flex-direction: column; }
.svc-tab {
  text-align: left; padding: 20px 4px; border-top: 1px solid var(--line);
  display: flex; gap: 16px; align-items: flex-start; transition: padding .25s ease;
  position: relative;
}
.svc-tab:last-child { border-bottom: 1px solid var(--line); }
.svc-tab .num { font-family: var(--serif); font-size: 14px; color: var(--ink-soft); width: 30px; flex-shrink: 0; padding-top: 3px; }
.svc-tab .tt { flex: 1; }
.svc-tab .tt b { font-size: 20px; font-weight: 600; display: block; transition: color .2s; }
.svc-tab .tt p { font-size: 14px; color: var(--ink-soft); margin-top: 5px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .3s ease, margin .3s ease; }
.svc-tab.active { padding-left: 16px; }
.svc-tab.active::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 18px; width: 3px; background: var(--accent); border-radius: 2px; }
.svc-tab.active .tt b { color: var(--ink); }
.svc-tab.active .tt p { max-height: 80px; opacity: 1; margin-top: 9px; }
.svc-tab:hover .tt b { color: var(--accent-deep); }

.svc-panel { position: relative; }
.svc-visual { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.svc-detail { padding: 30px 32px; border: 1px solid var(--line); border-top: none; border-radius: 0 0 4px 4px; background: var(--paper); }
.svc-detail h4 { font-family: var(--serif); font-size: 23px; font-weight: 500; }
.svc-detail ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.svc-detail li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); align-items: flex-start; }
.svc-detail li .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }

/* ---------- approche steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; border-radius: 4px; overflow: hidden; }
.step { background: var(--paper); padding: 34px 28px; transition: background .25s ease; }
.step:hover { background: var(--paper-2); }
.step .sn { font-family: var(--serif); font-size: 15px; color: var(--accent-deep); font-weight: 500; }
.step h4 { font-size: 19px; font-weight: 600; margin-top: 28px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.55; }

/* ---------- presence / map ---------- */
.presence { background: var(--paper-2); }
.presence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.offices { display: grid; gap: 2px; margin-top: 36px; }
.office { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); cursor: pointer; transition: padding .2s; }
.office:last-child { border-bottom: 1px solid var(--line); }
.office:hover { padding-left: 8px; }
.office .flag { width: 34px; height: 24px; border-radius: 2px; border: 1px solid var(--line); overflow: hidden; flex-shrink: 0; }
.office .oinfo { flex: 1; }
.office .oinfo b { font-size: 17px; font-weight: 600; }
.office .oinfo span { font-size: 13px; color: var(--ink-soft); display: block; }
.office .ocount { font-family: var(--serif); font-size: 17px; color: var(--ink-2); }
.office.active b { color: var(--accent-deep); }

.mapbox { position: relative; aspect-ratio: 1 / 0.92; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); overflow: hidden; }
.mapbox svg { width: 100%; height: 100%; }
.map-pin { cursor: pointer; }
.map-pin circle.halo { fill: var(--accent); opacity: 0.18; transition: r .3s ease, opacity .3s ease; }
.map-pin.active circle.halo { opacity: 0.3; }
.map-pin circle.core { fill: var(--accent-deep); stroke: var(--paper); stroke-width: 2; }
.map-pin.active circle.core { fill: var(--ink); }

/* reasons grid */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 38px; }
.reason { border-top: 2px solid var(--accent); padding-top: 14px; }
.reason b { font-size: 16px; font-weight: 600; display: block; }
.reason p { font-size: 14px; color: var(--ink-soft); margin-top: 7px; line-height: 1.5; }

/* contact card */
.contact-card { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper); }
.contact-card .mapbox { border: none; border-bottom: 1px solid var(--line); border-radius: 0; aspect-ratio: 16 / 9; }
.contact-info { padding: 26px 28px; display: grid; gap: 16px; }
.ci-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.ci-k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.ci-v { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
a.ci-v { transition: color .18s; }
a.ci-v:hover { color: var(--accent-deep); }

/* ---------- testimonials ---------- */
.quotebox { display: grid; grid-template-columns: 1fr; gap: 0; }
.quote-main { border: 1px solid var(--line); border-radius: 4px; padding: clamp(34px, 5vw, 60px); background: var(--paper); position: relative; }
.quote-main .qmark { font-family: var(--serif); font-size: 90px; line-height: 0.6; color: var(--accent); opacity: .5; height: 40px; display: block; }
.quote-main blockquote { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 33px); line-height: 1.35; font-weight: 400; letter-spacing: -0.01em; margin-top: 10px; }
.quote-foot { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.quote-foot .av { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); overflow: hidden; flex-shrink: 0; }
.quote-foot .qf b { font-size: 16px; font-weight: 600; display: block; }
.quote-foot .qf span { font-size: 13px; color: var(--ink-soft); }
.quote-nav { display: flex; gap: 10px; margin-top: 30px; }
.qnav-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 3px; display: grid; place-items: center; transition: all .2s; color: var(--ink-2); }
.qnav-btn:hover { border-color: var(--ink); color: var(--ink); }
.qdots { display: flex; gap: 7px; align-items: center; margin-left: 10px; }
.qdot.on { background: var(--accent); width: 22px; border-radius: 4px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; margin-top: 48px; max-width: 860px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; color: var(--ink); font-family: var(--serif); }
.faq-q .pm { width: 26px; height: 26px; flex-shrink: 0; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent-deep); transition: transform .3s ease; }
.faq-q .pm::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq-q .pm::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .pm::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; padding-bottom: 26px; max-width: 68ch; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--paper); border-radius: 6px; padding: clamp(44px, 6vw, 84px); position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 84%) var(--my, 8%), oklch(0.72 0.12 66 / 0.34), transparent 62%);
  transition: background .15s ease-out;
}
.cta-inner { position: relative; max-width: 620px; }
.cta h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); font-weight: 400; line-height: 1.05; }
.cta p { color: oklch(1 0 0 / 0.72); margin-top: 20px; font-size: 18px; max-width: 48ch; }
.cta-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(50px, 6vw, 80px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer .fcol h5 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.footer .fcol a { display: block; font-size: 15px; color: var(--ink-2); padding: 6px 0; transition: color .18s; }
.footer .fcol a:hover { color: var(--accent-deep); }
.footer .fabout p { font-size: 15px; color: var(--ink-soft); margin-top: 18px; max-width: 34ch; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; gap: 16px; }
.footer-legal { display: flex; align-items: center; gap: 10px; }
.footer-legal a { color: var(--ink-soft); transition: color .18s; }
.footer-legal a:hover { color: var(--accent-deep); }

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  width: auto; height: auto; overflow: visible;
  padding: 12px 18px; background: var(--ink); color: var(--paper);
  border-radius: 3px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px -8px oklch(0.28 0.05 255 / 0.5);
}

.qdot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: all .25s; border: 0; padding: 0; cursor: pointer; }

/* ---------- map (OSM tiles) + whatsapp fab ---------- */
.map-tiles { position: absolute; inset: 0; overflow: hidden; display: block; background: #e7ece6; cursor: pointer; }
.map-layer { position: absolute; left: 50%; top: 50%; }
.map-layer img { display: block; filter: saturate(0.92); }
.map-pin-dot { position: absolute; width: 18px; height: 18px; margin-left: -9px; margin-top: -9px; border-radius: 50%; background: var(--accent-deep); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.45); z-index: 3; }
.map-pin-dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--accent-deep); opacity: 0; animation: wa-pulse 2.6s ease-out infinite; }
.map-credit { position: absolute; right: 6px; bottom: 5px; z-index: 4; font-size: 10px; background: rgba(255,255,255,0.82); padding: 2px 7px; border-radius: 3px; color: #444; }
.wa-fab {
  position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0,0,0,0.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 38px -8px rgba(37, 211, 102, 0.7), 0 6px 16px rgba(0,0,0,0.2); }
.wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; opacity: 0; animation: wa-pulse 2.6s ease-out infinite;
}

/* ---------- back to top ---------- */
.totop {
  position: fixed; right: clamp(16px, 3vw, 30px);
  bottom: calc(clamp(16px, 3vw, 30px) + 58px + 14px);
  z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px oklch(0.28 0.05 255 / 0.55), 0 3px 8px rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, visibility .25s;
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--navy); transform: translateY(-3px); }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 80%,100% { transform: scale(1.5); opacity: 0; } }

/* ---------- reveal anim ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* hide primary nav links on tablet/narrow to avoid crowding */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}
@media (max-width: 600px) {
  .nav-cta { display: none; }
  .lang { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 8px; }
  .hero-visual::after { right: -10px; bottom: -10px; width: 48%; height: 58%; }
  .hero-visual .frame { aspect-ratio: 1672 / 941 !important; }
  .svc { grid-template-columns: 1fr; }
  .presence-grid { grid-template-columns: 1fr; }
  .statband .grid { grid-template-columns: repeat(2, 1fr); }
  .statband .stat { border-left: none; padding: 34px 0; }
  .statband .stat:nth-child(even) { padding-left: 30px; border-left: 1px solid oklch(1 0 0 / 0.12); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .reasons { grid-template-columns: 1fr; }
  .ci-row { grid-template-columns: 1fr; gap: 4px; }
  .ci-k { padding-top: 0; }
  .statband .grid { grid-template-columns: 1fr; }
  .statband .stat:nth-child(even) { padding-left: 0; border-left: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
  .hero-card { display: none; }
}
