:root {
  --navy: #0b2a45;
  --navy-dark: #071c30;
  --gold: #e8952e;
  --gold-light: #f8c876;
  --text: #24303b;
  --muted: #64707c;
  --border: #e6e9ec;
  --bg: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.topbar {
  background: var(--navy-dark);
  color: #cdd8e2;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 28px;
  letter-spacing: 1px;
}
.topbar .lang-switch a {
  color: #cdd8e2;
  text-decoration: none;
  font-weight: 600;
}
.topbar .lang-switch a:hover { color: var(--gold-light); }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(11,42,69,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 6px 28px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-item { position: relative; }
.nav-item > a, .nav-item > span {
  display: inline-block;
  padding: 14px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.nav-item > a:hover, .nav-item:hover > span {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-item.has-dropdown > span::after {
  content: " \25BE";
  font-size: 0.7rem;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  box-shadow: 0 12px 24px rgba(11,42,69,0.12);
  min-width: 280px;
  padding: 10px 0;
  z-index: 30;
}
.nav-item.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.dropdown a:hover { background: #fbf3e7; color: var(--gold); }

.hero {
  position: relative;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-overlay {
  width: 100%;
  background: linear-gradient(100deg, rgba(7,28,48,0.88) 0%, rgba(7,28,48,0.55) 55%, rgba(7,28,48,0.25) 100%);
  padding: 50px 0;
}
.hero h1 {
  color: #fff;
  font-size: 2.2rem;
  max-width: 640px;
  margin: 0;
}
.hero-plain {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  min-height: 140px;
}
.hero-plain h1 { color: #fff; padding: 40px 0; margin: 0; font-size: 2rem; }

.page-content {
  padding: 48px 28px 64px;
  max-width: 880px;
}
.page-content h2 { font-size: 1.5rem; color: var(--navy); margin-top: 1.5em; }
.page-content h3 { font-size: 1.25rem; color: var(--gold); margin-top: 1.3em; }
.page-content h4 { font-size: 1.05rem; color: var(--muted); font-weight: 700; margin-top: 1.2em; }
.page-content p { margin: 0.85em 0; }
.page-content ul { padding-left: 1.3em; }
.site-img, .page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 22px 0;
  box-shadow: 0 6px 20px rgba(11,42,69,0.08);
}
.second-section__cta {
  display: inline-block;
  margin: 10px 0 22px;
  color: #fff;
  background: var(--gold);
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.second-section__cta:hover { background: var(--navy); }

/* services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 28px 0 44px;
}
.service-card {
  position: relative;
  display: block;
  height: 230px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(11,42,69,0.14);
}
.service-card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}
.service-card:hover .service-card-media { transform: scale(1.06); }
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,28,48,0.88) 0%, rgba(7,28,48,0.15) 55%, rgba(7,28,48,0) 75%);
}
.service-card-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  z-index: 2;
  line-height: 1.3;
}

/* footer */
.site-footer {
  background: var(--navy-dark);
  color: #b9c6d1;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 28px 20px;
  align-items: flex-start;
}
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer-col a {
  color: #b9c6d1;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 2;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 28px;
  font-size: 0.8rem;
  color: #7e8da0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (hover: hover) {
  .nav-item.has-dropdown:hover .dropdown { display: block; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 12px 20px; }
  .logo img { height: 56px !important; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 8px;
  }
  .main-nav.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-item > a, .nav-item > span {
    display: block;
    width: 100%;
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
    border-bottom-width: 1px !important;
  }
  .nav-item.has-dropdown > span::after { float: right; }
  .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--gold);
    padding: 0 0 0 14px;
    min-width: 0;
  }
  .nav-item.has-dropdown.open .dropdown { display: block; }
  .dropdown a { padding: 11px 6px; border-bottom: 1px solid var(--border); }
  .topbar-inner { flex-wrap: wrap; gap: 4px; padding: 8px 20px; font-size: 0.78rem; }
}

/* CTA fix: always its own line, clear separation from preceding text */
.second-section__cta {
  display: block;
  width: fit-content;
}

/* Certifications & Clients sections */
.section-accent-title {
  font-size: 1.4rem;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 14px;
  margin: 48px 0 20px;
}
.certs-card, .clients-section {
  background: #fbfbfc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 30px;
}
.certs-card-sub, .clients-sub {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 18px;
}
.cert-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.cert-badge {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  background: #fff;
}
.cert-badge-done {
  border: 1px solid var(--gold);
  background: #fbf3e7;
}
.standards-text {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 18px;
}
.standards-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.standard-logo {
  height: 42px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  filter: grayscale(15%);
}
.clients-section { margin-top: 20px; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.client-badge {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  background: #fff;
  letter-spacing: 0.3px;
}

/* homepage hero, SGS-style */
.hero-home {
  min-height: 460px;
  align-items: flex-end;
}
.hero-home .hero-overlay {
  background: linear-gradient(180deg, rgba(7,28,48,0.35) 0%, rgba(7,28,48,0.55) 40%, rgba(7,28,48,0.92) 100%);
  padding: 60px 0 56px;
  width: 100%;
}
.hero-eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.hero-home h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 680px;
  margin: 0 0 16px;
}
.hero-subtext {
  color: #dbe4ec;
  max-width: 560px;
  font-size: 1.02rem;
  margin: 0 0 26px;
}
.hero-cta {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
}
.hero-cta:hover { background: var(--gold-light); }

/* header lang switch (always visible, compact) */
.header-lang-switch {
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}
.header-lang-switch a { color: var(--navy); text-decoration: none; }
.header-lang-switch a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .topbar { display: none; }
  .header-lang-switch { display: block; margin-left: auto; margin-right: 14px; }
  .main-nav { margin-left: 0; }
  .hero-home { min-height: 360px; }
  .hero-home h1 { font-size: 1.9rem; }
  .hero-subtext { font-size: 0.95rem; }
}
