@font-face {
  font-family: 'Angelic Bonques';
  src: url('fonts/AngelicBonquesSansRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #14264a;
  --navy-light: #1f3a6e;
  --ink: #1c1a17;
  --muted: #5c574f;
  --muted-2: #6b655c;
  --line: #dde2ea;
  --soft: #f6f8fb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}

a { color: var(--ink); text-decoration: none; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 32px 96px 40px;
}

/* ---------- Header ---------- */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 22px;
  background: var(--navy);
  color: #ffffff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s ease;
}
.btn:hover { background: var(--navy-light); color: #ffffff; }
.btn-right { justify-self: end; }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.logo {
  font-family: 'Angelic Bonques', 'Aboreto', sans-serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 48px;
  height: 48px;
  color: var(--ink);
}

/* ---------- Home: choice cards ---------- */
.choices {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  text-align: center;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card:hover {
  border-color: var(--navy-light);
  box-shadow: 0 18px 40px rgba(20, 38, 74, 0.08);
  transform: translateY(-4px);
}
.card:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

.card svg { width: 120px; height: 84px; }

.card-text { display: flex; flex-direction: column; gap: 12px; align-items: center; }

.card-title {
  margin: 0;
  font-family: 'Aboreto', sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.card-desc {
  margin: 0;
  max-width: 320px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.card-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--navy-light);
  padding-bottom: 4px;
}

/* ---------- Configurator pages ---------- */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.intro h1 {
  margin: 0;
  font-family: 'Aboreto', sans-serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
}
.intro .rule { width: 56px; height: 1px; background: var(--navy-light); }
.intro p { margin: 0; font-size: 16px; font-weight: 300; color: var(--muted); }

/* The box where the configurator iframe goes */
.embed {
  flex-grow: 1;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px;
  border: 1.5px dashed var(--navy-light);
  border-radius: 6px;
  background: var(--soft);
  text-align: center;
}
.embed svg { width: 96px; height: 68px; }
.embed-title { font-family: 'Aboreto', sans-serif; font-size: 24px; color: var(--navy); }
.embed-note { max-width: 460px; font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--muted); }

/* When the real configurator is added, use this instead of the placeholder:
   <iframe class="embed-frame" src="https://konfigurator-avgustini.sk/..." loading="lazy" title="Konfigurátor"></iframe> */
.embed-frame {
  flex-grow: 1;
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 6px;
}

/* Live configurator container */
.configurator {
  flex-grow: 1;
  width: 100%;
  min-height: 720px;
}
#metrix-configurator { width: 100%; min-height: 720px; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--muted-2);
}

/* ---------- Tablet & mobile ---------- */
@media (max-width: 900px) {
  .page { padding: 24px 16px 32px; gap: 28px; }
  .topbar { grid-template-columns: 1fr 1fr; gap: 16px 8px; }
  .topbar .logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .topbar .btn { grid-row: 2; justify-self: stretch; justify-content: center; padding: 0 12px; letter-spacing: 2px; font-size: 12px; gap: 8px; }
  .logo { font-size: 34px; }
  .choices { grid-template-columns: 1fr; }
  .card { padding: 40px 24px; }
  .intro h1 { font-size: 28px; }
  .embed { min-height: 420px; padding: 32px 20px; }
  .embed-frame { min-height: 600px; }
}
