/* ============================================================
   KF-OPTO — Complete Stylesheet
   Design: Clean medical white + #202940 navy + gold accents
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Tokens ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #202940;
  --navy-light: #2d3d5c;
  --teal:       #4A9FBF;
  --teal-light: #EBF6FB;
  --gold:       #D4A017;
  --gold-bg:    #FEF9EC;
  --light:      #E8EDF2;
  --lighter:    #F4F7FA;
  --white:      #FFFFFF;
  --text:       #202940;
  --muted:      #6B7A99;
  --border:     #DDE3EE;
  --shadow-sm:  0 2px 8px rgba(32,41,64,.08);
  --shadow-md:  0 6px 24px rgba(32,41,64,.12);
  --shadow-lg:  0 16px 48px rgba(32,41,64,.18);
  --radius:     10px;
  --radius-lg:  16px;
  --ease:       .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

[dir="rtl"] body {
  font-family: 'Inter', 'Tahoma', 'Arial', system-ui, sans-serif;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
p  { margin-bottom: 1rem; }

h1 { font-size: clamp(2rem, 4.5vw, 3rem);   font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem;  font-weight: 700; }
h4 { font-size: 1rem;    font-weight: 700; }

/* ── Utilities ────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.hidden    { display: none !important; }
.text-muted { color: var(--muted); }
.mt-2 { margin-top: 1rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem; min-height: 48px;
  font-family: inherit; font-size: .9rem; font-weight: 600;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all var(--ease); white-space: nowrap;
}
.btn-primary {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-light); border-color: var(--navy-light);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy); color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white); color: var(--navy); border-color: var(--white);
}
.btn-white:hover {
  background: transparent; color: var(--white); border-color: var(--white);
  transform: translateY(-2px);
}
.btn-teal {
  background: var(--teal); color: var(--white); border-color: var(--teal);
}
.btn-teal:hover {
  background: #3a8faf; border-color: #3a8faf; transform: translateY(-2px);
}

/* Link-arrow style */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9rem; font-weight: 600; color: var(--navy);
  transition: gap var(--ease), color var(--ease);
}
.link-arrow:hover { gap: .7rem; color: var(--teal); }
.link-arrow i { font-size: .85rem; }

/* ── Section Badge ────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .3rem 1rem; border-radius: 50px;
  font-size: .78rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  background: var(--gold-bg); color: var(--gold);
  border: 1px solid #F5D87A;
  margin-bottom: 1rem;
}
.badge-teal {
  background: var(--teal-light); color: var(--teal); border-color: #A8D8EA;
}

/* ── Section titles ───────────────────────────────────────── */
.section-title { margin-bottom: .75rem; }
.section-lead  { color: var(--muted); max-width: 560px; font-size: 1.05rem; }
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-lead { margin: 0 auto; }

/* ── Announcement Bar ─────────────────────────────────────── */
.announcement-bar {
  background: var(--navy); color: rgba(255,255,255,.9);
  text-align: center; padding: .55rem 1rem;
  font-size: .82rem; font-weight: 500; letter-spacing: .2px;
}
.announcement-bar a { color: #7EB8D4; text-decoration: underline; }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 1.5rem;
}

/* Logo */
.nav-logo {
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
  letter-spacing: -.5px; flex-shrink: 0; display: flex; align-items: center; gap: .4rem;
}
.nav-logo .logo-icon { color: var(--teal); font-size: 1.6rem; }
.nav-logo span { color: var(--teal); }

/* Desktop links */
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  flex: 1; justify-content: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .9rem; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color var(--ease), background var(--ease);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--navy); background: var(--lighter); }
.nav-links > li > a i { font-size: .7rem; transition: transform var(--ease); }
.nav-links > li:hover > a i { transform: rotate(180deg); }

