/* ============================================================
   Harr Enterprise — v2 site styles (mobile-first, no framework)
   Chrome: includes/header_v2.php + includes/footer_v2.php
   Brand tokens from assets/color/default.css
   ============================================================ */

:root {
  --he-accent: #94c045;
  --he-green:  #5a7d2b;
  --he-dark:   #46611f;
  --he-ink:    #222222;
  --he-muted:  #5b6570;
  --he-bg:     #ffffff;
  --he-band:   #f3f6ee;
  --he-line:   #dfe5d8;
  --he-radius: 8px;
  --he-max:    1100px;
}

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

html { font-size: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--he-ink);
  background: var(--he-bg);
  line-height: 1.6;
}

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

a { color: var(--he-green); }
a:hover, a:focus { color: var(--he-dark); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.container { max-width: var(--he-max); margin: 0 auto; padding: 0 16px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  position: fixed; left: 8px; top: 8px; z-index: 200;
  background: #fff; padding: 8px 14px; border-radius: var(--he-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--he-line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand img { display: block; max-height: 48px; width: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--he-dark); }
.nav-toggle:focus-visible { outline: 2px solid var(--he-green); outline-offset: 2px; }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--he-line);
  padding: 8px 16px 16px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.site-nav a {
  display: block; padding: 10px 12px; border-radius: var(--he-radius);
  text-decoration: none; color: var(--he-ink); font-weight: 600;
}
.site-nav a:hover, .site-nav a:focus { background: var(--he-band); color: var(--he-dark); }
.site-nav a[aria-current="page"] { color: var(--he-dark); box-shadow: inset 3px 0 0 var(--he-accent); }

.nav-chat {
  display: inline-block; margin-top: 10px;
  background: var(--he-green); color: #fff !important;
  border: 1px solid var(--he-green); border-radius: var(--he-radius);
  padding: 9px 16px; font-weight: 700; text-decoration: none;
}
.nav-chat:hover { background: var(--he-dark); border-color: var(--he-dark); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 4px; }
  .site-nav ul { flex-direction: row; }
  .nav-chat { margin-top: 0; margin-left: 12px; }
}

/* ---------- hero ---------- */

.hero { background: linear-gradient(180deg, var(--he-band), #fff); padding: 40px 0 48px; }
.hero-inner {
  display: flex; flex-direction: column; gap: 28px;
  align-items: center; text-align: center;
}
.hero-copy { max-width: 640px; }
.hero .lede { font-size: 1.15rem; color: var(--he-muted); }
.hero-art { max-width: 420px; border-radius: var(--he-radius); box-shadow: 0 6px 24px rgba(0,0,0,.12); }

@media (min-width: 820px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { flex-direction: row; text-align: left; }
  .hero-copy { flex: 1; }
}

/* ---------- buttons / CTA rows ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--he-radius);
  font-weight: 700; text-decoration: none; font-size: 1rem;
}
.btn-primary { background: var(--he-green); color: #fff; border: 1px solid var(--he-green); }
.btn-primary:hover, .btn-primary:focus { background: var(--he-dark); border-color: var(--he-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--he-dark); border: 1px solid var(--he-green); }
.btn-ghost:hover, .btn-ghost:focus { background: var(--he-band); color: var(--he-dark); }

@media (min-width: 820px) { .hero .cta-row { justify-content: flex-start; } }

/* ---------- slideshow (home hero) ---------- */

.slideshow { position: relative; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; gap: 24px;
  align-items: center; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-copy { max-width: 640px; }
.slide .lede { font-size: 1.15rem; color: var(--he-muted); }
.slide img { max-width: 420px; border-radius: var(--he-radius); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
@media (min-width: 820px) {
  .slide { flex-direction: row; text-align: left; }
  .slide-copy { flex: 1; }
}
.ss-prev, .ss-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--he-line); background: rgba(255,255,255,.9);
  color: var(--he-dark); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.ss-prev { left: -4px; }
.ss-next { right: -4px; }
.ss-prev:hover, .ss-next:hover { background: var(--he-band); border-color: var(--he-green); }
.ss-prev:focus-visible, .ss-next:focus-visible, .ss-dot:focus-visible { outline: 2px solid var(--he-green); outline-offset: 2px; }
.ss-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.ss-dot {
  width: 13px; height: 13px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--he-green); background: #fff;
}
.ss-dot[aria-current="true"] { background: var(--he-green); }
@media (min-width: 1000px) { .ss-prev { left: 8px; } .ss-next { right: 8px; } }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- content sections ---------- */

.section { padding: 36px 0; border-top: 1px solid var(--he-line); }
.section h2 { color: var(--he-dark); }
.section .wrap { max-width: 820px; }

/* ---------- recycle items grid ---------- */

.item-grid {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0 28px;
}
@media (min-width: 560px)  { .item-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .item-grid { grid-template-columns: repeat(3, 1fr); } }
.item-grid li {
  position: relative; padding: 7px 0 7px 22px;
  border-bottom: 1px dashed var(--he-line);
}
.item-grid li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--he-accent);
}

