/*
Theme Name: Walmsley Tractors Limited
Author: Jarlath Lawn Digital Solutions
Version: 1.0.0
Text Domain: walmsley-tractors
*/

:root{
  --red:#A6192E;
  --black:#000000;
  --dark:#2B2B2B;
  --light:#F2F2F2;
  --white:#FFFFFF;
  --muted:#707070;
  --line:#E6E6E6;
  --max:1600px;
  --radius:6px;
  --shadow:0 14px 36px rgba(0,0,0,.16);
  --gutter:clamp(18px, 3.5vw, 48px);
}

/* Base */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--dark);
  background:var(--white);
  line-height:1.5;
}

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

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

input,
button,
select,
textarea{
  font:inherit;
}

.container{
  width:min(80%, 100% - (var(--gutter) * 2), var(--max));
  margin-inline:auto;
}

section{
  padding:clamp(44px, 7vw, 72px) 0;
  scroll-margin-top:110px;
}

h1,
h2,
h3{
  margin:0 0 14px;
  line-height:1.05;
  text-transform:uppercase;
  letter-spacing:.02em;
  font-weight:900;
}

h1{
  font-size:clamp(1.35rem, 2.2vw, 2rem);
  max-width:18ch;
}

h2{
  font-size:clamp(1.35rem, 2.2vw, 2rem);
  color:var(--black);
}

.kicker{
  display:inline-block;
  color:var(--red);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.82rem;
  font-weight:700;
}

.section-kicker-row{
  width:100%;
  margin-bottom:10px;
}

.section-head{
  display:grid;
  grid-template-columns:minmax(240px, .9fr) minmax(260px, 1.1fr);
  gap:24px;
  align-items:start;
  margin-bottom:26px;
}

.section-head h2{
  margin:0;
}

.section-head p{
  margin:0;
  color:#545454;
  max-width:58ch;
  line-height:1.6;
}

/* Buttons */

.btn{
  min-height:40px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  border:1px solid transparent;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:11px;
  font-weight:800;
  transition:.2s ease;
  cursor:pointer;
  white-space:nowrap;
}

.btn-primary{
  background:var(--red);
  color:var(--white);
  box-shadow:0 8px 18px rgba(166,25,46,.22);
}

.btn-primary:hover{
  filter:brightness(1.3);
}

.btn-secondary{
  color:var(--dark);
	background:var(--light);
  border-color:rgba(255,255,255,.42);
}

.btn-secondary:hover{
  filter:brightness(0.7);
}

.btn-tertiary{
  background:var(--dark);
  color:var(--white);
  box-shadow:0 8px 18px rgba(166,25,46,.22);
}

.btn-tertiary:hover{
  filter:brightness(1.3);
}

@media (max-width: 768px) {
	.btn{margin-top: 16px;
	}}
/* Header */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(0,0,0,.94);
  color:var(--white);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter:blur(10px);
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}

.header-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-block:8px;
  position:relative;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  position:relative;
  z-index:60;
  min-width:0;
  flex-shrink:0;
}

.site-logo{
  height:92px;
  width:auto;
  display:block;
  margin-bottom:-18px;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.22));
}

.brand-name{
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
  white-space:nowrap;
}

.nav-toggle{
  display:none;
  min-height:40px;
  min-width:40px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:4px;
  background:transparent;
  color:var(--white);
  font-size:18px;
  cursor:pointer;
}

.nav-wrap{
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:auto;
  min-width:0;
}

.nav{
  display:flex;
  gap:16px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
  align-items:center;
  flex-wrap:nowrap;
  white-space:nowrap;
  justify-content:flex-end;
  min-width:0;
  overflow:hidden;
}

.nav li{
  list-style:none;
}

.nav a{
  opacity:.86;
  position:relative;
  transition:opacity .2s ease, color .2s ease;
}

.nav a:hover{
  opacity:1;
  color:var(--white);
}

.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:100%;
  height:2px;
  background:var(--red);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}

.nav a:hover::after{
  transform:scaleX(1);
}

.header-cta{
  display:flex;
  gap:10px;
  align-items:center;
  flex-shrink:0;
}

/* Hero */

.hero{
  position:relative;
  min-height:clamp(360px, 58vw, 620px);
  color:var(--white);
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  background:
    linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.15) 100%),
    url('assets/images/hero.webp') center/cover no-repeat;
}

