/*
Theme Name: NVL Logistics
Theme URI: https://nvllogistics.co.za
Author: NVL Logistics
Description: Custom WordPress theme for NVL Logistics — clearing, transport and warehousing.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nvl-logistics
*/
:root {
  --blue: #0047bb;
  --blue-dark: #003694;
  --blue-light: #1a5fd4;
  --orange: #ff6600;
  --orange-hover: #e55c00;
  --white: #ffffff;
  --off-white: #f4f7fb;
  --gray-100: #e8edf5;
  --gray-300: #b8c4d4;
  --gray-500: #6b7c93;
  --gray-700: #3d4f66;
  --text: #1a2b42;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0, 71, 187, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 71, 187, 0.14);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --topbar-h: 40px;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.icon--sm {
  width: 18px;
  height: 18px;
}

.icon--lg {
  width: 40px;
  height: 40px;
}

.text-orange {
  color: var(--orange);
}

/* Top bar */
.topbar {
  background: var(--blue-dark);
  color: var(--white);
  height: var(--topbar-h);
  font-size: 0.8rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0.5rem;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  transition: color 0.2s;
}

.topbar__link:hover {
  color: var(--orange);
}

.topbar__sep {
  opacity: 0.5;
}

.topbar__tagline {
  margin-left: auto;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--orange);
  display: none;
}

@media (min-width: 768px) {
  .topbar__tagline {
    display: block;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo__img {
  height: 64px;
  width: auto;
  background: transparent;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--blue);
}

.header__cta {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

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

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

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--blue);
}

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

.btn--full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--blue-dark);
  color: var(--white);
  overflow: hidden;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0, 54, 148, 0.92) 0%, rgba(0, 71, 187, 0.78) 45%, rgba(0, 71, 187, 0.55) 100%),
    radial-gradient(ellipse 50% 70% at 85% 40%, rgba(255, 102, 0, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.ticker {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  animation: ticker 25s linear infinite;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.ticker__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.75);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.hero__lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Service strip */
.service-strip {
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
}

.service-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.service-tile {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--gray-100);
  transition: background 0.3s;
}

.service-tile:last-child {
  border-right: none;
}

.service-tile:hover {
  background: var(--off-white);
}

.service-tile__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 71, 187, 0.08);
  border-radius: var(--radius);
  color: var(--blue);
  margin-bottom: 1.25rem;
  transition: background 0.3s, color 0.3s;
}

.service-tile:hover .service-tile__icon {
  background: var(--blue);
  color: var(--white);
}

.service-tile h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.service-tile p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.service-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  transition: gap 0.2s;
}

.service-tile__link:hover {
  gap: 0.65rem;
}

/* Why us */
.why-us {
  padding: 5rem 0;
  background: var(--off-white);
}

.why-us__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.why-us__header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.35;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--orange);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 71, 187, 0.08);
  border-radius: 50%;
  color: var(--blue);
}

.stat-card__num {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

.stat-card--link {
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-card--link .stat-card__num {
  font-size: 1.35rem;
}

/* About */
.about {
  padding: 6rem 0;
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__photo-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

.about__badge-logo {
  height: 72px;
  width: auto;
  display: block;
  background: transparent;
}

.about__quote {
  border: none;
  border-left: 4px solid var(--orange);
  padding-left: 1.25rem;
  text-align: left;
}

.about__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--orange);
}

.about__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1rem;
}

.about__content p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.about__list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  font-weight: 500;
  color: var(--text);
}

.about__list .icon {
  color: var(--orange);
}

/* What we do */
.what-we-do {
  padding: 5rem 0;
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--blue);
}

.detail-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  border-left: 4px solid var(--blue);
}

.detail-block--reverse {
  border-left-color: var(--orange);
}

.detail-block--reverse .detail-block__media {
  order: 2;
}

.detail-block__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.detail-block__content {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  align-items: flex-start;
}

.detail-block__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 71, 187, 0.08);
  border-radius: var(--radius);
  color: var(--blue);
  flex-shrink: 0;
}

.detail-block--reverse .detail-block__icon {
  background: rgba(255, 102, 0, 0.1);
  color: var(--orange);
}

.detail-block__body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.detail-block__tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.detail-block__body p:last-child {
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* Gallery */
.gallery {
  padding: 5rem 0;
  background: var(--white);
}

.gallery .section-header p {
  color: var(--gray-700);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--full {
  grid-column: 1 / -1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 54, 148, 0.88));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Values */
.values {
  padding: 4rem 0;
  background: var(--blue);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  transition: background 0.3s;
}

.value-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 102, 0, 0.2);
  border-radius: 50%;
  color: var(--orange);
}

.value-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* CTA band */
.cta-band {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--orange) 0%, #e55c00 100%);
}

.cta-band__inner {
  text-align: center;
  color: var(--white);
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-band__motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
}

/* Contact */
.contact {
  padding: 6rem 0;
  background: var(--white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.contact__info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.contact__info > p {
  color: var(--gray-700);
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 71, 187, 0.08);
  border-radius: var(--radius);
  color: var(--blue);
  flex-shrink: 0;
}

.contact__item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.contact__item a {
  display: block;
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s;
}

.contact__item a:hover {
  color: var(--orange);
}

.contact__address {
  font-style: normal;
  color: var(--gray-700);
  line-height: 1.65;
  font-weight: 500;
}

.contact__map-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange) !important;
}

.contact__map-link:hover {
  color: var(--blue) !important;
}

.contact__form {
  background: var(--off-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.12);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  margin-top: 1rem;
  text-align: center;
  color: #1a8f4a;
  font-weight: 600;
}

.form-note--error {
  color: #c0392b;
}

/* Footer */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo-wrap {
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  display: inline-flex;
}

.footer__logo {
  height: 72px;
  width: auto;
  background: transparent;
}

.footer__contact strong {
  color: var(--white);
  display: block;
  margin-bottom: 0.35rem;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.footer__contact a:hover {
  color: var(--orange);
}

.footer__address {
  font-style: normal;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 0;
}

.footer__copy {
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--white);
}

/* Responsive */
@media (min-width: 901px) {
  .header__cta {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .service-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-tile:nth-child(2) {
    border-right: none;
  }

  .service-tile {
    border-bottom: 1px solid var(--gray-100);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .values__grid {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    top: calc(var(--topbar-h) + var(--header-h));
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle--open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 540px) {
  .service-strip__grid {
    grid-template-columns: 1fr;
  }

  .service-tile {
    border-right: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .detail-block {
    grid-template-columns: 1fr;
  }

  .detail-block--reverse .detail-block__media {
    order: 0;
  }

  .detail-block__content {
    flex-direction: column;
    padding: 1.5rem;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery__item--wide,
  .gallery__item--full {
    grid-column: span 2;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery__item--wide,
  .gallery__item--full {
    grid-column: span 1;
  }

  .footer__top,
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
