/* Euromeeting 2027 – layout modelled on https://11.rte.ee/, brand from the
   Taste of Estonia CVI: navy #01497C, yellow #FFCC00, cream #FBFBF1, Lato.
   Derived (not in CVI): text #0a1a29, muted text #4b5b69, darker cream #f1f1e2. */

:root {
  --background: #fbfbf1;
  --foreground: #0a1a29;
  --navy: #01497c;
  --muted: #f1f1e2;
  --muted-foreground: #4b5b69;
  --border: #01497c26;
  --yellow: #ffcc00;
  --gold: #e6b800;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-xl: 0.75rem;
  --font: "Lato", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 3rem); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 73, 124, 0.96);
  backdrop-filter: blur(6px);
  color: #fff;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-text { position: relative; top: 2px; }
@media (min-width: 861px) {
  .topbar-inner { min-height: 84px; }
  .brand-logo { height: 60px; }
  .brand-text { font-size: 1.15rem; }
}
.nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.92rem; font-weight: 500; }
.nav a { text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; }
.nav .btn { opacity: 1; }

/* Hero layout with logo */
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.hero-grid .cta-row { margin-bottom: 0; }
.hero-logo { width: clamp(200px, 26vw, 320px); height: auto; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 700; border: 2px solid transparent;
  padding: 0.8rem 1.4rem; border-radius: var(--radius-md);
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--gold); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 204, 0, 0.18), transparent 60%),
    var(--navy);
  color: #fff;
  padding: 5rem 0 4.5rem;
}
.eyebrow {
  margin: 0 0 0.9rem; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-foreground);
}
.eyebrow-light { color: var(--yellow); }
h1 {
  margin: 0 0 1.2rem; font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05;
}
h1 .accent { color: var(--yellow); }
h2 {
  margin: 0 0 0.8rem; font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15;
}
h3 { margin: 0 0 0.3rem; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.lead { max-width: 640px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); margin: 0 0 1.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 3rem; }

.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: #000; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Sections */
.section { padding: 5rem 0; }
.section-muted { background: var(--muted); }
.section-dark { background: var(--navy); color: #fff; }
.subtitle { max-width: 640px; margin: 0 0 2rem; font-size: 1.1rem; color: var(--muted-foreground); }
.subtitle-light { color: rgba(255, 255, 255, 0.7); }
.body-text { max-width: 680px; font-size: 1.05rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 2rem 0; }
.stat { border-top: 3px solid var(--yellow); padding-top: 0.8rem; }
.stat-num { display: block; font-size: 3rem; font-weight: 700; line-height: 1; }
.stat-label { color: var(--muted-foreground); font-size: 0.95rem; }

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.5rem;
}

/* Programme */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.day-date { margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.place { margin: 0 0 0.7rem; font-size: 0.9rem; font-weight: 600; color: var(--muted-foreground); }
.day p:last-child, .venue p:last-child { margin-bottom: 0; }

/* Included */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 0.6rem 0 0.6rem 2rem; border-bottom: 1px solid var(--border); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem;
  width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--yellow);
  box-shadow: inset 0 0 0 4px var(--yellow), inset 0 0 0 10px var(--navy);
}
.note { background: var(--muted); }
.note p { margin: 0.4rem 0; }

