/* Allied Crane Hire Namibia */

:root {
  --green-900: #18241e;
  --green-800: #22332a;
  --green-700: #2c4236;
  --green-brand: #00a33f;
  --yellow: #d9ab3a;
  --yellow-dark: #c0952e;
  --ink: #262b28;
  --muted: #5d6460;
  --line: #e1ddd5;
  --paper: #fbfaf7;
  --paper-alt: #f1eee8;
  --on-dark: #c9ccc7;

  --font-body: "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", sans-serif;
  --font-script: "Kaushan Script", cursive;

  --wrap: 1560px;
  --gutter: clamp(16px, 5vw, 80px);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

.btn--yellow { background: var(--yellow); color: var(--green-900); }
.btn--yellow:hover { background: var(--yellow-dark); }
.btn--green { background: var(--green-800); color: #fff; }
.btn--green:hover { background: var(--green-700); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-800);
  border-bottom: 2px solid var(--yellow);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  padding: 4px;
  border: 2px solid var(--yellow);
  background: var(--green-brand);
}
.brand img { height: 46px; width: auto; }
.brand__country {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .35em;
  line-height: 1;
  padding: 4px 0 1px;
}
.brand__country::before,
.brand__country::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--yellow);
}

.nav { margin-left: auto; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 34px;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--yellow); }
.nav a[aria-current="page"],
.nav a.is-active { color: var(--yellow); border-color: var(--yellow); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid var(--yellow);
  border-radius: 4px;
  color: var(--yellow);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24,36,30,.86) 0%, rgba(24,36,30,.7) 38%, rgba(24,36,30,.15) 70%, rgba(24,36,30,0) 100%),
    url("../assets/img/hero-crane.jpg") center right / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(0deg, rgba(24,36,30,.35), transparent);
  pointer-events: none;
}
.hero__map {
  position: absolute;
  z-index: 1;
  top: clamp(24px, 4vw, 48px);
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  width: clamp(150px, 17vw, 290px);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 64px; }
.hero__inner { max-width: 620px; }

.hero__logo {
  display: inline-flex;
  flex-direction: column;
  padding: 8px;
  background: var(--green-brand);
  border: 2px solid var(--yellow);
}
.hero__logo { max-width: 100%; }
.hero__logo img { width: 440px; max-width: 100%; }
.hero__logo .brand__country { font-size: 20px; padding-top: 8px; letter-spacing: .45em; }

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  margin: 26px 0 6px;
  color: #fff;
}
.pillars {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 21px);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
}
.pillars span { color: var(--yellow); }

.hero__banner {
  display: inline-block;
  margin: 26px 0 14px;
  padding: 6px 22px;
  background: var(--yellow);
  color: var(--green-900);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.1;
  text-transform: uppercase;
  transform: skewX(-10deg);
}
.hero__banner > span { display: inline-block; transform: skewX(10deg); }

.hero__lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  margin: 0 0 28px;
  max-width: 400px;
}

/* ---------- Trust strip ---------- */

.strip { background: var(--green-800); color: #fff; }
.strip ul {
  list-style: none;
  margin: 0;
  padding: 30px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip li {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: flex-start;
  padding: 4px 20px;
  border-left: 1px solid rgba(255,255,255,.2);
}
.strip li:first-child { border-left: 0; }
.strip li > div { flex: 0 1 230px; }
.strip svg { flex: 0 0 48px; width: 48px; height: 48px; color: var(--yellow); }
.strip h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.strip p { margin: 2px 0 0; color: var(--on-dark); font-size: 15px; line-height: 1.45; }

@media (max-width: 1180px) and (min-width: 961px) {
  .strip ul { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .strip li:nth-child(odd) { border-left: 0; }
}

/* ---------- About ---------- */

.about { padding: clamp(56px, 8vw, 96px) 0; }
.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow-dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.about h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.02;
  color: var(--green-800);
}
.about p { margin: 0 0 26px; color: var(--muted); max-width: 520px; }

.facts {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 10px 28px;
  background: var(--paper-alt);
  border-radius: 8px;
  border-left: 5px solid var(--yellow);
}
.facts li {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.facts li:first-child { border-top: 0; }
.facts__icon {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  display: grid;
  place-items: center;
}
.facts__icon svg { width: 26px; height: 26px; }
.facts__icon--text { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.facts h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--green-800);
}
.facts p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.4; }

/* ---------- South Africa band ---------- */

.sa-band { background: var(--paper-alt); border-top: 1px solid var(--line); }
.sa-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
}
.sa-band p { margin: 0; font-size: 19px; color: var(--muted); }
.sa-band strong { color: var(--green-800); font-weight: 700; }

/* ---------- Contact band ---------- */

.contact {
  position: relative;
  color: #fff;
  background:
    linear-gradient(rgba(24,36,30,.88), rgba(24,36,30,.92)),
    url("../assets/img/hero-crane.jpg") center / cover no-repeat;
  padding: clamp(52px, 7vw, 80px) 0 clamp(40px, 5vw, 56px);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact__pitch { display: flex; gap: 22px; align-items: flex-start; }
.contact__phone-icon {
  flex: 0 0 76px;
  height: 76px;
  border: 2px solid var(--yellow);
  border-radius: 10px;
  color: var(--yellow);
  display: grid;
  place-items: center;
}
.contact__phone-icon svg { width: 38px; height: 38px; }
.contact__kicker {
  margin: 0;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 15px;
}
.contact h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: var(--yellow);
}
.contact__pitch p:last-child { margin: 0; color: var(--on-dark); max-width: 380px; }

