/* ==========================================================================
   LSD Motor Services — stylesheet
   Ported from the original Webflow design. Values below mirror the
   original rules (colours, spacing, type scale, breakpoints) rather than
   being reinterpreted, so the rebuild matches the live site.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Oxanium';
  src: url('../fonts/Oxanium-Variable.woff2') format('woff2-variations');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Variable.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Italic-Variable.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ---------- Tokens (from the original's CSS variables) ---------- */
:root {
  --bg: #121520;
  --bg-60: #12152099;
  --accent: #ed2820;
  --accent-dark: #b62320;
  --accent-60: #ed282099;
  --text: #ffffff;
  --text-75: #ffffffbf;
  --text-50: rgba(255, 255, 255, .5);
  --panel-black: #07080d;

  --font-head: 'Oxanium', 'Trebuchet MS', sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  --container: 1140px;
  --gutter: 48px;
  --section-y: 96px;
  --nav-h: 80px;

  --shadow: 0 4px 8px 0 #00000080;
  --ease: cubic-bezier(.25, .46, .45, .94);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  /* `clip` contains overflow without making <body> a scroll container,
     which would break window scrolling and in-page anchor links. */
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
.h-hero {
  width: 100%;
  font-family: var(--font-head);
  font-size: 82px;
  line-height: 70px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  text-transform: uppercase;
}
.h1, .h2 {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 48px;
  line-height: 52px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}
.h1.h1--center, .h2.h2--center { text-align: center; }
.h3 {
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
}
.pre-header {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}
/* Original `.paragraph`: 80% wide and centre-aligned by default. */
.p {
  width: 80%;
  /* The original inherits Webflow's normalize, which gives paragraphs a
     10px bottom margin. Kept so vertical rhythm matches. */
  margin-bottom: 10px;
  color: var(--text-75);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}
/* Doubled class keeps these modifiers above the single-class `.p`
   overrides inside the media queries below. */
.p.p--left { text-align: left; }
.p.p--full { width: 100%; }
.p.p--center-all { text-align: center; }
.p a { color: var(--accent); text-decoration: underline; }

/* ---------- Layout ---------- */
/* Every section carries the flourish artwork, as on the original. */
.section {
  position: relative;
  background-image: url('../img/flourish-1.avif');
  background-position: 50% 0;
  background-repeat: repeat-y;
  background-size: 100%;
}
.section--services { background-repeat: repeat-x; }
.section--panels { background-image: url('../img/flourish-2.avif'); }

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.section-header { margin-bottom: 48px; }
.section-header--center {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center;
}
.section-header--panel { margin-bottom: 12px; }
.section-header--banner { margin-bottom: 24px; }

/* Gradient fades blending each section into the page background */
.section-fades {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.section-fades::before,
.section-fades::after { content: ''; display: block; width: 100%; }
.section-fades::before { height: 100px; background-image: linear-gradient(180deg, var(--bg), #12152000); }
.section-fades::after  { height: 200px; background-image: linear-gradient(0deg, var(--bg), #12152000); }

/* ---------- Button (chamfered corners, as per the original gradient) ---------- */
.button {
  display: inline-block;
  padding: 9px 15px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  border: 0;
  cursor: pointer;
  background-color: transparent;
  background-image: linear-gradient(315deg,
    #ed282000, #ed282000 9.9%,
    var(--accent-dark) 10%, var(--accent-dark) 90%,
    #ed282000 90.1%, #ed282000);
  transition: background-image .25s var(--ease), transform .25s var(--ease);
}
.button:hover {
  background-image: linear-gradient(315deg,
    #ed282000, #ed282000 9.9%,
    var(--accent) 10%, var(--accent) 90%,
    #ed282000 90.1%, #ed282000);
  transform: translateY(-2px);
}
.button:active { transform: translateY(0); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 5;
  display: flex; justify-content: center; align-items: center;
  height: var(--nav-h);
}
.nav-bg {
  position: absolute; inset: 0; z-index: -1;
  background-color: #0000004d;
  border-bottom: 1px solid #ffffff26;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-logo img { height: 41px; width: auto; }
.nav-mid { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.nav-item {
  position: relative;
  padding-bottom: 4px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  cursor: pointer;
}
/* Underline growing out from the centre */
.nav-item::before,
.nav-item::after {
  content: ''; position: absolute; bottom: 0;
  width: 0; height: 0;
  border-bottom: 2px solid var(--accent);
  border-radius: 1px;
  transition: width .3s var(--ease);
}
.nav-item::before { left: 50%; }
.nav-item::after  { right: 50%; }
.nav-item:hover::before,
.nav-item:hover::after,
.nav-item[aria-current="page"]::before,
.nav-item[aria-current="page"]::after { width: 50%; }

.nav-burger {
  display: none;
  justify-content: center; align-items: center;
  width: 30px; height: 30px;
  padding: 0; background: none; border: 0; cursor: pointer;
}
.nav-burger img { width: 24px; height: 24px; }

.nav-dropdown {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  display: none;
  padding: 24px var(--gutter) 32px;
  /* Darker than the navbar strip so links stay legible over the hero video. */
  background-color: rgba(7, 8, 13, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-dark);
}
.nav-dropdown.is-open { display: block; }
.nav-dropdown-inner { display: flex; flex-direction: column; gap: 20px; }
.nav-dropdown a { font-family: var(--font-head); font-size: 18px; font-weight: 600; text-transform: uppercase; }
.nav-dropdown a.is-cta { align-self: flex-start; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; width: 100%; height: 100vh; }
.hero-bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; background-color: #000; }
.hero-bg video,
.hero-bg img {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.hero-overlay { position: absolute; inset: 0; z-index: 2; background-color: #00000080; }
.hero > .container {
  z-index: 3;
  display: flex; flex-direction: column;
  height: 100%;
}
.hero-center {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 12px;
  width: 75%;
  margin: 0 auto;
  flex: 1 1 auto;
}
.hero-arrow {
  position: absolute; left: 0; right: 0; bottom: 24px;
  width: 24px; height: 24px;
  margin-left: auto; margin-right: auto;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
/* Partner logos sit bottom-left, as on the original */
.partner-logos-wrapper { flex: 0 0 auto; }
.partner-logos-wrapper .p {
  width: 80%;
  text-align: left;
  font-family: var(--font-head);
}
.partner-logos { display: flex; gap: 16px; margin-top: 4px; }
.partner-logo { display: flex; justify-content: center; align-items: center; height: 30px; }
.partner-logo img { width: auto; height: 100%; object-fit: contain; opacity: .75; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.service-card { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.service-card-inner {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  background-position: 50%;
  background-size: cover;
  transition: transform .5s var(--ease);
}
.service-card:hover .service-card-inner { transform: scale(1.06); }
/* Label band covers the bottom 30% with the text centred, as on the original */
.service-card-label {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; justify-content: center; align-items: center;
  width: 100%; height: 30%;
  background-image: linear-gradient(#0000, #000);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.service-card::after {
  content: ''; position: absolute; inset: 0; z-index: 3;
  border: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.service-card:hover::after { border-color: var(--accent-dark); }

/* ==========================================================================
   About / who we are
   ========================================================================== */
/* No gap: the 60/40 split fills the row exactly, as on the original. */
.wwa { display: flex; }
.wwa-text {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: flex-start;
  gap: 24px;
  width: 60%;
}
.wwa-image { width: 40%; }
.wwa-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 1px solid var(--accent-dark);
  border-radius: 2px;
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.review {
  position: relative;
  display: flex; flex-direction: column; gap: 24px;
  padding: 24px;
  background-color: var(--bg-60);
  border: 1px solid var(--accent-dark);
  box-shadow: var(--shadow);
}
.review-quote {
  width: 100%;
  color: var(--text);
  font-style: italic;
  font-weight: 400;
  line-height: 16px;
  text-align: left;
}
.review-meta { display: flex; justify-content: flex-start; align-items: center; gap: 8px; }
.review-name {
  font-family: var(--font-head);
  color: var(--text-75);
  margin-bottom: 0;
}
.review-source { display: inline-flex; }
.review-source-icon { width: 18px; height: 18px; display: block; }
/* Decorative quote marks overhanging the bottom-right corner */
.review-quotes {
  position: absolute; inset: auto -12px -12px auto;
  width: 96px;
  pointer-events: none;
}

/* ==========================================================================
   Socials banner
   ========================================================================== */
.section--banner {
  position: relative;
  border-top: 1px solid var(--accent-dark);
  border-bottom: 1px solid var(--accent-dark);
  background-image: url('../img/flourish-1.avif'), linear-gradient(var(--panel-black), var(--panel-black));
  background-position: 50%, 0 0;
  background-size: cover, auto;
  box-shadow: 0 0 20px 8px #00000059;
}
.section--banner > .container {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 24px; padding-bottom: 24px;
}
.banner-inner {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center;
  width: 100%;
}
.follow-container { width: 70%; }
.follow-row {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: flex-start;
  gap: 24px;
  width: 100%;
}
.follow-tile {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 12px;
  width: 98px; height: 98px;
  padding: 24px;
  border: 1px solid var(--accent-dark);
  border-radius: 5px;
  background-image: linear-gradient(#00000080, #00000080);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.follow-tile:hover { background-color: var(--accent-dark); transform: translateY(-4px); }
.follow-tile .follow-icon { width: 100%; height: auto; display: block; }

/* ==========================================================================
   Panels (BC Racing / Castrol / Fleet)
   ========================================================================== */
.panel-container { display: flex; flex-direction: column; gap: 192px; padding: 48px 0; }
.panel { display: flex; justify-content: space-between; align-items: center; gap: 48px; width: 100%; }
.panel--reversed { flex-direction: row-reverse; }
.panel-text {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: flex-start;
  gap: 12px;
  width: 50%;
}
.panel-image { width: 50%; }
.panel-image img { width: 100%; height: auto; object-fit: contain; }

/* ==========================================================================
   Team — circular avatar overhanging the top of each card
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 250px);
  justify-content: center;
  /* stretch keeps every card in a row the same height, as on the original */
  align-items: stretch;
  column-gap: 96px; row-gap: 128px;
  /* padding, not margin: a top margin here would collapse with the section
     header's bottom margin and lose 48px of separation. */
  padding-top: 75px;
}
.team-card {
  position: relative;
  width: 250px;
  padding-bottom: 24px;
  background-color: #00000059;
  border: 1px solid var(--accent-dark);
  border-radius: 0;
}
.team-image {
  position: absolute; top: -90px; left: 50%;
  transform: translateX(-50%);
  width: 150px; height: 150px;
  border: 1px solid var(--accent-dark);
  border-radius: 50%;
  overflow: hidden;
}
.team-image img { width: 100%; height: 100%; object-fit: cover; }
.team-card-body {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center;
  width: 100%;
  padding: 100px 0 0;
  text-align: center;
}
.team-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.team-role { color: var(--text-75); text-align: center; margin-bottom: 0; }

/* ==========================================================================
   Service detail pages
   ========================================================================== */
.page-top { padding-top: calc(var(--nav-h) + 48px); }
.service-page {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center;
  gap: 96px;
  margin-top: 24px;
}
.service-hero {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center;
  gap: 24px;
  width: 100%;
}
.service-hero .h1 { text-align: center; }
/* Contents column is 70% wide and centred, as on the original */
.service-body {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: flex-start;
  gap: 24px;
  width: 70%;
}
/* Headings centre inside each block. No explicit width: the parent's
   align-items:flex-start lets each block shrink to its content, so the
   prose block fills the column while the list block hugs the list. */
.service-block {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center;
  gap: 8px;
  max-width: 100%;
}
.h-service2, .h-service3 {
  margin-top: 12px; margin-bottom: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 24px;
  color: var(--text);
}
.h-service2 { font-size: 37.5px; }
.h-service3 { font-size: 25px; }
.service-list {
  padding-left: 40px;
  list-style: disc;
  color: var(--text-75);
  overflow: hidden;
}
.service-list li { text-align: left; }
.service-cta {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

/* ---------- Services index ---------- */
.services-list-page { padding: 48px 0; }
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.services-list-item {
  display: flex; align-items: stretch; gap: 12px;
  padding: 12px;
  border: 1px solid var(--accent-dark);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.services-list-item:hover { background-color: rgba(182, 35, 32, .18); transform: translateY(-3px); }
.services-list-thumb { flex: 0 0 79px; width: 79px; height: 112px; object-fit: cover; }
.services-list-body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.services-list-title {
  font-family: var(--font-head);
  font-size: 18px; line-height: 18px; font-weight: 400;
  color: var(--text);
}

/* ---------- Blog ---------- */
.blog-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.blog-card {
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  gap: 4px;
  padding: 12px;
  background-color: var(--bg-60);
  border: 1px solid var(--accent-dark);
  transition: transform .25s var(--ease);
}
.blog-card:hover { transform: translateY(-3px); }
.blog-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 24px; line-height: 26px; font-weight: 400;
  color: var(--text);
}
.h-blog {
  margin-top: 12px; margin-bottom: 0;
  font-family: var(--font-head);
  font-size: 42px; line-height: 46px; font-weight: 700;
  color: var(--text);
  text-align: center;
}
.blog-page {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center;
  gap: 96px;
  margin-top: 48px;
}
.blog-head {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%;
}
/* Article body text is full white on the original, not the 75% used elsewhere */
.article { display: flex; flex-direction: column; gap: 20px; width: 80%; color: var(--text); }
.article h2 { font-family: var(--font-head); font-size: 28px; line-height: 34px; font-weight: 700; margin-top: 16px; }
.article h3 { font-family: var(--font-head); font-size: 20px; line-height: 26px; font-weight: 600; }
.article p, .article li { color: var(--text); }
.article ul { display: flex; flex-direction: column; gap: 10px; }
.article ul li { position: relative; padding-left: 22px; }
.article ul li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; background-color: var(--accent); transform: rotate(45deg);
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-contents { display: flex; gap: 48px; }
.contact-form-col { width: 50%; }
.contact-details-col { display: flex; flex-direction: column; gap: 48px; width: 50%; }

/* Section sub-heading used across the contact page */
.h-contact {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px; line-height: 24px; font-weight: 500;
  color: var(--text);
}
.form-header { margin-bottom: 24px; }

.opening-times-wrapper { display: flex; gap: 12px; }
.opening-times-icon { flex: 0 0 24px; width: 24px; height: 24px; }
.opening-times-contents { display: flex; flex-direction: column; gap: 12px; width: 70%; }
.opening-time {
  display: flex; justify-content: space-between; align-items: flex-start;
  width: 100%;
  border-bottom: 1px solid var(--accent-60);
  color: var(--text-75);
}
.opening-time dt { font-weight: 400; color: var(--text-75); }
.opening-time dd { margin: 0; }

.details-wrapper {
  display: flex; flex-flow: row wrap;
  justify-content: flex-start; align-items: flex-start;
  gap: 12px;
}
.outlined-wrapper {
  display: flex; justify-content: flex-start; align-items: center; gap: 12px;
  padding: 8px;
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color .25s var(--ease);
}
.outlined-wrapper:hover { background-color: rgba(182, 35, 32, .18); }
.outlined-wrapper img { width: 24px; height: 24px; flex: 0 0 24px; }
.text-bold {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text);
}
/* Small label above each outlined box ("Address", "what3words") */
.h-info {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 16px; line-height: 20px; font-weight: 500;
  color: var(--text);
}

.find-us-wrapper { margin-top: 96px; }
.find-us-50 { width: 50%; margin-bottom: 24px; }
.info-pair { display: flex; flex-direction: column; }
.maps-wrapper { width: 100%; height: 400px; margin-top: 24px; border: 1px solid var(--accent-dark); }
.maps-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3) contrast(1.05); }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 500;
  color: var(--text);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  background-color: var(--bg-60);
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  transition: border-color .2s var(--ease);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23ed2820' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 34px;
}
.form-field select option { background-color: var(--bg); color: var(--text); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-50); }
.form .button { align-self: flex-start; }
.form-note { color: var(--text-50); font-size: 12px; line-height: 17px; }

.form-message { padding: 14px 16px; border-radius: 1px; font-size: 14px; display: none; }
.form-message.is-visible { display: block; }
.form-message.is-success { background-color: rgba(30, 120, 60, .25); border: 1px solid #2e9e57; color: #b9f2cd; }
.form-message.is-error   { background-color: rgba(182, 35, 32, .25); border: 1px solid var(--accent); color: #ffc9c6; }
.form[data-sending] .button { opacity: .6; pointer-events: none; }

/* Honeypot — hidden from people, visible to bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Map ---------- */
/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; border-top: 1px solid var(--accent-dark); }
.footer-container { max-width: 940px; margin: 0 auto; padding: 48px 0; }
.footer-wrapper { display: flex; flex-direction: column; justify-content: space-between; }
.footer-top { display: flex; justify-content: space-between; align-items: center; }
.footer-left { width: 30%; }
.footer-logo img { width: 100%; height: auto; }
.footer-right { width: 50%; }
.footer-links-wrapper { margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.footer-link-column { display: flex; flex-direction: column; gap: 12px; }
.footer-link-column .nav-item { font-weight: 400; }
.footer-follow { display: flex; gap: 24px; }
.footer-follow .footer-follow-icon { width: 18px; height: 18px; opacity: .8; transition: opacity .2s var(--ease); display: block; }
.footer-follow a:hover .footer-follow-icon { opacity: 1; }
.footer-bottom {
  display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 48px;
  color: var(--text-75); font-size: 12px;
}
.footer-bottom .ksd {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  cursor: pointer;
}
.footer-bottom .ksd:hover { color: var(--accent); }

/* ==========================================================================
   Entrance animation

   Ported from the original's Webflow "slideInLeft" preset: opacity 0 -> 1 and
   translateX(-100px) -> 0 over 1000ms on an outQuart curve. The original applies
   it to exactly six elements — the four hero items and the services section
   heading pair — and animates nothing else, so neither do we.
   ========================================================================== */
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-100px); }
  to   { opacity: 1; transform: translateX(0); }
}
/* outQuart */
:root { --ease-out-quart: cubic-bezier(.165, .84, .44, 1); }

/* Above the fold: runs on load. `backwards` holds the start state during any
   delay, and the element still renders normally if animations are unsupported. */
.anim-in { animation: slide-in-left 1s var(--ease-out-quart) backwards; }
.anim-delay-150 { animation-delay: .15s; }
.anim-delay-300 { animation-delay: .3s; }

/* Below the fold: same animation, triggered when scrolled into view. */
.reveal { opacity: 0; }
.reveal.is-visible { animation: slide-in-left 1s var(--ease-out-quart) both; }

@media (prefers-reduced-motion: reduce) {
  .anim-in, .reveal.is-visible { animation: none; }
  .reveal { opacity: 1; }
  .hero-arrow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive — breakpoints mirror the original (991 / 767 / 479)
   ========================================================================== */
@media screen and (max-width: 991px) {
  .section { background-repeat: repeat-y; background-size: contain; }
  .p.p--left { width: 100%; }
  .wwa { flex-direction: column-reverse; gap: 24px; }
  .wwa-text { width: 100%; gap: 12px; }
  .wwa-image { width: 100%; height: 300px; }
  .panel, .panel--reversed { flex-direction: column; }
  .panel-text { width: 100%; }
  .panel-image { width: 100%; height: 300px; }
  .panel-image img { height: 100%; object-fit: cover; }
  .panel-container { gap: 96px; }
  .team-grid { grid-template-columns: repeat(2, 250px); }
  .review-quotes { width: 72px; }
  .nav-item { font-size: 14px; }
  .contact-contents { flex-direction: column; }
  .contact-form-col, .contact-details-col { width: 100%; }
  .find-us-50 { width: 75%; }
  .service-body { width: 100%; }
  .article { width: 100%; }
}

@media screen and (max-width: 767px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .nav-mid, .nav-right { display: none; }
  .nav-burger { display: flex; }
  .h-hero { font-size: 48px; line-height: 48px; text-align: left; }
  .hero-center { width: 100%; align-items: flex-start; }
  .hero-center .p { text-align: left; }
  .p { text-align: left; }
  .p.p--center-all { text-align: center; padding-left: 12px; padding-right: 12px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-list { grid-template-columns: 1fr; }
  /* Reviews stack from the burger-menu breakpoint down — two narrow columns
     made the quotes hard to read on phones. */
  .reviews-grid { grid-template-columns: 1fr; gap: 24px; }
  .team-grid { grid-template-columns: 250px; }
  .team-card { width: 100%; max-width: 350px; }
  .follow-container { width: 100%; }
  .footer-container { padding-left: var(--gutter); padding-right: var(--gutter); }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 48px; }
  .footer-left { width: 50%; }
  .footer-right { display: flex; flex-direction: column; gap: 24px; width: 70%; }
  .footer-bottom { justify-content: flex-start; }
}

@media screen and (max-width: 479px) {
  :root { --nav-h: 60px; --gutter: 24px; }
  .container { padding: 64px 24px; }
  .nav-inner { padding: 12px 24px; }
  .nav-burger { width: 24px; height: 24px; }
  .hero { height: 600px; }
  .hero-overlay { background-color: #000000a6; }
  .h-hero { font-size: 40px; line-height: 35px; }
  .h1, .h2 { margin-top: 6px; font-size: 24px; line-height: 24px; }
  .h3 { font-size: 20px; line-height: 26px; }
  .h-service2, .h-service3 { margin-top: 6px; font-size: 16px; line-height: 24px; }
  .h-blog { margin-top: 6px; font-size: 24px; line-height: 24px; }
  .blog-title { font-size: 16px; line-height: 24px; }
  .p { width: 100%; text-align: left; }
  .section-header { margin-bottom: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-label { height: 50%; align-items: flex-end; padding-bottom: 4px; font-size: 12px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 24px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { width: 100%; max-width: none; }
  .follow-tile { width: 50px; height: 50px; padding: 12px; }
  .partner-logos { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-right { width: 100%; }
  .services-list { grid-template-columns: 1fr; }
  .services-list-thumb { flex: 0 0 64px; width: 64px; }
  .panel-image { height: 200px; }
}
