/* ==========================================================================
   LARBI EL AKEL — Pintura, Estucos, Reformas y Fachadas · Roses, Girona
   Palette taken from the brand mark: navy ink, terracotta, paper cream.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --ink:        #14304e;
  --ink-deep:   #0d2138;
  --ink-soft:   #2c4a68;
  --terra:      #c56a3d;
  --terra-deep: #a8542c;
  /* Button-only shade. --terra is 3.8:1 on white, short of the 4.5:1 text minimum,
     but it is also the selection, focus-ring and accent colour, so it stays as it is. */
  --terra-btn:  #b15f37;
  --terra-tint: #f5e6dc;

  /* Surfaces */
  --paper:      #faf7f1;
  --paper-warm: #f3ede2;
  --surface:    #ffffff;

  /* Text */
  --text:       #1b2b3a;
  --text-muted: #5f7186;
  --text-faint: #8a99a8;
  --on-dark:    #eef3f8;
  --on-dark-mut:#a9bdd1;

  /* Lines & shadow */
  --line:       rgba(20, 48, 78, 0.11);
  --line-strong:rgba(20, 48, 78, 0.2);
  --shadow-sm:  0 1px 2px rgba(13, 33, 56, 0.06), 0 2px 6px rgba(13, 33, 56, 0.05);
  --shadow-md:  0 4px 12px rgba(13, 33, 56, 0.08), 0 12px 28px rgba(13, 33, 56, 0.07);
  --shadow-lg:  0 10px 24px rgba(13, 33, 56, 0.1), 0 28px 60px rgba(13, 33, 56, 0.12);

  /* Rhythm */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-full: 999px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --maxw: 1220px;

  --font-display: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--terra); color: #fff; }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper { background: var(--paper-warm); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -200%);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ----------------------------------------------------- section heading -- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-deep);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head.is-centered .eyebrow::before { display: none; }

.section-head h2 {
  font-size: clamp(1.95rem, 4.2vw, 2.9rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 1rem;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
              color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--primary { background: var(--terra-btn); color: #fff; box-shadow: 0 6px 18px rgba(177, 95, 55, 0.32); }
.btn--primary:hover { background: var(--terra-deep); box-shadow: 0 10px 26px rgba(177, 95, 55, 0.4); }

.btn--wa { background: #178844; color: #fff; box-shadow: 0 6px 18px rgba(23, 136, 68, 0.32); }
.btn--wa:hover { background: #13723a; box-shadow: 0 10px 26px rgba(23, 136, 68, 0.4); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, 0.08); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }

.btn--outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.87rem; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------- header -- */

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 247, 241, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(13, 33, 56, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
  flex: none;
}
.brand__mark { width: auto; height: 38px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand__tag {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-deep);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  padding: 0.5rem 0.62rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.nav a:hover { color: var(--ink); background: rgba(20, 48, 78, 0.06); }

.header__actions { display: flex; align-items: center; gap: 0.6rem; }

/* language switcher */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.15s;
}
.lang__toggle:hover { border-color: var(--line-strong); }
.lang__toggle svg { width: 13px; height: 13px; opacity: 0.6; transition: transform 0.2s; }
.lang[data-open="true"] .lang__toggle svg { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: none;
}
.lang[data-open="true"] .lang__menu { display: block; }
.lang__menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.lang__menu button:hover { background: var(--paper-warm); }
.lang__menu button[aria-current="true"] { color: var(--terra-deep); font-weight: 700; }
.lang__code {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-left: auto;
}

/* mobile menu button */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__slide.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(13, 33, 56, 0.93) 0%, rgba(13, 33, 56, 0.82) 38%,
                    rgba(13, 33, 56, 0.42) 68%, rgba(13, 33, 56, 0.3) 100%);
}

.hero__inner { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.hero__content { max-width: 40rem; color: #fff; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem 0.42rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: 0.83rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero__badge b {
  background: var(--terra);
  padding: 0.16rem 0.6rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: none;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: #f0a179; }

.hero__lede {
  margin-top: 1.35rem;
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.1rem; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
  padding-left: 0;
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero__points svg { width: 17px; height: 17px; color: #7fd6a0; flex: none; }

/* ---------------------------------------------------------------- stats -- */

.stats {
  background: var(--ink);
  color: var(--on-dark);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-block: clamp(2.5rem, 5vw, 3.5rem);
}
.stat {
  background: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.1rem) 1.2rem;
  text-align: center;
}
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__n span { color: var(--terra); }
.stat__l {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--on-dark-mut);
  line-height: 1.4;
}

/* ------------------------------------------------------------- services -- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1.15rem;
}

.service {
  position: relative;
  padding: 1.85rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.service:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--terra-tint);
  color: var(--terra-deep);
  margin-bottom: 1.15rem;
}
.service__icon svg { width: 25px; height: 25px; }

.service h3 { font-size: 1.19rem; font-weight: 700; }
.service p { margin-top: 0.6rem; font-size: 0.97rem; color: var(--text-muted); }

.service ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.service ul li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper-warm);
  border-radius: var(--r-full);
  padding: 0.26rem 0.7rem;
}

/* ------------------------------------------------- compare (drag slider) -- */

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.compare__stage { display: flex; justify-content: center; }

.compare__frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper-warm);
  touch-action: pan-y;
  user-select: none;
}

.compare__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* The "before" layer sits on top and is revealed from the left edge. */
.compare__clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: none;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.compare__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; background: none; }
.compare__range:focus-visible + * { outline: none; }

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(13, 33, 56, 0.18);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.compare__handle svg {
  width: 22px;
  height: 22px;
  padding: 9px;
  box-sizing: content-box;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.compare__frame:focus-within .compare__handle svg { outline: 3px solid var(--terra); outline-offset: 2px; }

.compare__tag {
  position: absolute;
  top: 0.9rem;
  z-index: 2;
  padding: 0.32rem 0.8rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.compare__tag--l { left: 0.9rem; background: rgba(20, 48, 78, 0.82); }
.compare__tag--r { right: 0.9rem; background: var(--terra); }

.compare__body h3 {
  margin-top: 0.35rem;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  font-weight: 800;
}
.compare__body p { margin-top: 0.9rem; color: var(--text-muted); }

.compare__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem !important;
  padding: 0.5rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-full);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-soft) !important;
}
.compare__hint svg { width: 16px; height: 16px; color: var(--terra); }

/* -------------------------------------------------------- before/after -- */

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.6rem;
}