.hero-inner{
  position:relative;
  z-index:1;
  width:min(80%, 100% - (var(--gutter) * 2), var(--max));
  margin-inline:auto;
  padding:clamp(44px, 7vw, 86px) 0 clamp(18px, 3vw, 30px);
}

.hero-panel,
.page-hero-panel{
  background:rgba(0,0,0,.58);
  border-left:4px solid var(--red);
  padding:18px 18px 20px;
  box-shadow:var(--shadow);
}

.hero-panel{
  width:min(100%, 470px);
}

.eyebrow{
  display:inline-block;
  margin-bottom:10px;
  color:rgba(255,255,255,.82);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:700;
}

.hero p{
  margin:0 0 14px;
  max-width:44ch;
  color:rgba(255,255,255,.88);
  font-size:clamp(.92rem, 1.35vw, 1rem);
}

.hero-actions,
.manufacturer-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.manufacturer-actions{
  padding-top:12px;
}

.section-intro{
  padding:14px 0;
  background:var(--red);
  color:var(--white);
  text-align:center;
}

.section-intro p{
  margin:0;
  font-size:clamp(.95rem, 1.4vw, 1.2rem);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:800;
}

/* Page Hero */

.page-hero{
  background:
    linear-gradient(90deg, rgba(0,0,0,.64) 0%, rgba(0,0,0,.32) 48%, rgba(0,0,0,.10) 100%),
    url('assets/images/hero.webp') center/cover no-repeat;
  color:var(--white);
  padding:clamp(46px, 7vw, 82px) 0 34px;
	min-height: 40vh;
}

.page-hero-panel{
  max-width:560px;
}

.page-hero h1{
  color:var(--white);
  margin-bottom:10px;
}

.page-hero p{
  margin:0;
  color:rgba(255,255,255,.86);
  max-width:50ch;
}

.small-hero{
  min-height:auto;
}

.machine-detail-hero{
  background:
    linear-gradient(90deg, rgba(0,0,0,.64) 0%, rgba(0,0,0,.32) 48%, rgba(0,0,0,.10) 100%),
    url('assets/images/hero.webp') center/cover no-repeat;
}

.machine-detail-hero .page-hero-panel{
  max-width:620px;
}

.machine-detail-hero h1{
  color:var(--white);
  max-width:none;
}

.machine-detail-hero .machine-single-price{
  color:var(--white);
  font-size:clamp(1.5rem, 3vw, 2.5rem);
  font-weight:900;
}

/* Breadcrumbs */

.breadcrumb-bar{
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:0;
}

.breadcrumbs{
  min-height:52px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  font-size:.82rem;
  color:#707070;
}

.breadcrumbs a{
  color:var(--red);
  font-weight:700;
}

.breadcrumbs .current{
  color:var(--black);
  font-weight:700;
}

.breadcrumb-back{
  color:#707070;
  font-weight:700;
  transition:.2s ease;
  text-transform:uppercase;
}

.breadcrumb-back:hover{
  color:var(--red);
}

/* Featured / Stock Cards */

.featured-machinery{
  background:var(--white);
}

.featured-head-right{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  flex-wrap:wrap;
}

.featured-link{
  color:var(--red);
  text-transform:uppercase;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.08em;
  white-space:nowrap;
  margin-top:2px;
}

/* Stock Search */

.stock-search{
  padding:36px 0 56px;
  background:var(--light);
}

.search-layout{
  display:grid;
  grid-template-columns:290px minmax(0, 1fr);
  gap:26px;
  align-items:start;
}

.search-sidebar{
  background:var(--white);
  border:1px solid var(--line);
  box-shadow:0 8px 20px rgba(0,0,0,.06);
  padding:18px;
  min-width:0;
}

.filter-group{
  margin-bottom:16px;
}

.filter-label{
  display:block;
  margin:0 0 8px;
  color:#5C6771;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.8rem;
  font-weight:800;
}

.field,
.select{
  width:100%;
  min-height:44px;
  border:1px solid #D7DCE1;
  border-radius:4px;
  background:var(--white);
  color:#25303A;
  padding:0 14px;
  outline:none;
}

.filter-actions{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.results-panel{
  min-width:0;
  padding-top:0;
}

.results-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
}

.results-count{
  font-size:1rem;
  font-weight:700;
  color:#4F5B65;
}

