/* ──────────────────────────────────────────────────────────────────────────
   1AITE B.V. — marketing site
   Mirrors the Elteq portal aesthetic: Barlow + Barlow Condensed, gold accent,
   sharp edges (no border-radius), 2 px grid gaps, dark default.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --bg:           #0d0d0d;
  --bg-2:         #141414;
  --surface:      #1a1a1a;
  --surface-2:    #222;
  --border:       #2a2a2a;
  --border-2:     #3a3a3a;
  --text:         #f1f1f1;
  --text-muted:   #a0a0a0;
  --text-dim:     #6a6a6a;
  --gold:         #d9b668;
  --gold-soft:    rgba(217, 182, 104, .12);

  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body:    'Barlow', system-ui, sans-serif;

  --max:          1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: #f0d28a; }

img { max-width: 100%; display: block; }

/* ── Main landmark ──────────────────────────────────────────────────────── */
main { display: block; }

/* ── Top navigation ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
}
.brand-mark {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--text);
}
.brand-mark .dot { color: var(--gold); }
.brand-tag {
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* ── Language switcher ──────────────────────────────────────────────────── */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.lang-btn:hover,
.lang-switch.open .lang-btn {
  border-color: var(--gold);
  color: var(--gold);
}
.lang-btn .lang-flag { font-size: 16px; line-height: 1; }
.lang-btn .chev {
  width: 10px;
  height: 10px;
  transition: transform .15s;
}
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }

.lang-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.lang-switch.open .lang-list { display: flex; flex-direction: column; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-option + .lang-option { border-top: 1px solid var(--border); }
.lang-option:hover { background: var(--surface-2); color: var(--gold); }
.lang-option.active { color: var(--gold); }
.lang-option.active::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  margin-left: auto;
}
.lang-option .lang-flag { font-size: 18px; line-height: 1; flex-shrink: 0; }
.lang-option .lang-name { font-weight: 500; }

@media (max-width: 540px) {
  .nav-inner { gap: 16px; padding: 14px 18px; }
  .nav-links { gap: 14px; }
  .lang-btn { padding: 7px 10px; }
  .lang-btn .lang-code { display: none; }
  .lang-list { min-width: 180px; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0d0d0d;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.btn:hover { background: #f0d28a; border-color: #f0d28a; color: #0d0d0d; }
.btn-ghost {
  background: transparent;
  color: var(--gold);
}
.btn-ghost:hover { background: var(--gold-soft); color: var(--gold); }

.btn svg { flex-shrink: 0; }

/* ── Section primitives ─────────────────────────────────────────────────── */
.section {
  padding: 96px 32px;
}
.section-narrow {
  padding: 72px 32px;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 24px;
}
.h1 strong { font-weight: 700; }
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 18px;
}
.h2 strong { font-weight: 700; }
.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 140px 32px 110px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(217, 182, 104, .08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(217, 182, 104, .05), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.hero p { max-width: 680px; }
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Mission ───────────────────────────────────────────────────────────── */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.mission-card {
  background: var(--surface);
  padding: 36px 32px;
  border-left: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0;
}
.mission-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}
.mission-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 6px;
}
@media (max-width: 760px) {
  .mission-grid { grid-template-columns: 1fr; }
}

/* ── Portals ───────────────────────────────────────────────────────────── */
.portal-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.portal-card {
  background: var(--surface);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 3px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.portal-card:hover {
  background: var(--surface-2);
  border-bottom-color: var(--gold);
  color: var(--text);
}
.portal-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: flex-start;
}
.portal-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: .01em;
}
.portal-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.portal-card .url {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-dim);
  word-break: break-all;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.portal-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .portal-grid { grid-template-columns: 1fr; }
}

/* ── Contact page ──────────────────────────────────────────────────────── */
.map-wrap {
  width: 100%;
  height: 460px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2px;
  margin-top: 32px;
}
.contact-card {
  background: var(--surface);
  padding: 40px 36px;
}
.contact-card h2 { margin-top: 0; }
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-line:last-child { border-bottom: none; }
.contact-line .icon {
  width: 32px;
  height: 32px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-line .label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-line .value {
  font-size: 15px;
  font-weight: 500;
}
.contact-line .value a { color: var(--text); border-bottom: 1px dotted var(--border-2); }
.contact-line .value a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.contact-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap { height: 320px; }
}

/* ── Capabilities (3-card grid) ────────────────────────────────────────── */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.cap-card {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 3px solid var(--gold);
}
.cap-card .cap-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 4px;
}
.cap-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0;
}
.cap-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14.5px;
}
@media (max-width: 980px) { .caps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .caps-grid { grid-template-columns: 1fr; } }

/* ── Networking section ────────────────────────────────────────────────── */
.net-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.net-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
}
.net-card {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.net-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.net-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.net-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14.5px;
}
@media (max-width: 760px) { .net-grid { grid-template-columns: 1fr; } }

/* ── FAQ section ───────────────────────────────────────────────────────── */
.faq-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-item {
  background: var(--surface);
  border-left: 3px solid transparent;
  transition: border-color .15s, background .15s;
}
.faq-item[open] {
  border-left-color: var(--gold);
  background: var(--surface-2);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq-item summary:hover { color: var(--gold); }
.faq-item > div { padding: 0 28px 22px 28px; }
.faq-item [itemprop="text"] {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 14.5px;
  max-width: 880px;
}
@media (max-width: 600px) {
  .faq-item summary { padding: 18px 20px; font-size: 1rem; }
  .faq-item > div { padding: 0 20px 18px 20px; }
}

/* ── Contact form ──────────────────────────────────────────────────────── */
.form-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 32px 80px;
}
.form-shell {
  max-width: 760px;
  margin: 0 auto;
}
.form-shell .eyebrow { margin-bottom: 12px; }
.form-shell .h2 { margin-bottom: 14px; }

.contact-form {
  background: var(--surface);
  padding: 36px 32px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.contact-form .field-row { display: flex; flex-direction: column; gap: 6px; }
.contact-form .field-row.full { grid-column: 1 / -1; }
.contact-form label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-form label .opt {
  margin-left: 6px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
  font-size: 11px;
  font-family: var(--font-body);
}
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color .15s, background .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  background: var(--surface-2);
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.6;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23a0a0a0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.contact-form .actions { grid-column: 1 / -1; margin-top: 6px; }
.contact-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .contact-form { grid-template-columns: 1fr; padding: 28px 22px; }
}

/* ── Form flash banners ────────────────────────────────────────────────── */
.flash {
  margin-top: 28px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-left: 3px solid var(--gold);
  background: var(--surface);
}
.flash.flash-success { border-left-color: #4ddb9e; }
.flash.flash-error   { border-left-color: #ff6b6b; }
.flash .flash-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.flash.flash-success .flash-icon { color: #4ddb9e; }
.flash.flash-error   .flash-icon { color: #ff6b6b; }
.flash .flash-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.flash .flash-body { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
}
.footer .copy { font-family: var(--font-display); letter-spacing: .04em; }
.footer .links { margin-left: auto; display: flex; gap: 24px; }
.footer .links a {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
}
.footer .links a:hover { color: var(--gold); }