.ba {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.ba:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.ba__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line-strong);
}

.ba__half {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-warm);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
}
.ba__half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.ba__half:hover img { transform: scale(1.045); }

.ba__half--before img { filter: saturate(0.82) contrast(0.97); }

.ba__tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(4px);
}
.ba__half--before .ba__tag { background: rgba(20, 48, 78, 0.82); }
.ba__half--after .ba__tag { background: var(--terra); }

.ba__body { padding: 1.3rem 1.4rem 1.5rem; }
.ba__body h3 { font-size: 1.1rem; font-weight: 700; }
.ba__body p { margin-top: 0.4rem; font-size: 0.93rem; color: var(--text-muted); }
.ba__place {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--terra-deep);
}
.ba__place svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------- gallery -- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.16s ease;
}
.filter:hover { border-color: var(--line-strong); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-warm);
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.shot:hover img { transform: scale(1.06); }

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 33, 56, 0.6) 0%, rgba(13, 33, 56, 0) 45%);
  opacity: 0;
  transition: opacity 0.25s;
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }

.shot__cap {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.8rem;
  z-index: 1;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }

.shot.is-hidden { display: none; }

.gallery-more { display: flex; justify-content: center; margin-top: 1.75rem; }
.gallery-more svg { width: 17px; height: 17px; transition: transform 0.22s; }
.gallery-more .is-open svg { transform: rotate(180deg); }

/* -------------------------------------------------------------- videos -- */

.videos {
  display: grid;
  /* Narrow tracks so a two-column pair card and a one-column single card
     end up with clips of the same size. */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.15rem;
  align-items: start;
}
/* Below this the grid would collapse to one track and a span-2 card would
   overflow, so pin it to two. */
@media (max-width: 560px) {
  .videos { grid-template-columns: repeat(2, 1fr); }
}

.clip {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-deep);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 5;
}
.clip video, .clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clip video { display: none; }
.clip.is-playing video { display: block; }
.clip.is-playing .clip__poster,
.clip.is-playing .clip__play { display: none; }

.clip__poster { transition: transform 0.5s; }
.clip:hover .clip__poster { transform: scale(1.04); }

.clip__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(to top, rgba(13, 33, 56, 0.72), rgba(13, 33, 56, 0.12));
  cursor: pointer;
  padding: 0;
}
.clip__play i {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(13, 33, 56, 0.35);
  transition: transform 0.2s, background-color 0.2s;
}
.clip__play:hover i { transform: scale(1.09); background: #fff; }
.clip__play svg { width: 22px; height: 22px; margin-left: 3px; }

/* ------------------------------------------------ video before / after -- */

.vba {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.vba:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.vba--pair { grid-column: span 2; }

.vba__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line-strong);
}
.vba--single .vba__pair { grid-template-columns: 1fr; }

.vba .clip { border-radius: 0; box-shadow: none; }

.vba__body { padding: 1.1rem 1.2rem 1.25rem; }
.vba__body h3 { font-size: 1.05rem; font-weight: 700; }
.vba__body p { margin-top: 0.4rem; font-size: 0.9rem; color: var(--text-muted); }

.clip--before .ba__tag { background: rgba(20, 48, 78, 0.82); }
.clip--after .ba__tag { background: var(--terra); }
.clip.is-playing .ba__tag { display: none; }

/* ----------------------------------------------------------------- why -- */

.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.why__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.why__media img { width: 100%; height: 100%; object-fit: cover; }

