:root {
  --green: #2f4a36;
  --green-dark: #1f3325;
  --moss: #5f7343;
  --cream: #f6f3ec;
  --ink: #22261f;
  --muted: #5c6157;
  --line: #ddd8cc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: #fff; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--green-dark); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
a { color: var(--green); }
img { max-width: 100%; display: block; }

.wrap { padding: 0 clamp(16px, 4vw, 64px); }
.center { text-align: center; }
.section { padding: 88px 0; }
.alt { background: var(--cream); }

.btn { display: inline-block; background: var(--green); color: #fff; padding: 14px 26px; border-radius: 6px; text-decoration: none; font-weight: 600; border: 2px solid var(--green); }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-small { padding: 8px 16px; }
.hero .btn:not(.btn-ghost) { background: var(--cream); color: var(--green-dark); border-color: var(--cream); }
.hero .btn:not(.btn-ghost):hover { background: #fff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--green-dark); text-decoration: none; }
.logo span { color: var(--moss); }
nav { display: flex; align-items: center; gap: 24px; }
nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
nav a.btn { color: #fff; }

/* hero */
.hero { background: linear-gradient(160deg, var(--green-dark), var(--green) 60%, #4a6340); color: #fff; padding: 120px 0 112px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 5rem); max-width: 24ch; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.4rem); max-width: 70ch; color: #e6ecdc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* tabs */
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
[role="tab"] { font: inherit; font-weight: 600; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 16px; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
[role="tab"]:hover { color: var(--green); }
[role="tab"][aria-selected="true"] { color: var(--green-dark); border-bottom-color: var(--green); }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.panel p { color: var(--muted); font-size: 1.1rem; max-width: 68ch; }
.panel ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.panel li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; font-weight: 500; color: var(--green-dark); }
.panel li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--moss); color: #fff; font-size: .8rem; font-weight: 700; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img, .ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 6px; }
.ph { background: #d9dccd; color: var(--muted); display: grid; place-items: center; font-size: .9rem; }
.about-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; border-radius: 6px; }
figcaption { font-size: .9rem; color: var(--muted); padding-top: 8px; }


#reviews h2, .rating { text-align: center; }
.rating p { margin: 0 0 8px; }
.stars { color: #c08a2c; font-size: 1.8rem; letter-spacing: 4px; }
.rating-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px !important; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }

/* quote */
.jobber-slot { margin-top: 24px; }
.form-alt { margin-top: 16px; color: var(--muted); }

/* footer */
.site-footer { background: var(--green-dark); color: #d7dfcc; padding: 40px 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }

/* mobile menu + call bar (hidden on wide screens) */
.menu { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; min-height: 44px; padding: 0 16px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--green-dark); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--cream); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; display: grid; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(31, 51, 37, .16); }
.menu-panel a { padding: 12px 14px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; }
.menu-panel a:hover { background: var(--cream); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: #d6e0c4; color: var(--green-dark); }

@media (max-width: 800px) {
  .logo { font-size: 1.05rem; line-height: 1.1; }
  .logo span { display: block; } /* stacked wordmark so logo, Free Quote and Menu fit a 320px screen */
  .hero { padding: 64px 0 56px; }
  nav .btn-small { padding: 8px 12px; }
  nav a.btn { white-space: nowrap; }
  nav { gap: 8px; margin-left: auto; }
  nav a:not(.btn) { display: none; }
  .header-row { gap: 8px; }
  .menu { display: block; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 64px 0; }
  /* all six service groups visible as a 2x3 grid instead of a strip that runs off-screen */
  [role="tablist"] { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-bottom: 0; }
  [role="tab"] { margin: 0; min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
  [role="tab"][aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (min-width: 561px) and (max-width: 800px) {
  [role="tablist"], .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* service pages */
.page-hero { padding: 72px 0 64px; }
.crumb { font-size: .95rem; color: #dce5cf; margin: 0 0 16px; }
.crumb a { color: #fff; }
.more { margin-top: 28px; }
.cta-actions { justify-content: center; }
.text-link { font-weight: 600; align-self: center; padding: 12px 8px; }

/* logo mark */
.logo { display: inline-flex; align-items: center; }
.logo img { width: 44px; height: 44px; border-radius: 50%; flex: none; margin-right: 10px; }
.logo span { margin-left: .3em; }

/* hero slideshow */
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.1fr; } .hero { padding: 72px 0; } }
.slideshow { position: relative; min-width: 0; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 8px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.slide img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); font-size: .95rem; }
.slide-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--green-dark); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.slide-btn:hover { background: #fff; }
.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } }
@media (max-width: 800px) {
  .logo { display: inline-grid; grid-template-columns: auto auto; align-items: center; }
  .logo img { grid-row: span 2; width: 38px; height: 38px; }
  .logo span { margin-left: 0; }
}

/* review quotes */
.reviews { columns: 3 320px; column-gap: 20px; margin-top: 40px; }
.review { break-inside: avoid; margin: 0 0 20px; padding: 24px; background: var(--cream); border-radius: 8px; }
.review blockquote { margin: 0; }
.review p { margin: 0; }
.review figcaption { padding-top: 12px; font-weight: 600; color: var(--green-dark); }
@media (max-width: 560px) {
  .panel ul { gap: 8px; margin-top: 24px; }
  .panel li { padding: 10px 14px; }
  .more .btn { display: block; text-align: center; }
}
