/* ============================================================
   RabatConsulting S.A. — Design System v2
   Brand: graphite greys + logo orange (#E2902C / #E87722)
   Type: Space Grotesk (headings) · Inter (body)
   ============================================================ */

:root {
  /* Brand palette — grey + orange (per official logo) */
  --ink-950: #16181C;
  --ink-900: #1C1F24;
  --ink-800: #24282E;
  --ink-700: #2E333B;
  --steel: #8C9096;          /* logo grey */
  --orange-600: #C77A1B;
  --orange-500: #E2902C;     /* logo orange */
  --orange-450: #E87722;     /* vivid accent for glows/gradients */
  --orange-100: #FBEFDC;

  /* Neutrals */
  --white: #FFFFFF;
  --surface: #F6F6F7;
  --border: #E6E8EA;
  --text: #2A2E35;
  --text-muted: #5D646D;
  --text-light: #C9CDD3;

  /* Type scale */
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --fs-hero: clamp(2.25rem, 1.6rem + 3.2vw, 3.75rem);

  /* Layout */
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 3px rgba(22, 24, 28, 0.08);
  --shadow-md: 0 10px 32px rgba(22, 24, 28, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink-900);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

a {
  color: var(--ink-800);
  text-decoration: none;
  transition: color 180ms var(--ease);
}
a:hover { color: var(--orange-600); }

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

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

button { font: inherit; cursor: pointer; }

::selection { background: var(--orange-500); color: var(--ink-950); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--ink-900);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: top 200ms var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: 0.01em;
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 0.7rem 1.6rem;
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease), transform 200ms var(--ease),
              box-shadow 200ms var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--orange-500);
  color: var(--ink-950);
}
.btn-primary:hover {
  background: var(--orange-600);
  color: var(--ink-950);
  box-shadow: 0 8px 24px rgba(226, 144, 44, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  border-color: var(--orange-500);
  color: var(--orange-500);
  background: rgba(226, 144, 44, 0.08);
}

.btn-lg { padding: 0.85rem 2rem; font-size: var(--fs-md); }
.btn-sm { padding: 0.45rem 1.15rem; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }

/* Official logo (transparent PNG) */
.brand-logo { display: block; }
.brand-logo img {
  height: 58px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}
.nav-link {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-700);
  padding: 0.5rem 0.15rem;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2.5px;
  background: var(--orange-500);
  border-radius: 2px;
  transition: right 220ms var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { right: 0; }
.nav-link.active { color: var(--ink-900); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  min-height: 36px;
  border-radius: 8px;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.lang-btn.active {
  background: var(--ink-900);
  color: var(--white);
}
.lang-btn:not(.active):hover { color: var(--ink-900); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--ink-950) 0%, var(--ink-900) 55%, var(--ink-800) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 22, 26, 0.88) 0%, rgba(20, 22, 26, 0.62) 38%, rgba(20, 22, 26, 0.18) 70%, rgba(20, 22, 26, 0.38) 100%),
    linear-gradient(180deg, rgba(20, 22, 26, 0.35) 0%, rgba(20, 22, 26, 0) 35%, rgba(20, 22, 26, 0.55) 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange-500);
}

.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero h1 em {
  font-style: normal;
  color: var(--orange-500);
}

.hero-lede {
  font-size: var(--fs-md);
  color: var(--text-light);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), background-color 250ms var(--ease);
}
.hero-card:hover {
  transform: translateX(6px);
  border-color: rgba(226, 144, 44, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.hero-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(226, 144, 44, 0.16);
  color: var(--orange-500);
}
.hero-card-icon svg { width: 26px; height: 26px; }
.hero-card-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.15rem;
}
.hero-card-text {
  font-size: var(--fs-sm);
  color: var(--text-light);
  margin: 0;
}

.hero-strip {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 24, 28, 0.55);
}
.sectors-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
  padding-block: 1.4rem;
}
.strip-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.strip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.9rem;
}
.strip-list li {
  position: relative;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--white);
}
.strip-list li + li::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange-500);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 8vw, 7rem); }
.section-alt { background: var(--surface); }

.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange-500);
}
.section-lede {
  font-size: var(--fs-md);
  color: var(--text-muted);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  overflow: hidden;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-450));
  transition: right 350ms var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(226, 144, 44, 0.4);
}
.service-card:hover::before { right: 0; }

.service-num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--surface);
  -webkit-text-stroke: 1px var(--border);
  user-select: none;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--orange-100);
  color: var(--orange-600);
  margin-bottom: 1.4rem;
}
.service-icon svg { width: 30px; height: 30px; }

.service-card h3 { margin-bottom: 0.6rem; }
.service-card > p { color: var(--text-muted); }

.service-list {
  margin: 0.75rem 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}
.service-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.95rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--orange-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C77A1B' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat;
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--orange-600);
  min-height: 44px;
}
.service-link svg {
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--ease);
}
.service-link:hover svg { transform: translateX(4px); }

