/* ==========================================================
   MBE03 Truck and Trailer Refurbishment — stylesheet
   Design tokens
   ========================================================== */
:root{
  --black:      #0c0c0d;
  --charcoal:   #17181a;
  --charcoal-2: #201f22;
  --line:       #333238;
  --steel:      #9aa0a6;
  --steel-light:#cfd2d6;
  --white:      #f3f1ec;
  --red:        #d21f1f;
  --red-dark:   #8f1414;
  --amber:      #f2a900;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1180px;
  --radius: 2px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1{ font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2{ font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3{ font-size: 1.2rem; }
p{ margin: 0 0 1em; color: var(--steel-light); }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Hazard chevron pattern, reused as a structural motif */
.chevrons{
  background-image: repeating-linear-gradient(
    -45deg,
    var(--amber) 0, var(--amber) 18px,
    var(--black) 18px, var(--black) 36px
  );
}

/* ==========================================================
   Header
   ========================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,12,13,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  gap: 24px;
  height: 78px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand img{ height: 44px; width: 44px; object-fit: contain; border-radius: 50%; border: 1px solid var(--line); }
.brand-text{ display: flex; flex-direction: column; line-height: 1.1; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.brand-name em{ color: var(--red); font-style: normal; }
.brand-sub{
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.main-nav{
  display: flex;
  gap: 28px;
}
.main-nav a{
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--steel-light);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover{ color: var(--white); border-color: var(--red); }

.tel-badge{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-left: 3px solid var(--red);
  padding-left: 12px;
  line-height: 1.2;
}
.tel-label{ font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--steel); }
.tel-number{ font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--white); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--white);
}

/* ==========================================================
   Hero
   ========================================================== */
.hero{
  position: relative;
  overflow: hidden;
  padding: 96px 0 76px;
}
.hero-bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 20%, rgba(210,31,31,0.16), transparent 55%),
    linear-gradient(180deg, #141416 0%, #0c0c0d 70%);
  z-index: 0;
}
.hero-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 100%;
  opacity: 0.5;
}
.hero-inner{ position: relative; z-index: 1; max-width: 760px; }
.hero-eyebrow{
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--amber);
  margin-bottom: 18px;
}
.hero h1{ color: var(--white); }
.hero-lead{ font-size: 1.1rem; max-width: 54ch; }
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--red); color: var(--white); }
.btn-primary:hover{ background: #e42525; }
.btn-whatsapp{ background: transparent; border-color: var(--steel); color: var(--white); }
.btn-whatsapp:hover{ border-color: var(--white); }

.hazard-strip{
  height: 10px;
  width: 100%;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--amber) 0, var(--amber) 16px,
    var(--red-dark) 16px, var(--red-dark) 32px
  );
}

/* ==========================================================
   Section head
   ========================================================== */
.section-head{ max-width: 620px; margin-bottom: 48px; }
.section-head h2{ color: var(--white); }
.section-head p{ font-size: 1.02rem; }

/* ==========================================================
   Services / panels
   ========================================================== */
.services{ padding: 88px 0; background: var(--black); }
.panel-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.panel{
  position: relative;
  background: var(--charcoal);
  padding: 34px 28px 30px;
  transition: background 0.18s ease;
}
.panel:hover{ background: var(--charcoal-2); }
.panel-wide{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  align-items: center;
  border-top: 2px solid var(--red);
}
.panel-wide .panel-icon{ grid-row: 1 / 3; margin-bottom: 0; width: 40px; height: 40px; }
.panel-wide h3{ margin-bottom: 4px; }
.panel-wide p{ grid-column: 2; margin-bottom: 0; }
.panel-bolt{
  position: absolute;
  top: 14px; right: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  box-shadow: -160px 0 0 0 transparent;
}
.panel-icon{
  width: 34px; height: 34px;
  color: var(--red);
  margin-bottom: 18px;
}
.panel h3{ color: var(--white); margin-bottom: 10px; }
.panel p{ font-size: 0.94rem; margin-bottom: 0; }

@media (max-width: 560px){
  .panel-grid{ grid-template-columns: 1fr; }
  .panel-wide{ grid-template-columns: 1fr; row-gap: 10px; }
  .panel-wide .panel-icon{ grid-row: auto; }
  .panel-wide p{ grid-column: 1; }
}

