/* Aðalbón Racing Team – rebuilt from the original Wix design. */
:root {
  --blue: #2da3f2;
  --blue-dark: #1b7fc4;
  --red: #e21c21;
  --yellow: #ffde00;
  --ink: #0d0d0d;
  --panel: rgba(45, 163, 242, 0.92);
  --dark-btn: #2b2b2b;
  --white: #ffffff;
  --muted: #5b6770;
  --ok: #10b552;
  --display: Impact, 'Impact W01', Anton, 'Arial Narrow', sans-serif;
  --body: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--ink);
  background: #1c2a33;
  line-height: 1.5;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .4em; letter-spacing: .01em; }

/* Fixed background video, as on the Wix site */
.bg-media { position: fixed; inset: 0; z-index: -1; background: #1c2a33 url('/assets/img/hero-poster.webp') center/cover no-repeat; }
.bg-video { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .bg-video { display: none; } }

/* Header */
.site-header {
  background:
    radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.2px) 0 0 / 6px 6px,
    linear-gradient(#2da3f2 0%, #ffffff 100%);
  min-height: 167px;
  display: flex;
  align-items: center;
}
.site-header__inner { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 50px; }
.site-title {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(30px, 5vw, 48px);
  color: var(--ink);
  text-decoration: none;
}

/* Navigation */
.site-nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: flex-end; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; background: rgba(43, 43, 43, .88);
}
.nav-list a {
  display: block; padding: 12px 16px; color: var(--white); text-decoration: none;
  font-size: 16px; font-weight: 300; white-space: nowrap;
}
.nav-list a:hover { background: rgba(255,255,255,.12); }
.nav-list a[aria-current="page"] { background: #f1e2bd; color: var(--ink); }
.nav-account a { background: var(--blue); color: var(--white); font-weight: 400; }
.nav-account a[aria-current="page"] { background: var(--blue-dark); color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-header { min-height: 100px; }
  .site-header__inner { padding: 0 16px; }
  .site-nav { justify-content: stretch; flex-direction: column; background: rgba(43,43,43,.95); }
  .nav-toggle {
    display: block; width: 100%; padding: 12px 16px; text-align: left; border: 0; cursor: pointer;
    background: transparent; color: var(--white); font: 400 18px var(--display); letter-spacing: .05em;
  }
  .nav-toggle::after { content: ' ☰'; }
  .nav-list { display: none; flex-direction: column; background: transparent; }
  .site-nav.open .nav-list { display: flex; }
  .nav-list a { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); }
}

main { display: block; min-height: 50vh; }

