/* Thistlewick Lawn & Landscape. A fictional business; see README.md.
   Look: a garden almanac. Cream paper, forest green ink, one clay accent. No web fonts
   and no third-party files, so the page loads nothing from another site. */

:root {
  --ink: #1d2a22;
  --forest: #1f4d35;
  --forest-deep: #163a28;
  --moss: #3f6b4a;
  --sage: #dfe8cf;
  --cream: #f6f1e4;
  --paper: #fffdf7;
  --clay: #a4481b;
  --clay-deep: #873a14;
  --wheat: #e9b872;
  --line: #cfc5a8;
  --muted: #47564b;
  --error: #9b1c1c;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--display); color: var(--forest-deep); line-height: 1.15; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--forest-deep); color: #fff; padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* The notice that the business is not real stays above everything. */
.fiction-bar { background: var(--forest-deep); color: #fff; font-size: 0.92rem; }
.fiction-bar p { margin: 0 auto; width: min(1120px, 100% - 40px); padding: 10px 0; }
.fiction-bar strong { color: var(--wheat); }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(246, 241, 228, 0.96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--forest-deep); line-height: 1.05; }
.brand-sub { display: block; font-family: var(--body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; transition: background-color 180ms ease, color 180ms ease; }
.site-nav a:hover { background: var(--sage); color: var(--forest-deep); }
.site-nav .nav-cta { background: var(--forest); color: #fff; margin-left: 8px; }
.site-nav .nav-cta:hover { background: var(--forest-deep); color: #fff; }
.nav-toggle { display: none; min-height: 44px; min-width: 44px; padding: 0 18px; border: 2px solid var(--forest); border-radius: 999px; background: transparent; color: var(--forest-deep); font: 600 1rem var(--body); cursor: pointer; }

.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay-deep); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.fine-print { font-size: 0.92rem; color: var(--muted); }
.hint { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; }

.hero { padding: 56px 0 64px; background: radial-gradient(900px 420px at 85% 0%, #ece4cd 0%, rgba(236, 228, 205, 0) 70%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art svg { width: 100%; border-radius: 28px; box-shadow: 0 24px 50px -28px rgba(22, 58, 40, 0.55); transform: rotate(1.5deg); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 2px solid var(--clay); border-radius: 999px; background: var(--clay); color: #fff; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.button:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: #fff; }
.button-quiet { background: transparent; color: var(--forest-deep); border-color: var(--forest); }
.button-quiet:hover { background: var(--forest); border-color: var(--forest); color: #fff; }

.section { padding: 72px 0; }
.section-tint { background: var(--sage); }

.service-grid { list-style: none; margin: 28px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 6px solid var(--moss); }
.service-card:nth-child(even) { border-top-color: var(--clay); }
.service-card p { margin-bottom: 10px; }
.service-price { font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--forest-deep); }
.service-extra, .service-season { font-size: 0.93rem; color: var(--muted); }
.service-season { margin-bottom: 0; }

.pricing-grid, .request-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.rule-list { padding-left: 20px; margin: 0; }
.rule-list li { margin-bottom: 10px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 18px 40px -30px rgba(22, 58, 40, 0.6); }
.field { margin-bottom: 18px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-card label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="tel"], .form-card select, .form-card textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #7d8b78; border-radius: 10px; background: #fff; color: var(--ink); font: 1rem var(--body);
}
.form-card textarea { min-height: 96px; resize: vertical; }
.form-card input:focus-visible, .form-card select:focus-visible, .form-card textarea:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-color: var(--forest); }
.form-card [aria-invalid="true"] { border-color: var(--error); background: #fff5f5; }
.check-field { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.check-field input { width: 24px; height: 24px; flex: none; accent-color: var(--forest); }
.check-field label { margin: 0; font-weight: 500; padding: 10px 0; }
.form-error { color: var(--error); font-weight: 600; background: #fff5f5; border-left: 4px solid var(--error); padding: 10px 14px; border-radius: 6px; }
[hidden] { display: none !important; }

.quote-result, .done-card { margin-top: 24px; padding: 22px; border-radius: var(--radius); background: var(--forest-deep); color: #fff; }
.quote-result:focus-visible, .done-card:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.result-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wheat); margin-bottom: 6px; }
.result-range { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.result-steps { margin: 0 0 12px; padding-left: 20px; font-size: 0.96rem; }
.quote-result .fine-print { color: #dfe8cf; }
.quote-result .button-quiet { color: #fff; border-color: #fff; }
.quote-result .button-quiet:hover { background: #fff; color: var(--forest-deep); border-color: #fff; }
.done-card p { margin-bottom: 8px; }
.done-card p:last-child { margin-bottom: 0; }

.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.town-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.town-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.hours-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.hours-table thead th { background: var(--forest-deep); color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hours-table tbody tr:last-child th, .hours-table tbody tr:last-child td { border-bottom: 0; }
.contact-line { margin-top: 18px; font-weight: 600; }

.agent-facts { margin-top: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.agent-facts ul { padding-left: 20px; }
.agent-facts li { margin-bottom: 6px; }
.agent-facts a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.agent-facts p:last-child { margin-bottom: 0; }

.site-footer { background: var(--forest-deep); color: #e8eedd; padding: 36px 0; font-size: 0.95rem; }
.site-footer a { color: #fff; display: inline-block; padding: 10px 0; }
.site-footer p:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .pricing-grid, .request-grid, .area-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 520px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-bottom: 8px; }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 0 16px; }
  .site-nav .nav-cta { margin-left: 0; justify-content: center; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 36px 0 44px; }
  .service-grid, .field-pair, .town-list { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .button { width: 100%; }
  .brand-name { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ------------------------------------------------------------------------------------
   Assistant. Based on the agentify-website skill's assistant.css, with this site's
   palette. The runtime in runtime/ reads the --ns-* variables.
   ------------------------------------------------------------------------------------ */
.assistant-note { font-size: 0.95rem; color: var(--muted); }
#assistant-status { font-weight: 600; color: var(--forest-deep); }

#agent-app {
  --ns-font: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --ns-bg: #fffdf7;
  --ns-fg: #1d2a22;
  --ns-primary: #1f4d35;
  --ns-accent: #a4481b;
  --ns-border: #cfc5a8;
  --ns-panelbg: #fffdf7;
  --ns-msgbg: #eef2e2;
  --ns-muted: #47564b;
}

.assistant-panels { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; margin-top: 16px; }

#agent-app.ns-composed-app [data-ns-slot="chat"] { height: 640px; }
#agent-app .ns-chat { background: var(--ns-bg); }

#agent-app input[type="checkbox"],
#agent-app input[type="radio"] { width: auto; }
#agent-app .ns-header { flex-wrap: wrap; }
#agent-app .ns-settings-body label { margin: 4px 0; font-weight: 400; }
#agent-app .ns-w-label { font-family: inherit; }
#agent-app .ns-widget label { margin: 0; }
#agent-app .ns-w-radio label,
#agent-app .ns-w-multi label,
#agent-app .ns-w-toggle { font-weight: 400; }
#agent-app .ns-w-toggle { font-size: 13px; }
#agent-app button { margin: 0; }
#agent-app .ns-w-choice { color: var(--ns-fg); }
#agent-app .ns-devtoggle:not(.on):hover,
#agent-app .ns-modal-close:hover { background: transparent; }
#agent-app .ns-w-choice:disabled:hover { background: #fafbfc; }
#agent-app .ns-consent { background: #fffbeb; }
#agent-app .ns-msgs:has(.ns-consent-actions) > .ns-turn-status { display: none; }
#agent-app .ns-msg { overflow-wrap: break-word; }
#agent-app .ns-consent-actions { flex-wrap: wrap; }
#agent-app .ns-consent-actions button { white-space: nowrap; }
/* The runtime's own controls are smaller than this site's 44px touch targets, and its
   warning hint is a shade too light on this page's background. */
#agent-app button,
#agent-app select,
#agent-app summary,
#agent-app textarea,
#agent-app input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
#agent-app summary { display: flex; align-items: center; cursor: pointer; }
#agent-app a { display: inline-flex; align-items: center; min-height: 44px; }
#agent-app label:has(> input[type="checkbox"]),
#agent-app label:has(> input[type="radio"]) { min-height: 44px; display: flex; align-items: center; gap: 8px; }
#agent-app .ns-hint.warn { color: #8a3d06; }
/* The site's heading font would reach headings inside the assistant. */
#agent-app h1, #agent-app h2, #agent-app h3, #agent-app h4 { font-family: var(--ns-font); letter-spacing: 0; }

body > dialog h2 { margin: 0 0 12px; font: 700 1.3em var(--display); }
body > dialog button { margin-right: 8px; margin-top: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--forest); background: var(--forest); color: #fff; font: 700 1rem var(--body); cursor: pointer; }
.assistant-review { max-width: 640px; width: 88%; max-height: 85vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; font: 16px/1.5 var(--body); color: var(--ink); background: var(--paper); }
.assistant-review::backdrop { background: rgba(22, 58, 40, 0.55); }
.assistant-review dl { display: grid; grid-template-columns: fit-content(40%) 1fr; gap: 4px 16px; margin: 12px 0; }
.assistant-review dt { font-weight: 700; }
.assistant-review dd { margin: 0; overflow-wrap: anywhere; }
.assistant-review details { margin: 12px 0; }
.assistant-review summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.assistant-review pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.85rem; }
.assistant-review .assistant-decline { background: transparent; color: var(--forest-deep); border: 2px solid var(--forest); }

@media (max-width: 760px) {
  .assistant-panels { grid-template-columns: 1fr; }
  .assistant-review dl { grid-template-columns: 1fr; gap: 0; }
  .assistant-review dd { margin-bottom: 8px; }
}
