/* Whiteside HD Truck Parts — shared stylesheet. Every page links this one file. */

:root{
  --black:#111214;
  --near-black:#17181b;
  --white:#ffffff;
  --offwhite:#f5f6f7;
  --cream:#f2ede6;
  --silver:#c9ced3;
  --silver-dark:#8b9096;
  --red:#d72027;
  --red-dark:#ad171c;
  --text:#1c1d1f;
  --text-soft:#54585d;
  --border:#e3e5e7;
  --edge-pad:clamp(20px, 5vw, 64px);
  --max:1200px;
  --font-head:'Oswald', 'Arial Narrow', sans-serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4{
  font-family:var(--font-head);
  text-transform:uppercase;
  letter-spacing:.02em;
  line-height:1.1;
  margin:0 0 16px;
  color:var(--black);
}
p{line-height:1.65;color:var(--text-soft);margin:0 0 16px;}

.wrap{
  max-width:var(--max);
  margin-inline:auto;
  padding-inline:var(--edge-pad);
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:14px;
  font-family:var(--font-head);
  font-size:.85rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--red);
  margin-bottom:10px;
}
.eyebrow::after{
  content:"";
  height:2px;
  width:48px;
  background:var(--red);
  display:block;
}

.section{padding:72px 0;}
.section-dark{background:var(--black);color:var(--white);}
.section-dark h2, .section-dark h3{color:var(--white);}
.section-dark p{color:var(--silver);}
.section-off{background:var(--offwhite);}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:var(--font-head);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:.92rem;
  padding:15px 30px;
  border-radius:3px;
  border:2px solid transparent;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active{transform:translateY(1px);}
.btn-red{background:var(--red);color:var(--white);}
.btn-red:hover{background:var(--red-dark);}
.btn-outline{border-color:var(--white);color:var(--white);background:transparent;}
.btn-outline:hover{background:var(--white);color:var(--black);}
.btn-outline-dark{border-color:var(--black);color:var(--black);background:transparent;}
.btn-outline-dark:hover{background:var(--black);color:var(--white);}
.btn-block{width:100%;}

/* Header */
.site-header{
  position:sticky;top:0;z-index:500;
  background:var(--near-black);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-block:12px;
}
.brand img{height:42px;width:auto;}
.site-header .btn{padding:12px 20px;font-size:.78rem;white-space:nowrap;}
.main-nav{display:none;}
.main-nav ul{display:flex;align-items:center;gap:18px;flex-wrap:nowrap;}
.main-nav a{
  font-family:var(--font-head);
  font-size:.76rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--silver);
  padding:8px 0;
  border-bottom:2px solid transparent;
  white-space:nowrap;
}
.main-nav a:hover, .main-nav a.active{color:var(--white);border-color:var(--red);}
.header-actions{display:flex;align-items:center;gap:14px;}
.header-phone{
  display:none;
  align-items:center;
  gap:8px;
  color:var(--white);
  font-family:var(--font-head);
  letter-spacing:.02em;
  font-size:.95rem;
  white-space:nowrap;
}
.header-phone svg{width:18px;height:18px;fill:var(--red);}
.nav-toggle{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:38px;height:38px;
  background:transparent;border:0;cursor:pointer;
  padding:0;
}
.nav-toggle span{display:block;height:2px;background:var(--white);border-radius:2px;}