.stock-toggle{
  display:flex;
  gap:10px;
  margin-bottom:16px;
	flex-wrap: wrap;
}
@media (max-width: 768px) {

  .stock-toggle {
    gap: 10px;
  }

  .stock-toggle .btn {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

}


.toggle-btn{
  padding:10px 16px;
  border:1px solid #ddd;
  text-transform:uppercase;
  font-size:.75rem;
  font-weight:800;
}

.toggle-btn:hover{
  background:var(--red);
  color:#fff;
  border-color:var(--red);
}

.section-cta{
	margin-top:56px;
	text-align: center;
}



/* Reusable Machine Cards */

.listing-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
}

.listing-card{
  background:var(--white);
  border:1px solid #ECECEC;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display:flex;
  flex-direction:column;
  min-width:0;
}

.listing-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  border-color:rgba(166,25,46,.16);
}

.listing-thumb{
  position:relative;
  aspect-ratio:4 / 3;
  overflow:hidden;
}
.listing-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

.listing-body{
  padding:16px 16px 18px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.listing-brand{
  margin:0 0 6px;
  color:var(--red);
  font-size:.68rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.listing-card h3{
  margin:0 0 8px;
  color:var(--black);
  font-size:1.08rem;
  line-height:1.2;
  text-transform:none;
  letter-spacing:0;
}

.spec-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-bottom:14px;
}

.spec-box{
  border:1px solid #DCE1E6;
  background:#F7F8FA;
  padding:10px 10px 9px;
  min-height:56px;
}

.spec-label{
  display:block;
  margin-bottom:4px;
  color:#7A8792;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.68rem;
  font-weight:800;
  line-height:1.15;
}

.spec-value{
  color:#1E2933;
  font-size:.95rem;
  font-weight:800;
  line-height:1.15;
}

.listing-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:auto;
}

/* Status / Badges */

.listing-badge,
.listing-status,
.machine-status-pill{
  color:#fff;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}

.listing-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:5;
  background:var(--red);
  padding:4px 7px;
  font-size:.64rem;
}

.listing-badge.used{
  background:#4B4B4B;
}

.listing-status{
  position:absolute;
  top:12px;
  right:12px;
  left:auto;
  z-index:6;
  padding:6px 9px;
  font-size:.62rem;
}

.machine-status-pill{
  display:inline-flex;
  margin-top:14px;
  padding:8px 12px;
  font-size:.68rem;
}

.status-available{
  background:#2f7d32;
}

.status-available-to-order{
  background:var(--red);
}

.status-reserved{
  background:#c58a00;
}

.status-sold{
  background:#222;
}

.status-coming-soon{
  background:var(--red);
}

/* Single Machine */

.machine-single{
  background:var(--white);
  padding:40px 0 70px;
}

.machine-single-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(320px, .8fr);
  gap:30px;
  align-items:start;
}

.machine-main-image-wrap{
  display:block;
  overflow:hidden;
  background:#f4f4f4;
}

.machine-main-image{
  width:100%;
  display:block;
  aspect-ratio:4/3;
  object-fit:cover;
  box-shadow:var(--shadow);
}

.machine-thumbs{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(88px,1fr));
  gap:10px;
  margin-top:12px;
}

.machine-thumb{
  border:2px solid transparent;
  overflow:hidden;
  transition:.2s ease;
}

.machine-thumb.active{
  border-color:var(--red);
}

.machine-thumb img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}

