/* Galifar site — shared component styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-body); font-weight: 600;
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content:""; width: 24px; height: 2px; background: var(--accent); display: inline-block; }
.eyebrow.on-dark { color: var(--gd-green-300); }
.eyebrow.on-dark::before { background: var(--accent); }

/* ---------- Header ---------- */
.gd-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center;
}
.gd-header .inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.gd-header .logo { display: flex; align-items: center; gap: 10px; }
.gd-header .logo img { height: 56px; width: auto; }
.gd-header .logo .word {
  font-family: var(--font-display); font-weight: 700;
  display: inline-block; transform: skewX(-8deg);
  font-size: 20px; letter-spacing: -0.02em;
}
.gd-header nav.primary { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--fg-soft); }
.gd-header nav.primary a { transition: color 200ms; }
.gd-header nav.primary a:hover, .gd-header nav.primary a.active { color: var(--accent-ink); }
.gd-header .right { display: flex; align-items: center; gap: 18px; }
.gd-header .cta {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  background: var(--fg); color: var(--fg-invert);
  padding: 10px 18px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 200ms var(--ease-out);
}
.gd-header .cta:hover { background: var(--accent); }
.gd-header .cta::after { content: "→"; }
@media (max-width: 880px) {
  .gd-header nav.primary { display: none; }
}

/* ---------- Brand signature band (above footer) ---------- */
.gd-signature {
  background: var(--bg-invert);
  color: var(--fg-invert);
  padding: 80px 0 72px;
  border-top: 1px solid var(--gd-ink-700);
  position: relative;
  overflow: hidden;
}
.gd-signature::before {
  /* subtle green glow anchored bottom-right, echoing brand accent */
  content: "";
  position: absolute;
  right: -120px; bottom: -180px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(91,172,139,0.18) 0%, rgba(91,172,139,0) 65%);
  pointer-events: none;
}
.gd-signature .inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  position: relative;
}
.gd-signature .left .eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gd-green-300);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.gd-signature .left .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gd-green-400);
}
.gd-signature .left h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 28px;
  max-width: 520px;
}
.gd-signature .left h2 em {
  font-style: normal;
  display: inline-block;
  transform: skewX(-8deg);
  color: var(--gd-green-300);
  font-weight: 600;
}
.gd-signature .left .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.gd-signature .left .meta span strong {
  color: #fff;
  font-weight: 500;
  letter-spacing: 0;
}
.gd-signature .right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.gd-signature .right .mark {
  width: 360px;
  max-width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--gd-ink-700);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.gd-signature .right .mark img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 880px) {
  .gd-signature { padding: 56px 0 48px; }
  .gd-signature .inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .gd-signature .right { justify-content: flex-start; }
  .gd-signature .right .mark { width: 100%; max-width: 420px; }
}

/* Remove the older flat banner */
.gd-banner { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 13px 22px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 220ms var(--ease-out);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; box-shadow: var(--shadow-green); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-on-dark { background: var(--bg); color: var(--fg); }
.btn-on-dark:hover { background: var(--accent); color: var(--fg-invert); }
.btn.with-arrow::after { content: "→"; font-weight: 400; }
.btn-link {
  color: var(--accent-ink); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-link::after { content: "→"; transition: transform 200ms; }
.btn-link:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.gd-hero {
  position: relative; padding: 80px 0 96px;
  background: var(--bg); overflow: hidden;
}
.gd-hero .grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center;
}
.gd-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02; letter-spacing: -0.025em;
  color: var(--fg);
}
.gd-hero h1 em {
  font-style: normal; display: inline-block;
  transform: skewX(-8deg); color: var(--accent);
}
.gd-hero p.lead {
  margin-top: 24px; font-size: 19px; line-height: 1.5;
  color: var(--fg-soft); max-width: 480px;
}
.gd-hero .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.gd-hero .photo {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 4/3;
  background: var(--bg-mute);
}
.gd-hero .photo img { width: 100%; height: 100%; object-fit: cover; }