/* ==========================================================
   Roadside band
   ========================================================== */
.roadside-band{
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-top: 4px solid var(--amber);
  border-bottom: 4px solid var(--amber);
}
.roadside-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.roadside-eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}
.roadside-band h2{ color: var(--white); margin-bottom: 6px; }
.roadside-text{ color: rgba(255,255,255,0.85); margin: 0; }
.roadside-number{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  border: 2px solid var(--white);
  padding: 14px 30px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.roadside-number:hover{ background: var(--white); color: var(--red-dark); }

/* ==========================================================
   Work / gallery
   ========================================================== */
.work{ padding: 88px 0; background: #111113; }
.work-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-item{
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--charcoal);
}
.work-photo{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.2s ease, transform 0.3s ease;
}
.work-item:hover .work-photo{ filter: grayscale(0%); transform: scale(1.03); }
.work-item.img-missing .work-photo{ display: none; }
.work-item.img-missing{
  border-style: dashed;
  border-color: var(--steel);
}
.work-item.img-missing::before{
  content: "Add photo: " attr(data-file);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  padding: 0 16px;
  text-align: center;
  color: var(--steel);
  font-size: 0.82rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}
figcaption{
  padding: 12px 16px 14px;
  font-size: 0.85rem;
  color: var(--steel-light);
  border-top: 1px solid var(--line);
}

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

/* ==========================================================
   About
   ========================================================== */
.about{ padding: 88px 0; background: var(--black); }
.about-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-copy h2{ color: var(--white); }
.about-list{
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}
.about-list li{
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--steel-light);
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}
.about-list li::before{
  content: "";
  position: absolute;
  left: 0; top: 20px;
  width: 8px; height: 3px;
  background: var(--red);
}
.about-plate{
  border: 1px solid var(--line);
  background: var(--charcoal);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-plate img{ width: 100%; max-width: 220px; }

@media (max-width: 780px){
  .about-inner{ grid-template-columns: 1fr; }
  .about-plate{ order: -1; max-width: 220px; margin: 0 auto; }
}

/* ==========================================================
   Contact
   ========================================================== */
.contact{ padding: 88px 0 100px; background: #111113; }
.contact-inner{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border: 1px solid var(--line);
}
.contact-info{
  background: var(--charcoal);
  padding: 44px 40px;
}
.contact-info h2{ color: var(--white); }
.contact-details{ margin: 28px 0 32px; }
.contact-details div{ padding: 14px 0; border-top: 1px solid var(--line); }
.contact-details div:last-child{ border-bottom: 1px solid var(--line); }
.contact-details dt{
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 4px;
}
.contact-details dd{ margin: 0; color: var(--white); font-size: 1rem; }
.contact-details a{ border-bottom: 1px solid var(--red); }
.contact-actions{ display: flex; gap: 12px; flex-wrap: wrap; }
.contact-map{ min-height: 340px; background: var(--charcoal-2); }
.contact-map iframe{ width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(35%) contrast(1.05); }

@media (max-width: 780px){
  .contact-inner{ grid-template-columns: 1fr; }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer{
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  justify-content: space-between;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--white);
}
.footer-brand img{ height: 28px; width: 28px; }
.footer-address, .footer-copy{
  font-size: 0.82rem;
  color: var(--steel);
  margin: 0;
}
.footer-address a{ color: var(--steel-light); }
.footer-inner > *{ flex: 1 1 auto; }
.footer-copy{ width: 100%; text-align: left; opacity: 0.7; }

/* ==========================================================
   WhatsApp floating button
   ========================================================== */
.whatsapp-float{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #0c0c0d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  z-index: 90;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover{ transform: scale(1.07); }
.whatsapp-float svg{ width: 30px; height: 30px; }

/* ==========================================================
   Mobile nav
   ========================================================== */
@media (max-width: 900px){
  .main-nav{
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open{ max-height: 360px; }
  .main-nav a{
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .header-cta{ display: none; }
  .nav-toggle{ display: flex; }
}

@media (max-width: 560px){
  .header-inner{ height: 66px; }
  .brand img{ height: 36px; width: 36px; }
  .services, .work, .about, .contact{ padding: 60px 0; }
}