.machine-summary{
  background:var(--light);
  border:1px solid var(--line);
  padding:22px;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.machine-summary h2,
.machine-content h2,
.machine-video h2{
  max-width:none;
}

.machine-summary .btn{
  width:100%;
  margin-top:18px;
}

.machine-brochure-btn{
  width:100%;
  margin-top:10px;
  color:var(--light);
  background:var(--dark);
}

.machine-brochures{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.machine-brochures h3{
  margin-bottom:0;
  font-size:.86rem;
  letter-spacing:.08em;
}

.range-stock-matches{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.range-stock-matches h3{
  margin-bottom:10px;
  font-size:.86rem;
  letter-spacing:.08em;
}

.range-stock-matches ul{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.range-stock-matches a{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  font-weight:800;
}

.range-stock-matches small{
  color:var(--muted);
  font-weight:700;
  white-space:nowrap;
}

.machine-content,
.machine-video{
  margin-top:36px;
  max-width:900px;
}

.machine-content p{
  color:#555;
  line-height:1.7;
}

.machine-video iframe{
  width:100%;
  max-width:900px;
  aspect-ratio:16 / 9;
  height:auto;
}

/* Related / Finance */

.related-machines{
  background:var(--light);
}

.finance-cta{
  background:var(--white);
  border-top:1px solid #ececec;
}

.finance-cta-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:30px;
  align-items:center;
}

.finance-copy h2{
  margin-bottom:12px;
}

.finance-copy p{
  max-width:60ch;
  margin:0;
  color:#666;
}

.finance-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

/* Mobile Machine Bar */

.mobile-machine-bar{
  display:none;
}

/* Why */

.overview{
  background:var(--light);
}

.overview-grid{
  display:grid;
  grid-template-columns:minmax(280px, 1.02fr) minmax(280px, .98fr);
  gap:30px;
  align-items:center;
}

.overview-image{
  min-height:clamp(300px, 36vw, 420px);
  box-shadow:var(--shadow);
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.32)),
    url('assets/images/parts.jpg') center/cover no-repeat;
}

.benefits{
  list-style:none;
  padding:0;
  margin:26px 0 0;
  display:grid;
  gap:14px;
}

.benefits li{
  background:var(--white);
  border-left:4px solid var(--red);
  padding:16px 18px;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.benefits strong{
  display:block;
  margin-bottom:4px;
  color:var(--black);
  text-transform:uppercase;
}

/* Services */

.service-highlights{
  background:var(--white);
}

.service-layout{
  display:grid;
  grid-template-columns:minmax(260px, .85fr) minmax(320px, 1.15fr);
  gap:30px;
  align-items:start;
}

.service-intro p{
  margin:0;
  color:#5d5d5d;
  max-width:44ch;
}

.service-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.service-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:var(--white);
  border-left:4px solid var(--red);
  padding:20px;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
  transition:.2s ease;
  min-width:0;
}

.service-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 24px rgba(0,0,0,.1);
}

.service-icon{
  color:var(--red);
  flex-shrink:0;
}

.service-icon svg{
  width:34px;
  height:34px;
}

.service-card h3{
  margin:0 0 6px;
  font-size:1rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.service-card p{
  margin:0;
  font-size:.92rem;
  color:#666;
  line-height:1.5;
}

.services-archive{
  background:var(--light);
}

.service-archive-card{
  background:#fff;
  border:1px solid #e8e8e8;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  overflow:hidden;
  transition:.2s ease;
}

.service-archive-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(0,0,0,.1);
}

.service-archive-image{
  display:block;
  aspect-ratio:16/9;
  background-size:cover;
  background-position:center;
}

.service-archive-body{
  padding:24px;
}

.service-archive-body h3{
  margin-bottom:12px;
}

.service-archive-body p{
  color:#666;
  line-height:1.7;
}

.service-link{
  display:inline-block;
  margin-top:12px;
  color:var(--red);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.74rem;
  font-weight:800;
}

.single-service {

}

.single-service-media-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}
.single-service-content img.alignleft {
  float: left;
  width: 430px;
  max-width: 42%;
  margin: 0 36px 26px 0;
  height: auto;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.single-service-content::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .single-service-content img.alignleft {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
  }
}
.single-service-side-image {
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.single-service-side-image img {
  width: 100%;
  height: auto;
  display: block;
}

.single-service-content {
  font-size: 16px;
  line-height: 1.8;
}

.single-service-content > *:first-child {
  margin-top: 0;
}

.single-service-content h2,
.single-service-content h3,
.single-service-content h4 {
  margin-top: 42px;
  margin-bottom: 18px;
}

.single-service-content p,
.single-service-content ul,
.single-service-content ol {
  margin-bottom: 24px;
}

.single-service-content ul,
.single-service-content ol {
  padding-left: 20px;
}

@media (max-width: 900px) {
  .single-service-media-layout {
    grid-template-columns: 1fr;
  }
}

/* About */

.about-excerpt{
  background:var(--light);
}

.about-grid{
  display:grid;
  grid-template-columns:minmax(280px, 1fr) minmax(280px, 1fr);
  gap:30px;
  align-items:center;
}

.about-copy p{
  margin:0 0 14px;
  color:#5c5c5c;
  max-width:80ch;
}

.about-image{
  min-height:clamp(280px, 34vw, 380px);
  box-shadow:var(--shadow);
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)),
    url('assets/images/parts1.jpg') center/cover no-repeat;
}

