/* ==========================================================================
   Martsel Limited – main stylesheet
   Brand colours are taken from the logo: blue #3291CE and ink #1F1C20.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --brand: #3291ce;          /* logo blue: graphics, accents, large text */
  --brand-strong: #1f72ab;   /* AA-compliant blue for text, links, buttons */
  --brand-deep: #175986;
  --brand-tint: #eaf4fb;
  --brand-tint-2: #d6e9f6;
  --ink: #1f1c20;            /* logo ink */

  /* Neutrals */
  --text: #2f2d33;
  --muted: #5b5d66;
  --line: #e2e5ea;
  --line-strong: #cdd2da;
  --surface: #ffffff;
  --surface-muted: #f5f7f9;
  --dark: #1b1a1e;
  --dark-2: #242328;
  --dark-text: #c9cbd2;

  /* Feedback */
  --success: #1a7f4b;
  --success-tint: #e8f5ee;
  --error: #b42318;
  --error-tint: #fdeceb;
  --whatsapp: #1a7f4b;
  --whatsapp-float: #1da851;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2.5vw, 3.5rem);
  --fs-h2: clamp(1.65rem, 1.3rem + 1.5vw, 2.5rem);
  --fs-h3: 1.1875rem;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 8px 24px -12px rgba(17, 24, 39, 0.16);
  --shadow-lg: 0 2px 4px rgba(17, 24, 39, 0.04), 0 20px 40px -20px rgba(17, 24, 39, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; line-height: 1.3; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-strong); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }

ul, ol { padding: 0; margin: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand);
}
.eyebrow-light { color: #8cc5ea; }
.eyebrow-light::before { background: var(--brand); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: 40em;
}

.prose { max-width: 40em; }
.prose p { color: var(--text); }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { margin: 0 0 1.25em; }
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: 0.45rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brand-strong);
  text-decoration: none;
}
.text-link .icon { transition: transform 0.2s var(--ease); }
a.text-link:hover .icon, .service-card:hover .text-link .icon, .project-card:hover .text-link .icon { transform: translateX(3px); }

