/* ==========================================================================
   IMK-Automation GmbH — Website 2.0
   ========================================================================== */

:root {
  --blue-deep: #005a9d;
  --blue-deep-dark: #003f6e;
  --blue-soft: #85a1cd;
  --blue-soft-light: #eaf0fa;
  --pep: #ff7a29;
  --pep-dark: #e2650f;
  --ink: #202224;
  --ink-soft: #55585c;
  --grey-bg: #f4f5f7;
  --grey-bg-2: #ececec;
  --white: #ffffff;
  --line: #e2e5ea;

  --font-head: "Karla", "Segoe UI", sans-serif;
  --font-body: "Mulish", "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px -12px rgba(0, 40, 80, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(0, 40, 80, 0.16);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--blue-deep-dark);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--pep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--pep);
  border-radius: 2px;
}

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-grey { background: var(--grey-bg); }
.bg-deep {
  background: linear-gradient(135deg, var(--blue-deep-dark), var(--blue-deep) 60%, #0071c4);
  color: var(--white);
}
.bg-deep h2, .bg-deep h3 { color: var(--white); }
.bg-deep p { color: rgba(255,255,255,0.82); }

.center { text-align: center; }
.lead {
  font-size: 1.15rem;
  max-width: 62ch;
}
.max-w { max-width: 62ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-pep {
  background: var(--pep);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(255, 122, 41, 0.55);
}
.btn-pep:hover { background: var(--pep-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-ghost-blue {
  background: transparent;
  border-color: var(--blue-deep);
  color: var(--blue-deep);
}
.btn-ghost-blue:hover { background: var(--blue-deep); color: var(--white); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--blue-deep-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--pep); }
.topbar svg { width: 14px; height: 14px; }
.lang-switch { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-head); font-weight: 700; }
.lang-switch a { opacity: 0.6; }
.lang-switch a.active { opacity: 1; color: var(--pep); }
.lang-switch a:hover { opacity: 1; }
.lang-switch .sep { opacity: 0.4; }
.mobile-panel .lang-switch { margin-top: 24px; font-size: 1.1rem; }
.mobile-panel .lang-switch a { color: var(--white); padding-bottom: 0; border-bottom: none; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}
.brand img { height: 88px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--pep);
  border-radius: 2px;
  transition: right 0.22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--blue-deep); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 28px; height: 28px; color: var(--blue-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 110px;
  color: var(--white);
  isolation: isolate;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.6s ease;
}
.hero-slide.active {
  opacity: 1;
  animation: kenburns 7s ease-in-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active { animation: none; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(0,32,58,0.94) 0%, rgba(0,52,92,0.88) 32%, rgba(0,63,110,0.55) 58%, rgba(0,63,110,0.28) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: var(--pep);
  opacity: 0.12;
  top: -220px; right: -140px;
  z-index: -1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero h1 { color: var(--white); }
.hero-tagline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--pep);
  margin: 10px 0 18px;
}
.hero .lead { color: rgba(255,255,255,0.88); font-size: 1.2rem; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stat span { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

.hero-dots {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 26px;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hero-dot::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.active::before { background: var(--pep); transform: scale(1.2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 64px;
  background: linear-gradient(135deg, var(--blue-deep-dark), var(--blue-deep));
  color: var(--white);
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: var(--pep);
  opacity: 0.15;
  top: -200px; right: -140px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--pep); }

/* ---------- Cards / Services ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--blue-soft-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; color: var(--blue-deep); }
.card:hover .card-icon { background: var(--pep); }
.card:hover .card-icon svg { color: var(--white); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 14px; }
.card-link {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Numbered process ---------- */
.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  position: relative;
  padding: 30px 22px 22px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blue-soft);
  display: block;
  margin-bottom: 12px;
}

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-soft-light), var(--white));
  border: 1px solid var(--line);
  padding: 26px;
}
.split-media.photo {
  padding: 0;
  background: var(--blue-deep-dark);
  position: relative;
  min-height: 320px;
}
.split-media.photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: contain;
  display: block;
}
.photo-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.5);
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-body);
}
.photo-credit a { color: inherit; text-decoration: underline; }

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 0;
  background: none;
}
.ba-item { position: relative; overflow: hidden; background: var(--blue-deep-dark); }
.ba-item img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: contain;
  display: block;
}
.ba-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blue-deep-dark);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 13px;
  border-radius: 999px;
}
.ba-badge.ba-after { background: var(--pep); }

.ba-slider img.ba-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  min-height: 0;
}
.ba-slider img.ba-slide.active { opacity: 1; }
.ba-dots {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}
.ba-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ba-dot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}
.ba-dot.active::before { background: var(--pep); transform: scale(1.25); }

@media (max-width: 640px) {
  .before-after { grid-template-columns: 1fr; }
  .ba-item img { min-height: 260px; }
}
.split ul.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.split ul.checklist svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--pep);
  margin-top: 2px;
}