.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.about-gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light);
}

.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.about-gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 980px) {
  .about-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .about-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Range / Manufacturers */
.range-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.range-type-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.range-type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.range-type-image {
  display:block;
  margin-bottom:16px;
  overflow:hidden;
  background:#f4f4f4;
}

.range-type-image img {
  width:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
}

.range-type-card h3 {
  margin: 0 0 12px;
}

.range-type-card p {
  margin: 0;
  color: var(--muted);
}

.range-type-link {
  margin-top: auto;
  padding-top: 24px;
  font-weight: 700;
  color: var(--red);
}

.manufacturer-strip {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.manufacturer-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.manufacturer-strip-head h3 {
  margin: 0;
}

.manufacturer-logo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.manufacturer-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.manufacturer-logo-card img {
  max-width: 140px;
  max-height: 54px;
  object-fit: contain;
}

.manufacturer-logo-card span {
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1100px) {
  .range-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .manufacturer-logo-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .range-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manufacturer-strip-head {
    display: block;
  }

  .manufacturer-strip-head .featured-link {
    display: inline-block;
    margin-top: 12px;
  }

  .manufacturer-logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .range-type-grid {
    grid-template-columns: 1fr;
  }
}
.franchise-section{
  background:var(--white);
}

.franchise-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:22px;
}

.franchise-card{
  background:var(--white);
  border:1px solid #e8e8e8;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  padding:24px 22px 20px;
  display:flex;
  flex-direction:column;
  min-height:220px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-width:0;
}

.franchise-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(0,0,0,.1);
  border-color:rgba(166,25,46,.22);
}

.franchise-logo-wrap{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom:14px;
}

.franchise-logo-img{
  max-height:42px;
  width:auto;
  max-width:160px;
  object-fit:contain;
}

.franchise-card h3{
  margin:0 0 10px;
  color:var(--black);
  font-size:1.1rem;
  text-transform:none;
  letter-spacing:0;
  line-height:1.2;
}

.franchise-card p{
  margin:0 0 18px;
  color:#666;
  font-size:.95rem;
  line-height:1.6;
}

.franchise-link{
  margin-top:auto;
  color:var(--red);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.74rem;
  font-weight:800;
}

.manufacturer-overview{
  background:var(--white);
}

.manufacturer-grid{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:42px;
  align-items:start;
}

.manufacturer-logo-wrap{
  background:#fff;
  border:1px solid #e8e8e8;
  padding:36px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.manufacturer-logo{
  width:100%;
  max-width:220px;
  height:auto;
  object-fit:contain;
  margin:auto;
}

.manufacturer-content h2{
  margin-bottom:18px;
}

.manufacturer-text{
  color:#555;
  line-height:1.8;
  font-size:1rem;
}

.manufacturer-text p:first-child{
  margin-top:0;
}

.manufacturer-stock{
  background:var(--light);
}
/* Latest News */
.latest-news-section{
  background:var(--white);
}

.news-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
}

.news-card{
  background:#fff;
  border:1px solid #e8e8e8;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  overflow:hidden;
  transition:.2s ease;
}

.news-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(0,0,0,.1);
}

.news-card-image{
  display:block;
  aspect-ratio:16/9;
  background-size:cover;
  background-position:center;
}

.news-card-body{
  padding:22px;
}