.gd-hero .photo-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.94);
  border-radius: var(--r-pill);
  padding: 8px 14px; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.gd-hero .photo-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 172, 139, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(91, 172, 139, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(91, 172, 139, 0.05); }
}
@media (max-width: 880px) {
  .gd-hero { padding: 48px 0 64px; }
  .gd-hero .grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Logos band ---------- */
.gd-logos { padding: 56px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gd-logos .row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.gd-logos .logo-item {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; color: var(--fg-mute);
  letter-spacing: -0.01em;
  opacity: 0.7; transition: opacity 200ms;
}
.gd-logos .logo-item:hover { opacity: 1; }
.gd-logos .logo-item.featured {
  color: var(--fg); opacity: 1;
  display: inline-flex; align-items: center; gap: 8px;
}
.gd-logos .logo-item.featured .badge {
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 3px 8px; border-radius: var(--r-pill);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Stats band (Galifar en chiffres) ---------- */
.gd-stats {
  background: var(--bg-invert); color: var(--fg-invert);
  padding: 80px 0;
}
.gd-stats .head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; flex-wrap: wrap; gap: 24px; }
.gd-stats h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; color: var(--fg-invert); max-width: 520px; }
.gd-stats h2 em { font-style: normal; display: inline-block; transform: skewX(-8deg); color: var(--accent); }
.gd-stats .meta-line { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 280px; }
.gd-stats .grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.gd-stats .stat { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.18); }
.gd-stats .num {
  font-family: var(--font-display); font-weight: 700;
  display: inline-block; transform: skewX(-8deg);
  font-size: clamp(44px, 5vw, 64px); line-height: 1;
  letter-spacing: -0.02em; color: var(--accent);
}
.gd-stats .unit { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.gd-stats .lbl { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.4; font-weight: 500; }
.gd-stats .note { font-size: 11px; color: rgba(255,255,255,0.45); }
.gd-stats .footer-note {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.6);
  flex-wrap: wrap; gap: 12px;
}
.gd-stats .footer-note a { color: var(--accent); font-weight: 500; }
.gd-stats .pending { font-style: italic; color: rgba(233, 185, 73, 0.85); }
@media (max-width: 880px) {
  .gd-stats .grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------- Section base ---------- */
section.block { padding: 96px 0; }
section.block.soft { background: var(--bg-soft); }
section.block.dark { background: var(--bg-invert); color: var(--fg-invert); }
section.block.dark h2, section.block.dark h3 { color: var(--fg-invert); }
.block-head { margin-bottom: 56px; max-width: 760px; }
.block-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05; letter-spacing: -0.02em;
}
.block-head h2 em { font-style: normal; display: inline-block; transform: skewX(-8deg); color: var(--accent); }
.block-head p.lead { font-size: 18px; color: var(--fg-soft); margin-top: 18px; line-height: 1.55; max-width: 600px; }
.block-head.on-dark p.lead { color: rgba(255,255,255,0.75); }