.note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.note .icon { color: var(--brand); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { min-height: 52px; padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

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

.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-tint); color: var(--ink); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #136a3d; color: #fff; }

.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

.btn[disabled] { opacity: 0.65; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-row-center { justify-content: center; margin-top: 2.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(160%) blur(10px); }
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(17, 24, 39, 0.5); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand-logo { width: auto; height: 52px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name-main { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-name-sub { margin-top: 0.2rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.brand-reversed { color: #fff; gap: 0.85rem; }
.brand-reversed picture { display: block; flex: none; padding: 0.5rem; background: #fff; border-radius: var(--radius-lg); }
.brand-reversed .brand-logo { display: block; }
.brand-reversed .brand-name-sub { color: var(--dark-text); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: var(--radius);
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.nav-link:hover { color: var(--ink); background: var(--surface-muted); }
.nav-link[aria-current="page"], .nav-link.is-current { color: var(--brand-strong); }
.nav-trigger .icon { transition: transform 0.2s var(--ease); }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 560px;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.925rem;
  line-height: 1.35;
}
.dropdown-link strong { font-weight: 550; }
.dropdown-link:hover { background: var(--surface-muted); color: var(--ink); }
.dropdown-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--brand-strong);
}
.dropdown-icon .icon { width: 22px; height: 22px; }
.dropdown-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding: 0.8rem 0.7rem 0.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .icon { color: var(--brand); }
.header-phone:hover { color: var(--brand-strong); }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-list > li { border-bottom: 1px solid var(--line); }
.mobile-list a, .mobile-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.mobile-list a[aria-current="page"] { color: var(--brand-strong); }
.mobile-group-toggle .icon { transition: transform 0.2s var(--ease); }
.mobile-group-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-sublist { padding: 0 0 0.75rem 0.75rem; border-left: 2px solid var(--brand-tint-2); margin-bottom: 0.75rem; }
.mobile-sublist a { min-height: 44px; padding: 0.5rem 0 0.5rem 0.5rem; font-size: 0.975rem; font-weight: 500; color: var(--text); }
.mobile-actions { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.mobile-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

body.menu-open { overflow: hidden; }

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
}
@media (max-width: 479px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 44px; }
  .header-cta { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-muted { background: var(--surface-muted); }
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark strong { color: #fff; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}
.section-head h2 { margin-bottom: 0; max-width: 18em; }
.section-head-text { max-width: 30em; margin: 0; color: var(--muted); }
.project-count { display: flex; align-items: center; gap: 1.25rem; }
.project-count-figure { flex: none; margin: 0; font-size: clamp(3rem, 2.4rem + 2.4vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--brand-strong); }
.project-count .section-head-text { max-width: 20em; padding-left: 1.25rem; border-left: 2px solid var(--line-strong); }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-head-center .eyebrow { margin-bottom: 1rem; }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .split-intro { grid-template-columns: 5fr 7fr; align-items: start; }
  .split-feature { grid-template-columns: 5fr 6fr; }
  .split-media { grid-template-columns: 5fr 6fr; }
}

/* ---------- Top bar ---------- */

.topbar { background: var(--hero-blue-1); color: #cfe1ee; font-size: 0.8125rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 40px; }
.topbar p { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar .icon { width: 15px; height: 15px; color: var(--hero-accent); }
.topbar-sep { color: #5d5f68; }
.topbar-links { display: flex; gap: 1.5rem; }
.topbar-links a { display: inline-flex; align-items: center; gap: 0.4rem; color: #cfe1ee; text-decoration: none; }
.topbar-links a:hover { color: #fff; }
@media (max-width: 1023px) { .topbar { display: none; } }

/* ---------- Home hero (full-bleed photograph) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 78vh, 760px);
  padding-block: clamp(4rem, 3rem + 5vw, 7rem) clamp(6rem, 5rem + 4vw, 8.5rem);
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 22, 28, 0.94) 0%, rgba(20, 22, 28, 0.86) 38%, rgba(20, 22, 28, 0.45) 75%, rgba(20, 22, 28, 0.3) 100%),
    linear-gradient(0deg, rgba(20, 22, 28, 0.55) 0%, rgba(20, 22, 28, 0) 35%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--brand);
}
.hero-inner { width: 100%; }
.hero-copy { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); max-width: 12em; }
.hero .lead { color: #d9dbe1; max-width: 32em; }
.hero-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: 1.75rem; font-size: 0.95rem; color: #b9bcc5; }
.hero-contact a { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 600; text-decoration: none; }
.hero-contact a:hover { color: #8cc5ea; }
.hero-contact .icon { color: var(--brand); }
.hero-chip { position: absolute; right: var(--gutter); bottom: 1.25rem; }
@media (max-width: 959px) {
  .hero::before { background: linear-gradient(180deg, rgba(20, 22, 28, 0.82) 0%, rgba(20, 22, 28, 0.9) 100%); }
  .hero-chip { display: none; }
}

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.credential-badge .icon { color: var(--brand); }

.media-chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: rgba(20, 22, 28, 0.72);
  color: #e4e6ea;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Credentials bar overlapping the hero */
.credentials-wrap { position: relative; z-index: 2; margin-top: calc(-1 * clamp(3rem, 2.5rem + 2vw, 4.25rem)); }
.credentials {
  display: grid;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .credentials { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .credentials { grid-template-columns: repeat(4, 1fr); } }
.credentials li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .credentials li:nth-child(odd) { border-right: 1px solid var(--line); } }
@media (min-width: 1000px) { .credentials li { border-bottom: 0; border-right: 1px solid var(--line); } .credentials li:last-child { border-right: 0; } }
.credentials-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand-strong); }
.credentials strong { display: block; color: var(--ink); font-weight: 650; margin-bottom: 0.15rem; }
.credentials span { font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.credentials-icon .icon { width: 22px; height: 22px; }

/* ---------- Mid-page CTA strip ---------- */

.cta-strip {
  position: relative;
  display: grid;
  gap: 1.25rem 2.5rem;
  align-items: center;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem) clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand-strong) 100%);
  color: #e6f1f9;
  overflow: hidden;
}
.cta-strip::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
@media (min-width: 900px) { .cta-strip { grid-template-columns: 1fr auto; } }
.cta-strip-title { color: #fff; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); margin-bottom: 0.35rem; }
.cta-strip p { margin: 0; max-width: 40em; }
.cta-strip-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.block .cta-strip { margin-top: 0; }

/* ---------- Figures ---------- */

.figure { margin: 0; }
.figure img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}
.figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.figure-credit {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0 0.45rem;
  border-radius: 3px;
  background: var(--surface-muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.figure-hero img { box-shadow: var(--shadow-lg); }
.figure-dark figcaption { color: #a9acb5; }
.figure-dark .figure-credit { background: rgba(255, 255, 255, 0.08); color: #c9cbd2; }

/* ---------- Pillars, tags, features ---------- */

.pillars {
  display: grid;
  gap: 1.25rem 2rem;
  margin: 2rem 0;
  padding: 1.75rem 0;
  border-block: 1px solid var(--line);
}
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillars li { display: flex; gap: 0.9rem; }
.pillars .icon { color: var(--brand); margin-top: 2px; }
.pillars strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.15rem; }
.pillars span { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 2rem; }
.tag-list li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.feature-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-item { padding: 2rem; background: #fff; }
.feature-item h3 { margin: 1.1rem 0 0.4rem; }
.feature-item p { margin: 0; color: var(--muted); font-size: 0.975rem; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--brand-strong);
}

/* ---------- Dark feature (water heating) ---------- */

.feature-copy p { color: var(--dark-text); }
.feature-list { margin: 1.5rem 0 2rem; display: grid; gap: 0.85rem; }
.feature-list li { position: relative; padding-left: 1.4rem; line-height: 1.55; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--brand);
}
.feature-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.feature-media .figure img { aspect-ratio: 3 / 4; }
.feature-media .figure:last-child { margin-top: 3rem; }

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .card-grid-2, .card-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }

.service-card, .project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.service-card:hover, .project-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card:focus-within, .project-card:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }

.service-card-media { position: relative; }
.service-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card-icon {
  position: absolute;
  left: 1.25rem; bottom: -22px;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(31, 114, 171, 0.6);
}
.service-card-body { display: flex; flex-direction: column; flex: 1; padding: 2.1rem 1.4rem 1.5rem; }
.service-card-title { margin-bottom: 0.5rem; }
.service-card-body p { color: var(--muted); font-size: 0.975rem; line-height: 1.6; flex: 1; margin-bottom: 1.25rem; }

.project-card-media { position: relative; }
.project-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.project-card-body { padding: 1.5rem; }
.project-card-title { font-size: 1.3rem; margin-bottom: 1rem; }
.project-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0.5rem 2rem;
  margin: 0 0 1.25rem;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
}
.project-facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.project-facts dd { margin: 0.15rem 0 0; font-weight: 550; color: var(--ink); font-size: 0.95rem; }
@media (max-width: 420px) { .project-facts { grid-template-columns: 1fr 1fr; } }

.status-chip {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.status-chip::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--success);
  vertical-align: 1px;
}
.status-in-progress::before { background: #c27a00; }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--line-strong); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.5rem; right: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.step::after {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 48px; height: 2px;
  background: var(--brand);
}
.step-icon { display: block; color: var(--brand-strong); margin-bottom: 1rem; }
.step h3 { margin-bottom: 0.4rem; font-size: 1.0625rem; }
.step p { margin: 0; font-size: 0.95rem; color: var(--muted); }

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

.cta-band { background: var(--dark); color: var(--dark-text); padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand);
}
.cta-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.cta-copy h2 { color: #fff; max-width: 16em; }
.cta-copy p { max-width: 34em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 960px) { .cta-actions { justify-content: flex-end; } }
.cta-contact { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; width: 100%; margin: 0.75rem 0 0; font-size: 0.95rem; }
@media (min-width: 960px) { .cta-contact { justify-content: flex-end; } }
.cta-contact a { display: inline-flex; align-items: center; gap: 0.45rem; color: #fff; text-decoration: none; }
.cta-contact a:hover { color: #8cc5ea; }
.cta-contact .icon { color: var(--brand); }

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

.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--hero-gradient);
  color: var(--hero-text);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
  pointer-events: none;
}
.page-hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(340px, 30vw + 120px, 500px); padding-block: clamp(3rem, 2.25rem + 3vw, 5rem); }
.page-hero-copy { max-width: 640px; }
.page-hero h1 { color: #fff; max-width: 15em; }
.page-hero .lead { color: var(--hero-text); }
.page-hero-media { position: relative; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media .media-chip { position: absolute; right: 1rem; bottom: 1rem; }

@media (min-width: 960px) {
  .page-hero.has-image .page-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; }
  .page-hero.has-image .page-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--hero-blue-2) 0%, rgba(17, 73, 122, 0) 24%);
    z-index: 1;
    pointer-events: none;
  }
  .page-hero.has-image .page-hero-copy { max-width: 52%; }
}
@media (max-width: 959px) {
  .page-hero.has-image .page-hero-media { height: clamp(200px, 50vw, 340px); }
  .page-hero-inner { min-height: 0; }
}

.page-hero .breadcrumb li { color: #b6cfe2; }
.page-hero .breadcrumb li + li::before { color: rgba(255, 255, 255, 0.35); }
.page-hero .breadcrumb a { color: #cfe1ee; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb [aria-current] { color: #fff; }

/* ---------- Service detail ---------- */

.service-layout { display: grid; gap: 3rem; }
@media (min-width: 1000px) {
  .service-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 4.5rem; align-items: start; }
}
.sidebar { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .sidebar { position: sticky; top: calc(var(--header-h) + 24px); } }

.panel {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.panel h2, .panel h3 { font-size: 1.125rem; margin-bottom: 0.6rem; }
.panel p { font-size: 0.95rem; color: var(--muted); }
.panel-brand { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.panel .btn { width: 100%; margin-top: 0.6rem; }
.panel-links li + li { border-top: 1px solid var(--line); }
.panel-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.panel-links a .icon { color: var(--brand); }
.panel-links a:hover { color: var(--brand-strong); }
.panel-links a[aria-current="page"] { color: var(--brand-strong); font-weight: 600; }

.faq-list { border-top: 1px solid var(--line-strong); }
.faq { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; color: var(--brand); transition: transform 0.2s; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq p { margin: 0 0 1.25rem; color: var(--muted); max-width: 44em; }

.block + .block { margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.block > h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); }
.block-intro { color: var(--muted); max-width: 40em; margin-bottom: 1.75rem; }

.scope-list { display: grid; gap: 1rem; }
@media (min-width: 640px) { .scope-list { grid-template-columns: 1fr 1fr; } }
.scope-item {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.scope-item .scope-check {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-strong);
}
.scope-item h3 { font-size: 1.0625rem; margin-bottom: 0.3rem; }
.scope-item p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

.type-list { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .type-list { grid-template-columns: 1fr 1fr; } }
.type-item { padding: 1.1rem 1.25rem; border-left: 3px solid var(--brand); background: var(--surface-muted); border-radius: 0 var(--radius) var(--radius) 0; }
.type-item h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.type-item p { margin: 0; font-size: 0.925rem; color: var(--muted); }

.callout {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
}
.callout .icon { color: var(--brand-strong); margin-top: 2px; }
.callout h3 { font-size: 1.0625rem; margin-bottom: 0.3rem; }
.callout p { margin: 0; font-size: 0.975rem; }

.options { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .options { grid-template-columns: 1fr 1fr; } }
.option { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.option .figure img { border-radius: 0; aspect-ratio: 16 / 10; }
.option .figure figcaption { padding: 0 1.4rem; }
.option-body { padding: 1.25rem 1.4rem 1.5rem; }
.option-body p { font-size: 0.975rem; color: var(--muted); }
.check-list li { display: flex; gap: 0.6rem; margin-bottom: 0.5rem; font-size: 0.95rem; line-height: 1.5; }
.check-list .icon { color: var(--success); margin-top: 2px; }

.gallery { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery .figure img { aspect-ratio: 4 / 3; }
.gallery-portrait .figure img { aspect-ratio: 3 / 4; }

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

.service-row {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.service-row:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: center; }
}
.service-row .figure img { aspect-ratio: 4 / 3; }
.service-row h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); }
.service-row-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand-strong); margin-bottom: 1rem; }
.service-row ul { columns: 2; column-gap: 2rem; margin: 1.25rem 0 1.75rem; }
@media (max-width: 520px) { .service-row ul { columns: 1; } }
.service-row ul li { break-inside: avoid; display: flex; gap: 0.5rem; padding: 0.3rem 0; font-size: 0.95rem; }
.service-row ul .icon { color: var(--brand); margin-top: 3px; }

/* ---------- Projects ---------- */

.project-slot {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
}
.project-slot h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.project-slot p { margin: 0; color: var(--muted); max-width: 46em; }
@media (min-width: 800px) { .project-slot { grid-template-columns: auto 1fr auto; gap: 1.75rem; } }

.facts-panel { display: grid; gap: 0; }
.facts-panel div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.facts-panel div:last-child { border-bottom: 0; }
.facts-panel dt { color: var(--muted); font-size: 0.925rem; }
.facts-panel dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* ---------- Materials ---------- */

.category-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .category-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
.category { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.category h3 { margin: 1rem 0 0.4rem; }
.category p { margin: 0; color: var(--muted); font-size: 0.975rem; }

.partners { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.partner-logo { display: grid; place-items: center; width: 180px; height: 90px; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.partner-logo img { max-height: 56px; width: auto; }

/* ---------- About ---------- */

.audience-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
.audience { padding: 1.6rem; border-top: 3px solid var(--brand); background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-sm); border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience h3 { margin-bottom: 0.4rem; }
.audience p { margin: 0; color: var(--muted); font-size: 0.975rem; }

.standards {
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--dark-text);
}
@media (min-width: 900px) { .standards { grid-template-columns: 1fr 1.3fr; gap: 3.5rem; } }
.standards h2 { color: #fff; }
.standards-list { display: grid; gap: 1rem; }
.standards-list li { display: flex; gap: 0.85rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.standards-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.standards-list .icon { color: var(--brand); margin-top: 2px; }
.standards-list strong { color: #fff; display: block; margin-bottom: 0.15rem; }
.standards-note { font-size: 0.875rem; color: #a9acb5; margin-top: 1.25rem; }

.stat-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip li { padding: 1.5rem; background: #fff; display: flex; gap: 0.85rem; align-items: flex-start; }
.stat-strip .icon { color: var(--brand); }
.stat-strip strong { display: block; color: var(--ink); font-weight: 600; }
.stat-strip span { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* ---------- Contact ---------- */

.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 4rem; align-items: start; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.contact-aside { display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list li:first-child { padding-top: 0; }
.contact-list .icon { color: var(--brand); margin-top: 3px; }
.contact-list small { display: block; font-size: 0.775rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 550; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brand-strong); text-decoration: underline; }
.contact-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.map-embed { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); background: var(--line); }
@media (min-width: 700px) { .map-embed { aspect-ratio: 21 / 9; } }
.map-actions { display: grid; gap: 1rem; justify-items: start; }

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

.form-card {
  padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.form-card > h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.form-intro { color: var(--muted); margin-bottom: 1.75rem; }

fieldset { margin: 0 0 2rem; padding: 0; border: 0; min-width: 0; }
legend {
  width: 100%;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.field-grid { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.field-full { grid-column: 1 / -1; }

.field label, .field .label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.optional { font-weight: 400; color: var(--muted); }
.hint { display: block; margin: -0.15rem 0 0.5rem; font-size: 0.85rem; color: var(--muted); }

.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:hover { border-color: #aab1bc; }
.input:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 3px rgba(50, 145, 206, 0.25); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.55; }
select.input {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5d66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 18px;
}
.field.has-error .input { border-color: var(--error); }
.field.has-error .input:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.2); }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error);
}
.field-error[hidden] { display: none; }
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; }

.choice-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-strong); }
.choice:has(input:checked) { border-color: var(--brand-strong); background: var(--brand-tint); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.925rem; line-height: 1.55; }
.consent input { width: 20px; height: 20px; margin: 0.15rem 0 0; flex: none; accent-color: var(--brand-strong); }

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--brand-strong); background: var(--brand-tint); }
.dropzone:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.dropzone .icon { color: var(--brand-strong); width: 28px; height: 28px; }
.dropzone-title { font-weight: 600; color: var(--ink); }
.dropzone-title u { color: var(--brand-strong); text-decoration-thickness: 1px; }
.dropzone-hint { font-size: 0.85rem; color: var(--muted); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-list { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.file-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.file-list .icon { color: var(--brand); }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; }
.file-size { color: var(--muted); font-variant-numeric: tabular-nums; }
.file-remove {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 0; border-radius: var(--radius);
  background: none; color: var(--muted); cursor: pointer;
}
.file-remove:hover { background: var(--error-tint); color: var(--error); }
.file-remove .icon { width: 16px; height: 16px; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: grid; gap: 1rem; margin-top: 0.5rem; }
.form-footer .btn { justify-self: start; }
@media (max-width: 479px) { .form-footer .btn { justify-self: stretch; } }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress[hidden] { display: none; }
.progress-bar { width: 0; height: 100%; background: var(--brand-strong); transition: width 0.2s linear; }

.alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.55;
}
.alert[hidden] { display: none; }
.alert .icon { margin-top: 1px; }
.alert-error { background: var(--error-tint); color: #7a1a12; border: 1px solid #f5c2bd; }
.alert-error .icon { color: var(--error); }
.alert a { color: inherit; font-weight: 600; }
.alert ul { margin-top: 0.4rem; }
.alert ul li { list-style: disc; margin-left: 1.1rem; }

.success-panel { text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 4rem) 1rem; }
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--success-tint);
  color: var(--success);
}
.success-icon .icon { width: 30px; height: 30px; }
.success-panel p { max-width: 34em; margin-inline: auto; color: var(--muted); }
.success-panel .btn-row { justify-content: center; }

/* ---------- Legal / long text ---------- */

.legal { max-width: 46em; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal h2:first-child { margin-top: 0; }
.credits-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.credits-list strong { color: var(--ink); }

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

.site-footer {
  position: relative;
  background: #141418;
  color: var(--dark-text);
  font-size: 0.95rem;
  line-height: 1.6;
}
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); }
.site-footer a { color: var(--dark-text); text-decoration: none; transition: color 0.15s var(--ease); }
.site-footer a:hover { color: #fff; }

/* Tier 1: brand and primary actions */
.footer-top {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.75rem, 2.25rem + 2vw, 3.75rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr auto; gap: 4rem; } }
.footer-brand { display: grid; gap: 1.1rem; max-width: 34rem; }
.footer-brand .brand-logo { height: 60px; }
.footer-brand p { margin: 0; color: #a9acb5; }
.footer-top-actions { display: grid; gap: 1rem; justify-items: start; }
@media (min-width: 900px) { .footer-top-actions { justify-items: end; } }
.footer-credential { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; color: #fff; }
.footer-credential .icon { color: var(--brand); }
.footer-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: #fff; }

/* Tier 2: four aligned columns */
.footer-grid {
  display: grid;
  gap: 2.5rem 2rem;
  padding-block: clamp(2.75rem, 2.25rem + 2vw, 3.75rem);
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; } }

.footer-heading {
  position: relative;
  margin: 0 0 1.5rem;
  padding-bottom: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--brand); }

