/* ==========================================================================
   CD Dental — Design System 2026
   Médical premium épuré · blanc / bleu profond
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink:        #0a2433;
  --ink-2:      #0e3147;
  --primary:    #0e6ba8;
  --primary-600:#0a5688;
  --accent:     #2fa3d6;
  --accent-soft:#e6f2fa;
  --bg:         #ffffff;
  --bg-soft:    #f4f8fb;
  --bg-soft-2:  #edf3f8;
  --text:       #17313f;
  --muted:      #5c707c;
  --line:       #e3ebf1;
  --white:      #ffffff;
  --ok:         #1d9d74;

  --radius-sm:  12px;
  --radius:     16px;
  --radius-lg:  26px;

  --shadow-sm:  0 1px 2px rgba(10,36,51,.05), 0 4px 14px rgba(10,36,51,.05);
  --shadow-md:  0 10px 32px rgba(10,36,51,.10);
  --shadow-lg:  0 24px 60px rgba(10,36,51,.16);

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --header-h:  78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow.center::after { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }

.display { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.h3 { font-size: 1.3rem; font-weight: 700; }
.lead { font-size: 1.13rem; color: var(--muted); }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .01em;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(14,107,168,.28); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14,107,168,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 17px 34px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(10,36,51,.06); }
.topbar {
  background: var(--ink); color: rgba(255,255,255,.82);
  font-size: 13px;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; }
.topbar a { color: #fff; }
.topbar .tb-group { display: flex; align-items: center; gap: 22px; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar .pill { background: var(--ok); color: #fff; padding: 3px 11px; border-radius: 999px; font-weight: 600; font-size: 12px; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--primary); border-radius: 2px; transition: width .25s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-client { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.nav-client:hover { color: var(--primary); }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--ink); cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease;
}
.lang-btn:hover { border-color: var(--primary); }
.lang-btn .chev { transition: transform .2s ease; }
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 6px; min-width: 150px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a.active { color: var(--primary); background: var(--accent-soft); }
.lang-menu .flag { font-size: 16px; line-height: 1; }

.burger { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s ease; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(10,36,51,.4);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu a.m-link { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); padding: 14px 6px; border-bottom: 1px solid var(--bg-soft-2); }
.mobile-menu .m-close { align-self: flex-end; margin-bottom: 10px; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 18px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: min(720px, 88vh);
  display: flex; align-items: center;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,26,38,.94) 0%, rgba(8,26,38,.78) 42%, rgba(8,26,38,.35) 100%),
    linear-gradient(0deg, rgba(8,26,38,.6) 0%, transparent 40%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 0; }
.hero .eyebrow { color: #8fd4f2; }
.hero .eyebrow::before { background: #8fd4f2; }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 6vw, 4.3rem); max-width: 15ch; margin: 22px 0 22px; }
.hero .hero-sub { color: rgba(255,255,255,.86); font-size: 1.15rem; max-width: 54ch; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 26px; margin-top: 44px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ti-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
}
.trust-item .ti-icon svg { width: 20px; height: 20px; }
.trust-item b { display: block; font-family: var(--font-display); font-size: 15px; }
.trust-item span { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- Quick info strip ---------- */
.quickinfo { margin-top: -34px; position: relative; z-index: 5; }
.quickinfo .container { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 0; overflow: hidden; }
.qi-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.qi-item { padding: 26px 30px; display: flex; align-items: center; gap: 16px; }
.qi-item + .qi-item { border-left: 1px solid var(--line); }
.qi-icon { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); }
.qi-icon svg { width: 24px; height: 24px; }
.qi-item b { display: block; font-family: var(--font-display); font-size: 15.5px; color: var(--ink); }
.qi-item span { font-size: 13.5px; color: var(--muted); }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .c-icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--primary); margin-bottom: 22px;
}
.card .c-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card .c-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--primary); }
.card .c-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card .c-link:hover svg { transform: translateX(4px); }

