/* TÜV Austria Egypt — Bipsync-inspired: mint accent, minimal, crisp typography */
:root {
  --mint: #E20612;
  --mint-dark: #b8050e;
  --mint-light: #ff3d4a;
  --mint-bg: rgba(226, 6, 18, 0.06);
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-light: #64748b;
  --bg: #fafafa;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 20px rgba(226, 6, 18, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.05s !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--bg); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 720px; }

/* ========== HEADER — Bipsync-style: minimal, crisp, hover underline */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-link img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-main a {
  position: relative;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0;
  transition: color 0.2s var(--ease);
}

.nav-main a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--mint);
  transition: width 0.25s var(--ease);
}

.nav-main a:hover {
  color: var(--ink);
}

.nav-main a:hover::after,
.nav-main a.active::after {
  width: 100%;
}

.nav-main a.active {
  color: var(--ink);
}

/* Solutions dropdown */
.nav-item {
  position: relative;
}
.nav-item > a .nav-arrow {
  font-size: 0.65em;
  opacity: 0.8;
  margin-left: 0.2rem;
  vertical-align: middle;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 0.5rem 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 1001;
  margin-top: 2px;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover {
  color: var(--mint);
  background: var(--mint-bg);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.375rem;
  background: var(--mint);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn-cta:hover {
  background: var(--mint-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .site-header .container { height: 72px; }
  .nav-main,
  .site-header .btn-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-main.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 1.5rem 1.5rem 1.75rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  }
  .nav-main.open a {
    padding: 0.65rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-main.open a:last-child { border-bottom: none; }
  .nav-main.open a::after { display: none; }
  .nav-main.open .nav-item .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 0 1rem;
    margin-bottom: 0.5rem;
    background: transparent;
  }
  .nav-main.open .nav-dropdown a { padding: 0.5rem 0; }
  .site-header .btn-cta.show { display: inline-flex; margin-top: 1rem; }
}

/* ========== HERO — centered or left, minimal, one line + sub + 2 CTAs */
.hero-bipsync {
  padding: 10rem 0 6rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.hero-bipsync .container { text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }

.hero-bipsync__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 1.25rem;
}

.hero-bipsync__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-bipsync__sub {
  font-size: 1.25rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 0 2rem;
}

.hero-bipsync__ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-bipsync__ctas .btn-cta { padding: 0.875rem 1.75rem; font-size: 1rem; }
.hero-bipsync__ctas .btn-outline { border-color: var(--ink); color: var(--ink); }
.hero-bipsync__ctas .btn-outline:hover { background: var(--ink); color: white; }

/* ========== SECTIONS — minimal, lots of whitespace */
.section { padding: 5rem 0; background: var(--bg-white); }
.section--alt { background: var(--bg); }
.section--dark { background: var(--ink); color: white; }
.section--dark .section__tag { color: var(--mint-light); }
.section--dark .section__title { color: white; }
.section--dark .section__lead { color: rgba(255,255,255,0.75); }
.section--dark .list-check li { color: rgba(255,255,255,0.9); }
.section--dark .list-check a { color: var(--mint-light); text-decoration: none; }
.section--dark .list-check a:hover { text-decoration: underline; }

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section__lead { font-size: 1.125rem; color: var(--ink-muted); margin: 0 0 2rem; max-width: 40rem; line-height: 1.6; }

/* ========== STATS BAR — big numbers, minimal */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
}

.stats-bar__value { font-size: 2.25rem; font-weight: 700; color: var(--mint); display: block; margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.stats-bar__label { font-size: 0.875rem; color: var(--ink-muted); }

/* ========== CARDS — clean, subtle border, hover glow */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { border-color: var(--mint); box-shadow: var(--shadow-hover); }

.card__img {
  height: 180px;
  background: var(--bg) no-repeat center/cover;
}

.card__body { padding: 1.5rem; }
.card__title { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--ink); }
.card__text { color: var(--ink-muted); font-size: 0.9375rem; margin: 0; line-height: 1.6; }
.card__link { display: inline-block; margin-top: 0.75rem; font-weight: 600; color: var(--mint); text-decoration: none; font-size: 0.9375rem; transition: color 0.2s; }
.card__link:hover { color: var(--mint-dark); }

/* ========== IMAGE BLOCK — full width, overlay text */
.img-block {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: var(--ink) no-repeat center/cover;
  padding: 4rem 0;
}
.img-block::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.5) 100%); }
.img-block .container { position: relative; z-index: 1; }
.img-block__title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; color: white; margin: 0 0 0.5rem; }
.img-block__text { color: rgba(255,255,255,0.85); font-size: 1.0625rem; max-width: 28rem; margin: 0; line-height: 1.6; }

