/* ===================================================================
   HCE — Corporate — design system
   =================================================================== */

@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/poppins-700.woff2') format('woff2');
}

:root {
  --primary: #0b3d66;
  --primary-dark: #082c4a;
  --accent: #e8871e;
  --accent-dark: #c96f12;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1f2933;
  --text-muted: #64748b;
  --border: #e5e9ef;
  --shadow: 0 4px 20px rgba(11, 61, 102, 0.08);
  --shadow-lg: 0 20px 45px rgba(11, 61, 102, 0.14);
  --radius: 14px;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1720;
    --bg-alt: #16202c;
    --text: #e8edf2;
    --text-muted: #9aa7b5;
    --border: #263241;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.36);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--text);
}

p { margin: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* ---------- Topbar ---------- */

.topbar { background: var(--primary-dark); color: #dce8f2; font-size: 0.82rem; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { text-decoration: none; color: inherit; }
.topbar .items { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.nav-mark .mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}

.logo-img { height: 46px; width: auto; }

.footer-logo-img {
  height: 40px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a.is-active { color: var(--primary); }

.nav-links a:not(.btn):hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover { background: var(--primary); color: #fff; }

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 135, 30, 0.3);
}

.btn-solid:hover { background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-mobile { display: none; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: clamp(64px, 10vw, 100px) 0;
  background:
    linear-gradient(120deg, rgba(8, 26, 44, 0.92) 0%, rgba(11, 61, 102, 0.75) 55%, rgba(11, 61, 102, 0.55) 100%),
    url('/img/page-header-bg.jpg') center 65% / cover no-repeat;
}

.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-top: 12px; color: #fff; }
.page-hero .desc { margin-top: 16px; max-width: 56ch; color: #dce8f2; font-size: 1rem; }

.breadcrumb { font-size: 0.85rem; color: #b7cbdc; margin-top: 12px; }
.breadcrumb a { color: #dce8f2; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Hero (home) ---------- */

.hero {
  padding: clamp(48px, 7vw, 88px) 0;
  position: relative;
  background:
    linear-gradient(100deg, rgba(11, 61, 102, 0.93) 15%, rgba(11, 61, 102, 0.82) 55%, rgba(8, 44, 74, 0.68) 100%),
    url('/img/home/hero-bg.jpg') center 55% / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero .eyebrow { color: var(--accent); }
.hero-copy h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-top: 16px; color: #fff; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }

.hero-lede { margin-top: 20px; max-width: 50ch; color: #dce8f2; font-size: 1.05rem; }

.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-actions .btn:not(.btn-solid) { border-color: #fff; color: #fff; }
.hero-actions .btn:not(.btn-solid):hover { background: #fff; color: var(--primary-dark); }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3.2;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 60%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.corner-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: #fff;
  color: var(--primary);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.corner-tag span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ---------- Trust bar ---------- */

.trust-bar { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust-bar .label { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.trust-logos { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-logos img { height: 34px; width: auto; object-fit: contain; opacity: 0.7; filter: grayscale(1); }

/* ---------- Partenaires (page à propos) ---------- */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.partner-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.partner-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.partner-card img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.partner-card:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Stat strip ---------- */

.stats { border-bottom: 1px solid var(--border); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; padding: clamp(40px, 6vw, 64px) 0; }

.stat .value { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat .value span { color: var(--accent-dark); }
.stat .label { margin-top: 4px; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Section shell ---------- */

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.no-border { border-bottom: none; }
.section.alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-top: 10px; }
.section-head .desc { margin-top: 12px; color: var(--text-muted); max-width: none; }

.section-head.left { margin: 0 0 40px; text-align: left; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* ---------- Registre (about) ---------- */

.registre { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.registre-text p + p { margin-top: 16px; }
.registre-text { color: var(--text-muted); }
.registre-text strong { color: var(--text); font-weight: 600; }

.spec-sheet { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; background: var(--bg-alt); font-size: 0.92rem; }
.spec-sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; margin: 0; }
.spec-sheet dt { color: var(--text-muted); }
.spec-sheet dd { margin: 0; text-align: right; font-weight: 500; }

.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; flex: none; margin-top: 2px;
}
.check-list b { font-family: var(--font-heading); font-size: 1rem; }
.check-list p { color: var(--text-muted); font-size: 0.9rem; margin-top: 2px; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--bg-alt); text-align: center; }
.team-card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  margin: 0 auto 14px;
  overflow: hidden;
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card .role { font-size: 0.78rem; color: var(--accent-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.team-card h3 { font-size: 1.05rem; margin-top: 6px; }

/* ---------- Mot du directeur ---------- */

.director-word {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.director-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-lg);
}

.director-photo img { width: 100%; height: 100%; object-fit: cover; }

.director-quote-mark {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  color: var(--accent);
  line-height: 0.6;
  display: block;
  margin-bottom: 6px;
}

.director-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.director-signature {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.director-signature b { font-family: var(--font-heading); font-size: 1.05rem; display: block; }
.director-signature span { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Services ---------- */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-card .photo {
  width: 100%;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.service-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .photo img { transform: scale(1.06); }

.service-card .body { padding: 24px 26px 28px; }

.service-card h3 { font-size: 1.15rem; }
.service-card p { margin-top: 10px; color: var(--text-muted); font-size: 0.92rem; }

.service-card .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); font-weight: 600; font-size: 0.88rem; }

/* ---------- Détail service / projet ---------- */

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.detail-grid img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.detail-gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 16px;
  background: #000;
}

.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Détail projet : étude de cas ---------- */

.project-cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/7;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.project-cover img { width: 100%; height: 100%; object-fit: cover; }

.project-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 56px);
  padding: 22px 0;
  margin-bottom: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.project-fact { text-align: center; }
.project-fact span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 4px; }
.project-fact b { font-family: var(--font-heading); font-size: 1.05rem; color: var(--primary); }

.project-story {
  max-width: 68ch;
  margin: 0 auto clamp(32px, 5vw, 48px);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
}

.project-story p + p { margin-top: 16px; }

.project-cta { text-align: center; }

/* ---------- Galerie masonry (liste projets + section galerie détail) ---------- */

.masonry-grid {
  column-count: 4;
  column-gap: 12px;
}

.masonry-item {
  display: block;
  position: relative;
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  text-decoration: none;
}

.masonry-item img { width: 100%; display: block; transition: transform 0.4s ease; }
.masonry-item:hover img { transform: scale(1.06); }

.masonry-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 32, 0);
  transition: background 0.25s ease;
  z-index: 1;
}

.masonry-item:hover::after { background: rgba(8, 20, 32, 0.2); }

.masonry-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px;
  background: linear-gradient(0deg, rgba(8, 20, 32, 0.85), transparent 78%);
  color: #fff;
}

.masonry-caption span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.masonry-caption b {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  margin-top: 2px;
}

.masonry-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.masonry-play span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.masonry-play span svg { width: 22px; height: 22px; margin-left: 3px; }
.masonry-item:hover .masonry-play span { transform: scale(1.1); }

@media (max-width: 900px) { .masonry-grid { column-count: 3; } }
@media (max-width: 600px) { .masonry-grid { column-count: 2; } }

/* ---------- Projects filter + grid ---------- */

.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 40px); justify-content: center; }

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.project-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: flex;
  align-items: flex-end;
}

.project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-tile:hover img { transform: scale(1.08); }

.project-tile .info {
  position: relative;
  z-index: 2;
  padding: 16px;
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: linear-gradient(0deg, rgba(8, 20, 32, .85), transparent 70%);
  width: 100%;
}

.project-tile .info b {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 3px;
}

/* ---------- Actualités : galerie ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 32, 0);
  transition: background 0.25s ease;
}

.gallery-item:hover::after { background: rgba(8, 20, 32, 0.28); }

.gallery-item .zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #fff;
  z-index: 2;
}

.gallery-item:hover .zoom-hint { opacity: 1; }
.gallery-item .zoom-hint svg { width: 26px; height: 26px; }

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(8, 20, 32, 0.85), transparent 90%);
  color: #fff;
}

.gallery-caption b { display: block; font-family: var(--font-heading); font-size: 0.92rem; }
.gallery-caption span { font-size: 0.72rem; color: #dce8f2; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 12, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open { display: flex; }

.lightbox-image {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-video {
  width: min(1000px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}

.lightbox-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(32px, 5vw, 48px);
}

.gallery-pagination .btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Quote ---------- */

.quote-band { text-align: center; max-width: 720px; margin: 0 auto; }
.quote-band p { font-family: var(--font-heading); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 500; color: var(--primary); }
.quote-band .who { margin-top: 20px; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background:
    linear-gradient(135deg, rgba(11, 61, 102, 0.9), rgba(8, 44, 74, 0.88)),
    url('/img/home/cta-bg.jpg') center / cover no-repeat;
  border-radius: 24px;
  padding: clamp(40px, 6vw, 64px);
  color: #fff;
}

.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 20ch; }
.cta-band p { color: #cfe0ee; margin-top: 10px; }
.cta-band .btn { border-color: #fff; color: #fff; }
.cta-band .btn-solid { background: #fff; color: var(--primary-dark); border-color: #fff; }
.cta-band .btn:not(.btn-solid):not(.btn-whatsapp):hover { background: #fff; color: var(--primary-dark); }
.cta-band .btn-whatsapp { border-color: #25d366; color: #fff; }
.cta-band .btn-whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }

/* ---------- Forms ---------- */

.form-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(26px, 4vw, 38px); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.full { grid-template-columns: 1fr; }

.field label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }

.field input, .field textarea, .field select {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 120px; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }

.contact-info-item .icon {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex: none; color: #fff; font-size: 1.1rem;
}

.contact-info-item .icon svg { width: 20px; height: 20px; }

.contact-info-item h3 { font-size: 0.98rem; }
.contact-info-item p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Footer ---------- */

footer { background: var(--primary-dark); color: #b9cbdb; padding: clamp(48px, 6vw, 70px) 0 28px; }

.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }

.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-brand p { color: #9db3c6; font-size: 0.9rem; margin-top: 14px; max-width: 30ch; }

.footer-grid h4 { font-family: var(--font-heading); font-size: 0.85rem; color: #fff; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: #9db3c6; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }

.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: 0.82rem; color: #7e93a6; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .registre { grid-template-columns: 1fr; }
  .director-word { grid-template-columns: 1fr; }
  .director-photo { max-width: 260px; margin: 0 auto; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.1rem; }
  .lightbox-close { width: 38px; height: 38px; top: 12px; right: 12px; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links { display: none; }
  .topbar .items { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px clamp(20px, 5vw, 56px) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile a:not(.btn) {
    text-decoration: none;
    color: var(--text-muted);
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile a.is-active { color: var(--primary); border-bottom-color: var(--accent); font-weight: 600; }
  .nav-mobile .btn { margin-top: 12px; justify-content: center; }
}

/* ---------- WhatsApp ---------- */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  z-index: 70;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32); }
.whatsapp-float svg { width: 28px; height: 28px; }

.topbar .whatsapp-link { display: inline-flex; align-items: center; gap: 6px; }
.topbar .whatsapp-link svg { width: 14px; height: 14px; }

.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.btn-whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }
.btn-whatsapp svg { width: 16px; height: 16px; }

.contact-info-item .icon.whatsapp { background: #25d366; }

@media (max-width: 900px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 25px; height: 25px; }
}

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-ring {
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  animation: preloader-spin 1s linear infinite;
}

.preloader-logo {
  position: relative;
  z-index: 2;
  width: 74px;
  height: auto;
  animation: preloader-pulse 1.6s ease-in-out infinite;
}

@keyframes preloader-spin { to { transform: rotate(360deg); } }
@keyframes preloader-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

@media (prefers-reduced-motion: reduce) {
  .preloader-ring { animation: none; }
  .preloader-logo { animation: none; }
}
