/* New Holland Logistics - site styles */

@font-face {
  font-family: "Fjalla One";
  src: url("/assets/fonts/fjalla-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #161616;
  --bg-deep: #000;
  --bg-raised: #2a2a2a;
  --text: #a4a4a4;
  --heading: #e2e2e2;
  --bright: #f7f7f7;
  --title: #6b6b6b;
  --muted: #7f8080;
  --line: #333;
  --font-display: "Fjalla One", Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  --container: 1112px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--bright);
  color: #000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
}

/* Header */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
}

.logo img {
  width: 96px;
  height: 96px;
}

.nav-toggle {
  display: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 4px 0;
  color: var(--bright);
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

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

.site-nav a[aria-current="page"] {
  color: var(--muted);
  font-weight: 700;
  border-bottom-color: var(--muted);
}

/* Home page header: slim sticky bar with the large logo overlapping the hero */

.site-header--home {
  position: sticky;
  top: 0;
}

.site-header--home .container {
  min-height: 77px;
  position: relative;
}

.site-header--home .logo {
  position: absolute;
  top: 40px;
  left: calc(var(--gutter) + 8px);
}

.site-header--home .logo img {
  width: 176px;
  height: 176px;
  transition: width 0.2s, height 0.2s, transform 0.2s;
}

.site-header--home.is-scrolled .logo img {
  width: 64px;
  height: 64px;
  transform: translateY(-34px);
}

.site-header--home .site-nav {
  margin-left: auto;
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 675px;
  padding: 120px var(--gutter);
  background: #000 url("/assets/images/hero-business-meeting.jpg") center / cover no-repeat;
  text-align: center;
}

.hero h1 {
  max-width: 820px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Sections */

.section {
  padding: 64px 0;
}

.section--deep {
  background: var(--bg-deep);
}

.section--intro {
  text-align: center;
}

.section--intro h2 {
  margin-bottom: 24px;
  color: var(--bright);
  font-size: 30px;
  line-height: 1.25;
}

.section--intro p {
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 14px;
}

.page-title {
  margin-bottom: 48px;
  color: var(--title);
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 40px;
  color: var(--title);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  padding: 16px 32px;
  border: 0;
  background: var(--bg-raised);
  color: var(--bright);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  background: #3a3a3a;
}

/* Card grid (home About Us and Our Services) */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 24px;
}

.card h3 {
  margin-bottom: 24px;
  color: var(--heading);
  font-size: 22px;
  line-height: 1.25;
}

.card p {
  margin: 0;
}

.card--home img {
  aspect-ratio: 4 / 3;
}

.card--service {
  text-align: center;
}

.card--service h2 {
  margin-bottom: 24px;
  color: var(--bright);
  font-size: 22px;
  line-height: 1.25;
}

.card--service img {
  aspect-ratio: 2 / 1;
  margin-bottom: 32px;
}

.card--service p {
  font-size: 17px;
  line-height: 1.6;
}

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

/* Two-column content (Our Story, Knowledge Hub) */

.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.split--media-first {
  grid-template-columns: 1fr 2fr;
}

.prose {
  font-size: 18px;
  line-height: 1.5;
}

.prose h2,
.prose h3 {
  margin: 0 0 24px;
  color: var(--bright);
  font-size: 22px;
  line-height: 1.3;
}

.prose * + h2 {
  margin-top: 40px;
}

.prose h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
}

.prose strong {
  color: var(--heading);
}

.prose ol,
.prose ul {
  margin: 0 0 1em;
  padding-left: 1.6em;
}

.prose li {
  margin-bottom: 4px;
}

.prose a {
  color: var(--text);
}

.prose a:hover {
  color: var(--bright);
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.contact-info {
  padding: 56px var(--gutter) 64px max(var(--gutter), calc((100vw - var(--container)) / 2 - 32px));
}

.contact-info .page-title {
  margin-bottom: 40px;
  text-align: left;
}

.contact-info h2 {
  margin-bottom: 24px;
  color: var(--bright);
  font-size: 22px;
  overflow-wrap: anywhere;
}

.contact-info h2 a {
  text-decoration: none;
}

.contact-info h2 a:hover {
  text-decoration: underline;
}

.contact-info address {
  margin-bottom: 40px;
  font-style: normal;
}

.contact-info address a {
  text-decoration: none;
}

.contact-info address a:hover {
  text-decoration: underline;
}

.contact-form h2 {
  margin-bottom: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--heading);
  font-size: 15px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #1f1f1f;
  color: var(--bright);
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-status {
  margin-top: 16px;
  color: var(--heading);
}

.contact-map {
  position: relative;
  align-self: start;
  height: 560px;
  background: #222;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.map-placeholder p {
  margin: 0;
  color: var(--heading);
}

.map-placeholder small {
  max-width: 340px;
  color: var(--muted);
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


/* Footer */

.site-footer {
  padding: 32px 0;
  background: var(--bg);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer p {
  margin: 0;
}

/* 404 */

.not-found {
  padding: 96px 0 120px;
  text-align: center;
}

.not-found p {
  margin-bottom: 32px;
  font-size: 18px;
}

/* Responsive */

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

@media (max-width: 860px) {
  .site-header .container,
  .site-header--home .container {
    min-height: 80px;
  }

  .logo img,
  .site-header--home .logo img,
  .site-header--home.is-scrolled .logo img {
    width: 64px;
    height: 64px;
    transform: none;
  }

  .site-header--home .logo {
    position: static;
  }

  .js .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--bright);
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-top: 1px solid var(--line);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .js .site-nav a[aria-current="page"] {
    border-bottom-color: var(--line);
  }

  html:not(.js) .site-header .container {
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }

  html:not(.js) .site-nav ul {
    justify-content: center;
    gap: 4px 20px;
  }

  .hero {
    min-height: 420px;
    padding: 80px var(--gutter);
  }

  .hero h1 {
    font-size: 34px;
  }

  .page-title {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 32px;
  }

  .section--intro h2 {
    font-size: 26px;
  }

  .split,
  .split--media-first,
  .contact {
    grid-template-columns: 1fr;
  }

  .split--media-first .split-media {
    order: -1;
  }

  .contact-info {
    padding: 40px var(--gutter) 48px;
  }

  .contact-map {
    height: 380px;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .page-title {
    font-size: 30px;
  }

  .prose {
    font-size: 17px;
  }

  .site-footer .container {
    flex-direction: column;
  }
}

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