/* SD&G Tree Farm & Landscape Supply — site styles */
:root {
  --forest: #1f3d2b;
  --forest-2: #2c5a3f;
  --leaf: #4f8a4b;
  --sprout: #a7c957;
  --bark: #6b4f3a;
  --soil: #3b2a1e;
  --stone: #d9d4c7;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --ink: #1d2420;
  --muted: #5b6660;
  --line: #e2dccd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 61, 43, 0.10);
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--forest-2); }
a:hover { color: var(--leaf); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--forest); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sprout); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 248, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { white-space: nowrap; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.brand-sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.header-call { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 600; color: var(--forest); text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.header-call svg { width: 18px; height: 18px; flex: none; }
.header-call:hover { background: var(--cream); }
.hero-call { margin: 20px 0 0; color: #cfe0c9; }
.hero-call a { color: #fff; font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--forest); }
.nav-toggle svg { width: 24px; height: 24px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.site-nav a { white-space: nowrap; display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { background: var(--cream); color: var(--forest); }
.site-nav a[aria-current="page"] { color: var(--forest); background: var(--cream); }
.site-nav .btn { margin-left: 8px; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .header-call { background: var(--forest); color: #fff; }
  .header-call:hover { background: var(--forest-2); }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; }
  .site-nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--sans); transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff !important; }
.btn-primary:hover { background: var(--forest-2); }
.btn-light { background: #fff; color: var(--forest) !important; }
.btn-outline { border-color: currentColor; color: var(--forest); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff !important; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--forest) 0%, #24492f 55%, #2f5a36 100%); color: #eef3ea; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 88px 0 96px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: #d6e3d2; max-width: 36ch; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--sprout); margin-bottom: 14px; }
.hero-art { width: 100%; max-width: 480px; justify-self: end; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .92rem; color: #cfe0c9; padding: 0; list-style: none; }
.hero-badges li::before { content: "✓"; color: var(--sprout); font-weight: 700; margin-right: 8px; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero-art { justify-self: center; max-width: 340px; }
}

.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 64px 0 52px; }
.page-hero p { max-width: 62ch; color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--forest); color: #e7efe4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #c9d9c4; }
.center { text-align: center; margin-inline: auto; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } section { padding: 56px 0; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.card-feature { position: relative; padding-top: 32px; }
.card-feature .tag { position: absolute; top: -12px; left: 24px; background: var(--forest); color: #fff; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.card-feature.primary { border: 2px solid var(--forest); box-shadow: var(--shadow); }
.card-feature.secondary .tag { background: var(--bark); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; color: var(--forest); margin-bottom: 14px; }
.icon svg { width: 26px; height: 26px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.art-panel { background: var(--cream); border-radius: 20px; padding: 28px; border: 1px solid var(--line); }
.section-alt .art-panel { background: #fff; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.section-dark .checklist li::before { background-color: var(--sprout); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 700; margin-bottom: 12px; font-family: var(--serif); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-row strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--sprout); }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* Tree catalogue */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .92rem; font-weight: 500; color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.tree-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tree-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tree-card[hidden] { display: none; }
.tree-card .swatch { height: 96px; display: grid; place-items: center; }
.tree-card .swatch svg { height: 76px; width: auto; }
.sw-deciduous { background: linear-gradient(135deg, #e7f0dc, #d3e4c1); }
.sw-conifer { background: linear-gradient(135deg, #dbe8df, #c2d8c9); }
.sw-shrub { background: linear-gradient(135deg, #f3ead9, #e8dcc2); }
.tree-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tree-card h3 { margin: 0; font-size: 1.15rem; }
.tree-card .latin { font-style: italic; color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.tree-card p { font-size: .94rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 0; list-style: none; }
.meta li { font-size: .76rem; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); }

/* Products */
.product { display: flex; gap: 18px; align-items: flex-start; }
.product .chip { flex: none; width: 56px; height: 56px; border-radius: 12px; border: 1px solid rgba(0,0,0,.08); }
.chip-topsoil { background: radial-gradient(circle at 30% 30%, #5a4130, #2f2016); }
.chip-garden { background: radial-gradient(circle at 30% 30%, #6a4c36, #3a2819); }
.chip-mulch { background: repeating-linear-gradient(35deg, #7a4f2c 0 6px, #5b3a1f 6px 11px); }
.chip-black { background: repeating-linear-gradient(35deg, #3a2a20 0 6px, #22180f 6px 11px); }
.chip-river { background: radial-gradient(circle at 25% 30%, #c9c3b6 0 7px, transparent 8px), radial-gradient(circle at 65% 60%, #9c958a 0 9px, transparent 10px), radial-gradient(circle at 40% 80%, #b5ad9f 0 6px, transparent 7px), #e2ddd2; }
.chip-gravel { background: radial-gradient(circle at 20% 20%, #9d9d97 0 3px, transparent 4px), radial-gradient(circle at 60% 40%, #7e7e78 0 3px, transparent 4px), radial-gradient(circle at 40% 70%, #b6b6ae 0 3px, transparent 4px), radial-gradient(circle at 80% 80%, #8e8e86 0 3px, transparent 4px), #c8c7bf; }
.chip-armour { background: linear-gradient(135deg, #b9b2a3 0 40%, #8e8676 40% 60%, #c9c2b3 60%); }
.chip-sand { background: #d9c39a; }

/* Notice */
.notice { border-left: 4px solid var(--bark); background: #fbf6ec; padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.notice strong { color: var(--soil); }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream); font-family: var(--serif); color: var(--forest); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--forest); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--leaf); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 18px; color: var(--muted); }

/* Forms */
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfc8b8; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .86rem; color: var(--muted); }
.form-status { margin-top: 12px; font-weight: 600; color: var(--forest-2); }
.hp { position: absolute; left: -9999px; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { margin: 0; width: 42px; height: 42px; }
.contact-list strong { display: block; color: var(--forest); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--forest), var(--forest-2)); color: #e7efe4; border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: #cfe0c9; }
.cta-band .cta-email { margin-top: 8px; }
.cta-band a:not(.btn), .hero-call a { color: #fff; font-weight: 600; }

/* Footer */
.site-footer { background: var(--soil); color: #d8cfc3; padding: 64px 0 28px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: #f0e6d8; text-decoration: none; }
.site-footer a:hover { color: var(--sprout); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #b3a898; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-sub { color: #b3a898; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .header-call span { display: none; } .header-call { padding: 10px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
