/* ===== Self-hosted Montserrat (variable, weights 100–900) ===== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-var.woff2') format('woff2');
}

:root {
  --green-deep: #16351f;
  --gold: #c9a24b;
  --gold-light: #f0dca0;
  --gold-dark: #9c7628;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--white);
  background-color: var(--green-deep);
  background-image: linear-gradient(rgba(0,0,0,0.40), rgba(0,0,0,0.40)),
                    url('../img/vantagedrive-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Top bar (two rows) ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 56px) 0;
}

.brand {
  font-weight: 400;
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

/* Capsule-shaped FI/ENG button with thin gold border */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(201, 162, 75, 0.08);
  cursor: pointer;
  color: var(--white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
  flex: 0 0 auto;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.lang:hover { background: rgba(201, 162, 75, 0.16); box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.45); }
.lang .sep { opacity: 0.5; }
.lang .opt { opacity: 0.5; transition: opacity 0.2s ease, color 0.2s ease; }
.lang .opt.active { opacity: 1; color: var(--gold-light); }

/* ---------- Centre nav: Get in touch + Contact ---------- */
.centernav {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(56px, 16vw, 160px);
  padding: 16px clamp(18px, 5vw, 40px) 0;
}

.nav-link {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-family: inherit;
  font-weight: 300;
  font-size: clamp(15px, 2.4vw, 20px);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 1;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--gold-light); }

.contact-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }

.contact-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: rgba(10, 26, 16, 0.9);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  white-space: nowrap;
  z-index: 60;
}
.contact-panel.show { display: block; }
.contact-panel a, .contact-panel span {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.12em;
  line-height: 2;
}
.contact-panel a:hover { color: var(--gold-light); }

/* ---------- Hero / centre tagline ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px clamp(18px, 5vw, 40px) 80px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0) 78%);
  pointer-events: none;
}
.tagline {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  text-align: center;
  color: var(--white);
  font-weight: 300;
  letter-spacing: 0.30em;
  line-height: 1.7;
  font-size: clamp(20px, 4.2vw, 46px);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

/* ---------- Contact form section ---------- */
#contact-form { scroll-margin-top: 130px; }

.form-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(18px, 5vw, 40px) 90px;
}

.form-card {
  width: 100%;
  max-width: 560px;
  background: rgba(10, 26, 16, 0.72);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 14px;
  padding: clamp(26px, 5vw, 44px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-title {
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 26px;
}

.vd-form { display: flex; flex-direction: column; gap: 16px; }

.vd-form input,
.vd-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 13px 15px;
}
.vd-form input::placeholder,
.vd-form textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.vd-form input:focus,
.vd-form textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.09); }
.vd-form textarea { resize: vertical; min-height: 130px; }

/* honeypot — piilossa käyttäjiltä */
.vd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-btn {
  margin-top: 4px;
  align-self: center;
  background: var(--gold);
  color: #14241a;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.form-btn:hover { background: var(--gold-light); }

.form-note {
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.form-note.ok  { background: rgba(201, 162, 75, 0.15); border: 1px solid var(--gold); color: var(--gold-light); }
.form-note.err { background: rgba(180, 60, 60, 0.15); border: 1px solid rgba(220, 120, 120, 0.6); color: #f0c9c9; }

/* ---------- Responsive (no hamburger — nav stays top-centre) ---------- */
@media (max-width: 760px) {
  .nav-link { letter-spacing: 0.14em; font-size: clamp(14px, 3.6vw, 19px); }
  .centernav { gap: clamp(40px, 12vw, 90px); }
  .tagline { letter-spacing: 0.22em; line-height: 1.6; }
  .hero { padding-top: 160px; }
}

@media (max-width: 400px) {
  .brand { letter-spacing: 0.26em; font-size: 14px; }
  .nav-link { letter-spacing: 0.10em; }
  .centernav { gap: 34px; }
  .tagline { letter-spacing: 0.16em; }
  .lang { padding: 6px 13px; font-size: 11px; gap: 7px; }
}
