/* AI-Aided PHA – Marketing Website (SynergenOG-inspiriert) */
:root {
  --navy: #0b1d33;
  --navy2: #122a47;
  --teal: #1f6f5b;
  --teal-light: #2d9a7a;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --white: #ffffff;
  --gray-50: #f6f8fb;
  --gray-100: #eef2f7;
  --gray-200: #d8e0ea;
  --gray-500: #6b7c93;
  --gray-700: #3d4f66;
  --text: #1a2b3c;
  --shadow: 0 12px 40px rgba(11, 29, 51, 0.12);
  --radius: 8px;
  --max: 1180px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Top bar */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.topbar a { color: #fff; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.lang-switch { margin-left: auto; }
.lang-switch select {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.lang-switch select option { color: #1a2b3c; background: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 16px rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  white-space: nowrap;
}
.logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--navy2));
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 800;
}
.logo span { color: var(--teal); }

.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-main > a, .nav-drop > button {
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--gray-700);
  padding: 10px 14px;
  border-radius: 6px;
}
.nav-main > a:hover, .nav-main > a.active,
.nav-drop > button:hover { background: var(--gray-100); color: var(--navy); }
.nav-drop { position: relative; }
.nav-drop-panel {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 0;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop.open .nav-drop-panel { display: block; }
.nav-drop-panel a {
  display: block;
  padding: 10px 18px;
  color: var(--gray-700);
  font-size: 14px;
}
.nav-drop-panel a:hover { background: var(--gray-50); color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s, filter .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(31,111,91,.35); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.header-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 28px; cursor: pointer;
  color: var(--navy);
  padding: 8px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(11,29,51,.92) 0%, rgba(18,42,71,.78) 45%, rgba(31,111,91,.55) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; padding: 80px 0; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(201,162,39,.2);
  border: 1px solid rgba(201,162,39,.5);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 780px;
}
.hero-lead {
  font-size: 1.15rem;
  opacity: .92;
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Partners strip */
.partners {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
  text-align: center;
}
.partners p { margin: 0 0 16px; color: var(--gray-500); font-size: 14px; }
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: center;
  align-items: center;
}
.partner-logos span {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .7;
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy); color: #fff; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; color: inherit; }
.section-header p { color: var(--gray-500); margin: 0; font-size: 1.05rem; }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.service-card h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--navy); }
.service-card p { margin: 0; color: var(--gray-500); font-size: 15px; }
.service-card a { font-size: 14px; font-weight: 600; margin-top: 14px; display: inline-block; }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-item { text-align: center; padding: 20px; }
.why-num {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.2rem;
  display: grid; place-items: center;
}
.why-item h3 { margin: 0 0 8px; color: var(--navy); }
.why-item p { margin: 0; color: var(--gray-500); font-size: 15px; }

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-visual {
  background: linear-gradient(145deg, var(--navy2), var(--teal));
  border-radius: 16px;
  min-height: 320px;
  padding: 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-visual h3 { margin: 0 0 12px; font-size: 1.4rem; }
.split-visual ul { margin: 0; padding-left: 20px; opacity: .9; }
.split-visual li { margin-bottom: 8px; }

/* Software highlight */
.software-box {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.software-box-head {
  background: var(--navy);
  color: #fff;
  padding: 24px 28px;
}
.software-box-head h3 { margin: 0 0 6px; font-size: 1.4rem; }
.software-box-body { padding: 28px; }
.video-frame,
.video-player-wrap {
  background: #0f172a;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.video-player-wrap {
  position: relative;
}
.demo-video {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: #000;
}
.video-caption-overlay {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 72px;
  z-index: 3;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  display: none;
}
.video-caption-overlay.is-visible {
  display: block;
}
.video-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.video-cc-btn {
  border: 1px solid var(--gray-300);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.video-cc-btn.is-on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.video-toolbar-hint {
  font-size: 13px;
  color: var(--gray-500);
}
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  padding: 12px 0 12px 36px;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  font-size: 15px;
}
.feature-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--teal);
  font-weight: 700;
}
.feature-list li:last-child { border-bottom: none; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
}
.testimonial q {
  display: block;
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.55;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}
.testimonial .role { color: var(--gray-500); font-size: 13px; font-weight: 400; }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.news-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.news-card:hover { box-shadow: var(--shadow); }
.news-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--navy2), var(--teal));
}
.news-card-body { padding: 22px; }
.news-date { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
.news-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.news-card p { margin: 0; font-size: 14px; color: var(--gray-500); }

/* Certs */
.cert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.cert-badge {
  text-align: center;
  padding: 20px 28px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  min-width: 180px;
}
.cert-badge strong { display: block; color: var(--navy); font-size: 15px; }
.cert-badge span { font-size: 12px; color: var(--gray-500); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font: inherit;
  margin-bottom: 16px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info h3 { margin-top: 0; color: var(--navy); }
.contact-info p { color: var(--gray-500); }
.contact-info .info-row { margin-bottom: 20px; }
.contact-info .info-row strong { display: block; color: var(--navy); }

/* Page hero (subpages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-hero p { margin: 0; opacity: .85; max-width: 640px; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 56px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: #fff; margin: 0 0 16px; font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* Utilities */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 960px) {
  .why-grid, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }
  .nav-main.open { display: flex; }
  .nav-drop-panel {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
  }
  .header-inner { position: relative; }
}
