/* ============================================================
   VSEM NETWORK LLC — corporate site
   Palette: #003A26 · #F8F1EA · #FFFFFF
   Type: Montserrat
   ============================================================ */

:root {
  --green: #003a26;
  --green-deep: #002418;
  --green-mid: #0b5a3c;
  --green-soft: #e3ece7;
  --cream: #f8f1ea;
  --cream-deep: #efe4d8;
  --white: #ffffff;

  --ink: #003a26;
  --ink-soft: rgba(0, 58, 38, 0.68);
  --ink-faint: rgba(0, 58, 38, 0.14);
  --on-dark: #f8f1ea;
  --on-dark-soft: rgba(248, 241, 234, 0.72);
  --on-dark-faint: rgba(248, 241, 234, 0.18);

  --shell: 1240px;
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(0, 58, 38, 0.05), 0 8px 24px rgba(0, 58, 38, 0.05);
  --shadow-lg: 0 2px 4px rgba(0, 58, 38, 0.04), 0 24px 60px rgba(0, 58, 38, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.1vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.9rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.35rem); }
h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* Grid and flex children must be allowed to shrink below their min-content
   width, otherwise wide children (e.g. the SLA table) stretch the page. */
.hero-grid > *,
.cards > *,
.infra-split > *,
.company-grid > *,
.company-left > *,
.steps > *,
.stats > *,
.footer-top > *,
.contact-card form > * { min-width: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ---------- shared bits ---------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head .section-lead {
  margin-top: 20px;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 68ch;
}
.section-head--light .eyebrow { color: var(--on-dark-soft); }
.section-head--light h2 { color: var(--on-dark); }
.section-head--light .section-lead { color: var(--on-dark-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary {
  background: var(--green);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: rgba(0, 58, 38, 0.24);
}
.btn-ghost:hover { border-color: var(--green); background: rgba(0, 58, 38, 0.04); transform: translateY(-2px); }
.btn-block { width: 100%; }

.screen { padding: clamp(72px, 9vw, 130px) 0; position: relative; }

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 241, 234, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--ink-faint);
  background: rgba(248, 241, 234, 0.96);
  box-shadow: 0 10px 30px rgba(0, 58, 38, 0.05);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { color: var(--green); display: block; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.15;
}
.brand-text strong { font-weight: 800; }
.brand-text em {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
}
.site-nav a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 8px 0;
  position: relative;
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1.5px;
  background: var(--green);
  transition: width 0.3s var(--ease);
}
.site-nav a:hover { color: var(--green); }
.site-nav a:hover::after { width: 100%; }
.site-nav a.is-active { color: var(--green); font-weight: 700; }
.site-nav a.is-active::after { width: 100%; }

.site-nav .nav-cta {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-weight: 700;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--green-mid); color: var(--cream); }

.header-tools { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 58, 38, 0.07);
}
.lang-btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-btn:hover { color: var(--green); }
.lang-btn.is-active { background: var(--green); color: var(--cream); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink-faint);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   1 · HERO
   ============================================================ */

.hero {
  background:
    radial-gradient(900px 460px at 88% -10%, rgba(0, 58, 38, 0.07), transparent 65%),
    var(--cream);
  padding-top: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(32px, 4vw, 68px);
  align-items: start;
}
.hero-copy .lead {
  margin-top: 24px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(40px, 5vw, 60px) 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--ink-faint);
}
.hero-kpis dt {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-kpis dd {
  margin: 10px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
}

.hero-panel {
  background: var(--white);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-faint);
}
.panel-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9e6b;
  box-shadow: 0 0 0 4px rgba(47, 158, 107, 0.16);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 158, 107, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(47, 158, 107, 0.04); }
}

