/* Hesman Garage — site styles */
:root {
  --purple: #602b8b;
  --purple-dark: #4a1f6d;
  --text: #404040;
  --heading: #333333;
  --black: #000000;
  --gray-bg: #f8f9f9;
  --footer-bg: #1a1a1a;
  --border: #c9c9c9;
  --body-font: 'Poppins', Arial, sans-serif;
  --heading-font: 'Roboto', Arial, sans-serif;
  --container: 980px;
  --header-h: 88px;
}

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

html {
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 0.6em;
  line-height: 1.4;
}

p {
  margin: 0 0 0.9em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.center {
  text-align: center;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

.skip:focus {
  left: 8px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 225px;
  min-height: 47px;
  padding: 10px 24px;
  background: var(--purple);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background: var(--purple-dark);
}

.btn--form {
  font-family: var(--body-font);
  font-weight: 600;
  letter-spacing: 0;
  min-height: 40px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  color: #1a1a1a;
  flex: 0 0 auto;
}

.header-logo .logo-svg {
  width: 200px;
  height: auto;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.menu,
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu {
  display: flex;
  align-items: center;
}

.menu a,
.sub-toggle {
  display: block;
  padding: 6px 13px;
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 13px;
  color: var(--black);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.menu a:hover,
.sub-toggle:hover,
.menu a.active,
.has-sub.active > .sub-toggle {
  color: var(--purple);
}

.has-sub {
  position: relative;
}

.sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  display: none;
}

.has-sub:hover .sub,
.has-sub:focus-within .sub,
.has-sub.open .sub {
  display: block;
}

.lang-switch {
  display: flex;
  gap: 2px;
  order: -1;
}

.lang-switch a {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
}

.lang-switch a[aria-current] {
  background: var(--purple);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #1a1a1a;
  margin: 5px 0;
  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);
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}

.section.tight {
  padding: 16px 0;
}

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

.section--white {
  background: #fff;
}

.section h2 {
  font-size: 35px;
}

.lead {
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
}

.title-band {
  background: #fff;
  padding: 58px 0 50px;
  text-align: center;
}

.title-band h1 {
  font-size: 35px;
  margin: 0;
}

.prose {
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
}

.prose p {
  margin-bottom: 0.6em;
}

.simple-page {
  padding: 120px 0 140px;
}

/* ---------- Home ---------- */
.hero {
  height: clamp(240px, 31vw, 640px);
  background: #1d2733 url('/media/accueil-banniere.webp') center 5% / cover no-repeat;
}

.intro {
  padding: 22px 0 18px;
}

.intro .lead {
  margin: 0;
  font-weight: 500;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.split--visit h2 {
  font-size: 35px;
}

.split--visit .lead {
  margin-bottom: 40px;
}

.big-title {
  font-size: 35px;
  line-height: 45px;
  margin: 10px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  padding: 38px 14px 30px;
  text-align: center;
  transition: background-color 0.25s;
}

.card:hover {
  background: var(--purple);
}

.card:hover h3,
.card:hover .card-text {
  color: #fff;
}

.card-icon {
  position: relative;
  width: 64px;
  height: 50px;
  margin: 0 auto 22px;
}

.card-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s;
}

.card-icon .icon-hover {
  opacity: 0;
}

.card:hover .icon-hover {
  opacity: 1;
}

.card:hover .icon-main {
  opacity: 0;
}

.card h3 {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--purple);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-text {
  font-size: 15px;
  font-weight: 400;
  text-align: justify;
  color: var(--text);
}

.card-text .left {
  text-align: left;
}

.card-text p {
  margin-bottom: 0.2em;
}

.card-text a {
  text-decoration: none;
}

.newsletter {
  text-align: center;
  padding: 48px 0 64px;
}

.newsletter-title {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 40px;
  color: var(--heading);
  line-height: 1.3;
}

.newsletter-sub {
  font-weight: 600;
  font-size: 17px;
}

.newsletter-form {
  max-width: 940px;
  margin: 26px auto 0;
  text-align: left;
}

.newsletter-form label {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

.newsletter-row {
  display: flex;
}

.newsletter-row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--text);
  padding: 0 12px;
  font: inherit;
}

.newsletter-row .btn {
  min-width: 230px;
}

.form-status {
  margin: 10px 0 0;
  font-size: 14px;
  min-height: 1.5em;
}

.form-status.ok {
  color: #1d7a3a;
}

.form-status.error {
  color: #b00020;
}

/* ---------- Videos ---------- */
.video {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video--cover video {
  object-fit: cover;
}

.video--contain video {
  object-fit: contain;
}

/* ---------- Car services ---------- */
.section .list-title {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin: 1.4em 0 0.6em;
}

.bullets {
  margin: 0;
  padding-left: 1.4em;
  color: var(--text);
  font-weight: 300;
  line-height: 25px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px 20px;
  margin-top: 48px;
}

.icon-grid figure {
  margin: 0;
  text-align: center;
}

.icon-grid img {
  width: 164px;
  margin: 0 auto 10px;
}

.icon-grid figcaption {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.split--portrait {
  margin-top: 56px;
  grid-template-columns: 240px 1fr;
  max-width: 760px;
}

.split--portrait .split-media {
  width: 240px;
}

/* ---------- Heavy trucks ---------- */
.split--truck {
  grid-template-columns: 381px 1fr;
  margin-top: 34px;
  align-items: start;
}

.dashes {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
}

.dashes li::before {
  content: '- ';
}

.slideshow {
  position: relative;
  max-width: 568px;
  margin: 0 auto;
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.slide-btn.prev {
  left: 0;
}

.slide-btn.next {
  right: 0;
}

/* ---------- Brands & suppliers ---------- */
.brands-layout {
  display: grid;
  grid-template-columns: 302px 1fr;
  gap: 26px;
  align-items: start;
  margin-top: 40px;
}

.brand-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.brand-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-grid li:last-child {
  grid-column: 3;
}

.brand-grid img {
  width: 112px;
}

.mora {
  margin: 30px auto 36px;
}

.mora-logo {
  width: 428px;
  margin: 0 auto;
}

.supplier-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 16px;
  margin-bottom: 0;
}

.supplier-grid img {
  width: 224px;
  margin: 0 auto;
}

.wide-video {
  margin-top: 90px;
}

/* ---------- Wrap ---------- */
.wrap-collage {
  display: grid;
  grid-template-columns: 287px 306px;
  grid-template-rows: 204px 204px;
  gap: 24px 70px;
  justify-content: center;
  margin-top: 40px;
}

.wrap-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrap-collage .tall {
  grid-row: span 2;
}

.purple-rule {
  border: 0;
  height: 3px;
  background: var(--purple);
  max-width: 700px;
  margin: 40px auto 50px;
}

.split--wrap {
  grid-template-columns: 565px 1fr;
  margin-bottom: 26px;
}

/* ---------- Hiring ---------- */
.hire-card {
  max-width: 1240px;
  margin: 0 auto;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 609px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hire-text {
  padding: 40px 30px;
  text-align: center;
}

.hire-text > * {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hire-text h1,
.hire-text h2 {
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 22px;
  color: var(--black);
}

.hire-text h1 {
  margin-bottom: 56px;
}

.hire-text p {
  text-align: left;
  font-size: 17px;
  font-weight: 400;
  max-width: 420px;
}

.hire-text p a {
  color: #808080;
  text-decoration: none;
}

.hire-text .btn {
  margin: 14px 0 20px;
}

/* ---------- Social icons ---------- */
.social {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  gap: 15px;
}

.social a {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
}

.social svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.social a:hover svg {
  fill: #c9a6e6;
}

.social--dark {
  justify-content: center;
  margin-top: 0;
}

.social--dark svg {
  fill: #000;
  width: 20px;
  height: 20px;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 518px 1fr;
  gap: 44px;
  align-items: start;
  max-width: 1020px;
}

.contact-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
  padding: 34px 26px 30px;
}

.contact-card h1 {
  font-size: 30px;
  text-align: center;
  margin: 0 auto 24px;
  max-width: 400px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--black);
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #8a8a8a;
}

.contact-info {
  padding-top: 30px;
}

.contact-info .eyebrow {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--heading);
}

.contact-info h2 {
  font-size: 30px;
  text-align: left;
}

.contact-info p {
  font-size: 17px;
  font-weight: 400;
  max-width: 360px;
  margin-bottom: 1.6em;
}

.contact-info .city {
  margin-bottom: 18px;
}

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

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 400;
}

.contact-list img {
  width: 40px;
  flex: 0 0 40px;
}

.contact-list a {
  text-decoration: none;
}

.directions-video {
  max-width: 674px;
  margin: 30px auto 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  font-weight: 300;
}

.footer-grid {
  display: grid;
  grid-template-columns: 330px 1fr 200px;
  gap: 30px;
  padding-top: 44px;
  padding-bottom: 50px;
}

.footer-logo {
  display: block;
  color: #fff;
  margin-bottom: 44px;
}

.footer-logo .logo-svg {
  width: 286px;
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.4;
}

.footer-contact img {
  width: 43px;
  flex: 0 0 43px;
}

.footer-contact a,
.footer-list a {
  text-decoration: none;
}

.footer-contact a:hover,
.footer-list a:hover {
  text-decoration: underline;
}

.footer-title {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 20px;
  color: #fff;
  margin: 98px 0 12px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.45;
}

.footer-bottom {
  background: #000;
  color: #bdbdbd;
  text-align: center;
  font-size: 13px;
  padding: 12px 20px;
}

/* ---------- Hiring popup ---------- */
.hire-popup {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  width: 455px;
  max-width: calc(100vw - 32px);
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hire-popup[hidden] {
  display: none;
}

.hire-tab {
  flex: 0 0 50px;
  background: #282626;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hire-tab span {
  writing-mode: vertical-rl;
  color: #e6e6e6;
  letter-spacing: 2.5px;
  font-size: 20px;
  font-weight: 300;
}

.hire-body {
  position: relative;
  flex: 1;
  padding: 50px 40px 24px;
  text-align: center;
}

.hire-body .video {
  max-width: 320px;
  margin: 0 auto 16px;
}

.hire-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #222;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav.open {
    display: flex;
  }

  .menu {
    flex-direction: column;
    align-items: stretch;
  }

  .menu a,
  .sub-toggle {
    padding: 12px 4px;
    font-size: 15px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #eee;
  }

  .sub {
    position: static;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: block;
  }

  .lang-switch {
    order: 2;
    margin-top: 14px;
  }

  .lang-switch a {
    font-size: 14px;
    padding: 6px 14px;
  }
}