.news-source{
  display:inline-block;
  margin-bottom:10px;
  color:var(--red);
  font-size:.72rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.news-card h3{
  margin-bottom:12px;
  font-size:1.1rem;
  text-transform:none;
  letter-spacing:0;
}

.news-card p{
  color:#666;
  line-height:1.7;
}

.news-link{
  display:inline-block;
  margin-top:14px;
  color:var(--red);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.72rem;
  font-weight:800;
}

@media (max-width:900px){
  .news-grid{
    grid-template-columns:1fr;
  }
}
/* Testimonials */

.section-alt{
  background:var(--light);
}

.proof-grid{
  display:grid;
  grid-template-columns:minmax(280px, 1fr) minmax(280px, 1fr);
  gap:24px;
  align-items:stretch;
}

.proof-copy{
  padding:clamp(24px, 3.8vw, 36px);
  background:var(--white);
  box-shadow:var(--shadow);
  border-top:5px solid var(--red);
  min-width:0;
}

.quote{
  font-size:clamp(1.25rem, 2.1vw, 1.9rem);
  line-height:1.28;
  margin:0 0 20px;
  font-weight:700;
  color:var(--black);
  text-transform:none;
}

.proof-image{
  min-height:clamp(280px, 34vw, 360px);
  box-shadow:var(--shadow);
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.24)),
    url('assets/images/hero.webp') center/cover no-repeat;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.testimonial-card{
  background:#fff;
  border-top:5px solid var(--red);
  padding:26px;
  box-shadow:var(--shadow);
	  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-rating{
  color:var(--red);
  letter-spacing:.08em;
  margin-bottom:14px;
}

.testimonial-card h3{
  font-size:1.1rem;
  text-transform:none;
  letter-spacing:0;
}

.testimonial-quote{
  color:#555;
  line-height:1.7;
}

.testimonial-meta{
  margin-top:auto;
  display:grid;
  gap:3px;
  color:var(--muted);
  font-size:.9rem;
}

.testimonial-meta strong{
  color:var(--black);
}
.testimonial-cycle-item.is-hidden {
    display: none;
}

.testimonial-cycle-item.is-visible {
    display: block;
}
.testimonial-card-footer {
  margin-top: auto;
}
@media (max-width:900px){
  .testimonial-grid{
    grid-template-columns:1fr;
  }
}
/* Map / Contact / CTA */

.map-section {
  background: var(--dark);
  color: var(--white);
}

.map-section .kicker {
  color: var(--red);
}

.map-section h2,
.map-section p,
.map-section strong,
.map-section li,
.map-section a {
  color: var(--white);
}

.map-shell {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: stretch;
}

.map-copy {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 40px;
}

.map-details {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.map-details li {
  margin-bottom: 18px;
  line-height: 1.7;
}

.map-frame {
  overflow: hidden;
  min-height: 520px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.15) contrast(1.02);
}

@media (max-width: 980px) {
  .map-shell {
    grid-template-columns: 1fr;
  }

  .map-frame {
    min-height: 420px;
  }
}

.cta-band{
  color:var(--white);
  background:
    linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.6)),
    url('assets/images/hero.webp') center/cover no-repeat;
}

.cta-grid{
  display:grid;
  grid-template-columns:minmax(280px, 1fr) auto;
  gap:30px;
  align-items:center;
}

.cta-grid h2{
  color:var(--white);
  max-width:none;
}

.cta-grid p{
  margin:0;
  max-width:58ch;
  color:rgba(255,255,255,.8);
}

.cta-form{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-end;
}

.cta-form input{
  min-width:min(100%, 320px);
  min-height:48px;
  border:none;
  border-radius:var(--radius);
  padding:0 16px;
  font-size:15px;
}

/* Default Pages */

.default-page{
  background:var(--white);
}

.default-page-content{
  max-width:900px;
  margin:0 auto;
  color:#555;
  line-height:1.8;
  font-size:1rem;
}

.default-page-content h2,
.default-page-content h3{
  color:var(--black);
  margin-top:40px;
}

.default-page-content p:first-child{
  margin-top:0;
}

.default-page-content img{
  max-width:100%;
  height:auto;
}

/* Contact Page / CF7 */

.contact-page{
  background:var(--light);
}

.contact-layout{
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  gap:32px;
  align-items:start;
}

.contact-details{
  display:grid;
  gap:20px;
}

.contact-card,
.contact-form-wrap{
  background:#fff;
  border:1px solid #e8e8e8;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.contact-card{
  padding:26px;
}

.contact-form-wrap{
  padding:32px;
}

.contact-card h2{
  margin-bottom:18px;
}

.contact-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:16px;
}

.contact-list li{
  color:#555;
  line-height:1.6;
}

.contact-list strong{
  display:block;
  color:var(--black);
  margin-bottom:4px;
}

.contact-list a{
  color:var(--red);
}

.contact-socialsa{
  color:var(--red);
  font-weight:700;
}

.wpcf7{
  width:100%;
}

.wpcf7-form{
  display:grid;
  gap:18px;
}