/* ---------- Projects / References ---------- */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-media {
  height: 150px;
  background: linear-gradient(135deg, var(--blue-deep-dark), var(--blue-deep) 60%, var(--blue-soft));
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.project-media svg { width: 44px; height: 44px; color: rgba(255,255,255,0.85); }
.project-media::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px);
}
.project-media.photo {
  height: 210px;
  background: var(--blue-deep-dark);
  overflow: hidden;
}
.project-media.photo::after { display: none; }
.project-media.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.project-card:hover .project-media.photo img { transform: scale(1.08); filter: brightness(1.05); }
.project-media.photo.ba-slider img.ba-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease, transform 0.5s ease, filter 0.5s ease; }
.project-media.photo.ba-slider img.ba-slide.active { opacity: 1; }
.project-card:hover .project-media.photo.ba-slider img.ba-slide.active { transform: scale(1.08); filter: brightness(1.05); }
.project-media .ba-dots { bottom: 10px; left: 10px; }
.project-body { padding: 22px 24px 26px; }
.project-tag {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pep);
  margin-bottom: 8px;
  display: block;
}
.project-body h3 { margin-bottom: 6px; font-size: 1.15rem; }
.project-client { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 4.5rem;
  color: var(--blue-soft-light);
  position: absolute;
  top: 10px; left: 20px;
  line-height: 1;
  z-index: 0;
}
.testimonial p { position: relative; z-index: 1; font-style: italic; color: var(--ink); }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  flex-shrink: 0;
}
.author-name { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; color: var(--ink); }
.author-role { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Team ---------- */
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-avatar {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-soft));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.team-photo {
  width: 84px; height: 84px;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.team-card:hover .team-photo img { transform: scale(1.1); filter: brightness(1.05); }
.team-card h3 { margin-bottom: 2px; font-size: 1.1rem; }
.team-role { color: var(--pep); font-family: var(--font-head); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; display: block; }
.team-bio { font-size: 0.92rem; margin-bottom: 14px; }
.team-contact { font-size: 0.86rem; display: flex; flex-direction: column; gap: 4px; }
.team-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.team-contact a:hover { color: var(--blue-deep); }
.team-contact svg { width: 15px; height: 15px; color: var(--blue-soft); flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 24px;
  padding: 56px;
  background: linear-gradient(120deg, var(--blue-deep-dark), var(--blue-deep));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  background: var(--pep);
  opacity: 0.18;
  border-radius: 50%;
  right: -100px; bottom: -140px;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 0; }
.cta-band-actions { flex-shrink: 0; position: relative; z-index: 1; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--blue-deep-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.contact-info-card h3 { color: var(--white); }
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 20px; height: 20px; color: var(--pep); flex-shrink: 0; margin-top: 2px; }
.contact-row a, .contact-row div { color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.contact-row strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--grey-bg);
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue-soft);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 28px;
  height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #10181f;
  color: rgba(255,255,255,0.78);
  padding: 64px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid img { height: 56px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-grid p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.footer-col h3 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 11px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--pep); }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.72); }
.footer-col svg { width: 15px; height: 15px; color: var(--blue-soft); flex-shrink: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--pep); }
.footer-legal { display: flex; gap: 20px; }
.cookie-settings-link { cursor: pointer; }

/* ---------- Cookie consent banner ---------- */
.btn-sm { padding: 10px 20px; font-size: 0.86rem; }
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: 680px;
  margin: 0 auto;
  background: var(--blue-deep-dark);
  color: rgba(255,255,255,0.85);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-banner p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: rgba(255,255,255,0.85); }
.cookie-banner a { color: var(--pep); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 600px) {
  .cookie-banner { left: 14px; right: 14px; bottom: 14px; padding: 18px 20px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 1000;
  background: var(--blue-deep-dark);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Mobile nav ---------- */
.mobile-panel {
  position: fixed;
  inset: 0;
  background: var(--blue-deep-dark);
  z-index: 200;
  padding: 26px 24px;
  color: var(--white);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0s linear 0.35s;
}
.mobile-panel.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s ease, visibility 0s linear 0s;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-panel { transition: none; }
}
.mobile-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-panel-head img { height: 52px; filter: brightness(0) invert(1); }
.mobile-panel a {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
}
.mobile-panel .btn { margin-top: 30px; }
.mobile-close { background: none; border: none; color: var(--white); cursor: pointer; }
.mobile-close svg { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  section { padding: 60px 0; }
  .grid-4, .grid-3, .grid-2, .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 70px 0 60px; }
  .hero-stats { gap: 26px; }
  .cta-band { padding: 36px 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 2rem; }
  .hero h1 { font-size: 1.65rem; }
  .hero-tagline { font-size: 1.15rem; }
}
