/* =============================================
   QUALYMENTOR – Brand Style Sheet
   Colors: #43C1C3 (teal) | #2E3232 (dark) | #8A9292 (gray) | #E0EDED (light)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --teal:       #43C1C3;
  --teal-dark:  #2fa7a9;
  --teal-light: #c6eef0;
  --dark:       #2E3232;
  --dark-soft:  #3a4040;
  --gray:       #8A9292;
  --light:      #E0EDED;
  --light-soft: #f2f8f8;
  --white:      #ffffff;
  --shadow:     0 4px 24px rgba(46,50,50,0.10);
  --shadow-lg:  0 8px 40px rgba(46,50,50,0.15);
  --radius:     10px;
  --radius-lg:  18px;
  --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Language classes */
body.de .lang-en { display: none !important; }
body.en .lang-de { display: none !important; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--dark-soft); }
p:last-child { margin-bottom: 0; }

.text-teal   { color: var(--teal); }
.text-gray   { color: var(--gray); }
.text-white  { color: var(--white); }
.font-light  { font-weight: 300; }
.font-medium { font-weight: 500; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}
.section-sm { padding: 60px 0; }
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p { color: var(--light); }

.section-light { background: var(--light-soft); }
.section-teal  { background: var(--teal); }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--light);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  background: rgba(67,193,195,0.10);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 3px;
  margin-left: 16px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.lang-btn.active {
  background: var(--teal);
  color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

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

.hero-logo {
  height: 64px;
  margin-bottom: 36px;
  animation: fadeDown 0.8s ease both;
}

.hero-tagline {
  display: inline-block;
  background: rgba(67,193,195,0.15);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(67,193,195,0.3);
  margin-bottom: 20px;
  animation: fadeDown 0.8s 0.1s ease both;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero h1 .accent { color: var(--teal); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--light);
  max-width: 600px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.35s ease both;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.5s ease both;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(67,193,195,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--dark-soft);
  transform: translateY(-2px);
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .label {
  display: inline-block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--gray);
}
.divider {
  width: 52px;
  height: 3px;
  background: var(--teal);
  margin: 18px auto 0;
  border-radius: 2px;
}
.section-header.left-align { text-align: left; }
.section-header.left-align p { margin-left: 0; }
.section-header.left-align .divider { margin-left: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  transition: var(--transition);
  border: 1px solid transparent;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-light);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--teal);
  margin-bottom: 20px;
  transition: var(--transition);
}
.card:hover .card-icon {
  background: var(--teal);
  color: var(--white);
}

.card h3 { margin-bottom: 12px; }

/* ---------- Grid Systems ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.grid-2-1 {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--teal);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item { }
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Feature / Why list ---------- */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.why-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1rem;
}
.why-item h4 { margin-bottom: 4px; font-size: 1rem; }
.why-item p  { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Principles ---------- */
.principles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
  box-shadow: 0 2px 10px rgba(46,50,50,0.06);
  transition: var(--transition);
}
.principle-item:hover { transform: translateX(6px); }
.principle-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal-light);
  line-height: 1;
  flex-shrink: 0;
}
.principle-item h4 { margin-bottom: 2px; font-size: 0.95rem; }
.principle-item p  { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Photo placeholder ---------- */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 340px;
  background: linear-gradient(135deg, var(--light) 0%, var(--teal-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  border: 2px dashed rgba(67,193,195,0.4);
}
.photo-placeholder i { font-size: 3rem; color: var(--teal); opacity: 0.5; }
.photo-placeholder .photo-hint { text-align: center; padding: 0 20px; }

/* Replace placeholder with real photo: just swap background-image */
.photo-placeholder.has-photo {
  border: none;
  background: none;
}
.photo-placeholder.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ---------- Quote / Highlight Block ---------- */
.quote-block {
  border-left: 4px solid var(--teal);
  padding: 20px 28px;
  background: var(--light-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
  font-size: 1.12rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.7;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67,193,195,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p  { color: var(--light); max-width: 500px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ---------- Contact Form ---------- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 44px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--light);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(67,193,195,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

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

/* ---------- Contact Info ---------- */
.contact-info-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: var(--white);
  height: 100%;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 28px; }
.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.info-item i {
  color: var(--teal);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.info-item a { color: var(--teal-light); }
.info-item a:hover { color: var(--teal); }

/* ---------- Footer ---------- */
.footer {
  background: #1e2424;
  color: var(--gray);
  padding: 48px 0 28px;
  font-size: 0.88rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo img { height: 32px; margin-bottom: 12px; }
.footer-tagline { font-size: 0.82rem; color: var(--gray); }
.footer-nav a {
  display: block;
  color: var(--gray);
  padding: 3px 0;
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--gray); }
.footer-bottom a:hover { color: var(--teal); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--dark);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.page-hero .label {
  display: inline-block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p  { color: var(--light); max-width: 580px; font-size: 1.1rem; }

/* ---------- Tag / Badge ---------- */
.badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 3px 3px 3px 0;
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---------- Keyframes ---------- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.float-anim { animation: float 4s ease-in-out infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3  { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 700px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-2-1        { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .section         { padding: 60px 0; }
  .hero { min-height: 85vh; }
  .hero-logo { height: 44px; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 24px; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.8rem; }
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
