/* Mulch Calculators — shared stylesheet */
:root {
  --primary: #5d4024;
  --primary-dark: #3f2b16;
  --accent: #e08b3c;
  --accent-dark: #c8702a;
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #2b2b2b;
  --text-light: #6b5f54;
  --border: #e5ddd2;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: var(--primary);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.logo { font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
nav a {
  color: #f0e6da;
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
  font-weight: 500;
}
nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 40px 0 10px; text-align: center; }
.hero h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 12px; color: var(--primary-dark); }
.hero p.sub { color: var(--text-light); max-width: 640px; margin: 0 auto 8px; }

/* Calculator card */
.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 24px 0 36px;
}
.calc-card h2 { color: var(--primary-dark); margin-bottom: 18px; font-size: 1.3rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }
.field input, .field select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}
.field input:focus, .field select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.unit-row { display: flex; gap: 8px; }
.unit-row input { flex: 1; }
.unit-row select { width: 90px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #1e1e1e;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  margin-top: 6px;
}
.btn:hover { background: var(--accent-dark); }

/* Results */
.results {
  display: none;
  margin-top: 24px;
  border-top: 2px dashed var(--border);
  padding-top: 20px;
}
.results.visible { display: block; }
.results h3 { color: var(--primary-dark); margin-bottom: 14px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.result-box {
  background: #f6efe5;
  border: 1px solid #e3d5c2;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.result-box .value { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.result-box .label { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.result-note { font-size: 0.9rem; color: var(--text-light); margin-top: 14px; }
.result-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.result-actions button {
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.result-actions button:hover { background: var(--primary); color: #fff; }

/* Content sections */
section.content { padding: 10px 0 26px; }
section.content h2 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin: 26px 0 12px;
  padding-top: 10px;
}
section.content h3 { color: var(--primary-dark); font-size: 1.15rem; margin: 20px 0 8px; }
section.content p { margin-bottom: 14px; }
section.content ul, section.content ol { margin: 0 0 14px 24px; }
section.content li { margin-bottom: 6px; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}
th {
  background: var(--primary);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f8f4ee; }

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--primary-dark);
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--accent-dark);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--text); }

/* Callout */
.callout {
  background: #fdf6e9;
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 0.97rem;
}

/* Related links */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.12s;
  display: block;
}
.related-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.related-card strong { color: var(--primary-dark); display: block; margin-bottom: 6px; }
.related-card span { font-size: 0.88rem; color: var(--text-light); }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-light); padding: 14px 0 0; }
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* Footer */
footer {
  background: var(--primary-dark);
  color: #dcccb8;
  padding: 34px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
footer h4 { color: #fff; margin-bottom: 10px; font-size: 1rem; }
footer a { color: #dcccb8; text-decoration: none; display: block; margin-bottom: 6px; }
footer a:hover { color: var(--accent); }
.footer-bottom { text-align: center; margin-top: 26px; padding-top: 16px; border-top: 1px solid #5d4024; font-size: 0.82rem; }

/* Ad slots (placeholders, activate after approval) */
.ad-slot {
  background: repeating-linear-gradient(45deg, #f0f0ec, #f0f0ec 12px, #e9e9e4 12px, #e9e9e4 24px);
  border: 1px dashed #c9c9c2;
  border-radius: 8px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a92;
  font-size: 0.8rem;
  margin: 22px 0;
}

@media (max-width: 640px) {
  .calc-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  nav a { margin-left: 10px; font-size: 0.85rem; }
}
