/* =========================================================
   IT- und Foto-Service Rörig — Stylesheet
   Design: Navy / Weiß / Hellgrau + Türkis-Akzent
   Typo: Sora (Display) + Inter (Text)
   ========================================================= */

:root {
  /* Farben — abgestimmt auf das Rörig-Logo (Grau / Schwarz / Blau) */
  --navy: #0b2c3f;
  --navy-light: #123f57;
  --navy-soft: #1c5978;
  --white: #ffffff;
  --gray-bg: #f4f6f7;
  --gray-bg-alt: #eef1f2;
  --gray-border: #e1e5e8;
  --text-body: #4a5157;
  --text-muted: #74797e;
  --logo-gray: #6a6a6a;
  --logo-black: #191919;
  --teal: #18aed7;
  --teal-dark: #0f8fb2;
  --teal-tint: #e6f7fb;

  /* Typografie */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Radius & Schatten */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 20px 60px rgba(11, 37, 69, 0.16);

  --max-width: 1180px;
  --header-height: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.25rem; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { font-size: 1.08rem; color: var(--text-muted); margin-top: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

section { padding: 96px 0; }
.section-alt { background: var(--gray-bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: var(--font-display);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(0, 180, 166, 0.30);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 180, 166, 0.38); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-border);
}
.btn-outline-navy:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--gray-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 4px 24px rgba(11, 44, 63, 0.08); }

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  flex-shrink: 0;
}
.brand-logo { height: 34px; width: auto; flex-shrink: 0; }
.brand-divider { width: 1px; height: 28px; background: var(--gray-border); flex-shrink: 0; }
.brand-subline { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.76rem; line-height: 1.3; color: var(--text-muted); letter-spacing: 0.01em; max-width: 130px; }

/* Brand mark (used on dark backgrounds, e.g. footer, where the light-header logo has no contrast) */
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--navy-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }
.footer-brand .brand-text .sub, .footer-brand .brand { color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--teal-dark); background: var(--teal-tint); }
.nav-links a.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.has-dropdown:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  color: var(--navy);
  transition: background 0.15s ease;
}
.dropdown a:hover { background: var(--gray-bg); }
.dropdown a svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.dropdown a .dd-title { font-weight: 600; font-size: 0.92rem; display: block; }
.dropdown a .dd-desc { font-size: 0.8rem; color: var(--text-muted); }

.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 88px) 0 100px;
  background: radial-gradient(ellipse at top right, var(--navy-light), var(--navy) 62%);
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--teal); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.78); max-width: 540px; margin: 22px 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: rgba(255,255,255,0.72); }
.hero-trust svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }

.hero-visual { position: relative; width: 100%; aspect-ratio: 1/0.92; }
.hero-visual svg { width: 100%; height: 100%; }

.net-line { stroke: rgba(0, 180, 166, 0.55); stroke-width: 1.4; fill: none; stroke-dasharray: 6 6; animation: dash 26s linear infinite; }
.net-line.solid { stroke: rgba(255,255,255,0.18); stroke-dasharray: none; animation: none; }
@keyframes dash { to { stroke-dashoffset: -600; } }
.net-node { fill: var(--white); }
.net-node.core { fill: var(--teal); }
.net-pulse { fill: none; stroke: var(--teal); stroke-width: 1.5; opacity: 0; transform-origin: center; animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { 0% { opacity: 0.65; transform: scale(0.4); } 100% { opacity: 0; transform: scale(2.6); } }

/* ---------- Vorteile ---------- */
.advantages-strip {
  background: var(--navy-light);
  padding: 0;
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.advantage {
  padding: 34px 30px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.advantage:nth-child(3n) { border-right: none; }
.advantage .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(24,174,215,0.16);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.advantage .icon-wrap svg { width: 22px; height: 22px; }
.advantage h4 { color: var(--white); font-size: 1rem; margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; }
.advantage p { color: rgba(255,255,255,0.62); font-size: 0.88rem; }

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card .icon-wrap svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.94rem; color: var(--text-muted); margin-bottom: 16px; }
.service-card ul { display: flex; flex-direction: column; gap: 8px; }
.service-card ul li {
  font-size: 0.89rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-card ul li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ---------- Feature split (used for MS365 / Infra / Server sections) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-split.reverse .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy), var(--navy-light));
  aspect-ratio: 4/3.1;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.feature-media svg { width: 100%; height: 100%; }

.feature-list { display: flex; flex-direction: column; gap: 18px; margin: 28px 0 32px; }
.feature-list .item { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .item .icon-wrap {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-list .item .icon-wrap svg { width: 18px; height: 18px; }
.feature-list .item h4 { font-size: 0.98rem; margin-bottom: 3px; font-family: var(--font-display); font-weight: 600; }
.feature-list .item p { font-size: 0.88rem; color: var(--text-muted); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--navy);
}

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.support-card {
  border-radius: var(--radius-lg);
  padding: 42px;
  position: relative;
  overflow: hidden;
}
.support-card.remote { background: var(--navy); color: var(--white); }
.support-card.onsite { background: var(--gray-bg); border: 1px solid var(--gray-border); }
.support-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.support-card.remote .icon-wrap { background: rgba(24,174,215,0.18); color: var(--teal); }
.support-card.onsite .icon-wrap { background: var(--teal-tint); color: var(--teal-dark); }
.support-card.remote h3 { color: var(--white); }
.support-card.remote p.lead { color: rgba(255,255,255,0.72); }
.support-card p.lead { color: var(--text-muted); margin-bottom: 22px; }
.support-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.support-card ul li { display: flex; gap: 10px; align-items: center; font-size: 0.93rem; }
.support-card.remote ul li svg { color: var(--teal); }
.support-card.onsite ul li svg { color: var(--teal-dark); }
.support-card ul li svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Process steps ---------- */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-step { position: relative; padding-top: 8px; }
.process-step .num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--teal-tint);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.process-step h4 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-portrait {
  border-radius: var(--radius-lg);
  aspect-ratio: 3/3.6;
  background: linear-gradient(160deg, var(--navy-light), var(--navy));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-portrait svg { width: 62%; height: 62%; color: rgba(255,255,255,0.9); }
.about-value-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 30px; }
.value-item { display: flex; gap: 14px; }
.value-item .icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-tint); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.value-item .icon-wrap svg { width: 20px; height: 20px; }
.value-item h4 { font-size: 0.96rem; margin-bottom: 4px; }
.value-item p { font-size: 0.86rem; color: var(--text-muted); }

