/* ==========================================================================
   H.W. Park Dirt Works — site styles
   Palette sampled directly from the company logo:
     excavator blue #3069B7 · park red #C2292B · dirt bronze #AC895E
     mountain gray  #656563 · snow       #EFF3F4
   ========================================================================== */

:root {
  --blue:        #3069B7;
  --blue-bright: #4A85D4;
  --blue-deep:   #21497F;
  --red:         #C2292B;
  --red-bright:  #DC3B36;
  --bronze:      #AC895E;
  --bronze-lt:   #C9A87E;
  --gray:        #656563;
  --snow:        #EFF3F4;

  --ink:   #0D1218;
  --ink-2: #141C25;
  --ink-3: #1D2833;
  --ink-4: #2A3844;

  --paper:    #F6F7F8;
  --paper-2:  #FFFFFF;
  --text:     #16202B;
  --text-mid: #52616F;
  --line:     #DFE4E8;

  --wrap: 1180px;
  --radius: 4px;
  --radius-lg: 8px;

  --font-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(13,18,24,.08), 0 2px 8px rgba(13,18,24,.06);
  --shadow-md: 0 4px 12px rgba(13,18,24,.10), 0 12px 32px rgba(13,18,24,.10);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.1em; }
a { color: var(--blue-deep); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  font-size: .82rem;
  color: var(--bronze);
  margin: 0 0 .7rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--bronze), transparent);
  max-width: 90px;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { display: none; }

.lede { font-size: 1.12rem; color: var(--text-mid); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  font-size: 1.02rem;
  padding: .82rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-bright); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--blue); color: var(--blue-deep); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,18,24,.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 600;
  font-size: 1.02rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: .5rem .85rem;
  border-radius: var(--radius);
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.nav .btn { margin-left: .6rem; padding: .6rem 1.2rem; font-size: .95rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  padding: .5rem .6rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: .6rem 22px 1.1rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .2rem; font-size: 1.15rem; }
  .nav a.active { box-shadow: inset 3px 0 0 var(--red); padding-left: .8rem; }
  .nav .btn { margin: .6rem 0 0; }
  .brand img { height: 42px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(48,105,183,.34), transparent 62%),
    radial-gradient(700px 400px at 8% 92%, rgba(194,41,43,.20), transparent 60%),
    linear-gradient(180deg, #0D1218 0%, #16212C 55%, #0D1218 100%);
  z-index: -2;
}
/* faint topographic contour texture */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,.028) 0px, rgba(255,255,255,.028) 1px,
    transparent 1px, transparent 26px
  );
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4.6rem 0 5rem;
}
.hero h1 { margin-bottom: .55rem; }
.hero h1 .accent { color: var(--blue-bright); display: block; }
.hero .lede { color: rgba(255,255,255,.78); font-size: 1.18rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero-logo { justify-self: center; }
.hero-logo img {
  width: min(100%, 400px);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.6rem;
  margin-top: 2.6rem;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-facts div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--bronze-lt);
}
.hero-facts div span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: rgba(255,255,255,.62);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; padding: 3rem 0 3.4rem; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(78%, 340px); }
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 300px at 82% 0%, rgba(48,105,183,.30), transparent 62%),
    linear-gradient(180deg, #0D1218, #1A242F);
}
.page-banner .wrap { position: relative; padding-block: 3.2rem 3.4rem; }
.page-banner h1 { margin-bottom: .35rem; }
.page-banner p { color: rgba(255,255,255,.76); max-width: 60ch; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 4.6rem 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink-2); color: rgba(255,255,255,.86); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .lede { color: rgba(255,255,255,.72); }