.footer-links { display: grid; gap: 0.7rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-links a::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid var(--brand); border-right: 1.5px solid var(--brand); transform: rotate(45deg); flex: none; transition: transform 0.15s var(--ease); }
.footer-links a:hover::before { transform: translateX(2px) rotate(45deg); }

.footer-contact { display: grid; gap: 1.1rem; }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 0.85rem; align-items: start; }
.footer-contact .icon { color: var(--brand); margin-top: 3px; }
.footer-contact small { display: block; margin-bottom: 0.1rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8b8e98; }
.footer-contact a, .footer-contact span { color: #e4e6ea; font-weight: 500; overflow-wrap: anywhere; }
.footer-social { display: flex; gap: 1rem; }

/* Tier 3: legal bar */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.4rem calc(1.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #8b8e98;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; }
.footer-bottom a { color: #8b8e98; }
.footer-top-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-top-link .icon { transform: rotate(-90deg); width: 14px; height: 14px; }
@media (max-width: 599px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }

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

.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--whatsapp-float);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), visibility 0.2s;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }
@media (max-width: 767px) {
  .wa-float { width: 50px; height: 50px; }
}

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .service-card:hover, .project-card:hover { transform: none; }
}

@media print {
  .site-header, .wa-float, .cta-band, .site-footer { display: none; }
}