/* Mega / dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + .75rem); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 1rem; min-width: 260px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  pointer-events: none;
}
.nav-dropdown.open,
.nav-links > li:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.nav-dropdown a {
  display: flex; align-items: center; gap: .85rem;
  padding: .65rem .85rem; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: var(--muted);
  transition: background var(--ease), color var(--ease);
}
.nav-dropdown a:hover { background: var(--lighter); color: var(--navy); }
.nav-dropdown a .dd-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--lighter); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .95rem; color: var(--navy);
  transition: background var(--ease);
}
.nav-dropdown a:hover .dd-icon { background: var(--teal-light); color: var(--teal); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* Language Dropdown */
.lang-wrapper { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .75rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--white);
  font-size: .85rem; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: all var(--ease);
}
.lang-trigger:hover { border-color: var(--navy); background: var(--lighter); }
.lang-trigger .flag { font-size: 1.1rem; line-height: 1; }
.lang-trigger .lang-name { font-size: .8rem; }
.lang-trigger .caret { font-size: .65rem; color: var(--muted); transition: transform var(--ease); }
.lang-wrapper.open .lang-trigger .caret { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + .5rem); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 150px; overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--ease);
}
.lang-wrapper.open .lang-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-option {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem; font-size: .88rem; font-weight: 500;
  cursor: pointer; transition: background var(--ease);
  border: none; background: none; width: 100%; text-align: left;
  color: var(--muted);
}
[dir="rtl"] .lang-option { text-align: right; }
.lang-option:hover { background: var(--lighter); color: var(--navy); }
.lang-option.active { color: var(--navy); font-weight: 700; background: var(--lighter); }
.lang-option .flag { font-size: 1.15rem; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: all var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem; gap: .15rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: .7rem .85rem; border-radius: 8px;
  font-size: .95rem; font-weight: 500; color: var(--muted);
  transition: background var(--ease), color var(--ease);
}
.nav-mobile a:hover, .nav-mobile a.active { background: var(--lighter); color: var(--navy); }
.nav-mobile .mobile-section-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--muted); padding: .6rem .85rem .2rem;
  margin-top: .5rem;
}
.nav-mobile .mobile-rdv {
  margin-top: .75rem; text-align: center;
  background: var(--navy); color: var(--white) !important;
  border-radius: var(--radius);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--lighter);
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-text .badge { margin-bottom: 1.25rem; }
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text p  { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; max-width: 440px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-features {
  display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.hero-feature {
  display: flex; align-items: center; gap: .65rem;
  font-size: .88rem; font-weight: 600; color: var(--navy);
}
.hero-feature i { font-size: 1.3rem; color: var(--teal); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
}
.hero-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, #344870 50%, var(--teal) 100%);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); font-size: 5rem; gap: 1rem;
}
.hero-img-placeholder p { font-size: 1rem; letter-spacing: 1px; opacity: .7; margin: 0; }

/* Floating badge on hero */
.hero-float-badge {
  position: absolute; bottom: 2rem; left: -1.5rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1rem 1.25rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .75rem;
  min-width: 200px;
}
.hero-float-badge .hfb-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  flex-shrink: 0;
}
.hero-float-badge strong { display: block; font-size: .95rem; color: var(--navy); }
.hero-float-badge span  { font-size: .78rem; color: var(--muted); }

/* ── FEATURES STRIP ───────────────────────────────────────── */
.features-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.features-strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.feat-item { display: flex; align-items: flex-start; gap: 1rem; }
.feat-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  background: var(--lighter); display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1.3rem;
}
.feat-text h4 { font-size: .95rem; margin-bottom: .15rem; }
.feat-text p  { font-size: .82rem; color: var(--muted); margin: 0; }