.panel-rows { margin: 4px 0 22px; }
.panel-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0, 58, 38, 0.07);
  font-size: 0.85rem;
  font-weight: 600;
}
.panel-rows li span { color: var(--ink-soft); }
.panel-rows li b {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.panel-meter { background: var(--cream); border-radius: var(--radius-sm); padding: 18px; }
.meter-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.meter-top b { font-size: 1.05rem; letter-spacing: -0.01em; color: var(--green); text-transform: none; }
.meter-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 58, 38, 0.12);
  margin: 12px 0 12px;
  overflow: hidden;
}
.meter-track i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.panel-meter p { font-size: 0.74rem; line-height: 1.5; color: var(--ink-soft); font-weight: 500; }

.panel-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.panel-badges span {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--ink-faint);
  padding: 7px 12px;
  border-radius: 999px;
}

/* ============================================================
   2 · SERVICES
   ============================================================ */

.services { background: var(--white); }

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 1.6vw, 22px);
}
.card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 34px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(0, 58, 38, 0.22); }
.card-index {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.card h3 { margin-bottom: 14px; }
.card > p { font-size: 0.92rem; color: var(--ink-soft); }

.card-facts {
  margin-top: auto;
  padding-top: 26px;
  display: grid;
  gap: 12px;
}
.card-facts li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 58, 38, 0.1);
  font-size: 0.78rem;
}
.card-facts li b {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 92px;
  white-space: nowrap;
}
.card-facts li span { color: var(--ink-soft); font-weight: 600; }

.card-dark {
  grid-column: span 3;
  background: var(--green);
  border-color: var(--green);
  color: var(--on-dark);
}
.card-dark .card-index { color: var(--on-dark-soft); }
.card-dark > p { color: var(--on-dark-soft); }
.card-dark .card-facts li { border-top-color: var(--on-dark-faint); }
.card-dark .card-facts li span { color: var(--on-dark-soft); }
.card-dark:hover { border-color: var(--green-mid); }

.card-wide { grid-column: span 3; }

.card-cream {
  background: var(--cream);
  border-color: var(--cream-deep);
}

/* ============================================================
   3 · INFRASTRUCTURE
   ============================================================ */

.infra {
  background:
    radial-gradient(800px 400px at 12% 0%, rgba(248, 241, 234, 0.09), transparent 60%),
    var(--green);
  color: var(--on-dark);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--on-dark-faint);
  border: 1px solid var(--on-dark-faint);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.stat {
  background: var(--green);
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.35s var(--ease);
}
.stat:hover { background: #004a31; }
.stat b {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: break-word;
}
.stat span { font-size: 0.8rem; font-weight: 600; color: var(--on-dark-soft); line-height: 1.45; }

.infra-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(16px, 1.6vw, 22px);
}
.sla, .regions {
  border: 1px solid var(--on-dark-faint);
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 34px);
}
.sla {
  background: rgba(248, 241, 234, 0.04);
  display: flex;
  flex-direction: column;
}
.sla h3, .regions h3 { color: var(--on-dark); margin-bottom: 22px; }

.table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sla table { width: 100%; border-collapse: collapse; }
.sla th {
  text-align: left;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  padding: 0 10px 12px 0;
  border-bottom: 1px solid var(--on-dark-faint);
}
.sla td {
  padding: 16px 10px 16px 0;
  font-size: 0.88rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(248, 241, 234, 0.09);
  line-height: 1.4;
}
.sla tbody tr:last-child td { border-bottom: 0; }
.sla td:first-child { font-weight: 800; }
.sla td:last-child { white-space: nowrap; }
.sla td:not(:first-child) { color: var(--on-dark-soft); font-weight: 600; }
.sla-note {
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.76rem;
  color: var(--on-dark-soft);
  line-height: 1.5;
}

.regions { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.regions h3 { color: var(--ink); }
.regions ul { display: grid; gap: 18px; }
.regions li { display: grid; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--ink-faint); }
.regions li:last-child { border-bottom: 0; padding-bottom: 0; }
.regions li b { font-size: 0.92rem; font-weight: 800; }
.regions li span { font-size: 0.83rem; color: var(--ink-soft); font-weight: 500; line-height: 1.5; }
.regions-foot {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.45;
}

/* ============================================================
   4 · PROCESS
   ============================================================ */