.why__stamp {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--paper);
}
.why__stamp b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1;
}
.why__stamp span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.reasons { display: grid; gap: 1.1rem; margin-top: 2rem; list-style: none; padding: 0; }
.reasons li { display: flex; gap: 0.95rem; align-items: flex-start; }
.reasons i {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.reasons svg { width: 15px; height: 15px; }
.reasons b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.reasons span { font-size: 0.96rem; color: var(--text-muted); }

/* ------------------------------------------------------------- process -- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.6rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 1.15rem;
  right: 1.35rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--terra);
  opacity: 0.18;
  line-height: 1;
}
.step h3 { font-size: 1.08rem; font-weight: 700; }
.step p { margin-top: 0.5rem; font-size: 0.94rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- area -- */

.area {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.towns { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.towns li {
  padding: 0.42rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.towns li:last-child { color: var(--terra-deep); font-weight: 600; border-color: var(--terra-tint); background: var(--terra-tint); }

.map {
  border: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  filter: saturate(0.9);
}

/* ----------------------------------------------------------- cta band -- */

.cta-band {
  position: relative;
  background: var(--ink-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(197, 106, 61, 0.28), transparent 65%),
    radial-gradient(700px 380px at 92% 100%, rgba(44, 74, 104, 0.55), transparent 60%);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
.cta-band p { margin-top: 0.75rem; color: rgba(255, 255, 255, 0.78); max-width: 34rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ------------------------------------------------------------- contact -- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-cards { display: grid; gap: 0.85rem; }
.ccard {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
a.ccard:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ccard i {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--terra-tint);
  color: var(--terra-deep);
}
.ccard svg { width: 20px; height: 20px; }

/* The one card that performs an action rather than showing a detail.
   Must come after .ccard i, which sets the same properties at equal specificity. */
.ccard--save { background: var(--terra-tint); border-color: transparent; }
.ccard--save i { background: #fff; }
.ccard b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}
.ccard span { color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.45; }
.ccard small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.87rem; margin-top: 0.15rem; }

.form {
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  transition: border-color 0.15s, background-color 0.15s;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

.form__note {
  margin-top: 0.9rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  text-align: center;
}

/* -------------------------------------------------------------- footer -- */

.footer {
  background: var(--ink-deep);
  color: var(--on-dark-mut);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__logo { width: 290px; max-width: 100%; margin-bottom: 1.25rem; }
.footer p { font-size: 0.95rem; line-height: 1.7; max-width: 32rem; }

.footer h3 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer ul a, .footer address a {
  color: var(--on-dark-mut);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.footer ul a:hover, .footer address a:hover { color: var(--terra); }
.footer address { font-style: normal; font-size: 0.95rem; line-height: 1.75; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.85rem;
}

/* --------------------------------------------------------- sticky bar -- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; padding-inline: 0.5rem; }

/* ---------------------------------------------------------- lightbox -- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(9, 22, 38, 0.94);
  backdrop-filter: blur(6px);
}
.lightbox[open] { display: grid; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__cap {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.16s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__prev { left: clamp(0.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(0.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------- reveal -- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------- responsive -- */

@media (max-width: 1024px) {
  .why, .area, .contact, .compare { grid-template-columns: 1fr; }
  .compare__body { text-align: center; }
  .compare__body .eyebrow::before { display: none; }
  .why__media { order: -1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* The row is brand + 7 nav links + language + CTA. Measured, that needs
   1322px in English and 1359px in French, so it used to burst out of the
   viewport on any laptop narrower than that. The CTA goes first, then the
   whole nav folds into the burger. */
@media (max-width: 1400px) and (min-width: 1251px) {
  .header__cta { display: none; }
}

@media (max-width: 1250px) {
  html { scroll-padding-top: 72px; }
  .header__inner { min-height: 68px; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 0.32s cubic-bezier(0.3, 0.9, 0.3, 1);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  body.nav-open .nav { transform: none; }
  .nav a { padding: 0.8rem 0.6rem; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }

  .brand__tag { display: none; }
  .brand__mark { height: 30px; }
}

@media (max-width: 980px) {
  /* below here the fixed contact bar takes over */
  .header__cta { display: none; }

  .ba-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  body { padding-bottom: calc(77px + env(safe-area-inset-bottom)); }
  .lightbox { padding-bottom: 5rem; }
}

@media (max-width: 560px) {
  /* Keep the hero to roughly one screen — the longer translations run to four lines. */
  .hero { min-height: 0; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .hero__lede { margin-top: 1rem; font-size: 1rem; }
  .hero__badge { font-size: 0.78rem; padding-block: 0.34rem; margin-bottom: 1.15rem; }
  .hero__cta { margin-top: 1.6rem; }
  .hero__points { margin-top: 1.7rem; padding-top: 1.25rem; gap: 0.5rem 1.1rem; }
  .hero__points li { font-size: 0.87rem; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .why__stamp { width: 104px; height: 104px; right: -6px; bottom: -6px; }
  .why__stamp b { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .mobile-bar, .lightbox, .filters, .clip__play { display: none !important; }
  body { background: #fff; }
}