/* ---------- CTA band ---------- */

.cta-band { background: var(--he-dark); color: #fff; padding: 42px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe4cf; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn-primary { background: var(--he-accent); border-color: var(--he-accent); color: #17300a; }
.cta-band .btn-primary:hover, .cta-band .btn-primary:focus { background: #84ad3a; border-color: #84ad3a; color: #10220a; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover, .cta-band .btn-ghost:focus { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- WISP block (pricing) ---------- */

.wisp-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .wisp-grid { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.wisp-figure { margin: 0; }
.wisp-figure img { width: 100%; border-radius: var(--he-radius); box-shadow: 0 4px 18px rgba(0,0,0,.12); }

/* ---------- details/summary (about) ---------- */

details {
  border: 1px solid var(--he-line); border-radius: var(--he-radius);
  padding: 14px 18px; margin-bottom: 12px; background: #fff;
}
summary { font-weight: 700; color: var(--he-dark); cursor: pointer; }
summary:focus-visible { outline: 2px solid var(--he-green); outline-offset: 2px; }
details p { margin: 12px 0 0; }

/* ---------- feature cards (home) ---------- */

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 22px;
}
.card {
  border: 1px solid var(--he-line); border-radius: var(--he-radius);
  padding: 22px; background: #fff;
}
.card h3 { color: var(--he-dark); }
.card p { color: var(--he-ink); }
.card a { font-weight: 700; }

/* ---------- price boxes (pricingtable) ---------- */

.price-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 22px;
}
.price-box {
  border: 1px solid var(--he-line); border-radius: var(--he-radius);
  padding: 24px 22px; text-align: center; background: #fff;
}
.price-box.special { border-color: var(--he-green); box-shadow: 0 4px 18px rgba(70,97,31,.15); }
.price-box h3 { color: var(--he-dark); }
.price-box .price { display: block; font-size: 1.6rem; font-weight: 800; color: var(--he-green); margin: 8px 0; }
.price-box .price em { font-size: .9rem; font-weight: 600; font-style: normal; color: var(--he-muted); }
.price-box ul { list-style: none; margin: 14px 0; padding: 0; }
.price-box li { padding: 8px 0; border-top: 1px dashed var(--he-line); }
.footnote { font-size: .85rem; color: var(--he-muted); margin-top: 14px; }

/* ---------- contact layout ---------- */

.contact-grid { display: grid; gap: 28px; }
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 320px 1fr; align-items: start; }
}
.contact-aside h2 { color: var(--he-dark); }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px dashed var(--he-line); }

/* ---------- forms (contact) ---------- */

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-row input, .form-row textarea {
  width: 100%; max-width: 520px; padding: 10px 12px;
  border: 1px solid var(--he-line); border-radius: var(--he-radius);
  font: inherit; color: var(--he-ink);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--he-green); outline-offset: 1px; border-color: var(--he-green);
}
.form-msg { padding: 12px 16px; border-radius: var(--he-radius); margin: 16px 0; }
.form-msg.ok  { background: var(--he-band); border: 1px solid var(--he-green); }
.form-msg.err { background: #fdecea; border: 1px solid #c0392b; }

/* ---------- captcha box ---------- */

.capbox {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--he-band); border: 1px solid var(--he-green);
  border-radius: var(--he-radius); padding: 10px 14px;
}
#CaptchaDiv {
  font: italic 700 26px/1 Impact, Charcoal, Arial, sans-serif;
  letter-spacing: 3px; color: #000; background: #fff;
  padding: 8px 14px; border-radius: 6px; user-select: none;
}
.capbox-inner label { font-weight: 600; }
#CaptchaInput {
  width: 130px; padding: 8px 10px; margin-top: 6px;
  border: 1px solid var(--he-line); border-radius: 6px; font: inherit;
}

/* ---------- footer ---------- */

.site-footer { background: #20261c; color: #cfd6c8; padding: 36px 0 22px; }
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between;
}
.footer-col { flex: 1 1 240px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #e6ecdd; }
.site-footer a:hover, .site-footer a:focus { color: var(--he-accent); }
.footer-bottom {
  border-top: 1px solid #39422f; margin-top: 22px; padding-top: 14px;
  font-size: .9rem; color: #9aa48e;
}

/* ---------- icons (sprite: assets/img/icons.svg) ---------- */

.icon {
  width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none; vertical-align: -0.25em;
}
.card h3 { display: flex; align-items: center; gap: 8px; }
.card .icon { width: 24px; height: 24px; color: var(--he-green); }
.price-box .icon {
  display: block; width: 40px; height: 40px;
  color: var(--he-green); margin-bottom: 10px;
}
.section h2 .icon, .cta-band h2 .icon { color: var(--he-accent); vertical-align: -0.18em; }
.contact-list .icon, summary .icon { color: var(--he-green); margin-right: 6px; }
