/* ================================================================
   RÜTHER ELEKTROTECHNIK
   Corporate TGA Planner Style — similar to STF Gruppe, VAMED, etc.
   ================================================================ */

:root {
  /* Corporate Blue Palette */
  --primary:       #0B3D5C;     /* Deep corporate blue */
  --primary-dark:  #082B42;
  --primary-light: #1A5F85;
  --accent:        #E87722;     /* Warm orange accent */
  --accent-dark:   #C95E12;

  /* Neutrals */
  --ink:           #1A2332;
  --text:          #3A4556;
  --text-muted:    #6B7685;
  --light:         #F5F7FA;
  --light-alt:     #EEF2F6;
  --border:        #DCE3EA;
  --border-dark:   #C4CDD5;
  --white:         #FFFFFF;

  /* Typography */
  --font:          'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:  'Barlow Condensed', 'Barlow', sans-serif;

  /* Sizing */
  --container:     1280px;
  --gutter:        clamp(1.25rem, 3vw, 2rem);
  --section-y:     clamp(4rem, 7vw, 6.5rem);
  --radius:        6px;
  --radius-lg:     10px;

  /* Shadow */
  --shadow-sm:     0 1px 3px rgba(11, 61, 92, 0.08);
  --shadow:        0 4px 14px rgba(11, 61, 92, 0.1);
  --shadow-lg:     0 12px 32px rgba(11, 61, 92, 0.14);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

/* Skip Link */
.skip-link {
  position: absolute; top: -100px; left: 20px;
  background: var(--primary); color: var(--white);
  padding: 12px 20px;
  z-index: 10000;
  font-weight: 600; font-size: 14px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 20px; }
*:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--light { background: var(--light); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 3rem;
}
.eyebrow::before {
  content: "";
  position: absolute; top: 50%; left: 0;
  width: 2.25rem; height: 2px;
  background: var(--accent);
}
.eyebrow--light {
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.section-title span {
  color: var(--primary);
  display: block;
}

.section-lead {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.7;
  color: var(--text);
  max-width: 65ch;
  margin-bottom: 1rem;
}
.section-lead--center {
  max-width: 70ch;
  margin-left: auto; margin-right: auto;
}

.section-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(3rem, 5vw, 4rem);
}
.section-head .eyebrow {
  padding-left: 0;
}
.section-head .eyebrow::before {
  display: none;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1.5rem;
  transition: gap 0.25s, color 0.25s;
}
.link-arrow:hover {
  color: var(--accent);
  gap: 0.75rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  border: 2px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--primary);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--primary);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
}
.btn--white:hover {
  background: var(--accent);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-dark);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ================================================================
   TOP BAR
   ================================================================ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar__inner {
  display: flex;
  justify-content: space-between; align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar__left, .topbar__right {
  display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem);
  flex-wrap: wrap;
}
.topbar__meta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.75);
}
.topbar__meta svg { color: var(--accent); }
.topbar__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.95);
  transition: color 0.2s;
}
.topbar__link:hover { color: var(--accent); }
.topbar__link svg { color: var(--accent); }

@media (max-width: 700px) {
  .topbar__meta--hide-sm, .topbar__link--hide-sm { display: none; }
  .topbar__inner { font-size: 12px; }
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
  background: var(--white);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow 0.25s;
}
.header.is-scrolled {
  box-shadow: 0 4px 16px rgba(11, 61, 92, 0.08);
}
.header__inner {
  display: flex; align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 88px;
}

.brand {
  display: flex; align-items: center; gap: 0.75rem;
  margin-right: auto;
  color: var(--primary);
}
.brand__mark {
  width: 48px; height: 48px;
  flex-shrink: 0;
  color: var(--primary);
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand__name span {
  color: var(--primary);
  font-weight: 500;
}
.brand__sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav ul {
  display: flex; gap: clamp(1rem, 2vw, 2rem);
}
.nav a {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  color: var(--ink);
  position: relative;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover {
  color: var(--primary);
}
.nav a:hover::after {
  transform: scaleX(1);
}

.header__cta {
  font-size: 14px;
  padding: 11px 20px;
}

@media (max-width: 1100px) {
  .nav, .header__cta { display: none; }
}

/* Nav Toggle */
.nav-toggle {
  display: none; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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);
}
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
}

.mobile-nav {
  position: fixed; inset: 88px 0 0;
  background: var(--white);
  padding: 2rem var(--gutter);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 99;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0; }
.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.btn {
  margin-top: 1.5rem;
  justify-content: center;
  border: none;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero { min-height: 720px; }
}

