/* =========================================================
   MotorBid holding page
   Brand colours are taken from the logo. Change them here.
   Author: Jaco Verster
   ========================================================= */
:root {
  --charcoal: #4E5359;       /* logo grey */
  --charcoal-dark: #1c1d1f;  /* footer */
  --yellow: #FFD900;         /* logo yellow */
  --ink: #26292D;            /* text on yellow */
  --white: #FFFFFF;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  line-height: 1.5;
  color: var(--white);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}

/* ---------- White header with logo ---------- */
.top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(32px, 7vh, 96px) 24px clamp(16px, 3vh, 32px);
  background: var(--white);
}

.logo {
  display: block;
  width: clamp(200px, 40vw, 280px);
  height: auto;
}

/* ---------- Angled yellow divider ---------- */
.divider {
  display: block;
  width: 100%;
  height: clamp(36px, 6vw, 72px);
  background: var(--white);
}

.divider__fill { fill: var(--charcoal); }
.divider__band { fill: var(--yellow); }

/* ---------- Charcoal content panel ---------- */
.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(32px, 6vh, 64px) 24px clamp(40px, 7vh, 96px);
  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

h1 {
  font-size: clamp(1.8rem, 5.5vw, 3.2rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 span { color: var(--yellow); }

.lead {
  max-width: 34rem;
  margin-top: 16px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  text-wrap: balance;
}

/* ---------- Contact buttons ---------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  list-style: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease,
              color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover { transform: translateY(-2px); }

.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
}

.btn--primary:hover { background: var(--white); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Footer ---------- */
.foot {
  padding: 16px 24px;
  background: var(--charcoal-dark);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Phones: stack the buttons full width ---------- */
@media (max-width: 520px) {
  .contact { width: 100%; max-width: 360px; flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Animation (runs once on page load)
   ========================================================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes sweep {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.logo { animation: rise 0.7s ease-out both; }

.divider__band {
  transform-box: fill-box;
  transform-origin: left center;
  animation: sweep 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.25s both;
}

.panel > * { animation: rise 0.6s ease-out both; }
.panel > :nth-child(1) { animation-delay: 0.5s; }
.panel > :nth-child(2) { animation-delay: 0.6s; }
.panel > :nth-child(3) { animation-delay: 0.7s; }
.panel > :nth-child(4) { animation-delay: 0.85s; }
.panel > :nth-child(5) { animation-delay: 1s; }

/* Visitors who switch off motion in their device settings get a still page */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