.mobile-nav-overlay{
  position:fixed;inset:0;
  background:var(--black);
  z-index:600;
  display:flex;
  flex-direction:column;
  padding:24px var(--edge-pad) 40px;
  overflow-y:auto;
  transform:translateY(-100%);
  transition:transform .28s ease;
  visibility:hidden;
}
.mobile-nav-overlay.open{visibility:visible;}
.mobile-nav-overlay.open{transform:translateY(0);}
.mobile-nav-top{display:flex;justify-content:space-between;align-items:center;}
.mobile-nav-top img{height:38px;}
.mobile-nav-close{background:none;border:0;color:var(--white);font-size:2rem;line-height:1;cursor:pointer;}
.mobile-nav-overlay ul{margin-top:40px;display:flex;flex-direction:column;gap:6px;}
.mobile-nav-overlay a{
  display:block;
  font-family:var(--font-head);
  font-size:1.6rem;
  text-transform:uppercase;
  color:var(--white);
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.mobile-nav-overlay .btn{margin-top:32px;}
.mobile-call{
  margin-top:auto;
  display:flex;align-items:center;gap:10px;
  color:var(--red);font-family:var(--font-head);font-size:1.3rem;padding-top:24px;
}

/* Hero */
.hero{
  position:relative;
  background:linear-gradient(180deg, rgba(17,18,20,.88), rgba(17,18,20,.94)), var(--hero-img, none);
  background-size:cover;
  background-position:center;
  color:var(--white);
  padding:96px 0 140px;
  clip-path:polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.hero .wrap{max-width:820px;}
.hero .eyebrow{color:var(--red);}
.hero h1{font-size:clamp(2.1rem, 5vw, 3.4rem);color:var(--white);margin-bottom:18px;}
.hero p.lead{font-size:1.15rem;color:var(--silver);max-width:640px;}
.hero-ctas{display:flex;flex-wrap:wrap;gap:16px;margin-top:28px;}

.page-hero{
  background:var(--black);
  color:var(--white);
  padding:64px 0 80px;
  clip-path:polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.page-hero h1{color:var(--white);margin-bottom:12px;}
.page-hero p{color:var(--silver);max-width:640px;margin-bottom:0;}

/* Grids */
.grid{display:grid;gap:28px;}
.grid-3{grid-template-columns:repeat(1,1fr);}
.grid-4{grid-template-columns:repeat(1,1fr);}
@media(min-width:640px){
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .grid-4{grid-template-columns:repeat(2,1fr);}
}
@media(min-width:960px){
  .grid-3{grid-template-columns:repeat(3,1fr);}
  .grid-4{grid-template-columns:repeat(4,1fr);}
}

.card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:6px;
  overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,.1);}
.card-media{
  aspect-ratio:1/1;
  background:var(--offwhite);
  display:flex;align-items:center;justify-content:center;
  padding:22px;
}
.card-media img{max-height:100%;object-fit:contain;}
.card-body{padding:20px 22px 26px;}
.card-body h3{font-size:1.05rem;margin-bottom:8px;}
.card-body p{margin-bottom:0;font-size:.95rem;}
.card-body a.card-link{
  display:inline-block;margin-top:14px;
  font-family:var(--font-head);font-size:.82rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--red);border-bottom:2px solid var(--red);padding-bottom:2px;
}

/* Brand strip */
.brand-strip{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}
@media(min-width:640px){.brand-strip{grid-template-columns:repeat(3,1fr);}}
@media(min-width:960px){.brand-strip{grid-template-columns:repeat(5,1fr);}}
.brand-strip .brand-tile{
  background:var(--white);
  border-radius:6px;
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  height:100px;
}
.brand-strip img{max-height:56px;max-width:100%;object-fit:contain;}

/* Testimonials */
.testimonial{
  background:var(--offwhite);
  border-left:4px solid var(--red);
  border-radius:4px;
  padding:26px 26px 22px;
}
.testimonial p{font-style:italic;color:var(--text);margin-bottom:14px;}
.testimonial .stars{color:var(--red);letter-spacing:2px;margin-bottom:10px;display:block;}
.testimonial .who{font-family:var(--font-head);font-size:.85rem;letter-spacing:.05em;text-transform:uppercase;color:var(--text-soft);}

/* CTA banner */
.cta-banner{
  background:var(--red);
  color:var(--white);
  padding:56px 0;
  text-align:center;
}
.cta-banner h2{color:var(--white);}
.cta-banner p{color:rgba(255,255,255,.9);max-width:600px;margin-inline:auto;}
.cta-banner .btn-outline{border-color:var(--white);}

/* Two-column layout */
.split{display:grid;gap:40px;align-items:start;}
@media(min-width:860px){.split{grid-template-columns:1.1fr .9fr;}}
.split.reverse{direction:rtl;}
.split.reverse > *{direction:ltr;}

