﻿/* ============================================
   MATEC Website â€” Stylesheet
   ============================================ */

@font-face {
  font-family: "MatecParagon";
  src: url("fonts/PARAGONN.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #1a3c6e;
  --color-primary-dark: #0f2645;
  --color-primary-light: #2d5896;
  --color-accent: #e07b2a;
  --color-accent-dark: #b85f1c;
  --color-text: #1a1a1a;
  --color-text-light: #5a6470;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fb;
  --color-bg-dark: #0f2645;
  --color-border: #e4e9f0;
  --font-main: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(15, 38, 69, 0.06);
  --shadow: 0 8px 24px rgba(15, 38, 69, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 38, 69, 0.18);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
  --container-max: 1240px;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 14px 0;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  min-width: 150px;
}

.logo-main {
  font-family: "MatecParagon", var(--font-main);
  display: inline-block;
  font-weight: 800;
  font-size: clamp(2.05rem, 2.65vw, 2.75rem);
  color: var(--color-primary);
  letter-spacing: 0;
  transform: scaleX(1.25);
  transform-origin: left center;
}

.logo-sub {
  font-size: clamp(0.98rem, 1.15vw, 1.18rem);
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 7px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(14px, 1.8vw, 24px);
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--color-bg-alt);
  padding: 4px;
  border-radius: 999px;
}

.lang-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  border-radius: 999px;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--color-primary);
}

.lang-btn.active {
  background: var(--color-primary);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-fast);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('Bilder/PXL_20240226_053436332.RAW-01.COVER.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  z-index: -2;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out infinite alternate;
}

@keyframes heroZoom {
  to { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 38, 69, 0.85) 0%, rgba(15, 38, 69, 0.55) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#hero h1 {
  color: white;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-brand {
  font-family: "MatecParagon", var(--font-main);
  display: inline-block;
  font-weight: 800;
  font-size: clamp(4.4rem, 10vw, 8rem);
  line-height: 0.86;
  letter-spacing: 0;
  transform: scaleX(1.25);
  transform-origin: center;
}

.hero-tag {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--color-accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 640px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 123, 42, 0.4);
}

.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
}

.hero-scroll-indicator span {
  display: block;
  width: 4px;
  height: 8px;
  background: white;
  margin: 6px auto;
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-bg-dark);
  color: white;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: white;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow-light {
  color: var(--color-accent);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-top: 16px;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SERVICES
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.service-card {
  background: white;
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
  position: relative;
  cursor: pointer;
  text-align: left;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.service-card.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 12px 28px rgba(224, 123, 42, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #fff8f3 100%);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
  transition: all var(--transition);
}

.service-card:hover .service-icon,
.service-card.is-active .service-icon {
  background: var(--color-accent);
  color: white;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.55;
}

.service-card > p:first-of-type {
  margin-bottom: 0;
}

.service-last {
  grid-column: 2 / 3;
}

.service-info-card,
.cert-info-card {
  min-height: 220px;
  padding: 28px 24px;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: infoTileIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-info-card {
  display: flex;
  flex-direction: column;
}

.service-info-card-num,
.cert-info-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  color: white;
  background: var(--color-accent);
  font-weight: 800;
}

.service-info-card h3,
.cert-info-card h3 {
  margin-bottom: 12px;
  color: white;
  font-size: 1.15rem;
}

.service-info-card p,
.cert-info-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.93rem;
  line-height: 1.6;
}

.cert-info-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.cert-info-card li + li {
  margin-top: 8px;
}

@keyframes infoTileIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   STÃ„RKEN / INDUSTRY STRENGTHS
   ============================================ */

.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 18px;
}

.strength-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--color-primary);
  min-height: 300px;
}

.strength-card:nth-child(1),
.strength-card:nth-child(4) {
  grid-column: span 2;
}

.strength-card-wide {
  grid-column: span 2;
}

.strength-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.strength-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 38, 69, 0.92) 0%, rgba(15, 38, 69, 0.62) 46%, rgba(15, 38, 69, 0.08) 100%),
    linear-gradient(135deg, rgba(224, 123, 42, 0.28), transparent 45%);
  z-index: 1;
}

.strength-card:hover img {
  transform: scale(1.1);
}

.strength-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px;
  color: white;
}

.strength-body span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(224, 123, 42, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.strength-body h3 {
  color: white;
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.strength-body p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============================================
   GALERIE / GALLERY
   ============================================ */

.gallery-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  background: #fff4e6;
  border: 1px dashed #e0a060;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  max-width: 720px;
  margin: 0 auto 32px;
}

.gallery-note code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: 240px;
  gap: 16px;
}

