/* Pollack Landscape & Irrigation, site styles
   No JavaScript anywhere on this site, and no third-party assets. The
   Content-Security-Policy set in the CDK stack forbids both, which also means
   no inline style attributes: everything visual lives in this file. */

:root {
  color-scheme: light;

  --green-900: #10281d;
  --green-800: #17392a;
  --green-700: #1f4d38;
  --green-600: #2c6a4a;
  --green-500: #3d8a60;
  --green-300: #8ec9a5;
  --green-100: #e4f0e8;

  --sun-600: #85610f;
  --sun-500: #d99a1c;
  --sun-100: #fbf0d8;

  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --bg-deep: var(--green-900);
  --bg-elev: #ffffff;

  --fg: #16201b;
  --fg-muted: #55635b;
  --fg-faint: #67736c;
  --fg-on-deep: #eef4f0;
  --fg-on-deep-muted: #b3c7bb;

  --border: #e2e0d8;
  --border-strong: #cfcdc2;

  --accent: var(--green-600);
  --accent-fg: #ffffff;

  --shadow-sm: 0 1px 2px rgba(16, 40, 29, 0.05);
  --shadow: 0 1px 2px rgba(16, 40, 29, 0.04), 0 10px 28px rgba(16, 40, 29, 0.07);
  --shadow-lg: 0 2px 4px rgba(16, 40, 29, 0.05), 0 24px 56px rgba(16, 40, 29, 0.12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --maxw: 1120px;
  --maxw-prose: 660px;

  --step: clamp(1rem, 0.9rem + 0.5vw, 1.0625rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #0e1512;
    --bg-soft: #141c18;
    --bg-deep: #0a100d;
    --bg-elev: #172019;

    --fg: #e7efe9;
    --fg-muted: #a4b3aa;
    --fg-faint: #7d8a83;
    --fg-on-deep: #e7efe9;
    --fg-on-deep-muted: #a4b3aa;

    --border: #253029;
    --border-strong: #33443a;

    --accent: var(--green-300);
    --accent-fg: #0e1512;

    --green-100: #17291f;
    --sun-100: #2a2113;
    --sun-600: #e0ab3a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 56px rgba(0, 0, 0, 0.45);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
.wordmark {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: from-font;
}

a:hover {
  text-decoration: none;
}

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

img,
svg {
  max-width: 100%;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reading measure is capped on the children rather than the wrapper, so prose
   starts on the same left gutter as the header and as full-width sections,
   instead of centering itself in the viewport. */
.wrap-prose > * {
  max-width: var(--maxw-prose);
}

main {
  flex: 1 0 auto;
}

section {
  padding: clamp(52px, 7vw, 88px) 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-deep {
  background: var(--bg-deep);
  color: var(--fg-on-deep);
}

.section-deep h2 {
  color: var(--fg-on-deep);
}

.section-deep p {
  color: var(--fg-on-deep-muted);
}

.section-head {
  max-width: var(--maxw-prose);
  margin-bottom: 40px;
}

.section-head p {
  color: var(--fg-muted);
  font-size: 1.075rem;
  margin-bottom: 0;
}

.section-deep .section-head p {
  color: var(--fg-on-deep-muted);
}

.eyebrow {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 12px;
}

.section-deep .eyebrow {
  color: var(--green-300);
}

.hero .eyebrow {
  color: var(--green-300);
}

.eyebrow svg {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- header ---------- */

header.site {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand .mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.wordmark {
  display: block;
  font-size: 1.22rem;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.01em;
}

.wordmark .sub {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

nav.primary ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.primary a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

nav.primary a:hover {
  color: var(--fg);
  background: var(--bg-soft);
}

nav.primary a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.12s ease,
    border-color 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--green-700);
}

@media (prefers-color-scheme: dark) {
  .btn-primary:hover {
    background: var(--green-100);
    color: var(--accent-fg);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--fg-muted);
  background: var(--bg-soft);
}

.btn-on-deep {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg-on-deep);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-on-deep:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-sm {
  padding: 9px 17px;
  font-size: 0.92rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--bg-deep);
  color: var(--fg-on-deep);
  overflow: hidden;
  padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 8vw, 100px);
  isolation: isolate;
}

/* Layered gradients plus a repeating chevron stand in for a photograph.
   Swap the whole ::before for a background-image once you have real job
   photos; nothing else in the layout depends on it. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(61, 138, 96, 0.55) 0%, rgba(61, 138, 96, 0) 62%),
    radial-gradient(70% 100% at 100% 100%, rgba(217, 154, 28, 0.22) 0%, rgba(217, 154, 28, 0) 60%),
    linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='72' viewBox='0 0 60 72'%3E%3Cpath d='M30 4c9 10 13 19 13 27 0 9-6 15-13 15s-13-6-13-15C17 23 21 14 30 4z' fill='none' stroke='%23ffffff' stroke-width='1.1'/%3E%3Cpath d='M30 16v30' stroke='%23ffffff' stroke-width='1.1' fill='none'/%3E%3C/svg%3E");
  background-size: 104px 125px;
}

/* Deliberately not narrowing .wrap here: the hero text has to start on the
   same gutter as the header logo and the trust strip. Line length is capped on
   the headline and lede instead. */
.hero-inner {
  max-width: var(--maxw);
}

.hero h1 {
  color: #ffffff;
  max-width: 720px;
  margin-bottom: 20px;
}

.hero .lede {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  color: var(--fg-on-deep-muted);
  max-width: 56ch;
  margin-bottom: 0;
}

.hero .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-primary {
  background: #ffffff;
  color: var(--green-800);
}

.hero .btn-primary:hover {
  background: var(--green-100);
}

/* ---------- trust strip ---------- */

.trust {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 0;
}

.trust ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  list-style: none;
  margin: 0;
  padding: 20px 0;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.trust svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--green-600);
}

@media (prefers-color-scheme: dark) {
  .trust svg {
    color: var(--green-300);
  }

  /* green-600 is a foreground accent tuned for light grounds; it reads at only
     2.9:1 on the dark one. Dark mode already swaps it everywhere else through
     --accent and the .section-deep rules. */
  .eyebrow,
  .steps li::before {
    color: var(--green-300);
  }
}

/* ---------- card grid ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

a.card {
  text-decoration: none;
  color: inherit;
}

a.card:hover {
  border-color: var(--green-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--fg-muted);
  font-size: 0.97rem;
  margin-bottom: 0;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

@media (prefers-color-scheme: dark) {
  .card .icon {
    color: var(--green-300);
  }
}

.card .icon svg {
  width: 23px;
  height: 23px;
}

.card .more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- feature list ---------- */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px 48px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Every .features list on the site holds four items, which auto-fit would
   otherwise break as 3 + 1. */
@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.features h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.features svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: var(--green-500);
}

.features p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.97rem;
}