/* Forms */
.form-field{margin-bottom:18px;}
.form-field label{
  display:block;font-family:var(--font-head);font-size:.8rem;
  letter-spacing:.06em;text-transform:uppercase;color:var(--text-soft);margin-bottom:6px;
}
.form-field input, .form-field select, .form-field textarea{
  width:100%;padding:13px 14px;border:1px solid var(--border);border-radius:4px;
  font-family:var(--font-body);font-size:1rem;background:var(--white);color:var(--text);
}
.form-field textarea{resize:vertical;min-height:120px;}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{outline:2px solid var(--red);outline-offset:1px;}
.form-note{font-size:.82rem;color:var(--text-soft);margin-top:-6px;}
.form-success, .form-error{padding:16px 18px;border-radius:4px;margin-bottom:20px;font-size:.95rem;}
.form-success{background:#eaf6ee;color:#1c6b34;border:1px solid #bfe4cb;}
.form-error{background:#fbeceb;color:#a3241d;border:1px solid #f1c6c3;}

/* FAQ accordion */
.faq-item{border-bottom:1px solid var(--border);}
.faq-question{
  width:100%;text-align:left;background:none;border:0;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:20px 4px;font-family:var(--font-head);font-size:1.05rem;color:var(--black);
}
.faq-question .icon{flex:none;width:22px;height:22px;position:relative;}
.faq-question .icon::before, .faq-question .icon::after{
  content:"";position:absolute;background:var(--red);border-radius:1px;
}
.faq-question .icon::before{width:100%;height:2px;top:50%;left:0;transform:translateY(-50%);}
.faq-question .icon::after{width:2px;height:100%;left:50%;top:0;transform:translateX(-50%);transition:transform .2s ease;}
.faq-item.open .icon::after{transform:translateX(-50%) rotate(90deg);opacity:0;}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .25s ease;}
.faq-answer-inner{padding:0 4px 20px;}
.faq-answer-inner a{color:var(--red);text-decoration:underline;}

/* Footer */
.site-footer{background:var(--near-black);color:var(--silver);padding-top:64px;}
.footer-grid{display:grid;gap:36px;grid-template-columns:1fr;padding-bottom:40px;}
@media(min-width:760px){.footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr;}}
.footer-grid h4{color:var(--white);font-size:.9rem;letter-spacing:.08em;margin-bottom:16px;}
.footer-grid a{color:var(--silver);display:block;padding:5px 0;font-size:.92rem;}
.footer-grid a:hover{color:var(--white);}
.footer-brand img{height:40px;margin-bottom:16px;}
.footer-brand p{color:var(--silver-dark);font-size:.9rem;max-width:280px;}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding:20px 0 28px;
  display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;
  font-size:.82rem;color:var(--silver-dark);
}

/* Mobile quick-action buttons */
.mobile-actions{position:fixed;bottom:18px;left:0;right:0;z-index:400;pointer-events:none;display:none;}
.mobile-actions .wrap{display:flex;justify-content:space-between;padding-inline:20px;}
.mobile-actions a{
  pointer-events:auto;
  width:56px;height:56px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--red);color:var(--white);
  box-shadow:0 8px 20px rgba(0,0,0,.3);
}
.mobile-actions a svg{width:24px;height:24px;fill:currentColor;}
.mobile-actions .call-btn{animation:pulse 2.2s infinite;}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(215,32,39,.55),0 8px 20px rgba(0,0,0,.3);}
  70%{box-shadow:0 0 0 14px rgba(215,32,39,0),0 8px 20px rgba(0,0,0,.3);}
  100%{box-shadow:0 0 0 0 rgba(215,32,39,0),0 8px 20px rgba(0,0,0,.3);}
}

@media(max-width:767px){
  .mobile-actions{display:block;}
  .section{padding:52px 0;}
}
@media(min-width:960px){
  .main-nav{display:block;}
  .header-phone{display:flex;}
  .nav-toggle{display:none;}
}

/* Utility */
.text-center{text-align:center;}
.mb-0{margin-bottom:0;}
.stack-sm > * + *{margin-top:10px;}
.tag-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.tag{
  font-family:var(--font-head);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;
  background:var(--offwhite);border:1px solid var(--border);padding:6px 12px;border-radius:100px;color:var(--text-soft);
}
.map-frame{border:0;width:100%;height:340px;border-radius:6px;filter:grayscale(.15);}
.breadcrumbs{font-size:.82rem;color:var(--text-soft);margin-bottom:18px;}
.breadcrumbs a{color:var(--red);}
