/* -------------------------------------------------------------------------
   Macktrans Australia — Coming Soon Landing Page
   Main stylesheet: assets/css/main.css
   Edit colours and layout tokens in :root as needed.
   ------------------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --text-muted: #4a4a4a;
  --divider: #e0e0e0;
  --max-content: 64rem;
  --footer-max: 56rem;
  --space-section: clamp(3rem, 8vw, 5.5rem);
  --page-padding-x: clamp(1.25rem, 4vw, 3.5rem);
  /* Display / UI sans — matches franzwiebe.com (Bebas Neue + Montserrat) */
  --font-display: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 60rem) {
  :root {
    --max-content: 82rem;
    --footer-max: 76rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Page wrapper */
.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* -------------------------------------------------------------------------
   Floating truck — desktop: fixed in viewport left gutter (outside boxed hero),
   behind headline; mobile: absolutely layered behind hero block.
   ------------------------------------------------------------------------- */
.hero__truck {
  position: fixed;
  z-index: 0;
  left: var(--page-padding-x);
  right: auto;
  /* Higher = further up; tuned to sit beside vertically centred hero headline */
  bottom: clamp(26vh, 36vh, 46vh);
  width: min(46vw, 52rem);
  min-width: 16rem;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero__truck-parallax {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  will-change: transform;
}

.hero__truck img {
  width: 100%;
  height: auto;
  max-height: clamp(28rem, 58vh, 52rem);
  object-fit: contain;
  object-position: left bottom;
  display: block;
  filter: grayscale(100%) brightness(1.42) contrast(0.88);
  opacity: 0.48;
}

/* Slim banner stack only — truck is not in this flow */
.hero__banner {
  position: relative;
  z-index: 1;
  margin-bottom: 0.35rem;
}

.hero__headline {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: clamp(0.5rem, 2vh, 1.25rem);
}

@media (max-width: 45rem) {
  .hero__truck {
    display: none;
  }

  .hero__headline {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__truck-parallax {
    will-change: auto;
  }
}

/* -------------------------------------------------------------------------
   Main — hero vertically and horizontally centred (boxed)
   ------------------------------------------------------------------------- */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-section) var(--page-padding-x) calc(var(--space-section) + 2rem);
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  text-align: center;
  overflow: visible;
}

.hero__logo {
  margin: 0 auto 2rem;
  display: block;
  /* Scaled up to balance the larger headline */
  width: clamp(13.5rem, 36vw, 20.5rem);
  height: auto;
}

.hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  /* Bebas Neue is a single-weight display face (400); avoid synthetic bold */
  font-size: clamp(4.5rem, 12.5vw, 8.25rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-transform: none;
  color: var(--text);
}

.hero__brand {
  margin: 0 0 1.35rem;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.75vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__intro {
  margin: 0 auto 1.75rem;
  width: 100%;
  max-width: 42rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.65;
  text-align: center;
}

@media (min-width: 60rem) {
  .hero__intro {
    max-width: 52rem;
  }
}

.hero__badge {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  width: 100%;
  padding: 0 var(--page-padding-x) var(--space-section);
  background-color: var(--bg);
}

.footer__inner {
  width: 100%;
  max-width: var(--footer-max);
  margin: 0 auto;
}

.footer__rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 3.5rem);
  padding: clamp(2rem, 5vw, 2.75rem) 0;
}

@media (max-width: 40rem) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__column h2 {
  margin: 0 0 1.15rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li + li {
  margin-top: 0.65rem;
}

.footer__list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer__list a:hover,
.footer__list a:focus {
  border-bottom-color: var(--divider);
}

.footer__muted {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.depot {
  margin-bottom: 1.25rem;
}

.depot:last-child {
  margin-bottom: 0;
}

.depot__name {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.depot__address {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer__legal {
  margin: 0;
  padding-top: clamp(1.5rem, 4vw, 2rem);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}