.hero__bg {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero__image {
  position: absolute; inset: 0;
  /* Abstract architectural / building pattern - SVG gradient */
  background:
    linear-gradient(135deg, rgba(11, 61, 92, 0.92) 0%, rgba(8, 43, 66, 0.85) 50%, rgba(11, 61, 92, 0.75) 100%),
    radial-gradient(ellipse at top right, rgba(26, 95, 133, 0.4), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(232, 119, 34, 0.15), transparent 50%),
    linear-gradient(180deg, var(--primary-dark), var(--primary));
  background-color: var(--primary);
}
/* Architectural line pattern overlay */
.hero__image::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
}
.hero__image::after {
  content: "";
  position: absolute;
  top: 10%; right: -5%;
  width: 60%; height: 80%;
  background-image:
    linear-gradient(135deg, transparent 45%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.06) 55%, transparent 55%),
    linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.04) 45%, rgba(255,255,255,0.04) 55%, transparent 55%);
  background-size: 60px 60px, 40px 40px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8, 43, 66, 0.5) 100%);
}

.hero__content {
  position: relative; z-index: 2;
  padding: clamp(5rem, 12vw, 7rem) var(--gutter) clamp(4rem, 8vw, 5rem);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 7px 14px;
  background: rgba(232, 119, 34, 0.15);
  border-left: 3px solid var(--accent);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  max-width: 22ch;
  color: var(--white);
}
.hero__title span {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}
.hero__lead {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 58ch;
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}

/* Facts Bar */
.facts {
  position: relative; z-index: 3;
  background: var(--white);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
  margin-top: -1px;
}
.facts__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.fact {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  text-align: left;
}
.fact:last-child { border-right: none; }
.fact__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.fact__num span {
  font-size: 0.5em;
  color: var(--accent);
  font-weight: 600;
  margin-left: 2px;
}
.fact__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 700px) {
  .facts__inner { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ================================================================
   INTRO / UNTERNEHMEN
   ================================================================ */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 960px) {
  .intro__grid { grid-template-columns: 1fr; }
}

.intro__text p {
  margin-bottom: 1rem;
  max-width: 60ch;
}
.intro__text .section-lead {
  margin-bottom: 1.5rem;
}

.intro__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) {
  .intro__cards { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-card__icon {
  width: 48px; height: 48px;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ================================================================
   SERVICES
   ================================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.5rem;
}
.service-card__icon {
  width: 56px; height: 56px;
  color: var(--primary);
  background: var(--light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  transition: background 0.25s, color 0.25s;
}
.service-card:hover .service-card__icon {
  background: var(--primary);
  color: var(--white);
}
.service-card__num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 700;
  color: var(--border-dark);
  letter-spacing: -0.02em;
  transition: color 0.25s;
}
.service-card:hover .service-card__num { color: var(--accent); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.service-card > p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.service-card__list {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.service-card__list li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 4px 0 4px 1.25rem;
  position: relative;
}
.service-card__list li::before {
  content: "";
  position: absolute;
  top: 0.9em; left: 0;
  width: 6px; height: 2px;
  background: var(--accent);
}

/* ================================================================
   HOAI PHASES
   ================================================================ */
.phases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .phases__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .phases__grid { grid-template-columns: repeat(4, 1fr); }
}

.phase-item {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--primary);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.phase-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.phase-item--accent {
  border-top-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, rgba(232, 119, 34, 0.04) 100%);
}

.phase-item__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  padding: 5px 10px;
  background: var(--light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.phase-item--accent .phase-item__num {
  background: var(--accent);
  color: var(--white);
}

.phase-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.phase-item p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.phases__note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  display: flex; gap: 1rem; align-items: flex-start;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}
.phases__note svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.phases__note p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ================================================================
   INDUSTRIES
   ================================================================ */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .industries__grid { grid-template-columns: repeat(3, 1fr); }
}

.industry-card {
  background: var(--white);
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
}
.industry-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.industry-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--light-alt);
  padding: 5px 10px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.industry-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.industry-card p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ================================================================
   REFERENCES
   ================================================================ */
.ref-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.ref-tab {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.ref-tab:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
}
.ref-tab.is-active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.ref-tab span {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 600;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
@media (min-width: 700px) {
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .ref-grid { grid-template-columns: repeat(3, 1fr); }
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-dark);
}

.case-card__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--primary-dark);
}
.case-card__media img {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.case-card:hover .case-card__media img {
  transform: scale(1.05);
}
.case-card__media.no-img img { display: none; }

.case-card__placeholder {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.case-card__placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.case-card__placeholder::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.3'%3E%3Cpath d='M8 40V14l16-10 16 10v26'/%3E%3Cpath d='M8 40h32M18 40V26h12v14'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.case-card__badge {
  position: absolute; top: 12px; left: 12px;
  z-index: 3;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  padding: 5px 10px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex; flex-direction: column;
}
.case-card__kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.case-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.case-card__body > p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.case-card__data {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.case-card__data > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem;
  font-size: 0.85rem;
}
.case-card__data dt {
  color: var(--text-muted);
  font-weight: 500;
}
.case-card__data dd {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.ref-empty {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(11, 61, 92, 0.96) 0%, rgba(8, 43, 66, 0.95) 100%),
    radial-gradient(circle at top right, var(--primary-light), transparent 60%);
  background-color: var(--primary);
  color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.cta-banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .cta-banner__inner { grid-template-columns: 1fr; text-align: center; }
  .cta-banner__actions { justify-content: center; }
}
.cta-banner__text .eyebrow {
  color: var(--accent);
}
.cta-banner__text .eyebrow::before {
  background: var(--accent);
}
.cta-banner__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.cta-banner__text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
}
.cta-banner__actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  justify-content: flex-end;
}

