/* =========================================================
   QUAD-SSV.COM — Design tokens
   Rugged off-road identity: burnt rust + deep olive on warm
   stone, condensed industrial headline type, angular cut
   corners (cut-metal-plate motif) instead of rounded cards,
   tire-tread chevron dividers as the recurring structural
   device.
   ========================================================= */

:root{
  --ink:        #1C1A15;
  --paper:      #EDE7D8;
  --paper-dim:  #E2DBC8;
  --rust:       #BF4E2C;
  --rust-dark:  #9C3C20;
  --olive:      #4B5632;
  --olive-dark: #363F24;
  --steel:      #6E7A72;
  --mud:        #43331F;
  --line:       #C9C0A6;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --cut: 18px; /* corner-cut size, used everywhere instead of border-radius */
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

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

a{ color: inherit; }

h1, h2, h3, h4{
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1{ font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 700; }
h2{ font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3{ font-size: 1.3rem; }

p{ margin: 0 0 1.1em; max-width: 68ch; }
.lede{ font-size: 1.15rem; color: #3a3527; max-width: 58ch; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- cut-corner shape, applied to cards / panels / buttons ---- */
.cut,
.card,
.btn,
.panel{
  clip-path: polygon(
    var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)
  );
}

/* ---- Header / nav ---- */
.site-header{
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--rust);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}
.brand .logo{ width: 40px; height: 40px; }
.brand-text{ font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-text small{ display:block; font-family: var(--font-body); font-weight:400; font-size: 0.6rem; color: var(--steel); letter-spacing: 0.08em; }

nav.main-nav{ display: flex; gap: 26px; }
nav.main-nav a{
  text-decoration: none;
  color: var(--paper-dim);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active{
  color: #fff;
  border-color: var(--rust);
}
.nav-toggle{ display:none; }

@media (max-width: 860px){
  nav.main-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 10px 28px 22px;
    display: none;
    border-bottom: 3px solid var(--rust);
  }
  nav.main-nav.open{ display: flex; }
  .nav-toggle{
    display: inline-flex;
    background: none;
    border: 1px solid var(--steel);
    color: var(--paper);
    width: 42px; height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
}

/* ---- Buttons ---- */
.btn{
  display: inline-block;
  background: var(--rust);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover{ background: var(--rust-dark); }
.btn.ghost{
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 11px 24px;
}
.btn.ghost:hover{ background: var(--ink); color: var(--paper); }
.btn.on-dark.ghost{ color: var(--paper); border-color: var(--paper-dim); }
.btn.on-dark.ghost:hover{ background: var(--paper); color: var(--ink); }

/* ---- Tire-tread chevron divider — recurring structural motif ---- */
.tread{
  height: 14px;
  background-image: repeating-linear-gradient(
    115deg, var(--rust) 0 10px, transparent 10px 26px
  );
  opacity: 0.9;
}
.tread.olive{ background-image: repeating-linear-gradient(115deg, var(--olive) 0 10px, transparent 10px 26px); }

/* ---- Hero ---- */
.hero{
  background: var(--ink);
  color: var(--paper);
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero p.lede{ color: var(--paper-dim); }
.hero-art{ width: 100%; }
.hero .btn-row{ display:flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 860px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; max-width: 340px; margin: 0 auto; }
}

/* ---- Breadcrumb ---- */
.crumb{
  font-size: 0.85rem;
  color: var(--steel);
  padding: 16px 0;
}
.crumb a{ text-decoration: none; color: var(--steel); }
.crumb a:hover{ color: var(--rust); }

/* ---- Section spacing ---- */
section{ padding: 64px 0; }
section.dim{ background: var(--paper-dim); }
section.dark{ background: var(--ink); color: var(--paper); }
section.dark h2, section.dark h3{ color: #fff; }
section.dark p{ color: var(--paper-dim); }
.section-head{ max-width: 640px; margin-bottom: 40px; }

/* ---- Grid / cards ---- */
.grid{ display: grid; gap: 26px; }
.grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
.grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){
  .grid.cols-3, .grid.cols-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid.cols-3, .grid.cols-4, .grid.cols-2{ grid-template-columns: 1fr; }
}

.card{
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
}
.card .icon{ width: 46px; height: 46px; margin-bottom: 14px; }
.card h3{ margin-bottom: 8px; }
.card p{ margin-bottom: 0; font-size: 0.96rem; color: #3a3527; }

.product-card{ background:#fff; border: 1px solid var(--line); }
.product-card .thumb{ background: var(--paper-dim); padding: 26px; }
.product-card .body{ padding: 20px 22px 24px; }
.product-card .tag{ font-size: 0.78rem; color: var(--rust); font-weight:600; margin-bottom:6px;}
.product-card h3{ margin-bottom: 6px; font-size: 1.15rem; }
.product-card p{ font-size: 0.92rem; color: #4a4534; margin-bottom: 14px; }

/* ---- Stats strip ---- */
.stats{ display:flex; gap: 44px; flex-wrap: wrap; }
.stat b{ display:block; font-family: var(--font-head); font-size: 2.2rem; color: var(--rust); }
.stat span{ font-size: 0.88rem; color: var(--steel); }

/* ---- Blog list ---- */
.post-row{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.post-row .thumb{ background: var(--paper-dim); padding: 18px; }
.post-row h3{ margin-bottom: 8px; }
.post-row .meta{ font-size: 0.82rem; color: var(--steel); margin-bottom: 10px; }
.post-row a.readmore{ font-weight:600; color: var(--rust); text-decoration: none; font-size: 0.92rem; }
@media (max-width: 620px){
  .post-row{ grid-template-columns: 1fr; }
}

/* ---- Article ---- */
article.post{ max-width: 760px; margin: 0 auto; }
article.post .meta{ color: var(--steel); font-size: 0.88rem; margin-bottom: 26px; }
article.post h2{ margin-top: 1.4em; }
article.post ul, article.post ol{ max-width: 68ch; padding-left: 1.3em; }
article.post li{ margin-bottom: 0.5em; }
.callout{
  background: var(--paper-dim);
  border-left: 4px solid var(--rust);
  padding: 18px 22px;
  margin: 26px 0;
}
.callout p{ margin: 0; }

/* ---- Related / tags ---- */
.tag-pill{
  display:inline-block;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  padding: 5px 12px;
  margin: 0 8px 8px 0;
  text-decoration: none;
  color: var(--ink);
}

/* ---- CTA band ---- */
.cta-band{
  background: var(--olive);
  color: #fff;
  padding: 56px 0;
  text-align: left;
}
.cta-band h2{ color:#fff; }
.cta-band p{ color: #dde3d2; }

/* ---- Footer ---- */
footer.site-footer{
  background: var(--mud);
  color: var(--paper-dim);
  padding: 50px 0 24px;
  font-size: 0.92rem;
}
footer.site-footer .grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; margin-bottom: 36px; }
footer.site-footer h4{ color: #fff; font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 14px; }
footer.site-footer a{ color: var(--paper-dim); text-decoration: none; display:block; margin-bottom: 9px; }
footer.site-footer a:hover{ color: var(--rust); }
footer.site-footer .bottom{
  border-top: 1px solid #5a4a30;
  padding-top: 20px;
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: var(--steel);
}
@media (max-width: 760px){
  footer.site-footer .grid{ grid-template-columns: 1fr 1fr; }
}

/* ---- Forms (contact) ---- */
.form-field{ margin-bottom: 18px; }
.form-field label{ display:block; font-weight:600; font-size:0.9rem; margin-bottom:6px; }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding: 12px 14px; border: 1px solid var(--line);
  background:#fff; font-family: var(--font-body); font-size: 0.98rem;
}
.form-field textarea{ min-height: 130px; }

/* ---- Utility ---- */
.mt-0{ margin-top:0; }
.center{ text-align:center; }
.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}