/* Pricing */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2.2rem 0 2.4rem; }
.benefit { display: flex; gap: 1rem; align-items: flex-start; padding: 0 1.8rem; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.benefit:first-child { padding-left: 0; border-left: 0; }
.benefit h3 { margin: 0 0 0.35rem; font-size: 1.05rem; line-height: 1.3; }
.benefit p { margin: 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); }
.benefit-icon {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--navy);
}

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; align-items: start; }
.tier {
  position: relative; padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
}
.tier-name { margin: 0; font-size: 1.3rem; font-weight: 700; }
.tier-price { margin: 0.2rem 0 0.1rem; font-size: 3.4rem; font-weight: 700; line-height: 1.1; }
.tier-window { margin: 0 0 1.1rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); }
.tier-plan {
  display: flex; gap: 0.9rem; align-items: center; margin: 0 0 1.1rem; padding: 0.9rem 1rem;
  background: #dcebfa; color: var(--navy); border-radius: var(--radius-md);
}
.tier-plan-icon { flex: none; }
.tier-plan p { margin: 0; }
.tier-plan-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tier-plan-main { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.tier-plan-sub { font-size: 0.85rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative; margin: 0.45rem 0; padding-left: 1.9rem; color: rgba(255, 255, 255, 0.9);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.05em; height: 1.05em;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffcc00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}
.tier-badge {
  display: none; position: absolute; top: 1.3rem; right: 1.3rem;
  background: var(--yellow); color: var(--navy);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-md);
}
.tier.is-current { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); background: rgba(255, 204, 0, 0.07); }
.tier.is-current .tier-badge { display: inline-block; }
.tier.is-past { opacity: 0.45; }
.fine { margin-top: 1.8rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }

/* Form */
.status {
  display: none; margin: 0 0 1.5rem; padding: 1rem 1.2rem;
  border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--muted);
}
.status.is-visible { display: block; }
.status.is-error { background: #fdecea; border-color: #f2b8b5; }
.status.is-success { background: #fff8cc; border-color: var(--yellow); }
.status p { margin: 0.3rem 0 0; }

.form { display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; color: inherit;
  padding: 0.7rem 0.8rem; border: 1px solid #01497c55; border-radius: var(--radius-md); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--yellow); outline-offset: 1px; border-color: var(--navy);
}
.field.invalid input, .field.invalid select { border-color: #c0392b; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.92rem; }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend { padding: 0; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.92rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; font-weight: 400; }
.check input { margin-top: 0.3rem; accent-color: var(--navy); }
[hidden] { display: none !important; }
.block { border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.4rem 1.4rem 1.6rem; margin: 0; display: grid; gap: 1.1rem; background: #fff; }
.block > legend { padding: 0 0.6rem; font-weight: 700; font-size: 1.05rem; background: var(--yellow); border-radius: var(--radius-sm); color: var(--navy); }
.choice-group legend small { display: block; font-weight: 400; color: var(--muted-foreground); margin-top: 0.15rem; }
.choices { display: grid; gap: 0.45rem; margin-top: 0.4rem; }
.field.invalid .choices { outline: 2px solid #c0392b; outline-offset: 4px; border-radius: var(--radius-sm); }
.field.invalid select, .field.invalid input { border-color: #c0392b; }
.check.invalid { outline: 2px solid #c0392b; outline-offset: 2px; border-radius: var(--radius-sm); background: #fdecea; padding: 0.6rem 0.8rem; color: #8e2a1f; font-weight: 700; }
.check input:disabled + span { opacity: 0.45; }
.block > legend small.opt { font-weight: 400; opacity: 0.75; margin-left: 0.3rem; }
.hint { margin: 0; font-size: 0.9rem; color: var(--muted-foreground); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.summary {
  padding: 1rem 1.2rem; background: var(--muted); border-left: 4px solid var(--yellow);
  border-radius: var(--radius-sm); font-size: 0.95rem;
}
.summary strong { font-weight: 700; }
.privacy { margin: 0; font-size: 0.85rem; color: var(--muted-foreground); }

/* Venues */
.venues { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2rem; }

.venue-links { display: flex; gap: 1.2rem; margin: 1rem 0 0; font-weight: 700; font-size: 0.92rem; }
.venue-links a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.venue-links a:hover { background: var(--yellow); }

/* Footer */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 2.5rem 0; font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0.2rem 0; }
.footer-brand { color: #fff; font-weight: 700; }
.footer-id { display: flex; align-items: center; gap: 1.2rem; }
.footer-logo { width: 84px; height: auto; }
.footer-small { align-self: flex-end; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .benefits { grid-template-columns: 1fr; gap: 1.4rem; }
  .benefit, .benefit:first-child { padding: 0; border-left: 0; }
  .hero-logo { order: -1; width: 160px; }
  .nav a:not(.btn) { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