/* ---------- NetZero band ---------- */
.netzero {
  background: linear-gradient(120deg, var(--ink-900), var(--ink-700));
  color: var(--white);
}
.netzero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.netzero h2 { color: var(--white); }
.netzero-content { max-width: 560px; }
.netzero-content p:last-child { color: var(--text-light); margin-bottom: 0; }
.netzero-visual {
  flex: 0 0 auto;
  width: 220px;
}
.netzero-visual svg { width: 100%; height: auto; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  overflow: hidden;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms var(--ease);
}

/* Illustrated headers hidden until real project photos are available —
   remove this display:none to bring them back. */
.project-visual {
  display: none;
  margin: -1.6rem -1.6rem 1.25rem;
  height: 110px;
  overflow: hidden;
}
.project-visual svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 600ms var(--ease);
}
.project-card:hover .project-visual svg { transform: scale(1.05); }
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(226, 144, 44, 0.4);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}
.project-value {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange-600);
}

.project-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.project-client {
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.2rem;
}
.project-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.project-location svg { width: 15px; height: 15px; flex-shrink: 0; }
.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.projects-clients {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}
.clients-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.clients-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
}
.clients-list li {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--steel);
  transition: color 200ms var(--ease);
}
.clients-list li:hover { color: var(--ink-800); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-content > p { color: var(--text-muted); max-width: 62ch; }

.about-values {
  margin-top: 2rem;
  display: grid;
  gap: 1.4rem;
}
.value {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.value > svg {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--orange-100);
  color: var(--orange-600);
}
.value h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.value p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

.about-panel { position: sticky; top: 100px; }
.sector-card {
  background: linear-gradient(160deg, var(--ink-900), var(--ink-800));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-md);
}
.sector-card h3 { color: var(--white); margin-bottom: 1.2rem; }
.sector-list { display: grid; gap: 0.85rem; }
.sector-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
}
.sector-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange-500);
}
.sector-foot {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.sector-exp { margin: 0; color: var(--text-light); }
.sector-exp strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  color: var(--orange-500);
  margin-right: 0.4rem;
}

/* ---------- Contact ---------- */
.section-contact {
  background: linear-gradient(165deg, var(--ink-950), var(--ink-800));
  color: var(--white);
}
.section-head-light h2 { color: var(--white); }
.section-head-light .section-lede { color: var(--text-light); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-info { display: grid; gap: 1.25rem; }
.office-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  padding: 1.6rem;
  overflow: hidden;
}

.office-visual {
  margin: -1.6rem -1.6rem 1.3rem;
  height: 150px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.office-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transition: transform 600ms var(--ease);
}
.office-card:hover .office-visual img { transform: scale(1.045); }
.office-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.country-badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-950);
  background: var(--orange-500);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
}
.office-list { display: grid; gap: 0.85rem; }
.office-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-light);
  font-size: 0.97rem;
}
.office-list svg {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  color: var(--orange-500);
}
.office-list a { color: var(--white); }
.office-list a:hover { color: var(--orange-500); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-900);
  margin-bottom: 0.35rem;
}
.form-field label span { color: var(--orange-600); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  min-height: 48px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(226, 144, 44, 0.22);
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #C0392B;
}
.helper {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}
/* Honeypot — visually removed, invisible to real users */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: #C0392B;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.form-success {
  color: #1E7B45;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  margin: 1rem 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-950);
  color: var(--text-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-logo {
  display: block;
  margin-bottom: 1.1rem;
}
.footer-logo img {
  height: 96px;
  width: auto;
}
.footer-tag { font-size: 0.95rem; margin: 0; }

.site-footer h3 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-nav ul, .footer-contact ul { display: grid; gap: 0.55rem; }
.site-footer a { color: var(--text-light); }
.site-footer a:hover { color: var(--orange-500); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.2rem;
  font-size: 0.88rem;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero-card { flex: 1 1 260px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; }

  .projects-grid { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .about-panel { position: static; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Responsive: compact header ---------- */
@media (max-width: 1100px) {
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms var(--ease);
  }
  .main-nav.open { max-height: 360px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.5rem 1.25rem;
  }
  .main-nav .nav-link {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--surface);
  }
  .main-nav .nav-link::after { display: none; }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 768px) {
  .sectors-strip { flex-direction: column; gap: 0.8rem; }
  .strip-list { gap: 0.5rem 1.6rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }

  .projects-grid { grid-template-columns: 1fr; }

  .netzero-inner { flex-direction: column; align-items: flex-start; }
  .netzero-visual { display: none; }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(20, 22, 26, 0.72) 0%, rgba(20, 22, 26, 0.58) 45%, rgba(20, 22, 26, 0.74) 100%);
  }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .brand-logo img { height: 46px; }
  .header-inner { gap: 0.75rem; min-height: 66px; }
  .header-actions { gap: 0.5rem; }
  .lang-btn { padding: 0.3rem 0.55rem; }
  .hero-ctas .btn { width: 100%; }
}
