/* ---------------------------------------------------
   Montserrat fonts
--------------------------------------------------- */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/montserrat-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/montserrat-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-700.woff2') format('woff2');
}

/* ---------------------------------------------------
   Team cards
--------------------------------------------------- */

.team-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Name */
.team-card .person-name {
  font-weight: 700;
}

/* LinkedIn "in" next to the name */
.team-card .linkedin-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0A66C2;
  text-decoration: none;
  line-height: 1;
  margin-top: 2px;
}

.team-card .linkedin-link:hover {
  text-decoration: underline;
  color: #004182;
}

/* ---------------------------------------------------
   Footer socials
--------------------------------------------------- */

footer .social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

footer .social a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------
   Contact page layout
--------------------------------------------------- */

main.container .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px;
  align-items: start;
}

/* Ensure cards inside do not overflow and break the grid */
main.container .contact-grid > form.contact-form,
main.container .contact-grid > aside.card {
  min-width: 0;
}

/* Mobile */
@media (max-width: 900px) {
  main.container .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------
   Contact form: base styling
--------------------------------------------------- */

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0066ff;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

/* Contacts form: hide honeypot field (anti-spam) */
.contact-form p[style*="display:none"],
.contact-form input[name="bot-field"] {
  display: none !important;
}

/* ---------------------------------------------------
   Contacts – socials formatting
--------------------------------------------------- */

.contact-grid aside.card p.socials {
  margin-left: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-grid aside.card p.socials a + a::before {
  content: "•";
  margin: 0 0.5rem;
  opacity: 0.6;
}

/* ---------------------------------------------------
   Header layout (desktop)
--------------------------------------------------- */

@media (min-width: 901px) {
  header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  header .brand img {
    height: 80px;
    display: block;
  }

  header .nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
  }

  header .nav .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-left: 20px;
  }

  header .nav .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
  }

  header .nav .nav-links a {
    position: relative;
    text-align: center;
    padding: 4px 0;
  }

  header .nav .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: #0b132b;
    transform: scaleX(0);
    transition: transform 0.18s ease-out;
  }

  header .nav .nav-links a:hover::after,
  header .nav .nav-links a.is-active::after {
    transform: scaleX(1);
  }
}

/* ---------------------------------------------------
   Header social icons (single source of truth)
--------------------------------------------------- */

header .nav .nav-actions .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F2F4F7;
  color: #0b132b;
  font-size: 0; /* prevent stray whitespace/text */
  transition: background 0.2s, transform 0.2s;
}

header .nav .nav-actions .btn-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

header .nav .nav-actions .btn-icon:hover {
  background: #e6e8ec;
  transform: scale(1.05);
}

/* ---------------------------------------------------
   Mobile menu social links (avoid conflicts with header .btn-icon)
--------------------------------------------------- */

@media (max-width: 980px) {
  .mobile-panel .mobile-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-weight: 600;
  }

  .mobile-panel .mobile-social .icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-panel .mobile-social svg {
    width: 22px;
    height: 22px;
  }
}

/* ---------------------------------------------------
   Internal links (SEO-friendly)
--------------------------------------------------- */

.internal-links {
  margin-top: 32px;
  font-size: 0.95rem;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0.85;
}

.internal-links a {
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.internal-links a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* ---------------------------------------------------
   Fixed header (desktop only)
--------------------------------------------------- */

@media (min-width: 901px) {
  body {
    padding-top: 96px; /* prevent content under fixed header */
  }

  header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background-color: #ffffff;
  }
}

/* Fix: allow scrolling inside mobile menu (esp. landscape) */
.mobile-panel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: 100dvh;
}

@supports not (height: 100dvh) {
  .mobile-panel { max-height: 100vh; }
}

/* Hide language fallback nav (SEO-only, no UI) */
.lang-fallback {
  display: none !important;
}

/* ===================================================
   Contacts form — hard override (desktop)
   Goal: keep page 2 columns (form + aside),
   but force the FORM itself to be single-column stacked.
=================================================== */

@media (min-width: 901px) {
  /* Force form to NOT be grid/flex */
  main.container .contact-grid form.contact-form {
    display: block !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    gap: 0 !important;
  }

  /* Force all direct children to be stacked full width */
  main.container .contact-grid form.contact-form > * {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;

    /* neutralize possible grid/flex leftovers */
    float: none !important;
    flex: none !important;
    grid-column: auto !important;
    align-self: auto !important;
    justify-self: auto !important;
  }

  /* Keep button natural width */
  main.container .contact-grid form.contact-form button.btn {
    width: auto !important;
    display: inline-block !important;
  }
}