/* ── SECTIONS ─────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-light { background: var(--lighter); }
.section-navy  { background: var(--navy); }

/* ── ABOUT (homepage teaser) ──────────────────────────────── */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-block { position: relative; }
.about-img-main {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--teal-light), var(--lighter));
  height: 420px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; overflow: hidden;
}
.about-img-inset {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-img-inset strong { display: block; font-size: 2rem; font-weight: 800; color: var(--navy); }
.about-img-inset span   { font-size: .82rem; color: var(--muted); }
.about-content .badge { margin-bottom: 1rem; }
.about-content h2 { margin-bottom: 1rem; }
.about-content p  { color: var(--muted); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2rem 0; }
.stat-box {
  background: var(--lighter); border-radius: var(--radius); padding: 1.25rem;
  border-left: 4px solid var(--teal);
}
[dir="rtl"] .stat-box { border-left: none; border-right: 4px solid var(--teal); }
.stat-box strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.stat-box span   { font-size: .82rem; color: var(--muted); }

/* ── SERVICES GRID ────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.svc-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--lighter); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.25rem;
  transition: background var(--ease), color var(--ease);
}
.service-card:hover .svc-icon { background: var(--teal-light); color: var(--teal); }
.svc-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p  { color: var(--muted); font-size: .9rem; flex: 1; margin-bottom: 1.25rem; }
.service-card .link-arrow { margin-top: auto; }

/* ── WHY CHOOSE US ────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-img {
  border-radius: var(--radius-lg); overflow: hidden; height: 460px;
  background: linear-gradient(160deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 6rem; flex-shrink: 0;
}
.why-items { display: flex; flex-direction: column; gap: 1.5rem; }
.why-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.why-num {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%; background: var(--navy);
  color: var(--white); font-size: .85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.why-text h4 { margin-bottom: .3rem; }
.why-text p  { color: var(--muted); font-size: .9rem; margin: 0; }

/* ── CTA BANNER ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 4.5rem 0; text-align: center; color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item { display: flex; gap: 1rem; }
.cii-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.cii-text strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: .2rem; }
.cii-text a, .cii-text span { font-size: .95rem; color: var(--navy); display: block; }
.cii-text a + a { margin-top: .2rem; }
.cii-text a:hover { color: var(--teal); }
.map-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 380px; }
.map-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── ABOUT PAGE ───────────────────────────────────────────── */
.about-page-values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.value-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--lighter); border-radius: var(--radius-lg);
  transition: transform var(--ease);
}
.value-card:hover { transform: translateY(-4px); }
.value-card .vc-icon {
  font-size: 2rem; color: var(--teal); margin-bottom: 1rem;
}
.value-card h4 { margin-bottom: .5rem; }
.value-card p  { color: var(--muted); font-size: .88rem; margin: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  margin: 0 auto 1rem; font-size: 2.5rem;
  display: flex; align-items: center; justify-content: center;
}
.team-card h4 { margin-bottom: .25rem; }
.team-card span { font-size: .85rem; color: var(--teal); font-weight: 600; }
.team-card p { font-size: .85rem; color: var(--muted); margin: .75rem 0 0; }

/* ── SERVICE INNER PAGE ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 4rem 0 3.5rem; color: var(--white);
}
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; flex-wrap: wrap;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--ease); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb i { font-size: .7rem; }
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 600px; font-size: 1.05rem; margin: .75rem 0 0; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }

.article-body { padding: 3rem 0; }
.article-body .lead {
  font-size: 1.1rem; color: var(--muted); border-left: 4px solid var(--teal);
  padding-left: 1.25rem; margin-bottom: 2rem;
}
[dir="rtl"] .article-body .lead { border-left: none; border-right: 4px solid var(--teal); padding-left: 0; padding-right: 1.25rem; }
.article-body h3 { margin: 2rem 0 .75rem; color: var(--navy); }
.article-body ul { padding-left: 1.5rem; color: var(--muted); list-style: disc; }
[dir="rtl"] .article-body ul { padding-left: 0; padding-right: 1.5rem; }
.article-body ul li { margin-bottom: .4rem; }

.article-sidebar { padding: 3rem 0; }
.sidebar-card {
  background: var(--lighter); border-radius: var(--radius-lg); padding: 1.75rem;
  margin-bottom: 1.5rem; border: 1px solid var(--border);
}
.sidebar-card h4 { margin-bottom: 1rem; font-size: 1rem; }
.sidebar-card ul { display: flex; flex-direction: column; gap: .6rem; }
.sidebar-card ul li a {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: var(--muted); padding: .4rem 0;
  transition: color var(--ease);
}
.sidebar-card ul li a i { color: var(--teal); width: 16px; }
.sidebar-card ul li a:hover { color: var(--navy); }
.sidebar-card ul li a.active-service { color: var(--navy); font-weight: 600; }
.sidebar-cta {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 2rem 1.75rem; text-align: center; color: var(--white);
}
.sidebar-cta i { font-size: 2.5rem; color: var(--teal); margin-bottom: 1rem; display: block; }
.sidebar-cta h4 { color: var(--white); margin-bottom: .75rem; }
.sidebar-cta p { color: rgba(255,255,255,.75); font-size: .88rem; margin-bottom: 1.25rem; }
.sidebar-cta .btn { width: 100%; }

/* ── SERVICES LISTING PAGE ────────────────────────────────── */
.services-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.svc-list-card {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.svc-list-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal);
}
.svc-list-icon {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px;
  background: var(--lighter); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  transition: background var(--ease), color var(--ease);
}
.svc-list-card:hover .svc-list-icon { background: var(--teal-light); color: var(--teal); }
.svc-list-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