/* Generic content panel (Wix pages used a blue box over the background) */
.panel {
  max-width: 980px; margin: 0 auto; padding: 56px 48px 64px;
  background: var(--panel); color: var(--white);
}
.panel--white { background: rgba(255,255,255,.96); color: var(--ink); }
.panel h1 { font-size: clamp(32px, 5vw, 56px); text-align: center; color: var(--white); }
.panel--white h1 { color: var(--ink); }
.panel p.lead { text-align: center; font-size: 18px; margin-top: 0; }
@media (max-width: 700px) { .panel { padding: 36px 16px 48px; } }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 28px; border: 0; cursor: pointer; text-decoration: none;
  font: 400 15px var(--display); letter-spacing: .04em;
  background: var(--dark-btn); color: var(--blue);
}
.btn:hover { background: #000; }
.btn--light { background: var(--white); color: var(--blue-dark); }
.btn--light:hover { background: #e9f5fe; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: #b51418; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Home ---------- */
.hero {
  position: relative; min-height: 763px;
  background: url('/assets/img/hero-cta.webp') center/cover no-repeat;
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; padding: 40px 50px 70px;
}
.hero__claim { align-self: start; margin-top: 10px; }
.hero__claim h1 { font-size: 60px; margin: 0; }
.hero__claim h1 span { color: var(--red); }
.hero__claim ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: 22px; line-height: 1.5; }
.hero__ctas { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 70px; padding-right: 40px; }
.cta { text-align: center; }
.cta h2 { color: var(--white); font-size: 30px; margin-bottom: 18px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cta .btn { min-width: 190px; padding: 16px 28px; }
.socials { position: absolute; left: 50px; bottom: 20px; display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 6px; color: #fff; }
.socials svg { width: 22px; height: 22px; fill: currentColor; }
.s-discord { background: #5865f2; } .s-instagram { background: linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7); }
.s-twitch { background: #9146ff; } .s-youtube { background: #ff0000; } .s-tiktok { background: #000; }

.teams-title { padding: 80px 50px 20px; }
.teams-title h2 { color: var(--white); font-size: 60px; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.team { display: grid; grid-template-columns: 1fr 1fr; min-height: 504px; }
.team__photo { background-size: cover; background-position: center; }
.team__info { padding: 40px 40px 40px 12px; color: var(--white); }
.team__info h3 { font-size: clamp(36px, 4.3vw, 59px); margin: 0 0 30px -10px; }
.team__info p { font: 400 clamp(26px, 2.9vw, 41px)/1.4 var(--display); margin: 0; }
.team__info .num { font-family: Anton, var(--display); font-style: italic; margin-left: 8px; -webkit-text-stroke: 1px rgba(0,0,0,.35); }
.team--blue .team__info { background: var(--blue); }
.team--red .team__info { background: var(--red); }
.team--yellow .team__info { background: var(--yellow); }

@media (max-width: 860px) {
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 30px 16px 90px; }
  .hero__claim h1 { font-size: 44px; }
  .hero__claim ul { font-size: 18px; }
  .hero__ctas { flex-direction: column; gap: 30px; padding: 40px 0 0; align-items: center; }
  .cta h2 { font-size: 26px; }
  .socials { left: 16px; }
  .teams-title { padding: 50px 16px 16px; }
  .teams-title h2 { font-size: 44px; }
  .team { grid-template-columns: 1fr; min-height: 0; }
  .team__photo { min-height: 220px; }
  .team__info { padding: 30px 16px; }
  .team__info h3 { margin-left: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); padding: 30px 16px 14px; color: var(--white); }
.sponsors {
  display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 24px 40px;
  max-width: 1400px; margin: 0 auto;
}
.sponsors img { max-height: 70px; width: auto; max-width: 260px; }
.sponsors .sponsors__logo { max-height: 160px; }
.footer-note { text-align: center; font-size: 13px; margin: 18px 0 0; opacity: .9; }
.footer-note a { color: var(--white); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.plan {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); padding: 28px 22px 30px;
  text-align: center; display: flex; flex-direction: column; position: relative;
}
.plan img { width: 110px; margin: 0 auto 12px; }
.plan h2 { font-family: var(--body); font-weight: 300; font-size: 20px; letter-spacing: .08em; }
.plan .price { font: 300 52px/1 var(--body); margin: 6px 0 2px; }
.plan .price sup { font-size: 18px; vertical-align: top; }
.plan .per { font-size: 13px; opacity: .85; margin-bottom: 14px; }
.plan .desc { font-size: 14px; min-height: 7em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; text-align: left; }
.plan li { padding: 6px 0 6px 22px; border-top: 1px solid rgba(255,255,255,.25); position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 2px; }
.plan .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--ok); color: #fff; font-size: 12px; padding: 3px 10px; white-space: nowrap;
}
.plan .pp { margin-top: 18px; min-height: 50px; }
.plan .state { margin-top: 14px; font-weight: 400; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } .plan .desc { min-height: 0; } }

/* ---------- Bookings ---------- */
.services { display: grid; gap: 18px; margin-top: 28px; }
.service {
  display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
  background: rgba(255,255,255,.12); padding: 22px 24px; border-left: 4px solid var(--white);
}
.service h2 { font-size: 28px; margin: 0; }
.service .meta { font-size: 14px; text-align: right; }
.service .note { font-size: 13px; opacity: .9; grid-column: 1 / -1; margin: -6px 0 0; }
@media (max-width: 700px) { .service { grid-template-columns: 1fr; } .service .meta { text-align: left; } }

/* ---------- Setups ---------- */
.page-setups { background: url('/assets/img/setups-bg.webp') center/cover fixed; padding: 40px 16px 60px; }
.cat {
  max-width: 980px; margin: 0 auto 30px; display: grid; grid-template-columns: 1fr 1fr; min-height: 360px;
  background: var(--panel); color: var(--white);
}
.cat__img { background-size: cover; background-position: center; }
.cat__body { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 20px; }
.cat__body h2 { font-size: 48px; margin: 0; }
.cat__body p { margin: 6px 0 18px; }
.cat__body small { display: block; margin-top: 14px; font-family: var(--display); letter-spacing: .04em; }
@media (max-width: 700px) { .cat { grid-template-columns: 1fr; } .cat__img { min-height: 200px; } }

.setup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; margin-top: 28px; }
.setup-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.setup-card .logo { height: 110px; display: grid; place-items: center; }
.setup-card .logo img { max-height: 110px; max-width: 200px; }
.setup-card h3 { font-family: var(--body); font-weight: 400; font-size: 15px; margin: 0; }
.setup-card .size { font-size: 12px; opacity: .8; }

/* Lock / notices */
.notice {
  max-width: 640px; margin: 30px auto 0; padding: 26px 24px; text-align: center;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.3);
}
.notice h2 { font-size: 30px; }
.notice .btn { margin: 8px 6px 0; }
.msg { margin-top: 14px; padding: 10px 14px; background: rgba(0,0,0,.25); }
.msg.ok { background: rgba(16,181,82,.35); }
.msg.err { background: rgba(226,28,33,.45); }
.panel--white .msg { background: #eef6fd; }
.panel--white .msg.ok { background: #e3f8ec; }
.panel--white .msg.err { background: #fde8e8; }
[hidden] { display: none !important; }

/* Forms */
.form { max-width: 560px; margin: 28px auto 0; display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 400; }
.form input[type=text], .form input[type=email], .form input[type=date], .form input[type=number],
.form select, .form textarea, .form input[type=file] {
  width: 100%; padding: 11px 12px; font: 16px var(--body); border: 1px solid rgba(0,0,0,.25); background: #fff; color: var(--ink);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 300; }
.form .check input { margin-top: 5px; width: 18px; height: 18px; }
.form .hint { font-size: 13px; opacity: .85; font-weight: 300; }
.form .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- F4 page ---------- */
.f4 h1 { text-align: center; }
.f4 h2 { font-size: 34px; margin-top: 1.6em; }
.f4 h3 { font-size: 24px; margin-top: 1.4em; }
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 20px 0 10px; }
.track { background: rgba(255,255,255,.12); padding: 14px; text-align: center; }
.track img { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 10px; }
.track h3 { margin: 0 0 6px; font-size: 26px; }
.track p { margin: 0; font-size: 15px; }
.track .fmt { font-family: var(--display); letter-spacing: .05em; margin-top: 6px; }
@media (max-width: 760px) { .tracks { grid-template-columns: 1fr 1fr; } }
.req { padding-left: 1.2em; }
.req li { margin: 4px 0; }
.rules { font-size: 15px; }
.rules a, .f4 a { color: #fff; font-weight: 400; }
.rules table { border-collapse: collapse; margin: 8px 0 14px; }
.rules td { padding: 2px 18px 2px 0; }
.links-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.fees { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.fee { background: rgba(255,255,255,.12); padding: 20px; }
.fee h3 { margin-top: 0; }
@media (max-width: 760px) { .fees { grid-template-columns: 1fr; } }

/* Mokka */
.mokka-frame { width: 100%; height: 80vh; min-height: 600px; border: 0; background: #fff; display: block; }

/* Account & admin tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,.12); text-align: left; vertical-align: top; }
table.data th { font-weight: 600; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0; }
.tabs button { padding: 8px 16px; border: 1px solid #ccc; background: #fff; cursor: pointer; font: 15px var(--body); }
.tabs button[aria-selected="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.admin-section { margin-top: 10px; }
.admin-section h2 { font-size: 28px; margin-top: 30px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 12px 0 20px; }
.inline-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 400; }
.inline-form input, .inline-form select { padding: 8px 10px; font: 15px var(--body); border: 1px solid #bbb; }
.link-btn { background: none; border: 0; color: var(--red); cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