/* ---------- Sector cards ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sector-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 220ms var(--ease-out);
  position: relative; overflow: hidden;
}
.sector-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}
.sector-card .tag {
  width: fit-content;
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 6px 12px; border-radius: var(--r-pill);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.sector-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; letter-spacing: -0.02em; line-height: 1.15;
}
.sector-card p { color: var(--fg-soft); font-size: 15px; line-height: 1.55; flex-grow: 1; }
.sector-card .specs { display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--fg-mute); }
.sector-card .specs span strong { color: var(--fg); font-family: var(--font-display); font-weight: 700; font-size: 14px; }
@media (max-width: 880px) { .sector-grid { grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-step {
  padding: 32px 28px;
  border-left: 1px solid var(--border);
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
}
.process-step:first-child { border-left: none; padding-left: 0; }
.process-step .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 36px; letter-spacing: -0.03em;
  display: inline-block; transform: skewX(-8deg); color: var(--accent);
}
.process-step h4 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.process-step p { color: var(--fg-soft); font-size: 14px; line-height: 1.55; }
@media (max-width: 880px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { border-left: none; border-top: 1px solid var(--border); padding: 24px 0; }
  .process-step:first-child, .process-step:nth-child(2) { border-top: none; }
}

/* ---------- Fleet ---------- */
.fleet-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.fleet-row .info { padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.fleet-row h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; }
.fleet-row p { color: var(--fg-soft); font-size: 15px; line-height: 1.55; }
.fleet-row .specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin-top: 8px; }
.fleet-row .spec { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--border); }
.fleet-row .spec .v { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--fg); }
.fleet-row .spec .k { font-size: 11px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.fleet-row .photo { background-size: cover; background-position: center; min-height: 360px; }
@media (max-width: 880px) { .fleet-row { grid-template-columns: 1fr; } .fleet-row .photo { min-height: 240px; } }

/* ---------- Calculator teaser ---------- */
.calc-teaser {
  background: var(--bg-invert); color: var(--fg-invert);
  padding: 96px 0; position: relative; overflow: hidden;
}
.calc-teaser .inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.calc-teaser h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; max-width: 540px; }
.calc-teaser h2 em { font-style: normal; display: inline-block; transform: skewX(-8deg); color: var(--accent); }
.calc-teaser p { color: rgba(255,255,255,0.75); font-size: 17px; line-height: 1.55; margin-top: 20px; max-width: 460px; }
.calc-teaser .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.calc-teaser .preview {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg); padding: 32px;
}
.calc-teaser .preview .row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 14px; }
.calc-teaser .preview .row:last-child { border-bottom: none; padding-bottom: 0; }
.calc-teaser .preview .row .k { color: rgba(255,255,255,0.6); }
.calc-teaser .preview .row .v { font-family: var(--font-display); font-weight: 700; color: var(--fg-invert); font-size: 18px; }
.calc-teaser .preview .total { padding-top: 18px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.18); }
.calc-teaser .preview .total .v { color: var(--accent); font-size: 32px; transform: skewX(-8deg); display: inline-block; }
@media (max-width: 880px) { .calc-teaser .inner { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Case study card ---------- */
.case-card {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.case-card .photo {
  background-size: cover; background-position: center;
  min-height: 360px; position: relative;
}
.case-card .photo .badge {
  position: absolute; top: 20px; left: 20px;
  background: rgba(255,255,255,0.95);
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.case-card .content { padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.case-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; line-height: 1.1; }
.case-card h3 em { font-style: normal; display: inline-block; transform: skewX(-8deg); color: var(--accent); }
.case-card .quote { padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.case-card .quote p { font-size: 15px; line-height: 1.55; color: var(--fg-soft); font-style: italic; }
.case-card .quote .who { margin-top: 10px; font-size: 12px; color: var(--fg-mute); font-style: normal; }
.case-card .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-card .stats-row .s { display: flex; flex-direction: column; gap: 2px; }
.case-card .stats-row .v { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent); }
.case-card .stats-row .k { font-size: 11px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 880px) { .case-card { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.testi .mark { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 0.5; color: var(--accent); display: inline-block; transform: skewX(-8deg); }
.testi p { font-size: 15px; line-height: 1.55; color: var(--fg-soft); flex-grow: 1; }
.testi .who { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--border); }
.testi .name { font-weight: 600; font-size: 14px; }
.testi .role { font-size: 12px; color: var(--fg-mute); }
.testi.placeholder p { color: var(--fg-mute-2); font-style: italic; }
@media (max-width: 880px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- RSE block ---------- */
.rse-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 56px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
}
.rse-block h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; max-width: 480px; }
.rse-block h2 em { font-style: normal; display: inline-block; transform: skewX(-8deg); color: var(--accent); }
.rse-block .rse-kicker { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--fg-soft); max-width: 480px; }
.rse-block .rse-kicker strong { color: var(--fg); font-weight: 600; }
.rse-block .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.rse-block .checks { display: flex; flex-direction: column; gap: 14px; }
.rse-block .check { display: flex; align-items: flex-start; gap: 12px; }
.rse-block .check .ico {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--accent); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-top: 1px;
}
.rse-block .check span { font-size: 15px; line-height: 1.4; color: var(--fg-soft); }
.rse-block .check span strong { color: var(--fg); font-weight: 600; }
@media (max-width: 880px) { .rse-block { grid-template-columns: 1fr; padding: 32px; gap: 32px; } }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--bg-invert); color: var(--fg-invert);
  padding: 120px 0; text-align: center;
}
.final-cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; max-width: 720px; margin: 0 auto; }
.final-cta h2 em { font-style: normal; display: inline-block; transform: skewX(-8deg); color: var(--accent); }
.final-cta p { color: rgba(255,255,255,0.65); font-size: 15px; margin-top: 16px; }
.final-cta .actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final-cta .mailto { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 24px; }
.final-cta .mailto a { color: var(--accent); }