.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--color-bg-alt);
}

.gallery-item:nth-child(3n+1) {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 38, 69, 0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 1;
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   REFERENZEN
   ============================================ */

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.ref-card {
  background: white;
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ref-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ref-tag {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.ref-year {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.9rem;
}

.ref-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.ref-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  flex: 1;
}

.ref-note {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   TEAM
   ============================================ */

.team-departments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.dept-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
}

.dept-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 28px rgba(224, 123, 42, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #fff8f3 100%);
}

.dept-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--color-bg-alt);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dept-card:hover .dept-header {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
}

.dept-card:hover .dept-header h3 {
  color: white;
}

.dept-card:hover .dept-toggle {
  color: white;
}

.dept-header h3 {
  margin: 0;
  font-size: 1.05rem;
  transition: color var(--transition-fast);
}

.dept-toggle {
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform var(--transition), color var(--transition-fast);
}

.dept-card.open .dept-toggle {
  transform: rotate(45deg);
}

.dept-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.dept-card.open .dept-body {
  max-height: 800px;
}

.dept-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.dept-list li {
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dept-list li:last-child {
  border-bottom: none;
}

.dept-person-name {
  font-weight: 600;
  color: var(--color-primary);
}

.dept-person-phone {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ============================================
   ZERTIFIKATE
   ============================================ */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
  cursor: pointer;
}

.cert-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.cert-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.cert-card.is-active {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(224, 123, 42, 0.2);
}

.cert-card.cert-highlight {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  border-color: var(--color-accent);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: white;
  color: var(--color-primary);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.cert-badge-accent {
  background: white;
  color: var(--color-accent);
}

.cert-card h3 {
  color: white;
  margin-bottom: 12px;
}

.cert-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.cert-flag-row {
  display: block;
  margin-top: 16px;
  font-size: 1.6rem;
  letter-spacing: 0.3em;
}

/* ============================================
   KONTAKT
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-address {
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.contact-label {
  font-weight: 600;
  color: var(--color-text-light);
  width: 80px;
  font-size: 0.9rem;
}

.map-link {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.map-link:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.contact-form {
  background: white;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.contact-form h3 {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.contact-form label span {
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.1);
}

.form-consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem !important;
}

.form-consent input {
  width: auto !important;
  margin-top: 3px;
  flex-shrink: 0;
}

.form-consent span {
  margin-bottom: 0 !important;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 14px;
  margin-bottom: 0;
  font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */

#footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.95;
  margin-bottom: 18px;
}

.footer-logo .logo-main {
  display: block;
  color: white;
}

.footer-logo .logo-sub {
  display: block;
  margin-top: 6px;
}

.footer-address {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
  color: white;
  margin-bottom: 18px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a,
.link-btn {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  padding: 0;
}

.footer-col a:hover,
.link-btn:hover {
  color: var(--color-accent);
}

.footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-cert-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 38, 69, 0.95);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox p {
  color: white;
  margin-top: 20px;
  font-size: 1rem;
  text-align: center;
  max-width: 600px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 38, 69, 0.7);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  background: white;
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius);
  padding: 50px 40px 40px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 1.8rem;
  color: var(--color-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-bg-alt);
}

.modal-content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.modal-content p,
.modal-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
}

.modal-content ul {
  padding-left: 24px;
}

/* ============================================
   LANGUAGE TRANSITION
   ============================================ */

body.lang-switching [data-i18n] {
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .strength-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strength-card,
  .strength-card:nth-child(1),
  .strength-card:nth-child(4),
  .strength-card-wide {
    grid-column: span 1;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform var(--transition);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
  }

  .gallery-grid {
    grid-auto-rows: 200px;
  }

  .strength-grid {
    grid-auto-rows: 260px;
  }

  .gallery-item:nth-child(3n+1) {
    grid-row: span 1;
  }

  .modal-dialog {
    padding: 40px 24px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-last {
    grid-column: 1 / 3;
    justify-self: center;
    width: calc(50% - 12px);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }

  .strength-body {
    padding: 22px;
  }

  .service-info-card,
  .cert-info-card {
    min-height: auto;
  }

  .service-last {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }

  .contact-form {
    padding: 24px;
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-btn {
    padding: 5px 9px;
    font-size: 0.75rem;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