/* ---------- About block ---------- */
.media { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.tall { min-height: 460px; }
.badge-float {
  position: absolute; left: 22px; bottom: 22px; background: #fff; border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.badge-float b { font-family: var(--font-display); font-size: 1.6rem; color: var(--primary); line-height: 1; }
.badge-float span { font-size: 12.5px; color: var(--muted); max-width: 13ch; display: block; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.pillar { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.pillar .p-ico { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.pillar .p-ico svg { width: 20px; height: 20px; }
.pillar b { font-family: var(--font-display); font-size: 15px; color: var(--ink); display: block; }
.pillar span { font-size: 13px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 85% -10%, rgba(47,163,214,.22), transparent 60%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.stat { text-align: center; padding: 30px 16px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem); color: #fff; line-height: 1; letter-spacing: -0.02em; }
.stat .num sup { font-size: .5em; color: #8fd4f2; }
.stat .lbl { margin-top: 12px; color: rgba(255,255,255,.72); font-size: 14.5px; }
.stat.iso { border-color: rgba(143,212,242,.3); }
.stat.iso .num { font-size: clamp(2rem, 4vw, 2.9rem); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-card .avatar {
  border-radius: 20px; overflow: hidden; aspect-ratio: 4/4.4; background: var(--bg-soft-2);
  display: grid; place-items: center; position: relative; border: 1px solid var(--line);
  transition: transform .28s ease, box-shadow .28s ease;
}
.team-card:hover .avatar { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card .avatar .mono {
  font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--primary);
  letter-spacing: -0.02em;
}
.team-card .avatar .mono-bg { position: absolute; inset: 0; background: linear-gradient(160deg, var(--accent-soft), #dcecf7); }
.team-card .avatar .mono { position: relative; z-index: 1; }
.team-card h3 { font-size: 1.05rem; margin: 16px 0 4px; }
.team-card .role { font-size: 13.5px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-soft); }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.t-stars { display: flex; gap: 3px; margin-bottom: 18px; color: #f5a623; }
.t-stars svg { width: 17px; height: 17px; }
.t-quote { font-size: 15.5px; color: var(--text); margin-bottom: 22px; }
.t-person { display: flex; align-items: center; gap: 14px; }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.t-person b { display: block; font-family: var(--font-display); font-size: 14.5px; }
.t-person span { font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--primary) 0%, var(--ink) 100%);
  padding: 64px 56px;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 100% 0%, rgba(143,212,242,.25), transparent 60%);
}
.cta-band .cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; }

/* ---------- Partners ---------- */
.partners { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.partners img { height: 44px; width: auto; opacity: .75; filter: grayscale(1); transition: opacity .25s ease, filter .25s ease; }
.partners img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Forms ---------- */
.form-wrap { max-width: 620px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.field label .req { color: #d94848; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,107,168,.12);
}
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--muted);
  transition: .2s ease;
}
.radio-pill input:checked + span { border-color: var(--primary); color: var(--primary); background: var(--accent-soft); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-success { display: none; padding: 16px 18px; border-radius: 12px; background: #e7f6ef; color: var(--ok); font-weight: 500; margin-bottom: 18px; }

/* ---------- Contact info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-card .ic { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); }
.info-card .ic svg { width: 22px; height: 22px; }
.info-card b { font-family: var(--font-display); font-size: 15px; display: block; }
.info-card a, .info-card span { font-size: 14.5px; color: var(--muted); }
.info-card a:hover { color: var(--primary); }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 72px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% -20%, rgba(47,163,214,.25), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: 14px 0 12px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 62ch; font-size: 1.08rem; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding: 72px 0 56px; }
.footer-main h4 { color: #fff; font-size: 15px; margin-bottom: 20px; font-weight: 700; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; max-width: 34ch; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14.5px; color: rgba(255,255,255,.66); transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 13px; font-size: 14.5px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: #8fd4f2; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: .2s ease; }
.socials a:hover { background: var(--primary); border-color: var(--primary); }
.socials svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom a { color: rgba(255,255,255,.66); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Legal page ---------- */
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--muted); margin-bottom: 12px; }
.legal-body strong { color: var(--ink); }
.legal-body .field-line { display: grid; grid-template-columns: 200px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.legal-body .field-line b { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.legal-body .field-line span { color: var(--muted); font-size: 14.5px; }

/* ---------- Reveal animations ---------- */
/* Content is visible by default (no-JS safe). Animation only when JS adds `.js`. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .qi-grid { grid-template-columns: 1fr 1fr; }
  .qi-item:nth-child(3) { border-left: none; border-top: 1px solid var(--line); }
  .qi-item:nth-child(4) { border-top: 1px solid var(--line); }
  .grid-4, .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav-actions .nav-client, .nav-actions .btn { display: none; }
  .burger { display: flex; }
  .nav-actions { gap: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .cta-band { padding: 44px 32px; }
  .form-card { padding: 28px 22px; }
  .topbar .tb-group.hide-sm { display: none; }
  .legal-body .field-line { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-trust { gap: 18px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
[dir="rtl"] .hero-bg::after { background: linear-gradient(260deg, rgba(8,26,38,.94) 0%, rgba(8,26,38,.78) 42%, rgba(8,26,38,.35) 100%), linear-gradient(0deg, rgba(8,26,38,.6) 0%, transparent 40%); }
[dir="rtl"] .qi-item + .qi-item { border-left: none; border-right: 1px solid var(--line); }
[dir="rtl"] .btn svg.arrow, [dir="rtl"] .card .c-link svg, [dir="rtl"] .chev { transform: scaleX(-1); }
[dir="rtl"] .eyebrow::before { order: 2; }
[dir="rtl"] .eyebrow.center::after { order: -1; }
[dir="rtl"] .breadcrumb .sep { transform: scaleX(-1); display: inline-block; }
@media (max-width: 1024px) {
  [dir="rtl"] .qi-item:nth-child(3) { border-right: none; }
}