/* ================================================================
   TEAM
   ================================================================ */
.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 900px) {
  .team__grid { grid-template-columns: 1fr; }
}

.person-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
  transition: all 0.3s ease;
}
.person-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .person-card { grid-template-columns: 1fr; }
}

.person-card__photo {
  background: var(--light);
  position: relative;
  overflow: hidden;
}
@media (max-width: 640px) {
  .person-card__photo { aspect-ratio: 4/3; }
}
.person-card__photo-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--border-dark);
  padding: 20% 15% 0;
}
.person-card__photo-inner svg {
  width: 100%; max-width: 160px;
  height: auto;
}

.person-card__body {
  padding: 1.75rem;
  display: flex; flex-direction: column;
  justify-content: center;
}
.person-card__role {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.person-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.person-card p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.person-card__contact {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.person-card__contact a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text);
  transition: color 0.2s;
}
.person-card__contact a:hover { color: var(--primary); }
.person-card__contact svg { color: var(--primary); }

/* ================================================================
   CONTACT
   ================================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}

.contact__info {
  display: flex; flex-direction: column; gap: 1rem;
}
.contact__info-card {
  background: var(--white);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact__info-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.contact__info-card address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}
.contact__info-card ul {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.contact__info-card li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
}
.contact__info-card li strong {
  color: var(--ink);
  font-weight: 600;
}
.contact__info-card li svg {
  color: var(--primary);
  flex-shrink: 0;
}
.contact__info-card a {
  color: var(--text);
  transition: color 0.2s;
}
.contact__info-card a:hover { color: var(--primary); }

/* FORM */
.form {
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--accent);
}
.form__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form__intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}
.form__full { display: block; margin-bottom: 1.25rem; }

.form label {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.form label > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.form label em {
  color: var(--accent);
  font-style: normal;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230B3D5C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 92, 0.1);
}

.form__consent {
  flex-direction: row !important;
  gap: 0.75rem !important;
  align-items: flex-start !important;
  padding: 1rem;
  background: var(--light);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.form__consent input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.form__consent span {
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--text) !important;
  text-transform: none !important;
}
.form__consent a { color: var(--primary); text-decoration: underline; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.brand--footer { color: var(--accent); }
.brand--footer .brand__mark { color: var(--accent); }
.brand--footer .brand__name { color: var(--white); }
.brand--footer .brand__name span { color: rgba(255,255,255,0.7); }
.brand--footer .brand__sub { color: rgba(255,255,255,0.55); }

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  margin-top: 1.25rem;
  max-width: 40ch;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  width: fit-content;
}
.footer__col address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
}
.footer__col address a {
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.footer__col address a:hover { color: var(--accent); }
.footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__col ul a, .footer__btn {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  transition: color 0.2s;
  text-align: left;
  padding: 0;
}
.footer__col ul a:hover, .footer__btn:hover { color: var(--accent); }

.footer__bottom {
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ================================================================
   COOKIE BANNER
   ================================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 4px solid var(--primary);
  box-shadow: 0 -8px 32px rgba(11, 61, 92, 0.15);
  padding: 1.5rem 0;
  z-index: 1000;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 900px) {
  .cookie-banner__inner { grid-template-columns: 1fr; }
}
.cookie-banner__text h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.cookie-banner__text p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 0.75rem;
  max-width: 65ch;
}
.cookie-banner__groups {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.85rem;
}
.cookie-banner__groups label {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text);
}
.cookie-banner__groups input {
  accent-color: var(--primary);
}
.cookie-banner__actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .cookie-banner__actions { justify-content: flex-start; }
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

/* ================================================================
   LEGAL PAGES
   ================================================================ */
.legal {
  max-width: 820px; margin: 0 auto;
  padding: clamp(3rem, 5vw, 4rem) var(--gutter);
}
.legal .back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2rem;
}
.legal .back-link:hover { color: var(--accent); }

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2.5rem 0 0.75rem;
}
.legal h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}
.legal p, .legal li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.legal ul { padding-left: 1.25rem; }
.legal ul li { list-style: disc; margin-bottom: 0.3rem; }
.legal a { color: var(--primary); text-decoration: underline; }
.legal a:hover { color: var(--accent); }
.legal address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.75;
}
.legal strong { font-weight: 700; color: var(--ink); }
.legal .last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: block;
}