.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li { display: flex; gap: 14px; align-items: center; padding: 7px 0; font-size: 18px; }
.contact__list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--yellow); }
.contact__list a { text-decoration: none; }
.contact__list { letter-spacing: .02em; }
.contact__list li { line-height: 1.4; }
.phones { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.contact__list a:hover { color: var(--yellow); }

.enquire {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 40px;
  padding: 16px;
  font-size: 18px;
  letter-spacing: .18em;
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24,36,30,.95), rgba(24,36,30,.7)),
    url("../assets/img/hero-crane.jpg") center / cover no-repeat;
  padding: clamp(56px, 8vw, 96px) 0;
}
.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
}
.page-head p { margin: 10px 0 0; color: var(--on-dark); max-width: 560px; }

/* ---------- About page ---------- */

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  color: var(--green-800);
}
.section-lede { margin: 0 0 36px; font-size: 19px; color: var(--muted); max-width: 640px; }

.sectors { padding: clamp(56px, 8vw, 96px) 0; }
.sectors__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.sectors__grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: 6px;
  padding: 26px 26px 24px;
}
.sectors__grid svg { width: 36px; height: 36px; color: var(--green-700); margin-bottom: 14px; }
.sectors__grid h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--green-800);
}
.sectors__grid p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.feature { padding: clamp(48px, 7vw, 88px) 0; background: var(--paper-alt); }
.feature--flip { background: var(--paper); }
.feature .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature--flip .feature__media { order: 2; }
.feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.feature__text p:not(.eyebrow) { margin: 0; font-size: 18px; color: var(--muted); max-width: 580px; }

.closing { background: var(--green-800); color: #fff; padding: clamp(48px, 6vw, 72px) 0; }
.closing .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  flex-wrap: wrap;
}
.closing h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1.05;
  color: var(--yellow);
}
.closing p { margin: 0; color: var(--on-dark); font-size: 18px; max-width: 560px; }
.closing__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.4); background: transparent; }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--outline { color: var(--green-800); border: 1px solid var(--green-800); background: transparent; }
.btn--outline:hover { background: var(--green-800); color: #fff; }

/* ---------- Gallery ---------- */

.gallery { padding: clamp(48px, 7vw, 80px) 0; }
.gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery__grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-alt);
  cursor: zoom-in;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery__grid button:hover img,
.gallery__grid button:focus-visible img { transform: scale(1.05); }
.gallery__note { margin: 28px 0 0; color: var(--muted); font-size: 15px; }

.lightbox {
  border: 0;
  padding: 0;
  max-width: 94vw;
  max-height: 92vh;
  background: transparent;
}
.lightbox::backdrop { background: rgba(5,20,13,.9); }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--yellow);
  color: var(--green-900);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Contact page ---------- */

.hours {
  background: var(--green-700);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: .03em;
  padding: 14px var(--gutter);
  margin: 0;
}

.contact-page { padding: clamp(48px, 7vw, 80px) 0; }
.contact-page .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-page h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  color: var(--green-800);
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form input,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(44,66,54,.15);
}
.form .btn { justify-content: center; width: 100%; padding: 15px; }
.form .hp { position: absolute; left: -9999px; }

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 16px;
  border-radius: 4px;
  font-weight: 600;
}
.form-status[hidden] { display: none; }
.form-status--ok { background: #e3eee6; color: var(--green-800); }
.form-status--err { background: #f6e3df; color: #8a2b1d; }

.office h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--green-800);
}
.office ul { list-style: none; margin: 0; padding: 0; }
.office li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; line-height: 1.45; }
.office svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--yellow-dark); }
.office a { color: var(--green-700); text-decoration: none; }
.office a:hover { text-decoration: underline; }
.office li + li.gap { margin-top: 10px; }

.map { margin-top: 28px; line-height: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.map iframe { width: 100%; height: 300px; border: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--green-900); color: var(--on-dark); font-size: 14px; }
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
}
.site-footer .brand img { height: 34px; }
.site-footer .brand__country { font-size: 10px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--yellow); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-800);
    border-bottom: 3px solid var(--yellow);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a[aria-current="page"], .nav a.is-active { border-color: rgba(255,255,255,.12); }
  .site-header .header-cta { display: none; }

  .hero {
    background:
      linear-gradient(180deg, rgba(24,36,30,.9) 0%, rgba(24,36,30,.78) 55%, rgba(24,36,30,.55) 100%),
      url("../assets/img/hero-crane.jpg") 70% center / cover no-repeat;
  }

  .hero__map { width: 110px; top: 16px; }
  .hero .wrap { padding-top: 120px; }
  .strip ul { grid-template-columns: 1fr; gap: 22px; }
  .sectors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature--flip .feature__media { order: 0; }
  .strip li { border-left: 0; padding: 0; justify-content: flex-start; }
  .strip li > div { flex: 1 1 auto; }

  .about .wrap,
  .contact-page .wrap,
  .feature .wrap,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .brand img { height: 36px; }
  .contact__pitch { flex-direction: column; }
  .form { grid-template-columns: 1fr; }
  .sectors__grid { grid-template-columns: 1fr; }
  .contact__list li { font-size: 16px; word-break: break-word; }
  .enquire { letter-spacing: .1em; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
