/* Star BYD Vanderbijlpark — styles
   (workspace copy for preview; replace with your site's styles.css) */

:root {
  --bg: #0D1015;
  --bg-deep: #0A0D11;
  --panel: #161B23;
  --input: #0F1319;
  --line: rgba(255, 255, 255, .09);
  --text: #EDEFF4;
  --muted: #9AA3B2;
  --red: #E4002B;
  --red-dark: #B80023;
  --link: #FF5A67;
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: #fff; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 16, 21, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1120px; margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav__logo { height: 28px; width: auto; display: block; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--muted); text-decoration: none; font-size: .95rem;
}
.nav__links a:hover { color: #fff; }
.nav__links a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 var(--red); padding-bottom: 4px; }
.nav__toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; }

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--line);
  }
  .nav__links a { padding: 13px 24px; }
  .nav__links.open { display: flex; }
}

/* ---------- Event banner ---------- */
.eventBanner img { padding: 30px 0px 0px 0px;  display: block; width: 100%; height: auto; object-fit: ; }

/* ---------- Form container ---------- */
.form-container { padding: 48px 0 80px; }

.arrival-text { text-align: center; margin: 8px 0 4px; }
.arrival-text h5 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
}

.eventInfo { max-width: 760px; margin: 28px auto 0; }

.contactList { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contactList li { display: flex; gap: 14px; align-items: flex-start; }
.contactList svg { width: 22px; height: 22px; flex: none; fill: var(--red); margin-top: 3px; }
.contactList strong { display: block; font-family: var(--display); letter-spacing: .02em; }
.contactList span, .contactList a { color: var(--muted); text-decoration: none; }
/* Event details block: white text instead of muted grey */
.eventInfo .contactList strong,
.eventInfo .contactList span { color: #fff; }
.contactList a:hover { color: #fff; }

.asideNote {
  margin: 28px 0 0; padding: 14px 18px;
  border-left: 3px solid var(--red); background: var(--panel);
  color: var(--muted); font-size: .95rem;
}
.asideNote--onDark { color: rgba(255, 255, 255, .78); background: rgba(0, 0, 0, .35); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 640px; margin: 36px auto 0; }
.contact-form form {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; display: grid; gap: 12px;
}
.contact-form label {
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); margin-top: 8px;
}
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"] {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--input); color: var(--text);
  font: inherit;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="email"]:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 0, 43, .22);
}
.contact-form label.check {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--body); font-size: .95rem; text-transform: none;
  letter-spacing: 0; color: var(--text); margin-top: 10px; cursor: pointer;
}
.contact-form input[type="checkbox"] {
  width: 18px; height: 18px; flex: none; margin-top: 4px; accent-color: var(--red);
}
.g-recaptcha { margin-top: 10px; }

.btn {
  display: inline-block; width: 100%; margin-top: 12px; padding: 14px 22px;
  border: 0; border-radius: 8px; background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: .02em; cursor: pointer; transition: background .2s ease;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn--red { background: var(--red); }
.btn--full { width: 100%; }

/* ---------- Shared section pieces (kept from original site) ---------- */
.section { position: relative; padding: 72px 0; color: #fff; }
.section__media { position: absolute; inset: 0; overflow: hidden; }
.section__media video, .section__media img { width: 100%; height: 100%; object-fit: cover; }
.section__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,16,21,.72), rgba(13,16,21,.86)); }
.enquire { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .enquire { grid-template-columns: 1fr; } }
.eyebrow {
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .2em; color: var(--red); margin: 0 0 12px;
}
.lede { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.pageHead { padding: 88px 0 36px; background: radial-gradient(120% 140% at 80% -20%, #1B2230 0%, var(--bg) 60%); }
.pageHead__title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 16px;
}

/* ---------- Map ---------- */
.mapWrap iframe {
  display: block; width: 100%; height: 400px; border: 0;
  filter: grayscale(.35) contrast(1.05);
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 44px 0; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1.5fr; gap: 32px; align-items: start; }
.footer__logo { height: 30px; width: auto; display: block; margin-bottom: 10px; }
.footer__brand p { color: var(--muted); font-size: .9rem; margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer__links a:hover { color: #fff; }
.footer__legal { color: #6B7381; font-size: .8rem; margin: 0; }
@media (max-width: 820px) { .footer__inner { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Reveal on scroll ---------- */
.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.has-js .reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Success popup ---------- */
.popupOverlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 13, 17, .82);
  backdrop-filter: blur(4px);
  animation: popupFade .3s ease;
}
.popupOverlay[hidden] { display: none; }

.popupCard {
  max-width: 440px;
  text-align: center;
  padding: 40px 36px;
  background: #161B23;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
  animation: popupZoom .35s cubic-bezier(.2, .9, .3, 1.2);
}
.popupCard svg { width: 64px; height: 64px; fill: #2ECC71; margin-bottom: 16px; }
.popupCard h3 { font-family: 'Archivo', system-ui, sans-serif; font-size: 1.4rem; color: #fff; margin: 0 0 10px; }
.popupCard p { color: #9AA3B2; font-size: .95rem; line-height: 1.6; margin: 0; }

body.popup-open { overflow: hidden; }

@keyframes popupFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popupZoom { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .popupOverlay, .popupCard { animation: none; }
}
