/* Palette taken from the artwork */
:root {
  --slate: #304149;
  --slate-soft: #4d5f67;
  --blue: #1f6a9a;
  --blue-dark: #195a84;
  --green: #2f8458;
  --paper: #f7faf9;
  --tint: #eef5f5;
  --line: #d5e2e3;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 44rem; }
.center { text-align: center; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--slate); color: #fff; padding: .6rem 1rem; z-index: 20;
}
.skip:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--slate); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
nav ul { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
nav a:not(.btn) { color: var(--slate); text-decoration: none; font-weight: 500; }
nav a:not(.btn):hover { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue); color: #fff;
  padding: .8rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
  transition: background .15s;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn:hover { background: var(--blue-dark); }
.btn-small { padding: .45rem 1rem; font-size: .95rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Hero: the banner artwork sits behind the text on the right */
.hero {
  background:
    url("assets/hero-banner.svg") right bottom / clamp(900px, 160vw - 700px, 1900px) auto no-repeat,
    linear-gradient(135deg, #f7faf9, #e3eff1);
  min-height: min(70vh, 640px);
  display: flex; align-items: center;
  padding-block: 4rem;
}
.hero-text { max-width: 28rem; }
.eyebrow { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .8rem; }
.lead { font-size: 1.25rem; color: var(--slate-soft); }

/* Sections */
.section { padding-block: 5rem; }
.section-tint { background: var(--tint); }
.section-intro { color: var(--slate-soft); max-width: 40rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-top-width: 5px;
  border-radius: var(--radius); padding: 1.5rem;
}
.card p { margin: 0; color: var(--slate-soft); }
.card-blue { border-top-color: var(--blue); }
.card-green { border-top-color: var(--green); }
.card-slate { border-top-color: var(--slate); }

.points { padding-left: 1.2rem; }
.points li { margin-bottom: .6rem; }


/* Problem list, two-column service cards, numbered steps */
.symptoms {
  list-style: none; padding: 0; margin: 1.75rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem;
}
.symptoms li {
  background: var(--tint); border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem;
}
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.steps {
  counter-reset: step; list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2rem;
}
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.steps p { color: var(--slate-soft); margin: 0; }

/* Footer */
.site-footer { background: var(--slate); color: #dbe5e8; padding-block: 1.5rem; font-size: .95rem; }
.site-footer p { margin: 0; }

/* Small screens: text first, artwork shown beneath it */
@media (max-width: 900px) {
  .hero {
    /* size scales with the screen so all three trees stay in view */
    background:
      url("assets/hero-banner.svg") 90% bottom / 200vw auto no-repeat,
      linear-gradient(135deg, #f7faf9, #e3eff1);
    align-items: flex-start;
    min-height: 0;
    padding-block: 3rem 70vw;
  }
  .brand { font-size: 1rem; line-height: 1.2; }
  .brand img { width: 34px; height: 34px; }
  .btn-small { white-space: nowrap; }
  nav li:not(:last-child) { display: none; } /* keep the bar tidy on phones */
  .section { padding-block: 3.5rem; }
}

@media (max-width: 360px) {
  .brand { font-size: .9rem; gap: .4rem; }
  .brand img { width: 28px; height: 28px; }
  .btn-small { padding: .4rem .7rem; font-size: .85rem; }
}

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

/* Contact form */
.form { margin-top: 1.75rem; display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--slate-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; color: inherit;
  padding: .7rem .85rem; border: 1px solid #9db3b8; border-radius: var(--radius); background: #fff;
}
.field textarea { resize: vertical; min-height: 9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #1e6b45; }
.form-status.error { color: #b3261e; }
.form-note { margin: 0; font-size: .9rem; color: var(--slate-soft); }
.alt-contact { margin-top: 2rem; color: var(--slate-soft); }
.alt-contact a { overflow-wrap: anywhere; }

@media (max-width: 340px) {
  #contact .container { width: calc(100% - 1.25rem); }
}