.wpcf7 label{
  display:block;
  font-weight:700;
  color:var(--black);
  margin-bottom:6px;
}

.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select{
  width:100%;
  border:1px solid #d8d8d8;
  min-height:48px;
  padding:12px 14px;
  background:#fff;
  border-radius:4px;
  font-size:15px;
}

.wpcf7 textarea{
  min-height:180px;
  resize:vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus{
  outline:none;
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(166,25,46,.12);
}

.wpcf7-submit{
  border:none;
  background:var(--red)!important;
  color:#fff;
  min-height:48px;
  padding:0 22px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  cursor:pointer;
  border-radius:4px;
}

.wpcf7-submit:hover{
  filter:brightness(1.06);
}

.wpcf7-spinner{
  display:none;
}

.wpcf7-response-output{
  margin:14px 0 0 !important;
  border-radius:4px;
}

.walmsley-feedback-form {
  max-width: 760px;
}

.walmsley-feedback-form p {
  margin-bottom: 22px;
}

.walmsley-feedback-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}

.walmsley-feedback-form input[type="text"],
.walmsley-feedback-form select,
.walmsley-feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 14px 16px;
  font: inherit;
  border-radius: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.walmsley-feedback-form textarea {
  min-height: 180px;
  resize: vertical;
}

.walmsley-feedback-form input:focus,
.walmsley-feedback-form select:focus,
.walmsley-feedback-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.walmsley-feedback-form button {
  margin-top: 10px;
}

.feedback-success {
  background: #edf7ed;
  border-left: 4px solid #46a546;
  padding: 18px 20px;
  margin-bottom: 30px;
  color: #1d4d1d;
}

.feedback-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.feedback-permission label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
}

.feedback-permission input {
  margin-top: 4px;
}

.contact-map-section {
  padding: 70px 0;
  background: var(--dark);
}

.contact-map-section .map-frame {
  overflow: hidden;
  min-height: 520px;
  background: var(--white);
}

.contact-map-section .map-frame iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}
/* Footer */

.site-footer{
  position:relative;
  overflow:hidden;
  background:var(--black);
  color:rgba(255,255,255,.82);
  padding:56px 0 24px;
}

.footer-grid{
  display:grid;
  grid-template-columns:minmax(280px, 1.2fr) repeat(2, minmax(180px, .8fr));
  gap:28px;
  padding-bottom:24px;
  border-bottom:1px solid rgba(255,255,255,.08);
  align-items:start;
}

.footer-brand{
  display:flex;
  align-items:flex-start;
  gap:16px;
}

.footer-logo{
  height:64px;
  width:auto;
  display:block;
  flex-shrink:0;
}

.footer-brand-copy{
  min-width:0;
}

.footer-brand-name{
  margin:0 0 12px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--white);
}

.footer-brand-copy p{
  margin:0;
  max-width:40ch;
  color:rgba(255,255,255,.76);
  line-height:1.65;
}

.footer-title{
  margin:0 0 12px;
  font-size:.82rem;
  color:var(--white);
  text-transform:uppercase;
  letter-spacing:.12em;
}

.footer-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
  font-size:.95rem;
}

.footer-list a{
  color:rgba(255,255,255,.82);
}

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

.subfooter{
  position:relative;
  z-index:2;
  font-size:.88rem;
  color:rgba(255,255,255,.56);
}

.subfooter-copy{
  padding-top:18px;
}

.subfooter-credit{
  padding-top:10px;
}

.footer-corner-brand{
  position:absolute;
  right:0;
  bottom:0;
  width:min(32vw, 340px);
  height:min(16vw, 170px);
  background-image:url('assets/images/case-ih-footer.png');
  background-repeat:no-repeat;
  background-size:contain;
  background-position:bottom right;
  pointer-events:none;
  z-index:1;
  opacity:.95;
}

.site-footer .container{
  position:relative;
  z-index:2;
}

/* Responsive */

@media (max-width:1200px){
  .listing-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .nav a:nth-child(6){
    display:none;
  }
}

@media (max-width:1180px){
  .nav{
    gap:14px;
    font-size:10px;
  }
}

