/* ============================================================
   GMProcess GmbH – Modern Corporate Theme
   Automatisierungslösungen | Westösterreich
   ============================================================ */

:root {
  --navy-950: #070b14;
  --navy-900: #0c1424;
  --navy-800: #121d33;
  --navy-700: #1a2a45;
  --navy-600: #243556;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --accent: #00b4d8;
  --accent-soft: #48cae4;
  --accent-dark: #0077a8;
  --accent-glow: rgba(0, 180, 216, 0.25);
  --success: #10b981;
  --danger: #ef4444;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 10px 40px rgba(7, 11, 20, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 11, 20, 0.22);
  --header-h: 76px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 58ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 12px 32px rgba(0, 180, 216, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--slate-200);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(0, 180, 216, 0.06);
}

.btn-ghost {
  background: var(--slate-100);
  color: var(--navy-800);
}

.btn-ghost:hover {
  background: var(--slate-200);
  color: var(--navy-900);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.site-header.is-scrolled .logo-text,
.site-header.is-solid .logo-text,
.site-header.is-scrolled .nav-link,
.site-header.is-solid .nav-link {
  color: var(--navy-800);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-solid .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active,
.site-header.is-solid .nav-link.is-active {
  color: var(--accent-dark);
}

.site-header.is-scrolled .nav-toggle span,
.site-header.is-solid .nav-toggle span {
  background: var(--navy-800);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  gap: 1.5rem;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
  /* Light plate so original multi-tone logo stays readable on dark headers */
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled .logo,
.site-header.is-solid .logo {
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
}

.logo-img {
  height: 36px;
  width: auto;
  max-width: min(200px, 46vw);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Hide unused light-variant slots (kept in HTML for simple markup) */
.logo-img-light {
  display: none !important;
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.footer-brand .logo-img {
  height: 34px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.03em;
  box-shadow: 0 6px 16px var(--accent-glow);
}

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--white);
  transition: color 0.25s;
}

.logo-text span {
  color: var(--accent-soft);
  font-weight: 500;
}

.site-header.is-scrolled .logo-text span,
.site-header.is-solid .logo-text span {
  color: var(--accent-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-solid .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active,
.site-header.is-solid .nav-link.is-active {
  background: rgba(0, 180, 216, 0.08);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 11, 20, 0.94) 0%, rgba(12, 20, 36, 0.78) 48%, rgba(7, 11, 20, 0.55) 100%),
    url("../img/hero-plant.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(0, 180, 216, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0, 119, 168, 0.15), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero .eyebrow {
  color: var(--accent-soft);
}

.hero .eyebrow::before {
  background: var(--accent-soft);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.15rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-soft), #90e0ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.15rem;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(0, 180, 216, 0.2), transparent 55%),
    linear-gradient(180deg, transparent, rgba(7, 11, 20, 0.3));
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .eyebrow {
  color: var(--accent-soft);
}

.page-hero .eyebrow::before {
  background: var(--accent-soft);
}

/* ---- Sections ---- */
.section {
  padding: 5.5rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--slate-100);
}

.section-dark {
  background: var(--navy-900);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.65);
}

.section-head {
  max-width: 620px;
  margin-bottom: 3rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head h2 {
  margin-bottom: 0.85rem;
}

/* ---- Cards ---- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(7, 11, 20, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 180, 216, 0.25);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(0, 180, 216, 0.12), rgba(0, 119, 168, 0.08));
  color: var(--accent-dark);
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--slate-500);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-link {
  margin-top: 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link:hover {
  color: var(--accent);
}

/* Service cards with images */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 20px rgba(7, 11, 20, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-800);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.5rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  margin-bottom: 0.5rem;
}

.service-card-body p {
  color: var(--slate-500);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* ---- Feature / Split ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--navy-800);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 11, 20, 0.35));
  pointer-events: none;
}

.split-content .lead {
  margin: 0.85rem 0 1.5rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--navy-700);
  font-size: 0.97rem;
}

.check-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230077a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.nested-list {
  margin: 0.35rem 0 0.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nested-list li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--slate-500);
  font-size: 0.92rem;
}

.nested-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---- Tech pills ---- */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tech-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.2);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.section-dark .tech-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--accent-soft);
}

/* ---- Process steps ---- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--slate-500);
}

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  padding: 4rem 0;
  background:
    radial-gradient(ellipse 50% 80% at 10% 50%, rgba(0, 180, 216, 0.2), transparent 55%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 48ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- Jobs ---- */
.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}

.job-card:hover {
  border-color: rgba(0, 180, 216, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}

.job-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--slate-500);
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.job-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--slate-100);
  display: grid;
  place-items: center;
  color: var(--navy-700);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.job-card:hover .job-arrow {
  background: var(--accent);
  color: white;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.job-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.job-sidebar h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.job-sidebar dl {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.job-sidebar dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  margin-bottom: 0.2rem;
}

.job-sidebar dd {
  font-weight: 500;
  color: var(--navy-800);
  font-size: 0.95rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.85rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--navy-700);
  margin-bottom: 1rem;
}

.prose ul {
  margin: 0.75rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--navy-700);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 180, 216, 0.1);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item h3 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: var(--slate-500);
}

.contact-item a:hover {
  color: var(--accent-dark);
}

.contact-form {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(7, 11, 20, 0.05);
}

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

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-800);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 0.75rem;
}

.form-alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.form-alert.success {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.map-embed {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  height: 320px;
  background: var(--slate-100);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

/* ---- Legal ---- */
.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.85rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.55rem;
}

.legal p,
.legal li {
  color: var(--navy-700);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.legal ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.legal ul li {
  list-style: disc;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
  color: var(--white);
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 32ch;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-contact li {
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.35rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: var(--accent-soft);
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Back to top ---- */
.back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: white;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
  z-index: 900;
  box-shadow: var(--shadow);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  background: var(--accent-dark);
}

/* ---- Utilities ---- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--slate-500); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .job-detail-grid {
    grid-template-columns: 1fr;
  }

  .job-sidebar {
    position: static;
  }
}

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

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 5.5rem 1.5rem 2rem;
    gap: 0.35rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .nav.is-open {
    transform: none;
  }

  .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--white) !important;
  }

  .nav-cta {
    margin: 1rem 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 20, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 999;
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle.is-open span {
    background: var(--white) !important;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-media {
    order: -1;
    aspect-ratio: 16 / 10;
  }

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

  .hero-stats {
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .cards-3,
  .cards-2,
  .process {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 3.75rem 0;
  }

  .hero {
    min-height: auto;
    padding-bottom: 3.5rem;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .container {
    width: min(100% - 1.75rem, var(--max));
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .card:hover,
  .service-card:hover {
    transform: none;
  }
}
