*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0f1117;
  --color-surface: #181a22;
  --color-text: #e4e6ed;
  --color-muted: #9498a6;
  --color-accent: #6c5ce7;
  --color-border: rgba(255, 255, 255, 0.06);
  --radius: 8px;
}

[data-theme="light"] {
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-muted: #6b7085;
  --color-accent: #6c5ce7;
  --color-border: rgba(0, 0, 0, 0.08);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ── */
.nav {
  position: relative;
  z-index: 10;
  padding: 1.25rem 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav__links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--color-text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-muted);
  transition: color 0.15s;
}

.theme-toggle:hover {
  color: var(--color-text);
}

.theme-toggle svg {
  display: block;
}

.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-text);
}

.nav__burger svg {
  display: block;
}

/* ── Mobile nav overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-overlay.is-open {
  display: flex;
}

.nav-overlay__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 4px;
}

.nav-overlay__close svg {
  display: block;
}

.nav-overlay a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}

.nav-overlay a:hover {
  color: var(--color-accent);
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    var(--color-bg) 100%
  );
}

/* ── Content ── */
.content {
  position: relative;
  z-index: 1;
  margin-top: -3rem;
  padding-bottom: 4rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.details {
  margin-bottom: 3rem;
}

.details p {
  margin-bottom: 1rem;
  color: var(--color-text);
  font-size: 1.05rem;
}

.details h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.details ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  font-size: 1.05rem;
}

.details li {
  margin-bottom: 0.4rem;
}

/* ── CTA ── */
.cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s;
}

.cta:hover {
  opacity: 0.85;
}

/* ── Embedded form ── */
.iframe-wrapper {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.iframe-wrapper iframe {
  display: block;
  width: 100%;
  height: 1276px;
  border: 0;
}

/* ── Card ── */
.form-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-wrapper h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-subtitle {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  text-align: center;
}

.footer p,
.footer a {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer__linkedin {
  display: inline-block;
  vertical-align: middle;
}

.footer__linkedin img {
  display: block;
  height: 16px;
  width: auto;
}

/* Dark theme (default): show white icon */
.footer__linkedin .linkedin-black { display: none; }
.footer__linkedin .linkedin-white { display: block; }

/* Light theme: show black icon */
[data-theme="light"] .footer__linkedin .linkedin-black { display: block; }
[data-theme="light"] .footer__linkedin .linkedin-white { display: none; }

/* ── Map page ── */
.map-count {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  height: 500px;
  margin-bottom: 2rem;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;
}

.map-wrapper #map {
  width: 100%;
  height: 100%;
}

.map-popup h3 {
  font-size: 14px;
  margin: 0 0 6px 0;
}

.map-popup p {
  font-size: 12px;
  margin: 2px 0;
  color: #444;
}

.map-popup a {
  color: #2563eb;
  text-decoration: none;
}

.map-popup a:hover {
  text-decoration: underline;
}

.map-unmapped {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  max-height: 250px;
  overflow-y: auto;
}

.map-unmapped h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.map-unmapped ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.map-unmapped li {
  margin: 0.25rem 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .form-wrapper {
    padding: 1.5rem;
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: block;
  }
}