.section-head { max-width: 68ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #C9D2DA; }
.card h3 { margin-bottom: .45rem; }
.card p { margin: 0; color: var(--text-mid); font-size: .97rem; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  margin-bottom: 1.05rem;
}
.card-icon svg { width: 25px; height: 25px; stroke: #fff; fill: none; stroke-width: 1.9; }
.card-icon.red { background: linear-gradient(150deg, var(--red-bright), #9A1F21); }
.card-icon.bronze { background: linear-gradient(150deg, var(--bronze-lt), #8A6A45); }

/* ---------- Equipment (rental) ---------- */
.rig {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 1.8rem;
  align-items: start;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.rig + .rig { margin-top: 1.3rem; }
.rig-art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.rig-art svg { width: 100%; height: auto; max-height: 130px; }
.rig h3 { margin-bottom: .2rem; }
.rig .rig-model {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  color: var(--bronze);
  margin-bottom: .8rem;
}
.rig-specs {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .5rem 1.2rem;
  font-size: .93rem;
}
.rig-specs li {
  display: flex; justify-content: space-between; gap: .8rem;
  padding: .38rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-mid);
}
.rig-specs li b { color: var(--text); font-weight: 600; }

.rate-box {
  min-width: 210px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.rate-box .rate {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
}
.rate-box .rate:last-of-type { border-bottom: 0; }
.rate-box .rate span {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mid);
  font-family: var(--font-display); font-weight: 600;
}
.rate-box .rate b { font-family: var(--font-display); font-size: 1.45rem; color: var(--text); }
.rate-box .btn { width: 100%; margin-top: .9rem; }

@media (max-width: 980px) {
  .rig { grid-template-columns: 1fr; }
  .rig-art { max-width: 260px; }
  .rate-box { min-width: 0; }
}

/* ---------- Store ---------- */
.shop-filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.chip {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  font-size: .92rem;
  padding: .5rem 1.05rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 100px;
  cursor: pointer;
  color: var(--text-mid);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue-deep); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }

.product {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.product-art {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #202C38, #0F161D);
  display: grid;
  place-items: center;
  padding: 12%;
  position: relative;
}
.product-art img { width: 62%; opacity: .96; }
.product-art svg { width: 100%; height: auto; }

.product-tag {
  position: absolute; top: .8rem; left: .8rem;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  font-size: .7rem;
  padding: .28rem .6rem;
  border-radius: 3px;
  background: var(--red); color: #fff;
}
.product-tag.low { background: var(--bronze); }
.product-tag.out { background: var(--gray); }

.product-body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.22rem; margin-bottom: .15rem; }
.product-meta {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-mid); margin-bottom: .8rem;
  font-family: var(--font-display); font-weight: 600;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: .8rem;
}
.product-price small { font-size: .8rem; color: var(--text-mid); letter-spacing: .08em; }

.swatches { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .55rem; }
.swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--paper-2);
  box-shadow: 0 0 0 1px var(--line);
  position: relative;
}
.swatch[data-two] {
  background-image: linear-gradient(135deg, var(--c1) 0 50%, var(--c2) 50% 100%) !important;
}
.sizes {
  font-size: .84rem; color: var(--text-mid);
  padding-top: .6rem; margin-top: auto;
  border-top: 1px solid var(--line);
}
.sizes b { color: var(--text); font-weight: 600; }
.product .btn { margin-top: .9rem; width: 100%; }

.stock-note {
  background: #FFF8E8;
  border: 1px solid #F0DFB8;
  border-left: 4px solid var(--bronze);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: .95rem;
  color: #6B5227;
  margin-bottom: 2.2rem;
}
.stock-note strong { color: #4E3B18; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; }
/* Grid children default to min-width:auto, which lets a wide child push its
   track past the container. Pinning to 0 keeps every track inside .wrap. */
.split > * { min-width: 0; }
.about-logo {
  max-width: min(380px, 100%);
  margin-inline: auto;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, .5));
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 2.2rem; } }

.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .75rem;
  color: var(--text-mid);
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 11px; height: 11px;
  background: var(--blue);
  transform: rotate(45deg);
  border-radius: 2px;
}
.section-ink .checklist li { color: rgba(255,255,255,.76); }
.section-ink .checklist li::before { background: var(--bronze); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.2rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; } }

.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.contact-list li { display: flex; gap: .95rem; margin-bottom: 1.3rem; align-items: flex-start; }
.contact-list svg { width: 21px; height: 21px; stroke: var(--bronze); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: .28rem; }
.contact-list strong {
  display: block; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .1em; font-size: .78rem; color: rgba(255,255,255,.55); font-weight: 600;
}
.contact-list a, .contact-list span { color: #fff; text-decoration: none; font-size: 1.06rem; }
.contact-list a:hover { color: var(--blue-bright); }

.form-card {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; font-weight: 600;
  color: var(--text-mid);
  margin-bottom: .35rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .72rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(48,105,183,.16);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 118px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.form-status {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .95rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #E8F5EC; border: 1px solid #B6DEC3; color: #1E5B32; }
.form-status.err { background: #FDEBEB; border: 1px solid #F3C2C2; color: #8C2020; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff;
  text-align: center;
  padding: 3.6rem 0;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 54ch; margin: 0 auto 1.7rem; }
.cta-band .btn-primary { background: #fff; color: var(--blue-deep); }
.cta-band .btn-primary:hover { background: var(--snow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 3.2rem 0 1.6rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.6rem; margin-bottom: 2.4rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 1.9rem; } }
.site-footer img { height: 62px; width: auto; margin-bottom: 1rem; }
.site-footer h4 {
  color: #fff; font-size: 1rem; letter-spacing: .12em; margin-bottom: .9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.62); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .87rem;
  color: rgba(255,255,255,.45);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
