/* =========================================
   Navigation — white bar with subtle shadow
   ========================================= */

/* The <header id="nav"> wrapper that main.js injects into */
header#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  overflow: visible;
}

nav {
  position: relative;  /* sits inside header#nav which handles fixed positioning */
  top: auto;
  left: auto;
  right: auto;
  height: 68px;
  padding: 0 5vw;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-mid);
  box-shadow: 0 1px 10px rgba(13, 30, 53, 0.07);

  z-index: 100;
  overflow: visible;   /* allow dropdown to extend below the 68px bar */
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 2px 20px rgba(13, 30, 53, 0.11);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.03em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* On mobile the nav-links is a dropdown — no right padding needed */
@media (max-width: 900px) {
  .nav-links {
    padding-right: 0;
  }
}

.nav-links a {
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cobalt);
}

/* =========================================
   Buttons
   ========================================= */

.btn-primary {
  background: var(--cobalt);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 14px rgba(26, 107, 181, 0.30);
}

.btn-primary:hover {
  background: var(--cobalt-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(26, 107, 181, 0.38);
  color: #ffffff;
}

.btn-ghost {
  color: var(--cobalt);
  border: 1.5px solid var(--border-strong);
  padding: 11px 24px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--cobalt);
  background: var(--cobalt-faint);
  color: var(--cobalt-deep);
}

/* =========================================
   Generic Card
   ========================================= */

.card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(13, 30, 53, 0.05);
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================================
   Footer (base reset — sections.css handles layout)
   ========================================= */

footer {
  font-size: 0.85rem;
}

/* =========================================
   Mobile Navigation
   ========================================= */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-mid);
    box-shadow: 0 6px 20px rgba(13, 30, 53, 0.10);
    flex-direction: column;
    padding: 1.5rem 5vw;
    gap: 1.2rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   About — Company Details Grid
   ========================================= */

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-mid);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 3px 16px rgba(13, 30, 53, 0.07);
}

.detail-cell {
  background: var(--surface);
  padding: 1.4rem 1.6rem;
  transition: background 0.15s ease;
}

.detail-cell:hover {
  background: var(--cobalt-faint);
}

.detail-cell-label {
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.detail-cell-val {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

@media (max-width: 600px) {
  .about-details {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   VDES Comparison Card
   ========================================= */

.vdes-card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 28px rgba(13, 30, 53, 0.09);
}

.vdes-card-title {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vdes-card-title::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--cobalt);
  border-radius: 2px;
}

.vdes-metrics {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.vdes-metric {
  background: var(--surface-mid);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.vdes-metric:hover {
  background: var(--cobalt-faint);
}

.vdes-metric:last-child {
  border-bottom: none;
}

.vdes-metric-label {
  font-size: 0.88rem;
  color: var(--ink-mid);
  font-weight: 500;
}

.vdes-metric-val {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cobalt);
}

.vdes-metric-val.muted {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.vdes-metric-val.positive {
  color: var(--signal);
  font-size: 0.95rem;
  font-weight: 600;
}

.vdes-status {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--surface);
  background: var(--cobalt);
  padding: 4px 12px;
  border-radius: 3px;
  font-weight: 700;
}

/* =========================================
   Contact Layout
   ========================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 80px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.6rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1.5px solid var(--border-mid);
  background: var(--cobalt-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.contact-info-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.contact-info-item a {
  color: var(--cobalt);
  font-size: 0.88rem;
}

/* Contact form panel */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 6px 36px rgba(13, 30, 53, 0.09);
}

.contact-form-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 7px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: var(--bg-alt);
  border: 1.5px solid var(--border-mid);
  border-radius: 5px;
  padding: 11px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--muted-light);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--cobalt);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 107, 181, 0.10);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-gdpr-note {
  font-size: 0.74rem;
  color: var(--muted-light);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 500px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Language Switcher — image flags
   ========================================= */

/* The <li> wrapper that holds the switcher inside nav-links */
.lang-switcher-item {
  padding: 0;
  list-style: none;
}

.lang-switcher {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  margin: 0;
}

/* Desktop: divider separates flags from nav links */
@media (min-width: 901px) {
  .lang-switcher-item {
    padding-left: 1.25rem;
    margin-left: 0.5rem;
    border-left: 1px solid var(--border-mid);
  }
}

.lang-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
  border: 1.5px solid transparent;
}

.lang-link img {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  display: block;
  object-fit: cover;
  filter: drop-shadow(0 1px 2px rgba(13, 30, 53, 0.20));
}

.lang-link:hover {
  opacity: 1;
  background: var(--cobalt-faint);
  transform: translateY(-1px);
}

.lang-link.lang-active {
  opacity: 1;
  border-color: var(--cobalt);
  background: var(--cobalt-pale);
}

.lang-link.lang-active img {
  filter: drop-shadow(0 1px 3px rgba(26, 107, 181, 0.30));
}

/* Mobile: switcher sits inside the open dropdown menu.
   Show as a row of flags at the bottom of the menu,
   separated from the nav links by a top border. */
@media (max-width: 900px) {
  .lang-switcher-item {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-mid);
  }

  .lang-switcher {
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .lang-link {
    width: 42px;
    height: 32px;
    opacity: 0.55;
  }

  .lang-link img {
    width: 26px;
    height: 18px;
  }
}