.signature-quote {
  margin-top: 36px;
  padding: 24px 28px;
  border-left: 3px solid var(--teal);
  background: var(--gray-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--navy);
  font-size: 1.02rem;
}
.signature-quote span { display: block; margin-top: 10px; font-style: normal; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px;
}
.contact-info-card .row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact-info-card .row:last-child { border-bottom: none; }
.contact-info-card .row .icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(24,174,215,0.18); color: var(--teal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-card .row .icon-wrap svg { width: 20px; height: 20px; }
.contact-info-card .row .label { font-size: 0.78rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.contact-info-card .row .value { font-weight: 600; font-size: 0.98rem; }

.contact-hours { background: var(--gray-bg); border: 1px solid var(--gray-border); border-radius: var(--radius-lg); padding: 30px 34px; }
.contact-hours .row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 0.92rem; border-bottom: 1px dashed var(--gray-border); }
.contact-hours .row:last-child { border-bottom: none; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-group .req { color: var(--teal-dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  color: var(--navy);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 22px; }
.form-consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; }
.form-note { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 0.84rem; color: var(--text-muted); }
.form-note svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }
.field-error { color: #d94848; font-size: 0.78rem; margin-top: 5px; display: none; }
.form-group.invalid input, .form-group.invalid textarea { border-color: #d94848; }
.form-group.invalid .field-error { display: block; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.72); font-size: 1rem; }
.cta-banner .ctas { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.68); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.footer-social a:hover { background: var(--teal); }
.footer-social a svg { width: 16px; height: 16px; }

.footer-col h4 { color: var(--white); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-col .row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; margin-bottom: 12px; }
.footer-col .row svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom .legal-links { display: flex; gap: 22px; }
.footer-bottom .legal-links a:hover { color: var(--white); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Legal pages ---------- */
.legal-page { padding: calc(var(--header-height) + 70px) 0 100px; }
.legal-page .container { max-width: 860px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .updated { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 44px; }
.legal-page h2 { font-size: 1.25rem; margin: 40px 0 14px; }
.legal-page h3 { font-size: 1.02rem; margin: 22px 0 10px; }
.legal-page p, .legal-page li { font-size: 0.96rem; color: var(--text-body); margin-bottom: 12px; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page a.inline { color: var(--teal-dark); font-weight: 600; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal); }
.back-to-top svg { width: 20px; height: 20px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; order: -1; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.08); }
  .advantage:nth-child(2n) { border-right: none; }
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-split { grid-template-columns: 1fr; gap: 36px; }
  .feature-split.reverse .feature-media { order: 0; }
  .feature-media { max-width: 480px; margin: 0 auto; }
  .support-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-outline-navy-hide { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { gap: 0; }
}

@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding-top: calc(var(--header-height) + 56px); padding-bottom: 64px; }
  .card-grid, .card-grid.cols-4, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .advantage { border-right: none !important; }
  .process-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 28px; }
  .contact-info-card, .contact-form-wrap { padding: 28px; }
  .hero-trust { flex-direction: column; gap: 12px; }
}

/* ---------- Mobile nav panel ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 1100;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { color: var(--white); font-size: 1.15rem; font-weight: 600; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: var(--font-display); }
.mobile-nav .sub-links { display: flex; flex-direction: column; padding-left: 14px; }
.mobile-nav .sub-links a { font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.7); padding: 10px 4px; }
.mobile-nav .mobile-cta { margin-top: 20px; }
.mobile-close {
  position: absolute;
  top: 22px; right: 24px;
  width: 42px; height: 42px;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.mobile-close svg { width: 24px; height: 24px; }
body.nav-open { overflow: hidden; }