/* ---------- Footer ---------- */
.gd-footer { background: var(--bg-invert); color: var(--fg-invert); padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.gd-footer .top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.gd-footer .brand .word { font-family: var(--font-display); font-weight: 700; display: inline-block; transform: skewX(-8deg); font-size: 28px; letter-spacing: -0.02em; }
.gd-footer .brand p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.55; max-width: 280px; margin-top: 12px; }
.gd-footer .col h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; margin-bottom: 14px; }
.gd-footer .col a { display: block; padding: 4px 0; color: rgba(255,255,255,0.85); font-size: 14px; transition: color 200ms; }
.gd-footer .col a:hover { color: var(--accent); }
.gd-footer .bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px; align-items: center; }
.gd-footer .bottom .ig { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); transition: color 200ms; }
.gd-footer .bottom .ig:hover { color: var(--accent); }
.gd-footer .bottom .ig svg { display: block; }
.gd-footer .bottom .legal { display: flex; gap: 18px; }
.gd-footer .bottom .legal a:hover { color: var(--accent); }
@media (max-width: 880px) {
  .gd-footer .top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- Article page ---------- */
.article-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.article-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; max-width: 800px; }
.article-hero h1 em { font-style: normal; display: inline-block; transform: skewX(-8deg); color: var(--accent); }
.article-hero .meta { display: flex; gap: 18px; margin-top: 18px; font-size: 13px; color: var(--fg-mute); }
.article-body { padding: 64px 0; }
.article-body p, .article-body li { font-size: 17px; line-height: 1.7; color: var(--fg-soft); margin-bottom: 18px; }
.article-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; margin: 48px 0 18px; color: var(--fg); }
.article-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; margin: 32px 0 14px; color: var(--fg); }
.article-body ul { padding-left: 22px; margin-bottom: 22px; }
.article-body strong { color: var(--fg); font-weight: 600; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-body th, .article-body td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; }
.article-body th { background: var(--bg-soft); font-weight: 600; color: var(--fg); }
.article-body .pullquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 32px 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; line-height: 1.35; color: var(--fg);
}

/* ---------- Page hero (sectoriel) ---------- */
.page-hero { padding: 72px 0 56px; }
.page-hero .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.page-hero h1 em { font-style: normal; display: inline-block; transform: skewX(-8deg); color: var(--accent); }
.page-hero p.lead { margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--fg-soft); max-width: 480px; }
.page-hero .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero .photo { aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-mute); }
.page-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .page-hero .grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Two-col content ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Comparison table ---------- */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 18px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--border); }
.compare-table th { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--fg-mute); letter-spacing: 0; padding-bottom: 12px; }
.compare-table th.highlight { color: var(--accent-ink); }
.compare-table td.highlight { color: var(--fg); font-weight: 500; }
.compare-table td.bad { color: var(--fg-mute); }
.compare-table td.bad::before { content: "✕  "; color: var(--gd-rouge); font-weight: 600; }
.compare-table td.good::before { content: "✓  "; color: var(--accent); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--border); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--accent); transition: transform 200ms; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--fg-soft); font-size: 15px; line-height: 1.6; margin-top: 12px; }