.process { background: var(--cream); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-faint);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  overflow: hidden;
}
.steps li {
  background: var(--white);
  padding: clamp(24px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 0.35s var(--ease);
}
.steps li:hover { background: #fffdfa; }
.step-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--green);
  opacity: 0.5;
}
.steps li p { font-size: 0.86rem; color: var(--ink-soft); }
.step-time {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.industries {
  margin-top: clamp(28px, 3vw, 44px);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(24px, 2.6vw, 36px);
}
.industries h3 { margin-bottom: 22px; }
.industries ul { display: flex; flex-wrap: wrap; gap: 10px; }
.industries li {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.industries li:hover { background: var(--green); color: var(--cream); border-color: var(--green); }

/* ============================================================
   5 · COMPANY + CONTACT
   ============================================================ */

.company {
  background:
    radial-gradient(760px 420px at 90% 100%, rgba(248, 241, 234, 0.08), transparent 60%),
    var(--green);
  color: var(--on-dark);
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(16px, 1.8vw, 26px);
  align-items: start;
}

.company-left { display: grid; gap: clamp(16px, 1.8vw, 22px); align-content: start; }

.company-direct {
  border: 1px solid var(--on-dark-faint);
  border-radius: var(--radius);
  padding: clamp(22px, 2.2vw, 30px);
  background: rgba(248, 241, 234, 0.04);
}
.direct-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.direct-mail {
  display: inline-block;
  margin-top: 10px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--on-dark-faint);
  padding-bottom: 3px;
  transition: border-color 0.25s var(--ease);
}
.direct-mail:hover { border-bottom-color: var(--on-dark); }
.direct-note {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--on-dark-soft);
  max-width: 46ch;
}

.company-facts {
  display: grid;
  gap: 1px;
  background: var(--on-dark-faint);
  border: 1px solid var(--on-dark-faint);
  border-radius: var(--radius);
  overflow: hidden;
}
.company-facts > div {
  background: var(--green);
  padding: 20px clamp(20px, 2.2vw, 30px);
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr);
  gap: 8px 20px;
  align-items: baseline;
}
.company-facts b {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.company-facts span { font-size: 0.88rem; font-weight: 700; }

.contact-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 38px);
  box-shadow: var(--shadow-lg);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.contact-card > p { margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); }
.contact-card form {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23003A26' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b4432f; background: #fdf3f1; }

.field-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 2px;
}
.field-consent input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid rgba(0, 58, 38, 0.3);
  border-radius: 6px;
  background: var(--cream);
  cursor: pointer;
  flex: none;
  padding: 0;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.field-consent input:checked {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='%23F8F1EA' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 10px no-repeat;
  border-color: var(--green);
}
.field-consent input[aria-invalid="true"] { border-color: #b4432f; background-color: #fdf3f1; }
.field-consent label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.field-consent label a { color: var(--green); font-weight: 700; border-bottom: 1px solid var(--ink-faint); }
.field-consent label a:hover { border-bottom-color: var(--green); }

.contact-card .btn { grid-column: 1 / -1; margin-top: 4px; }
.form-note {
  grid-column: 1 / -1;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 500;
}
.form-note.is-success { color: var(--green); font-weight: 700; }
.form-note.is-error { color: #b4432f; font-weight: 700; }

/* ============================================================
   LEGAL PAGE (privacy policy)
   ============================================================ */

.legal { background: var(--white); }

.legal-head {
  background:
    radial-gradient(760px 420px at 88% -20%, rgba(0, 58, 38, 0.07), transparent 65%),
    var(--cream);
  padding: clamp(48px, 6vw, 92px) 0 clamp(40px, 4vw, 64px);
  border-bottom: 1px solid var(--ink-faint);
}
.legal-head h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 22ch; }
.legal-head .lead {
  margin-top: 22px;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 68ch;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--ink-faint);
}
.legal-meta > div { min-width: 0; }
.legal-meta dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.legal-meta dd {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.legal-meta dd a { border-bottom: 1px solid var(--ink-faint); }
.legal-meta dd a:hover { border-bottom-color: var(--green); }

.legal-body {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  padding-top: clamp(44px, 5vw, 72px);
  padding-bottom: clamp(56px, 7vw, 104px);
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--cream);
}
.legal-toc .toc-title {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--ink-faint);
}
.legal-toc nav { display: grid; }
.legal-toc a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 0;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.legal-toc a:hover { color: var(--green); transform: translateX(3px); }