@media (max-width: 1000px) {
  .hire-card {
    grid-template-columns: 1fr;
  }

  .hire-media {
    max-width: 609px;
    width: 100%;
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .contact-info {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .section h2,
  .title-band h1,
  .big-title,
  .split--visit h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  .split,
  .split--truck,
  .split--wrap,
  .split--portrait,
  .brands-layout {
    grid-template-columns: 1fr;
  }

  .split--portrait .split-media {
    margin: 0 auto;
  }

  .brands-video {
    max-width: 302px;
    width: 100%;
    margin: 0 auto;
  }

  .split--truck .split-media {
    max-width: 381px;
    margin: 0 auto;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .footer-grid .footer-col:first-child {
    grid-column: 1 / -1;
  }

  .footer-title {
    margin-top: 0;
  }

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

  .wrap-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .wrap-collage img {
    aspect-ratio: 3 / 2;
  }

  .wrap-collage .tall {
    aspect-ratio: auto;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 70px;
  }

  .header-logo .logo-svg {
    width: 160px;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    height: 56vw;
    background-position: 30% 22%;
  }

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

  .icon-grid img {
    width: 130px;
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-grid li:last-child {
    grid-column: 2;
  }

  .brand-grid img {
    width: 90px;
  }

  .mora-logo {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .newsletter-row {
    flex-direction: column;
    gap: 10px;
  }

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

  .footer-logo .logo-svg {
    width: 220px;
  }

  .hire-popup {
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
  }

  .hire-tab {
    flex-basis: 36px;
  }

  .hire-tab span {
    font-size: 15px;
  }

  .hire-body {
    padding: 44px 16px 18px;
  }

  .hire-body .video {
    max-width: 220px;
  }

  .simple-page {
    padding: 60px 0 80px;
  }
}