/* ---------- Calculator ---------- */
.calc-shell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px; max-width: 760px; margin: 0 auto;
}
.calc-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.calc-progress .pill { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-mute); transition: background 300ms; }
.calc-progress .pill.on { background: var(--accent); }
.calc-progress .pill.done { background: var(--accent-ink); }
.calc-step-label { font-size: 12px; color: var(--fg-mute); margin-bottom: 8px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.calc-shell h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 24px; }
.calc-field { margin-bottom: 22px; }
.calc-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--fg); }
.calc-field input[type="number"], .calc-field input[type="text"], .calc-field input[type="email"], .calc-field select {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  padding: 13px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--bg);
  transition: border 200ms;
}
.calc-field input:focus, .calc-field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.calc-field .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-radios { display: grid; gap: 8px; }
.calc-radios label {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); cursor: pointer;
  font-size: 14px; transition: all 200ms;
  background: var(--bg);
}
.calc-radios label:hover { border-color: var(--accent); }
.calc-radios label.checked { border-color: var(--accent); background: var(--accent-soft); }
.calc-radios input { accent-color: var(--accent); }
.calc-slider { display: flex; flex-direction: column; gap: 12px; }
.calc-slider .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--fg-mute); }
.calc-slider .val { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--accent); display: inline-block; transform: skewX(-8deg); }
.calc-slider input[type=range] { width: 100%; accent-color: var(--accent); }
.calc-toggle { display: inline-flex; gap: 4px; background: var(--bg-mute); padding: 4px; border-radius: var(--r-pill); }
.calc-toggle button { padding: 8px 16px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--fg-mute); }
.calc-toggle button.on { background: var(--fg); color: var(--fg-invert); }
.calc-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.calc-back { font-size: 14px; color: var(--fg-mute); font-weight: 500; }
.calc-back:hover { color: var(--fg); }
.calc-disclaimer { font-size: 11px; color: var(--fg-mute-2); margin-top: 18px; line-height: 1.5; }

/* ---------- Calculator result ---------- */
.calc-result { padding: 24px 0; }
.calc-result .top-eyebrow { color: var(--accent-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.calc-result h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 20px; }
.calc-result .big-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 9vw, 120px); line-height: 1;
  letter-spacing: -0.03em; color: var(--accent);
  display: inline-block; transform: skewX(-8deg);
  margin: 16px 0;
}
.calc-result .big-num-unit { font-size: 0.36em; color: var(--fg); transform: skewX(0); }
.calc-result .pct { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--fg-soft); }
.calc-result .pct strong { color: var(--accent-ink); font-weight: 700; }
.calc-result .equiv { margin-top: 32px; padding: 24px; background: var(--bg-soft); border-radius: var(--r-md); border: 1px solid var(--border); }
.calc-result .equiv h3 { font-size: 14px; font-weight: 600; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.calc-result .equiv ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.calc-result .equiv li { display: flex; justify-content: space-between; font-size: 15px; color: var(--fg); padding: 10px 0; border-bottom: 1px solid var(--border); }
.calc-result .equiv li:last-child { border-bottom: none; padding-bottom: 0; }
.calc-result .equiv li .v { font-family: var(--font-display); font-weight: 700; color: var(--accent-ink); }
.calc-result .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.calc-result .email-conf { margin-top: 20px; font-size: 13px; color: var(--fg-mute); }

/* ---------- Index nav (sub-navigation breadcrumb) ---------- */
.index-nav {
  padding: 28px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.index-nav .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.index-nav .row > * {
  display: inline-flex;
  align-items: center;
}
/* Hide the legacy " · " text separators between links */
.index-nav .row { white-space: normal; }
.index-nav a {
  color: var(--fg-mute);
  font-weight: 500;
  padding: 6px 0;
  border-radius: 4px;
  transition: color 180ms, background 180ms;
  position: relative;
}
.index-nav a + a::before {
  content: none;
}
.index-nav a:hover { color: var(--fg); background: var(--bg-soft); }
.index-nav a.active {
  color: var(--accent-ink);
  font-weight: 600;
}
.index-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.index-nav .row strong { color: var(--accent-ink); }

/* ===========================================================
   SPLASH SCREEN — 3s logo + slogan intro
   =========================================================== */
html.gd-splash-active,
body.gd-splash-lock { overflow: hidden; }

.gd-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gd-ink-900);
  color: var(--fg-invert);
  opacity: 1;
  transition: opacity 600ms ease, visibility 600ms ease;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}
