:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0b5bd3;
  --primary-600: #0848a6;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: #f5f7fb;
}

header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }
.brand { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.brand a { text-decoration: none; color: inherit; }
.brand .brand-name {
  font-weight: 800;
  letter-spacing: .3px;
  position: relative;
  background: linear-gradient(90deg, #0b5bd3, #17b26a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .brand-name::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, #0b5bd3, #17b26a);
  border-radius: 2px;
}
.brand .domain { font-size: 12px; letter-spacing: .2px; }
.muted { color: var(--muted); }

/* Primary nav */
#site-nav { display: flex; align-items: center; gap: 12px; }
#site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-right: 10px;
}
#site-nav a:hover { color: var(--primary); }

.lang-switcher a { text-decoration: none; margin-left: 8px; }
.lang-switcher a.active { color: var(--primary); font-weight: 600; }
.lang-select { margin-left: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); }

/* Hamburger */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(2,6,23,0.04);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.menu-toggle:hover { background: #f8fafc; border-color: #dbe2ea; box-shadow: 0 2px 6px rgba(2,6,23,0.06); }
.menu-toggle { position: relative; }
.menu-toggle { flex-direction: column; gap: 5px; }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, background-color .2s ease, width .25s ease;
}
.menu-toggle:hover span { background: var(--primary-600); }

/* Morph to a chevron-down when menu is open */
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(.6); }
/* Tweak transform-origin so bars form a neat chevron */
.menu-toggle span:nth-child(1) { transform-origin: right center; }
.menu-toggle span:nth-child(3) { transform-origin: left center; }
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 16px; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 16px; }

/* Responsive behavior */
@media (max-width: 1200px) {
  #site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  body.nav-open #site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.08);
    padding: 4px 0;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open #site-nav a {
    display: block;
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
  }
  body.nav-open #site-nav a:first-child { border-top: 0; }
}

main {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04);
  margin: 24px auto;
  padding: 24px;
}

h1, h2, h3 { color: var(--primary-600); }

.cta-button, .btn {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.cta-button:hover, .btn:hover { background: var(--primary-600); }

footer {
  color: var(--muted);
  padding: 24px 0 40px;
  text-align: center;
}
.footer-links { margin-bottom: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; margin-right: 10px; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }

/* Disclaimer box */
.disclaimer {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 14px;
}
.disclaimer p { margin: 6px 0; }

/* Helpful resource box */
.help-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--primary);
  background: #f1f5ff;
  border-radius: 6px;
  font-size: 14px;
}
.help-box a { color: var(--primary); text-decoration: underline; }
.help-box a:hover { color: var(--primary-600); }

/* Steps (Travel with ETIAS in 5 steps) */
.steps-container-custom {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.step-item-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(2,6,23,0.04);
}
.step-item-custom p { margin: 6px 0 0; font-size: 14px; }
.step-item-custom p::before {
  display: inline-block;
  margin-right: 6px;
}
/* Emoji icons per step (no extra assets) */
.steps-container-custom .step-item-custom:nth-child(1) p::before { content: '📝'; }
.steps-container-custom .step-item-custom:nth-child(2) p::before { content: '💳'; }
.steps-container-custom .step-item-custom:nth-child(3) p::before { content: '✅'; }
.steps-container-custom .step-item-custom:nth-child(4) p::before { content: '✈️'; }
.steps-container-custom .step-item-custom:nth-child(5) p::before { content: '🗓️'; }
.square-custom {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b5bd3, #17b26a);
  color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(2,6,23,0.08);
}
@media (max-width: 1024px) {
  .steps-container-custom { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .steps-container-custom { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .square-custom { width: 36px; height: 36px; }
}

/* Success notice */
.notice { margin-top: 12px; padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.notice-success { background: #e6ffed; border: 1px solid #7ad9a6; color: #166534; }

/* Contact form */
.form-grid { display: grid; gap: 10px; max-width: 680px; }
.form-grid label { font-size: 14px; color: var(--muted); font-weight: 600; }
.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.form-grid textarea { resize: vertical; min-height: 120px; }
.form-grid .btn { margin-top: 4px; }

/* Facts vs Myths box */
.facts-myths {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}
.facts-myths h2 {
  margin: 0 0 8px;
  color: var(--primary-600);
  font-size: 18px;
}
.facts-myths .facts-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.facts-myths .facts-list li { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.facts-myths .facts-list .col strong { color: var(--primary); }
.facts-myths a { color: var(--primary); text-decoration: underline; }
@media (min-width: 680px) {
  .facts-myths .facts-list li { grid-template-columns: 1fr 1fr; }
  .facts-myths .facts-list .col + .col { border-left: 1px dashed #e5e7eb; padding-left: 12px; }
}

/* Make legacy inline-styled blocks look decent */
.etias-guide, .content-block {
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .wrap { padding: 12px; }
  main { padding: 16px; margin: 16px; }
  nav { display: none; }
}
