/* JSC Landscaping — simple site styles.
   System fonts, black on white, one green accent (#145d42). No JavaScript, no web fonts, nothing to break. */

:root {
  --ink: #111;
  --text: #2a2a2a;
  --muted: #666;
  --line: #e4e4e4;
  --soft: #f5f5f3;
  --green: #145d42;
  --green-dark: #0f4633;
  --max: 60rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

h1, h2, h3 { margin: 0 0 0.6rem; color: var(--ink); line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.2rem); font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow > * { max-width: 42rem; }   /* keeps text lines readable but left-aligned with the headings above */
section { padding: 2.75rem 0; }
.soft { background: var(--soft); }
.lead { font-size: 1.1rem; max-width: 42rem; }
.muted { color: var(--muted); }

/* buttons */
.btn {
  display: inline-block; padding: 0.65rem 1.1rem; border: 1.5px solid var(--green); border-radius: 6px;
  background: var(--green); color: #fff; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn--line { background: #fff; color: var(--green); }
.btn--line:hover { background: var(--soft); color: var(--green-dark); border-color: var(--green-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.brand img { height: 3rem; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 0.35rem 0; }
.nav a:hover { color: var(--green); text-decoration: underline; }
.bar-cta { display: flex; align-items: center; gap: 0.75rem; }
.phone { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 0.95rem; }
.phone:hover { color: var(--green); }
.bar-cta .btn { padding: 0.45rem 0.85rem; font-size: 0.95rem; }
@media (max-width: 820px) {
  .nav { order: 3; width: 100%; margin-left: 0; padding-top: 0.3rem; border-top: 1px solid var(--line); gap: 0.1rem 0.85rem; }
  .nav a { font-size: 0.9rem; }
  .bar-cta { margin-left: auto; }
}
@media (max-width: 400px) { .bar-cta .btn { display: none; } }

/* home hero + page heads */
.hero, .page-head { padding: 2.5rem 0 2rem; }
.meta { font-size: 0.92rem; color: var(--muted); margin: 1.1rem 0 0; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.75rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }
.crumbs span[aria-hidden] { margin: 0 0.35rem; }

/* services + gallery */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 480px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card img, .gallery img, .photo img, .shots img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--soft);
}
.card h3 { margin: 0.7rem 0 0.25rem; }
.card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.5rem; }
.card a { font-weight: 600; font-size: 0.95rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: 1.25rem; }
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.6rem; margin-top: 1.25rem; }
.photo { margin: 1.25rem 0 0; max-width: 34rem; }
.photo figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem 2rem; margin-top: 1.25rem; }
.review { margin: 0; padding-left: 1rem; border-left: 3px solid var(--green); }
.review blockquote { margin: 0 0 0.35rem; }
.review figcaption { font-size: 0.9rem; color: var(--muted); }
.stars { color: var(--green); letter-spacing: 0.12em; font-size: 0.85rem; margin-bottom: 0.2rem; }

/* lists */
.ticks { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.3rem; margin-bottom: 0.45rem; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--green); }
.inline { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; list-style: none; margin: 0.75rem 0 0; padding: 0; }
.steps { counter-reset: s; list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.steps li { counter-increment: s; border-top: 2px solid var(--green); padding-top: 0.6rem; }
.steps li::before { content: "Step " counter(s); display: block; font-size: 0.8rem; font-weight: 600; color: var(--green); }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* FAQ (native <details>) */
.faq { max-width: 46rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 0.9rem 2rem 0.9rem 0; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.75rem; font-size: 1.3rem; line-height: 1; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--green); }
.faq__body p { margin: 0 0 1rem; max-width: 40rem; }

/* contact form */
.contact { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 760px) { .contact { grid-template-columns: 1.4fr 1fr; } }
.field { margin-bottom: 1rem; }
.row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.25rem; color: var(--ink); }
input, select, textarea {
  width: 100%; padding: 0.6rem 0.7rem; border: 1px solid #b9b9b9; border-radius: 6px;
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
textarea { min-height: 7rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.details p { margin-bottom: 0.6rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 2rem 0 1.5rem; font-size: 0.92rem; }
.foot-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.site-footer h4 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.25rem 0; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--green); }
.copy { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }

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

/* long email addresses must wrap instead of overflowing */
.site-footer a, .details a { overflow-wrap: anywhere; }

/* ==========================================================================
   Services dropdown (native <details>: works with a click, a tap or the keyboard)
   ========================================================================== */
.nav { align-items: center; }
.dd { position: relative; }
.dd summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink); font-size: 0.95rem; padding: 0.35rem 0;
}
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after {
  content: ""; width: 0.4rem; height: 0.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.15s;
}
.dd[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.dd summary:hover, .dd[open] summary { color: var(--green); }
.dd__panel {
  position: absolute; top: calc(100% + 0.55rem); left: -0.75rem; z-index: 30; min-width: 16.5rem; padding: 0.4rem 0;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}
.nav .dd__panel a { display: block; padding: 0.65rem 1rem; color: var(--ink); font-size: 0.95rem; text-decoration: none; }
.nav .dd__panel a:hover { background: var(--soft); color: var(--green); text-decoration: none; }
.nav .dd__panel a.sub { padding-left: 1.9rem; font-size: 0.9rem; color: var(--text); }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; color: var(--ink); padding: 0.6rem 1rem; border: 2px solid var(--green); border-radius: 6px; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

@media (max-width: 820px) {
  .dd { position: static; }   /* panel is positioned against the sticky header, so it spans the full width */
  .dd__panel { left: 0; right: 0; top: 100%; min-width: 0; border-width: 1px 0; border-radius: 0; padding: 0.25rem 1.25rem 0.6rem; max-height: 70vh; overflow: auto; box-shadow: 0 14px 26px rgba(0, 0, 0, 0.14); }
}
@media (max-width: 820px) { .nav { gap: 0.1rem 0.7rem; } .nav a, .dd summary { font-size: 0.88rem; } }

/* long-form text pages */
.narrow h3 { margin-top: 1.6rem; }
.narrow h2 + h3 { margin-top: 1rem; }
.more { font-weight: 600; }
.cards .card h3 a { color: var(--ink); text-decoration: none; }
.cards .card h3 a:hover { color: var(--green); text-decoration: underline; }
.card .sublinks { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.4rem; }

/* in-page "tabs" (jump links) on the Fences page */
.tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 0; }
.tabs a {
  display: inline-block; padding: 0.6rem 1.1rem; border: 1.5px solid var(--green); border-radius: 999px;
  color: var(--green); font-weight: 600; font-size: 0.95rem; text-decoration: none; line-height: 1.2;
}
.tabs a:hover { background: var(--green); color: #fff; }