@media (max-width:1100px){
  .franchise-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:980px){
  .search-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width:900px){
  .site-logo{
    height:64px;
    margin-bottom:-10px;
  }

  .brand-name{
    font-size:11px;
    white-space:normal;
    max-width:120px;
    line-height:1.15;
  }

  .header-inner{
    min-height:auto;
  }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-left:auto;
  }

  .header-cta{
    display:none;
  }

  .nav-wrap{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    display:none;
    padding:14px var(--gutter) 18px;
    background:rgba(0,0,0,.98);
    border-top:1px solid rgba(255,255,255,.06);
    box-shadow:0 12px 28px rgba(0,0,0,.22);
    margin-left:0;
  }

  .nav-wrap.open{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }

  .nav{
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:14px;
    font-size:12px;
    white-space:normal;
    overflow:visible;
  }

  .nav a::after{
    bottom:-4px;
  }

  .section-head,
  .overview-grid,
  .service-layout,
  .about-grid,
  .proof-grid,
  .map-shell,
  .cta-grid,
  .footer-grid,
  .machine-single-grid,
  .manufacturer-grid,
  .contact-layout,
  .single-service-grid,
  .finance-cta-inner{
    grid-template-columns:1fr;
  }

  h1,
  h2{
    max-width:none;
  }

  .hero{
    min-height:auto;
  }

  .hero-inner{
    padding:28px 0 24px;
  }

  .hero-panel{
    width:100%;
    max-width:none;
    padding:16px;
  }

  .featured-head-right{
    flex-direction:column;
    align-items:flex-start;
  }

  .manufacturer-logo-wrap{
    max-width:320px;
  }

  .footer-corner-brand{
    width:220px;
    height:110px;
    opacity:.5;
  }
}

@media (max-width:760px){
  body.single-machine{
    padding-bottom:72px;
  }

  .mobile-machine-bar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9998;
    display:grid;
    grid-template-columns:1fr 1fr;
    background:#fff;
    border-top:1px solid #ddd;
    box-shadow:0 -8px 24px rgba(0,0,0,.16);
  }

  .mobile-machine-bar-btn{
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:.78rem;
    font-weight:900;
  }

  .mobile-call{
    background:#111;
    color:#fff;
  }

  .mobile-enquire{
    background:var(--red);
    color:#fff;
  }
}

@media (max-width:700px){
  .listing-grid,
  .franchise-grid,
  .service-grid{
    grid-template-columns:1fr;
  }

  .results-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .featured-filters{
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:4px;
    scrollbar-width:none;
  }

  .featured-filters::-webkit-scrollbar{
    display:none;
  }
}

@media (max-width:640px){
  .container{
    width:min(100% - 28px, var(--max));
  }

  section{
    padding:34px 0;
  }

  .section-kicker-row{
    margin-bottom:8px;
  }

  .hero-panel,
  .page-hero-panel{
    padding:14px;
  }

  .listing-body,
  .franchise-card,
  .proof-copy,
  .service-card{
    padding-inline:14px;
  }

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

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

  .cta-form{
    width:100%;
  }

  .cta-form input,
  .cta-form .btn{
    width:100%;
  }

  .subfooter{
    flex-direction:column;
  }

  .map-frame,
  .map-frame iframe{
    min-height:320px;
  }
}
.section-more{
  margin-top:24px;
  text-align:right;
}
/* Complianz map placeholder layout fix */
.map-frame .cmplz-placeholder-parent,
.map-frame .cmplz-placeholder-element,
.map-frame .cmplz-blocked-content-container {
  display: block;
  width: 100%;
  min-height: inherit;
  height: 100%;
}

.map-frame .cmplz-placeholder-parent {
  overflow: hidden;
  background: #f4f4f4;
}

.map-frame .cmplz-placeholder-element.cmplz-iframe-styles {
  max-width: none;
}

.map-frame .cmplz-placeholder-parent iframe,
.map-frame iframe.cmplz-iframe {
  width: 100%;
  min-height: inherit;
  height: 100%;
  border: 0;
}

.contact-map-section .map-frame .cmplz-placeholder-parent,
.contact-map-section .map-frame .cmplz-placeholder-element,
.contact-map-section .map-frame .cmplz-blocked-content-container,
.contact-map-section .map-frame iframe.cmplz-iframe {
  min-height: 520px;
}

/* Contact Form 7 honeypot field */
.walmsley-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* UI/UX accessibility polish */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 10px;
  z-index: 10000;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--red);
  padding: 10px 14px;
  font-weight: 800;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(166,25,46,.85);
  outline-offset: 3px;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}