.section-deep .features p {
  color: var(--fg-on-deep-muted);
}

.section-deep .features svg {
  color: var(--green-300);
}

/* ---------- process ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.steps li {
  counter-increment: step;
  padding-top: 22px;
  border-top: 2px solid var(--border-strong);
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-600);
  display: block;
  margin-bottom: 8px;
}

.steps h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.96rem;
}

/* ---------- service detail rows ---------- */

.service {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px 44px;
  grid-template-columns: minmax(0, 1fr);
  scroll-margin-top: 96px;
}

@media (min-width: 800px) {
  .service {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  }
}

.service:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.service h3 {
  font-size: 1.4rem;
  margin: 0;
}

.service .body p:last-child {
  margin-bottom: 0;
}

.service .body > p:first-child {
  color: var(--fg);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}

.tags li {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
}

.section-soft .tags li {
  background: var(--bg);
}

/* ---------- callout ---------- */

.callout {
  background: var(--sun-100);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sun-500);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 32px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--sun-600);
}

/* ---------- contact ---------- */

.contact-methods {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-methods li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-methods .label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 8px;
}

.contact-methods .value {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.32rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--fg);
  word-break: break-word;
}

.contact-methods a.value:hover {
  color: var(--accent);
}

.contact-methods .note {
  display: block;
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-top: 8px;
}

.definition {
  margin: 0;
}

.definition dt {
  font-weight: 600;
  margin-top: 18px;
}

.definition dt:first-child {
  margin-top: 0;
}

.definition dd {
  margin: 4px 0 0;
  color: var(--fg-muted);
}

/* ---------- area list ---------- */

.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px 24px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.areas li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.97rem;
  color: var(--fg-on-deep-muted);
}

.areas li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-300);
  flex-shrink: 0;
}

/* ---------- CTA band ---------- */

.cta {
  background: var(--green-700);
  color: #ffffff;
  text-align: center;
}

.cta h2 {
  color: #ffffff;
}

.cta p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-row {
  justify-content: center;
}

.cta .btn-primary {
  background: #ffffff;
  color: var(--green-700);
}

.cta .btn-primary:hover {
  background: var(--green-100);
}

/* ---------- prose pages ---------- */

.page-head {
  padding: clamp(48px, 6vw, 76px) 0 0;
}

.page-head p.lede {
  font-size: 1.12rem;
  color: var(--fg-muted);
  max-width: 58ch;
  margin-bottom: 0;
}

.prose h2 {
  margin-top: 44px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 6px;
}

/* ---------- footer ---------- */

footer.site {
  flex-shrink: 0;
  background: var(--bg-deep);
  color: var(--fg-on-deep-muted);
  padding: 56px 0 32px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-bottom: 36px;
}

footer.site h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-on-deep);
  margin-bottom: 14px;
}

footer.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.site li {
  margin-bottom: 8px;
}

footer.site a {
  color: var(--fg-on-deep-muted);
  text-decoration: none;
}

footer.site a:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer.site .brand .wordmark {
  color: var(--fg-on-deep);
}

footer.site .brand .sub {
  color: var(--fg-on-deep-muted);
}

footer.site .about p {
  margin: 16px 0 0;
  max-width: 34ch;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--fg-on-deep-muted);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding: clamp(72px, 12vw, 140px) 0;
}

.notfound .btn-row {
  justify-content: center;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  header.site {
    position: static;
  }

  .header-inner {
    justify-content: center;
    text-align: center;
    gap: 12px;
  }

  .header-right {
    width: 100%;
    justify-content: center;
  }

  nav.primary ul {
    justify-content: center;
  }

  .btn-row .btn {
    flex: 1 1 auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  header.site,
  .cta,
  .btn-row {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