/* ---------- Fixes for list styles inside prose ---------- */
.prose .pillars li, .prose .tag-list li, .prose .check-list li { padding-left: 0; margin-bottom: 0; }
.prose .pillars li::before, .prose .tag-list li::before, .prose .check-list li::before { display: none; }
.split-media-image .figure img { aspect-ratio: 1 / 1; }
@media (min-width: 960px) { .split-media-image .figure img { aspect-ratio: 5 / 6; } }
.gallery-single { grid-template-columns: 1fr !important; }
.gallery-single .figure img { aspect-ratio: auto; max-height: 85vh; }
.service-row > a img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.card-link-plain { color: inherit; text-decoration: none; }
.card-link-plain:hover { color: var(--brand-strong); }
.field fieldset { margin: 0; }
.field legend.label {
  margin-bottom: 0.5rem;
  padding: 0;
  border: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}
legend .optional { text-transform: none; letter-spacing: normal; font-weight: 400; }
.field label.choice { display: inline-flex; margin: 0; font-weight: 500; }
.field label.consent { display: flex; margin: 0; font-weight: 400; font-size: 0.925rem; color: var(--text); }
.hero-bg picture, .page-hero-media picture { height: 100%; }

/* Breadcrumb (used in page heroes) */
.breadcrumb { margin-bottom: 1.5rem; font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumb li + li::before { content: "/"; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { font-weight: 500; }

.hero-chip { top: 1.25rem; bottom: auto; }

/* ==========================================================================
   Home page – corporate layout
   ========================================================================== */

.section-index {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.section-index span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 0.4rem;
  border-radius: 4px;
  background: var(--brand-strong);
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.section-index-light { color: #8cc5ea; }
.section-index-light span { background: var(--brand); }
.text-link-light { color: #8cc5ea; }
.text-link-light:hover { color: #fff; }

.home-section-head {
  display: grid;
  gap: 1rem 4rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}
@media (min-width: 900px) { .home-section-head { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.home-section-head h2 { margin: 0; max-width: 16em; }
.home-section-head p { color: var(--muted); max-width: 34em; margin-bottom: 0.75rem; }
.section-dark .home-section-head p { color: var(--dark-text); }

/* ---------- Hero (brand blue) ---------- */

:root {
  --hero-blue-1: #0b2f4c;
  --hero-blue-2: #11497a;
  --hero-blue-3: #1a68a1;
  --hero-gradient: linear-gradient(125deg, var(--hero-blue-1) 0%, var(--hero-blue-2) 52%, var(--hero-blue-3) 100%);
  --hero-text: #d8e8f4;
  --hero-accent: #9fd2f2;
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(560px, calc(100vh - 112px), 820px);
  background: var(--hero-blue-1);
  color: #fff;
  overflow: hidden;
}
.home-hero-bg { position: absolute; inset: 0; z-index: -2; }
.home-hero-bg picture { height: 100%; }
.home-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 38%; }
/* Brand-blue scrim: strong behind the text, clear over the building */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 38, 64, 0.92) 0%, rgba(11, 52, 88, 0.82) 30%, rgba(17, 73, 122, 0.45) 58%, rgba(17, 73, 122, 0.08) 82%),
    linear-gradient(0deg, rgba(8, 38, 64, 0.65) 0%, rgba(8, 38, 64, 0) 32%);
}
.home-hero::after { content: none; }

.home-hero-body { padding-block: clamp(4rem, 3rem + 5vw, 7rem) clamp(5rem, 4rem + 4vw, 7.5rem); }
.home-hero-copy { max-width: 640px; }
.home-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 12em;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 24px rgba(4, 22, 38, 0.45);
}
.home-hero .lead {
  color: #f1f7fc;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  max-width: 32em;
  text-shadow: 0 1px 12px rgba(4, 22, 38, 0.5);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.btn-pill { min-height: 50px; padding: 0.8rem 1.5rem; border-radius: 999px; font-size: 0.975rem; }
.btn-pill-light { background: #fff; color: var(--brand-deep); box-shadow: 0 10px 24px -12px rgba(4, 22, 38, 0.7); }
.btn-pill-light:hover { background: var(--brand-tint); color: var(--brand-deep); }
.btn-pill-glass { background: rgba(8, 38, 64, 0.55); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-pill-glass:hover { background: rgba(8, 38, 64, 0.8); border-color: #fff; color: #fff; }
@supports (backdrop-filter: blur(6px)) { .btn-pill-glass { backdrop-filter: blur(6px); } }

.hero-trust {
  position: absolute;
  left: 0; right: 0; bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(4, 22, 38, 0.6);
}
.hero-trust .icon { color: var(--hero-accent); }
.home-hero-chip { position: absolute; right: var(--gutter); top: 1.25rem; }

@media (max-width: 767px) {
  .home-hero { min-height: 0; }
  .home-hero::before { background: linear-gradient(180deg, rgba(8, 38, 64, 0.88) 0%, rgba(11, 52, 88, 0.8) 60%, rgba(8, 38, 64, 0.9) 100%); }
  .home-hero-bg img { object-position: 70% 50%; }
  .hero-actions .btn-pill { flex: 1 1 100%; }
  .home-hero-chip { display: none; }
  .hero-trust { position: static; justify-content: flex-start; padding: 0 var(--gutter) 2rem; }
  .home-hero-body { padding-bottom: 2rem; }
}

/* Sliding service names under the headline */
.hero-rotator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: -0.25rem 0 1.5rem;
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}
.hero-rotator-label { color: #cfe1ee; font-weight: 500; text-shadow: 0 1px 10px rgba(4, 22, 38, 0.5); }
.hero-rotator-window {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  padding: 0.15em 0.7em;
  border-radius: 8px;
  background: rgba(8, 38, 64, 0.55);
  border-left: 3px solid var(--hero-accent);
}
@supports (backdrop-filter: blur(6px)) { .hero-rotator-window { backdrop-filter: blur(6px); } }
.hero-rotator-item {
  grid-area: 1 / 1;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
}
.hero-rotator-item.is-active { opacity: 1; transform: translateY(0); }
.hero-rotator-item.is-leaving { opacity: 0; transform: translateY(-100%); }
.hero-rotator-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(8, 38, 64, 0.45);
  color: #fff;
  cursor: pointer;
}
.hero-rotator-toggle[hidden] { display: none; }
.hero-rotator-toggle:hover { background: rgba(8, 38, 64, 0.8); border-color: #fff; }
.hero-rotator-toggle .icon { width: 14px; height: 14px; }
.hero-rotator-toggle .icon-play, .hero-rotator-toggle[aria-pressed="true"] .icon-pause { display: none; }
.hero-rotator-toggle[aria-pressed="true"] .icon-play { display: block; }
@media (max-width: 479px) { .hero-rotator-item { white-space: normal; } }

/* Hero text slides up into place on load */
@keyframes hero-slide-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.home-hero-copy > *, .hero-trust { animation: hero-slide-up 0.8s var(--ease) both; }
.home-hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.home-hero-copy > :nth-child(2) { animation-delay: 0.2s; }
.home-hero-copy > :nth-child(3) { animation-delay: 0.32s; }
.home-hero-copy > :nth-child(4) { animation-delay: 0.44s; }
.hero-trust { animation-delay: 0.6s; }
@media (prefers-reduced-motion: reduce) {
  .home-hero-copy > *, .hero-trust { animation: none; }
  .hero-rotator-item { transition: none; }
}

/* Buttons on blue: white primary so it stands out */
.home-hero .btn-primary, .page-hero .btn-primary { background: #fff; color: var(--brand-deep); }
.home-hero .btn-primary:hover, .page-hero .btn-primary:hover { background: var(--brand-tint); color: var(--brand-deep); }
.home-hero .btn-ghost, .page-hero .btn-ghost { border-color: rgba(255, 255, 255, 0.5); }

/* ---------- Trust band ---------- */

.trust-band { background: #fff; border-bottom: 1px solid var(--line); }
.trust-list { display: grid; }
@media (min-width: 640px) { .trust-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }
.trust-list li { display: flex; gap: 0.85rem; align-items: center; padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) {
  .trust-list li { border-bottom: 0; border-left: 1px solid var(--line); }
  .trust-list li:first-child { border-left: 0; padding-left: 0; }
}
.trust-list .icon { width: 30px; height: 30px; color: var(--brand-strong); flex: none; }
.trust-list strong { display: block; color: var(--ink); font-weight: 650; font-size: 0.975rem; }
.trust-list span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Intro with collage ---------- */

.home-intro-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) { .home-intro-grid { grid-template-columns: 1fr 1.05fr; gap: 5rem; } }
.home-intro-media { position: relative; padding: 0 18% 3.5rem 0; }
.home-intro-media figure { margin: 0; }
.home-intro-media img { width: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.collage-main img { aspect-ratio: 4 / 5; }
.collage-inset { position: absolute; right: 0; bottom: 1.5rem; width: 46%; }
.collage-inset img { aspect-ratio: 3 / 4; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.collage-badge {
  position: absolute;
  left: -0.75rem; top: 2rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(23, 89, 134, 0.7);
}
.collage-badge .icon { width: 30px; height: 30px; }
.collage-badge strong { display: block; font-size: 1rem; }
.collage-badge span { font-size: 0.8rem; color: #d6e9f6; }
.collage-caption { position: absolute; left: 0; bottom: 0; margin: 0; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 520px) { .collage-badge { left: 0.5rem; top: 0.75rem; padding: 0.7rem 0.9rem; } }

.intro-pillars { display: grid; gap: 1.25rem 2rem; margin: 2rem 0 0.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .intro-pillars { grid-template-columns: 1fr 1fr; } }
.intro-pillars li { display: flex; gap: 0.9rem; font-size: 0.925rem; color: var(--muted); line-height: 1.5; }
.intro-pillars li > span { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand-strong); }
.intro-pillars strong { display: block; margin-bottom: 0.1rem; color: var(--ink); font-size: 0.975rem; font-weight: 600; }

/* ---------- Service tiles ---------- */

.service-tiles { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .service-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .service-tiles { grid-template-columns: repeat(3, 1fr); } }
.service-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.service-tile picture { position: absolute; inset: 0; z-index: -2; }
.service-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 19, 24, 0.05) 0%, rgba(17, 19, 24, 0.55) 45%, rgba(17, 19, 24, 0.94) 100%);
  transition: background-color 0.3s var(--ease);
}
.service-tile:hover img { transform: scale(1.05); }
.service-tile:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.service-tile-body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding: 1.75rem; }
.service-tile-num { position: absolute; top: 1.25rem; right: 1.5rem; font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.service-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: var(--radius); background: var(--brand-strong); color: #fff; }
.service-tile h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.5rem; }
.service-tile p { margin: 0 0 1.1rem; font-size: 0.95rem; line-height: 1.55; color: #d4d6dc; }
.service-tile-more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; color: #8cc5ea; }
.service-tile-more .icon { transition: transform 0.2s var(--ease); }
.service-tile:hover .service-tile-more .icon, .showcase-item:hover .service-tile-more .icon { transform: translateX(4px); }

/* ---------- Water heating split ---------- */

.home-heating { display: grid; background: #fff; }
@media (min-width: 960px) { .home-heating { grid-template-columns: 1fr 1fr; min-height: 640px; } }
.home-heating-media { position: relative; min-height: 340px; }
.home-heating-media > picture { position: absolute; inset: 0; }
.home-heating-media > picture img { width: 100%; height: 100%; object-fit: cover; }
.home-heating-media > .media-chip { position: absolute; left: 1rem; top: 1rem; }
.heating-inset { position: absolute; right: 1.5rem; bottom: 1.5rem; width: clamp(140px, 32%, 230px); margin: 0; }
.heating-inset img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 5px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.heating-inset figcaption { position: absolute; left: 5px; right: 5px; bottom: 5px; padding: 0.35rem 0.6rem; background: rgba(17, 19, 24, 0.75); color: #fff; font-size: 0.8rem; font-weight: 600; border-radius: 0 0 4px 4px; }
.home-heating-copy { padding: clamp(3rem, 2rem + 4vw, 6rem) var(--gutter); max-width: 680px; }
@media (min-width: 960px) { .home-heating-copy { padding-left: clamp(3rem, 2rem + 3vw, 5rem); align-self: center; } }
.home-heating-copy > p { color: var(--muted); }
.heating-options { display: grid; gap: 1rem; margin: 2rem 0 0.5rem; }
@media (min-width: 560px) { .heating-options { grid-template-columns: 1fr 1fr; } }
.heating-option { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg); border-top: 3px solid var(--brand); }
.heating-option h3 { margin: 0.9rem 0 0.35rem; font-size: 1.0625rem; }
.heating-option p { margin: 0; font-size: 0.925rem; color: var(--muted); line-height: 1.5; }

/* ---------- Project showcase ---------- */

.project-showcase { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .project-showcase { grid-template-columns: 1fr 1fr; } }
.showcase-item {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 40vw, 580px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.showcase-item picture { position: absolute; inset: 0; z-index: -2; }
.showcase-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.6s var(--ease); }
.showcase-item:hover img { transform: scale(1.04); }
.showcase-item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 19, 24, 0) 35%, rgba(17, 19, 24, 0.92) 100%); }
.showcase-item:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.showcase-body { width: 100%; padding: 1.75rem; }
.showcase-body .status-chip { position: static; display: inline-block; margin-bottom: 0.9rem; }
.showcase-body h3 { color: #fff; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); margin-bottom: 1rem; }
.showcase-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0 0 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.showcase-facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #a9acb5; }
.showcase-facts dd { margin: 0.1rem 0 0; color: #fff; font-weight: 550; }

/* ---------- Materials ---------- */

.home-materials { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .home-materials { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; } }
.home-materials-media .figure img { aspect-ratio: 4 / 5; }
.home-materials > div > p:not(.section-index):not(.lead) { color: var(--muted); }
.materials-grid { display: grid; gap: 0.75rem; margin: 1.75rem 0 2rem; }
@media (min-width: 520px) { .materials-grid { grid-template-columns: 1fr 1fr; } }
.materials-grid li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--ink);
}
.materials-grid .icon { color: var(--brand-strong); }

/* ---------- Why Martsel ---------- */

.home-why { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) {
  .home-why { grid-template-columns: 0.8fr 1.4fr; gap: 4.5rem; align-items: start; }
  .home-why-head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.home-why-head p:not(.section-index) { color: var(--muted); margin-bottom: 1.75rem; }
.why-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-grid li {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.why-grid li:hover { border-color: var(--brand-tint-2); box-shadow: var(--shadow); }
.why-grid .icon { width: 32px; height: 32px; color: var(--brand-strong); }
.why-num { position: absolute; top: 1.4rem; right: 1.5rem; font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; color: var(--brand-tint-2); line-height: 1; }
.why-grid h3 { margin: 1.1rem 0 0.4rem; font-size: 1.0625rem; }
.why-grid p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- Timeline ---------- */

.timeline { position: relative; display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .timeline::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: linear-gradient(90deg, var(--brand) 0%, var(--brand-tint-2) 100%); }
}
@media (max-width: 899px) {
  .timeline { padding-left: 0.25rem; }
  .timeline::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 23px; width: 2px; background: var(--brand-tint-2); }
  .timeline li { padding-left: 4.25rem; }
  .timeline-dot { position: absolute; left: 0; }
}
.timeline li { position: relative; }
.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--brand-strong);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px #fff;
}
.timeline-icon { display: block; color: var(--brand-strong); margin-bottom: 0.6rem; }
.timeline h3 { font-size: 1.0625rem; margin-bottom: 0.35rem; }
.timeline p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- Closing CTA ---------- */

.home-cta { position: relative; isolation: isolate; padding-block: clamp(4.5rem, 3.5rem + 5vw, 8rem); color: #fff; overflow: hidden; background: var(--dark); }
.home-cta-bg { position: absolute; inset: 0; z-index: -2; }
.home-cta-bg picture { height: 100%; }
.home-cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.home-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(23, 89, 134, 0.95) 0%, rgba(17, 19, 24, 0.9) 60%, rgba(17, 19, 24, 0.82) 100%); }
.home-cta-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .home-cta-inner { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
.home-cta h2 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); max-width: 14em; }
.home-cta-copy p { color: #dce6ee; max-width: 34em; font-size: 1.0625rem; }
.home-cta-cards { display: grid; gap: 0.75rem; }
.home-cta-cards a, .home-cta-cards div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.home-cta-cards a:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.home-cta-cards .icon { color: #8cc5ea; flex: none; }
.home-cta-cards small { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #a9c7dc; }

@media (prefers-reduced-motion: reduce) {
  .service-tile:hover img, .showcase-item:hover img { transform: none; }
}

/* Image tiles: explicit stacking (photo → gradient → content) without negative z-index */
.service-tile, .showcase-item { isolation: auto; }
.service-tile picture, .showcase-item picture { z-index: 0; }
.service-tile::before, .showcase-item::before { z-index: 1; }
.service-tile-body, .showcase-body { position: relative; z-index: 2; }
.showcase-body { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.showcase-body .status-chip { align-self: flex-start; }
.showcase-item::before { background: linear-gradient(180deg, rgba(17, 19, 24, 0) 25%, rgba(17, 19, 24, 0.55) 55%, rgba(17, 19, 24, 0.95) 100%); }
.footer-links a { align-items: flex-start; }
.footer-links a::before { margin-top: 0.62em; }
@media (max-width: 479px) {
  .hero-rotator-label { flex-basis: 100%; }
  .hero-rotator-window { flex: 1 1 0; min-width: 0; }
}

/* ==========================================================================
   404 page
   ========================================================================== */

.error-hero {
  position: relative;
  isolation: isolate;
  background: var(--hero-gradient);
  color: #fff;
  overflow: hidden;
}
.error-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 70%);
  mask-image: linear-gradient(100deg, transparent 15%, #000 70%);
}
.error-hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  min-height: clamp(460px, 62vh, 620px);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}
@media (min-width: 960px) { .error-hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.error-copy h1 { color: #fff; font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); line-height: 1.08; max-width: 13em; }
.error-copy .lead { color: var(--hero-text); max-width: 32em; }

.error-art { display: flex; justify-content: center; }
.error-svg { width: 100%; max-width: 480px; height: auto; overflow: visible; }
.error-digit { font-family: var(--font); font-size: 190px; font-weight: 700; letter-spacing: -0.04em; fill: #fff; }
.error-pipe { fill: none; stroke: var(--hero-accent); stroke-width: 14; stroke-linecap: butt; opacity: 0.9; }
.error-pipe-inner { stroke: var(--hero-blue-2); stroke-width: 6; opacity: 1; }
.error-flange { fill: var(--hero-accent); }
.error-drop { fill: var(--hero-accent); animation: error-drip 2.4s ease-in infinite; transform-origin: 334px 238px; }
.error-wheel-rim { fill: none; stroke: #fff; stroke-width: 14; }
.error-wheel-hub { fill: var(--hero-accent); }
.error-wheel-spokes { stroke: #fff; stroke-width: 8; stroke-linecap: round; }
.error-wheel { animation: error-turn 12s linear infinite; }
@keyframes error-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes error-drip {
  0%, 40% { opacity: 0; transform: translateY(-6px) scale(0.6); }
  55% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(22px) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .error-wheel, .error-drop { animation: none; }
  .error-drop { opacity: 1; }
}
@media (max-width: 959px) { .error-art { order: -1; } .error-svg { max-width: 340px; } }

.error-links { display: grid; gap: 1rem; }
@media (min-width: 640px) { .error-links { grid-template-columns: 1fr 1fr; } }
.error-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.error-links a:hover { border-color: var(--brand-tint-2); box-shadow: var(--shadow); color: var(--muted); }
.error-links strong { display: block; margin-bottom: 0.15rem; color: var(--ink); font-size: 1rem; font-weight: 600; }
.error-links a > span:nth-child(2) { flex: 1; min-width: 0; }
.error-link-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand-strong); }
.error-link-arrow { color: var(--brand-strong); transition: transform 0.2s var(--ease); }
.error-links a:hover .error-link-arrow { transform: translateX(3px); }

.error-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding: 1.4rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
}
.error-contact p { margin: 0; color: var(--ink); }
.error-contact ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.error-contact a { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--brand-deep); text-decoration: none; }
.error-contact a:hover { text-decoration: underline; }
.error-contact .icon { color: var(--brand-strong); }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-accent);
}
.hero-kicker span { width: 28px; height: 2px; background: var(--hero-accent); }