.article-hero-img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 2rem; }
.svc-list-content h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.svc-list-content p  { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .logo { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.footer-brand .logo span { color: var(--teal); }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h5 { color: var(--white); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { font-size: .88rem; transition: color var(--ease); }
.footer-col ul a:hover { color: var(--white); }
.footer-contact-item { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .75rem; }
.footer-contact-item i { color: var(--teal); margin-top: .2rem; flex-shrink: 0; }
.footer-contact-item a { font-size: .88rem; transition: color var(--ease); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom { padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .82rem; opacity: .5; }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,15,30,.65); backdrop-filter: blur(6px);
  z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: all var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; width: 100%; max-width: 500px;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px); transition: transform var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.modal-header h2 { font-size: 1.3rem; }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lighter); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1rem;
  transition: background var(--ease), color var(--ease);
}
.modal-close:hover { background: var(--navy); color: var(--white); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .45rem; color: var(--navy); }
.form-group label .req { color: #E05252; }
.form-group input {
  width: 100%; padding: .75rem 1rem; min-height: 48px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; color: var(--navy); background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(74,159,191,.15); }
.form-group input::placeholder { color: #B0BCCC; }
.form-note { font-size: .8rem; color: var(--muted); margin: .75rem 0 1.25rem; display: flex; gap: .4rem; align-items: flex-start; }
.form-note i { color: var(--teal); flex-shrink: 0; margin-top: .15rem; }
.modal-submit { width: 100%; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 1024px
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Hero: image FIRST (top), text below */
  .hero { padding: 0; background: var(--lighter); }
  .hero-grid { grid-template-columns: 1fr; gap: 0; text-align: center; }
  /* Image on top */
  .hero-visual {
    display: block;
    order: -1;
    width: 100%; height: 360px;
    border-radius: 0;
    overflow: hidden;
    margin-top: 1.75rem;
  }
  .hero-img-real { border-radius: 0; height: 100%; object-position: center center; }
  .hero-float-badge { display: none; }
  /* Text below image */
  .hero-text { padding: 2rem 1.25rem 2.5rem; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-features { justify-content: center; }

  /* Features */
  .features-strip-grid { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-split { grid-template-columns: 1fr; gap: 0; }
  /* Image shown full-width ABOVE text */
  .about-img-block {
    display: block;
    width: 100%;
    margin-bottom: 2rem;
  }
  .about-img-main { height: 280px; border-radius: 0; }
  .about-img-real { height: 280px; border-radius: 0; }
  .about-img-inset { display: none; }
  .about-content { padding: 0 .5rem; }

  /* Services: 2 columns */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why us */
  .why-grid { grid-template-columns: 1fr; gap: 0; }
  /* Image full-width above content */
  .why-img {
    display: block;
    height: 280px; border-radius: 0;
    width: 100%; margin-bottom: 2rem;
    font-size: 0;
  }
  .why-img-real { height: 280px; border-radius: 0; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }

  /* Article pages */
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }

  /* About page */
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-page-values { grid-template-columns: repeat(2, 1fr); }

  /* Home map */
  .home-map-grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-map-embed { height: 360px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 768px
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner { height: 60px; gap: .4rem; padding: 0 1rem; }
  .nav-logo { font-size: 1.25rem; }
  .nav-logo .logo-icon { font-size: 1.35rem; }
  /* Hide lang dropdown from navbar on mobile — moved inside menu */
  .lang-wrapper { display: none; }
  .nav-right { gap: .5rem; }
  .nav-right > .btn {
    padding: .5rem 1.1rem; font-size: .85rem;
    min-height: 40px; border-radius: 10px;
  }

  /* ── Mobile menu ── */
  .nav-mobile { padding: .75rem 1rem 1.5rem; gap: 0; }
  .nav-mobile a {
    padding: .9rem 1rem;
    font-size: .95rem; font-weight: 500;
    border-radius: 0; color: var(--navy);
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile a:hover, .nav-mobile a.active {
    background: var(--lighter); color: var(--navy);
  }
  .nav-mobile .mobile-section-label {
    padding: .8rem 1rem .25rem;
    font-size: .68rem; letter-spacing: 1px;
    color: var(--teal); border-bottom: none;
  }
  .nav-mobile .mobile-rdv {
    margin-top: 1rem;
    background: var(--navy); color: #fff !important;
    text-align: center; padding: 1rem;
    border-radius: 12px; font-size: .95rem;
    border-bottom: none;
  }
  /* Language switcher inside mobile menu */
  .mobile-lang-row {
    display: flex; gap: .65rem;
    padding: 1rem 1rem 0; margin-top: .5rem;
    border-top: 1px solid var(--border);
  }
  .mobile-lang-row .lang-option {
    flex: 1; justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: 10px; padding: .65rem .5rem;
    font-size: .88rem; font-weight: 600;
    background: var(--white); color: var(--navy);
    cursor: pointer; display: flex; align-items: center; gap: .5rem;
    transition: all var(--ease);
  }
  .mobile-lang-row .lang-option.active {
    background: var(--navy); color: var(--white);
    border-color: var(--navy);
  }

  /* ── General ── */
  .section { padding: 2.75rem 0; }
  .container { padding: 0 1.1rem; }
  .section-header { margin-bottom: 2rem; }
  .announcement-bar { font-size: .76rem; padding: .4rem 1rem; }

  /* ── Hero ── */
  .hero { padding: 0; }
  .hero-text { padding: 1.75rem 1.25rem 2rem; }
  .hero-text h1 { font-size: 1.85rem; line-height: 1.2; margin-bottom: 1rem; }
  .hero-text p  { font-size: .93rem; margin-bottom: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .65rem; }
  .hero-actions .btn { width: 100%; min-height: 50px; font-size: .95rem; border-radius: 12px; }
  .hero-features { gap: .75rem 1.5rem; flex-wrap: wrap; justify-content: center; }
  .hero-feature { font-size: .82rem; gap: .5rem; }
  .hero-feature i { font-size: 1.1rem; }
  .hero-visual { height: 300px; }

  /* ── Features strip ── */
  .features-strip { padding: 1.5rem 0; }
  .features-strip-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
  .feat-item { gap: .6rem; align-items: center; }
  .feat-icon { width: 40px; height: 40px; font-size: 1rem; border-radius: 10px; flex-shrink: 0; }
  .feat-text h4 { font-size: .83rem; margin-bottom: .05rem; }
  .feat-text p  { font-size: .74rem; }

  /* ── About section ── */
  .about-split { gap: 0; }
  .about-img-main { height: 240px; }
  .about-img-real { height: 240px; }
  .about-content { text-align: left; }
  .about-content h2 { font-size: 1.5rem; }
  .about-content p  { font-size: .92rem; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: .65rem; margin: 1.5rem 0; }
  .stat-box { padding: .9rem .75rem; }
  .stat-box strong { font-size: 1.5rem; }
  .stat-box span   { font-size: .75rem; }

  /* ── Services ── */
  .services-grid { grid-template-columns: 1fr; gap: .85rem; }
  .service-card { padding: 1.35rem 1.25rem; align-items: center; text-align: center; }
  .svc-icon { width: 50px; height: 50px; font-size: 1.35rem; margin-bottom: 1rem; border-radius: 12px; }
  .service-card h3 { font-size: 1rem; margin-bottom: .35rem; }
  .service-card p  { font-size: .87rem; }
  .service-card .link-arrow { justify-content: center; }

  /* ── Why us ── */
  .why-img { height: 240px; }
  .why-img-real { height: 240px; }
  .why-items { gap: 1.1rem; margin-top: 1.5rem; }
  .why-item { gap: .85rem; align-items: flex-start; }
  .why-num { width: 36px; height: 36px; font-size: .78rem; flex-shrink: 0; }
  .why-text h4 { font-size: .93rem; margin-bottom: .2rem; }
  .why-text p  { font-size: .85rem; }

  /* ── Brand slider ── */
  .brands-section { padding: 1.75rem 0; }
  .brands-section .section-header { margin-bottom: 1rem; }
  .brands-section h2 { font-size: 1.1rem; }
  .brand-logo { height: 28px; }
  .brands-track { gap: 2rem; }

  /* ── Home map ── */
  .home-map-grid { grid-template-columns: 1fr; gap: 0; }
  .home-map-info { display: none; }
  /* Break map out of container to full viewport width */
  .home-map-section .container { padding-left: 0; padding-right: 0; }
  .home-map-embed {
    height: 340px;
    border-radius: 0;
    width: 100%;
  }
  .mobile-map-actions {
    display: flex; flex-direction: column; gap: .85rem;
    padding: 1.25rem 1.1rem .5rem;
  }
  .mma-btn {
    display: flex; align-items: center; justify-content: center; gap: .65rem;
    padding: 1.1rem 1.5rem; border-radius: 50px;
    font-size: 1.05rem; font-weight: 700; text-align: center;
    transition: opacity .2s ease;
  }
  .mma-btn:hover { opacity: .88; }
  .mma-gold { background: var(--gold); color: #fff; }
  .mma-navy { background: var(--navy); color: #fff; }

  /* ── CTA banner ── */
  .cta-banner { padding: 2.5rem 0; }
  .cta-banner h2 { font-size: 1.35rem; margin-bottom: .65rem; }
  .cta-banner p  { font-size: .9rem; margin-bottom: 1.5rem; padding: 0 .5rem; }
  .cta-actions { flex-direction: column; align-items: stretch; gap: .65rem; padding: 0 1rem; }
  .cta-actions .btn { width: 100%; min-height: 50px; border-radius: 12px; font-size: .95rem; }

  /* ── Contact page ── */
  .map-wrapper { height: 260px; border-radius: var(--radius); }
  .contact-info-item { gap: .65rem; }
  .cii-icon { width: 40px; height: 40px; font-size: .95rem; border-radius: 10px; }
  .cii-text strong { font-size: .74rem; }
  .cii-text a, .cii-text span { font-size: .9rem; }

  /* ── Page hero (inner pages) ── */
  .page-hero { padding: 2rem 0 1.75rem; }
  .page-hero h1 { font-size: 1.55rem; }
  .page-hero p  { font-size: .9rem; }
  .breadcrumb { font-size: .76rem; }

  /* ── About page values ── */
  .about-page-values { grid-template-columns: 1fr 1fr; gap: .85rem; margin-top: 1.75rem; }
  .value-card { padding: 1.25rem .9rem; }
  .value-card .vc-icon { font-size: 1.6rem; margin-bottom: .6rem; }
  .value-card h4 { font-size: .9rem; }
  .value-card p  { font-size: .8rem; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* ── Services listing page ── */
  .services-page-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .svc-list-card {
    flex-direction: column; align-items: center; text-align: center;
    padding: 1.5rem 1rem; gap: .75rem;
  }
  .svc-list-icon { width: 58px; height: 58px; font-size: 1.4rem; flex-shrink: 0; }
  .svc-list-content h3 { font-size: .95rem; margin-bottom: .3rem; }
  .svc-list-content p  { font-size: .82rem; margin-bottom: .6rem; }
  .article-hero-img { height: 200px; }
  .svc-list-content .link-arrow { justify-content: center; }

  /* ── Footer ── */
  .footer { padding: 2.5rem 0 0; }
  .footer-grid > .footer-col:nth-child(3) { display: none; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1rem;
    padding-bottom: 2rem;
  }
  .footer-brand { grid-column: span 2; }
  .footer-brand .logo { font-size: 1.2rem; }
  .footer-brand p { font-size: .83rem; }
  .footer-col h5 { font-size: .76rem; margin-bottom: .85rem; }
  .footer-col ul a { font-size: .83rem; }
  .footer-contact-item { gap: .45rem; margin-bottom: .6rem; }
  .footer-contact-item a,
  .footer-contact-item span { font-size: .8rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .4rem; padding: 1.25rem 0; }

  /* ── Modal ── */
  .modal { padding: 1.5rem 1.1rem; border-radius: var(--radius-lg); max-height: 90vh; }
  .modal-header { margin-bottom: 1.5rem; }
  .modal-header h2 { font-size: 1.1rem; }
  .form-group { margin-bottom: 1rem; }
  .form-group input { font-size: .9rem; }

  /* ── WhatsApp FAB ── */
  .whatsapp-fab {
    position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 900;
    width: 52px; height: 52px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.5);
    transition: transform .2s ease;
    text-decoration: none;
  }
  .whatsapp-fab:active { transform: scale(.9); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  ≤ 480px
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .nav-inner { padding: 0 .85rem; }

  /* Hero */
  .hero-text h1 { font-size: 1.65rem; }
  .hero-visual { height: 250px; }
  .hero-features { gap: .6rem 1rem; }

  /* Features: single column */
  .features-strip-grid { grid-template-columns: 1fr; gap: .7rem; }
  .feat-item { flex-direction: row; align-items: center; }

  /* Stats always 2 cols */
  .about-stats { grid-template-columns: 1fr 1fr; }

  /* Values & team single col */
  .about-page-values { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-banner h2 { font-size: 1.2rem; }
  .cta-actions { padding: 0 .25rem; }

  /* Footer single col */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }

  /* Badge */
  .badge { font-size: .7rem; padding: .22rem .75rem; }

  /* Service card tighter */
  .service-card { padding: 1.15rem 1rem; }
}

/* ── Real hero image ──────────────────────────────────────── */
.hero-img-real {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
}

/* ── About / Why real images ──────────────────────────────── */
.about-img-real {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
  display: block;
}
.why-img-real {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: inherit; display: block;
}

/* ── BRAND SLIDER ─────────────────────────────────────────── */
.brands-section {
  padding: 3.5rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.brands-header {
  text-align: center;
  margin-bottom: 2rem;
}
.brands-header p {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 0;
}

/* Marquee track */
.brands-track-wrapper {
  overflow: hidden;
  position: relative;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.brands-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.brands-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
[dir="rtl"] .brands-track {
  animation-name: marquee-rtl;
}
@keyframes marquee-rtl {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.brand-logo {
  flex-shrink: 0;
  height: 42px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .55;
  transition: filter var(--ease), opacity var(--ease), transform var(--ease);
}
.brand-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* ── Phone card (contact page) ───────────────────────────── */
.phone-card {
  background: #FDF0E8;
  border-radius: 1.25rem;
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.phone-card-icon {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: .5rem;
}
.phone-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .25rem;
}
.phone-card a {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ease);
}
.phone-card a:hover { color: var(--teal); }

/* Mobile map actions — hidden on desktop via min-width query */
@media (min-width: 769px) {
  .mobile-map-actions { display: none; }
}

/* ── Home Map Section ─────────────────────────────────────── */
.home-map-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}
.home-map-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: .5rem 0 1rem;
}
.hmi-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.hmi-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.hmi-item > div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.hmi-item strong {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
}
.hmi-item span {
  font-size: .95rem;
  color: var(--navy);
  line-height: 1.5;
}
.hmi-item a {
  color: var(--navy);
  text-decoration: none;
  font-size: .95rem;
  transition: color var(--ease);
}
.hmi-item a:hover { color: var(--teal); }
.home-map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 520px;
}
.home-map-embed iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

/* ── WhatsApp FAB — hidden on desktop, shown via mobile media query ── */
.whatsapp-fab { display: none; }

/* ── Contact address block ────────────────────────────────── */
.cii-text address {
  font-style: normal;
  font-size: .9rem;
  color: var(--navy);
  line-height: 1.6;
}

/* ── Home map mobile overrides (must be LAST to beat base styles) ── */
@media (max-width: 1024px) {
  .home-map-grid {
    display: flex;
    flex-direction: column;
  }
  .home-map-info { display: none; }
  .home-map-embed {
    width: 100%;
    height: 340px;
    border-radius: 0;
    box-shadow: none;
  }
}