.legal-article { max-width: 76ch; }
.legal-article section { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-article section + section {
  margin-top: clamp(32px, 3.4vw, 46px);
  padding-top: clamp(32px, 3.4vw, 46px);
  border-top: 1px solid var(--ink-faint);
}
.legal-article h2 {
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  margin-bottom: 16px;
}
.legal-article p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal-article p + p { margin-top: 14px; }
.legal-article ul { margin: 18px 0 0; display: grid; gap: 12px; }
.legal-article li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal-article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--green);
  opacity: 0.4;
}
.legal-article li b { color: var(--ink); font-weight: 800; }
.legal-article ul + p { margin-top: 18px; }

.legal-back { margin-top: 26px; }
.legal-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 3px;
}
.legal-back a::before { content: "←"; }
.legal-back a:hover { border-bottom-color: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--green-deep);
  color: var(--on-dark);
  padding: clamp(52px, 6vw, 84px) 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.75fr)) minmax(0, 1.55fr);
  gap: clamp(28px, 3vw, 48px);
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--on-dark-faint);
}
.footer-brand .brand-mark svg { width: 34px; height: 34px; }
.footer-name {
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.footer-claim {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--on-dark-soft);
  max-width: 38ch;
  line-height: 1.6;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: var(--on-dark); margin-bottom: 6px; }
.footer-col a {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--on-dark-soft);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: var(--on-dark); transform: translateX(3px); }

.footer-legal .legal-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(248, 241, 234, 0.55);
  margin-top: 4px;
}
.footer-legal address {
  font-style: normal;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--on-dark);
}
.footer-contact { margin-top: 8px; }
.footer-contact a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark-faint);
  padding-bottom: 2px;
}
.footer-contact a:hover { border-bottom-color: var(--on-dark); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--on-dark-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card { grid-column: span 2; }
  .card-dark, .card-cream, .card-wide { grid-column: span 2; }
  .infra-split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; top: auto; }
  .legal-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .legal-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--ink-faint);
    padding: 8px clamp(20px, 5vw, 56px) 24px;
    box-shadow: 0 24px 40px rgba(0, 58, 38, 0.1);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .site-nav a {
    font-size: 1rem;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 58, 38, 0.08);
  }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta {
    margin-top: 18px;
    text-align: center;
    padding: 15px 22px;
    border-bottom: 0;
  }
  .burger { display: block; }
  .header-tools { margin-left: auto; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card form { grid-template-columns: 1fr; }
  .company-facts > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 620px) {
  :root { --radius: 16px; }
  .hero-kpis { grid-template-columns: 1fr; gap: 18px; }
  .hero-kpis > div {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }
  .hero-kpis dt { min-width: 96px; font-size: 1.5rem; }
  .hero-kpis dd { margin-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .card, .card-dark, .card-cream, .card-wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .legal-toc nav { grid-template-columns: 1fr; }
  .legal-meta { grid-template-columns: 1fr; gap: 16px; }
  .hero-actions .btn { width: 100%; }
  .sla table { min-width: 0; }
  .sla th, .sla td { font-size: 0.8rem; }
  .sla td:last-child { white-space: normal; }
}

@media (max-width: 440px) {
  .brand-text { font-size: 0.82rem; }
  .brand-text em { display: none; }
  .stats { grid-template-columns: 1fr; }
  .card-facts li { flex-direction: column; gap: 2px; }
  .card-facts li b { min-width: 0; }
  /* Platforms column repeats what the service cards already say. */
  .sla th:last-child, .sla td:last-child { display: none; }
}

@media print {
  .site-header, .hero-actions, .contact-card form { display: none; }
  body { background: #fff; color: #000; }
  .screen { padding: 24px 0; }
}