/* ========== SECTORS / TAGS */
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.sector-tag {
  display: block;
  padding: 0.875rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sector-tag:hover { border-color: var(--mint); color: var(--mint); background: var(--mint-bg); }

/* ========== TWO COLUMN */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col__img { aspect-ratio: 4/3; background: var(--bg) no-repeat center/cover; border-radius: var(--radius); min-height: 280px; }
.two-col__title { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.75rem; color: var(--ink); }
.two-col__text { color: var(--ink-muted); margin: 0 0 0.75rem; font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } .two-col__img { min-height: 220px; } }

/* ========== LIST WITH CHECK */
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--ink);
}
.list-check li:last-child { border-bottom: none; }
.list-check li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--mint);
  border-radius: 50%;
  margin-top: 0.2rem;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ========== CONTACT CARDS */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.contact-card {
  padding: 1.75rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-card:hover { border-color: var(--mint); box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.75rem; color: var(--ink); }
.contact-card p { margin: 0 0 0.4rem; color: var(--ink-muted); font-size: 0.9375rem; }
.contact-card a { color: var(--mint); text-decoration: none; font-weight: 500; }
.contact-card a:hover { color: var(--mint-dark); text-decoration: underline; }

/* ========== PAGE HERO (inner pages) */
.page-hero {
  padding: 8rem 0 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero .container { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.page-hero p { color: var(--ink-muted); font-size: 1.125rem; margin: 0; line-height: 1.6; }

/* ========== CONTENT BLOCK */
.content-block { padding: 2rem 0; }
.content-block h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.75rem; color: var(--ink); }
.content-block p { margin: 0 0 0.75rem; color: var(--ink-muted); max-width: 65ch; line-height: 1.6; }
.content-block ul { margin: 0 0 0.75rem; padding-left: 1.5rem; color: var(--ink-muted); }

/* ========== SOLUTIONS LIST */
.solutions-list { list-style: none; padding: 0; margin: 0; }
.solutions-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.solutions-list li:last-child { border-bottom: none; }
.solutions-list a { font-weight: 600; color: var(--ink); text-decoration: none; }
.solutions-list a:hover { color: var(--mint); }
.solutions-list .sector { font-size: 0.75rem; color: var(--ink-light); background: var(--bg); padding: 0.2rem 0.5rem; border-radius: 4px; }

/* Solution category cards (hub) */
.solution-category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .solution-category-cards { grid-template-columns: 1fr; }
}
.solution-category-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
}
.solution-category-card:hover {
  border-color: var(--mint);
  box-shadow: var(--shadow-hover);
}
.solution-category-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.solution-category-card__text {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}
.solution-category-card__count {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
}
.solution-category-card__link {
  font-weight: 600;
  color: var(--mint);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.solution-category-card:hover .solution-category-card__link { text-decoration: underline; }

/* Solution grid by sector (sub-pages) */
.solution-sectors { margin-top: 2rem; }
.solution-sector {
  margin-bottom: 2.5rem;
}
.solution-sector__title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--ink-muted);
}
.breadcrumb a {
  color: var(--mint);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--ink-light); }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.solution-item:hover {
  border-color: var(--mint);
  box-shadow: 0 2px 12px rgba(226, 6, 18, 0.08);
}
.solution-item a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.4;
  flex: 1;
}
.solution-item a:hover { color: var(--mint); }
.solution-item .sector-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg);
  color: var(--ink-light);
  border-radius: 4px;
}
.solution-item .ext-link {
  flex-shrink: 0;
  color: var(--ink-light);
  font-size: 0.75rem;
}

/* ========== FOOTER — minimal, clean */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 5rem 0 2.5rem;
}

.site-footer .container {
  max-width: 1200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }
}

/* Brand column (first column) */
.site-footer .footer-grid > div:first-child .logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.site-footer .footer-grid > div:first-child .logo-link img {
  height: 48px;
  width: auto;
  opacity: 1;
  display: block;
}

.site-footer .footer-grid > div:first-child p {
  font-size: 0.9375rem;
  margin: 0;
  max-width: 360px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}

/* Link columns */
.site-footer h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.95);
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}

.site-footer ul li:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--mint-light);
}

.section--dark .btn-outline { border: 2px solid rgba(255,255,255,0.5); color: white; background: transparent; }
.section--dark .btn-outline:hover { border-color: white; color: white; background: white; color: var(--ink); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.footer-bottom a {
  color: rgba(255,255,255,0.75);
}

.footer-bottom a:hover {
  color: var(--mint-light);
}

/* ========== ANIMATE IN */
.animate-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.animate-in.visible { opacity: 1; transform: translateY(0); }