.gd-splash.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Background layers */
.gd-splash__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.gd-splash__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1100px;
  height: 1100px;
  transform: translate(-50%, -50%) scale(0.6);
  background: radial-gradient(closest-side,
              rgba(91, 172, 139, 0.28) 0%,
              rgba(91, 172, 139, 0.10) 40%,
              rgba(91, 172, 139, 0)    72%);
  filter: blur(2px);
  opacity: 0;
  animation: gd-splash-halo 3000ms cubic-bezier(.2,.8,.2,1) forwards;
}
.gd-splash__grain {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
/* Subtle scanline / vignette */
.gd-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center,
              transparent 55%,
              rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

/* Inner content */
.gd-splash__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 24px;
  max-width: 720px;
  text-align: center;
}

/* Logo */
.gd-splash__logo-wrap {
  position: relative;
  width: clamp(160px, 22vw, 240px);
  height: clamp(160px, 22vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  animation: gd-splash-logo-in 900ms cubic-bezier(.2,.8,.2,1) 120ms forwards;
}
.gd-splash__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55))
    drop-shadow(0 2px 6px rgba(91, 172, 139, 0.25));
}
/* Sweep highlight that travels across the logo once */
.gd-splash__sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
              transparent 30%,
              rgba(255, 255, 255, 0.18) 48%,
              rgba(255, 255, 255, 0.32) 50%,
              rgba(255, 255, 255, 0.18) 52%,
              transparent 70%);
  mix-blend-mode: screen;
  transform: translateX(-120%);
  opacity: 0;
  animation: gd-splash-sweep 1400ms cubic-bezier(.2,.8,.2,1) 700ms forwards;
  -webkit-mask-image: url("assets/logo-galifar-transparent.png");
          mask-image: url("assets/logo-galifar-transparent.png");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

/* Tagline */
.gd-splash__tagline {
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(8px);
  animation: gd-splash-fade-up 700ms cubic-bezier(.2,.8,.2,1) 700ms forwards;
}
.gd-splash__line--rule {
  display: block;
  width: clamp(28px, 6vw, 56px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
}
.gd-splash__slogan {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-weight: 500;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.02em;
  color: var(--fg-invert);
  white-space: nowrap;
}

/* Meta line — cities + since */
.gd-splash__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: gd-splash-fade-up 700ms cubic-bezier(.2,.8,.2,1) 1100ms forwards;
}
.gd-splash__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* Progress bar */
.gd-splash__progress {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  width: clamp(180px, 28vw, 280px);
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  z-index: 2;
}
.gd-splash__progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  transform: translateX(-100%);
  animation: gd-splash-progress 2900ms cubic-bezier(.6,.05,.4,1) 100ms forwards;
}

/* ============ KEYFRAMES ============ */
@keyframes gd-splash-logo-in {
  0%   { opacity: 0; transform: translateY(8px) scale(0.96); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gd-splash-sweep {
  0%   { opacity: 0; transform: translateX(-120%); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}
@keyframes gd-splash-fade-up {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes gd-splash-halo {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  40%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes gd-splash-progress {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(0%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gd-splash__logo-wrap,
  .gd-splash__tagline,
  .gd-splash__meta,
  .gd-splash__halo,
  .gd-splash__sweep,
  .gd-splash__progress-bar {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .gd-splash__slogan { white-space: normal; max-width: 70vw; }
  .gd-splash__meta { flex-wrap: wrap; justify-content: center; }
  .gd-splash__progress { bottom: 32px; }
}

/* ===== Mini-splash variant (2s entre pages) ===== */
.gd-splash--mini .gd-splash__logo-wrap {
  width: clamp(120px, 16vw, 170px);
  height: clamp(120px, 16vw, 170px);
  animation-duration: 600ms;
}
.gd-splash--mini .gd-splash__progress {
  bottom: 36px;
  width: clamp(140px, 20vw, 200px);
}
.gd-splash--mini .gd-splash__halo {
  width: 800px; height: 800px;
}
.gd-splash--mini::before {
  background: radial-gradient(ellipse at center,
              transparent 60%,
              rgba(0, 0, 0, 0.6) 100%);
}

/* ===== Page-leave overlay (transition de sortie au clic interne) ===== */
.gd-page-leave {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--gd-ink-900);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}
.gd-page-leave.is-in {
  opacity: 1;
  pointer-events: auto;
}
