/* Hemlock Commercial Services - site styles */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/public-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/public-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/public-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green-950: #0c1f19;
  --green-900: #132920;
  --green-800: #1a3a2e;
  --green-700: #245142;
  --green-600: #2d5f4d;
  --cream-50: #fbf8f3;
  --cream-100: #f3eee4;
  --cream-200: #e6dfd1;
  --ink: #1a1814;
  --ink-soft: #3d3831;
  --muted: #5f594f;
  --line: rgba(19, 41, 32, 0.14);
  --line-strong: rgba(19, 41, 32, 0.22);
  --gold: #b3925f;
  --focus: #c4a265;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 4.25rem;
  --content: 70rem;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
  --section: clamp(4.25rem, 9vw, 7.25rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-50);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1, h2, h3, p, ul, figure, address {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--cream-50);
  color: var(--green-900);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-900);
  color: var(--cream-100);
  border-bottom: 1px solid rgba(243, 238, 228, 0.1);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.wordmark-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  display: block;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.1;
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.wordmark-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.72);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(243, 238, 228, 0.88);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--cream-50);
}

.header-cta {
  flex: 0 0 auto;
}

@media (min-width: 880px) {
  .nav { display: flex; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-light {
  background: var(--cream-100);
  color: var(--green-900);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: #fff;
}

.btn-dark {
  background: var(--green-800);
  color: var(--cream-50);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--green-700);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream-100);
  border-color: rgba(243, 238, 228, 0.4);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(243, 238, 228, 0.08);
  border-color: var(--cream-100);
}

.btn-outline-dark {
  background: transparent;
  color: var(--green-900);
  border-color: var(--line-strong);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: var(--cream-100);
  border-color: var(--green-800);
}

.btn-compact {
  padding: 0.62rem 0.95rem;
  font-size: 0.875rem;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline-offset: 2px;
}

/* Hero */

.hero {
  background: var(--green-900);
  color: var(--cream-100);
}

.hero-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}

.hero-copy {
  padding: clamp(2.25rem, 6vw, 4.5rem) var(--pad) clamp(2.5rem, 6vw, 4.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 42rem;
}

.hero-grid .hero-copy {
  max-width: none;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
}

.hero h1 {
  color: var(--cream-50);
  font-size: clamp(2.15rem, 6.2vw, 3.85rem);
  line-height: 1.08;
  font-weight: 500;
  max-width: 14ch;
}

.lead {
  margin-top: 1.35rem;
  font-size: clamp(1.05rem, 2vw, 1.175rem);
  line-height: 1.65;
  color: rgba(243, 238, 228, 0.86);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-photo {
  margin: 0;
  position: relative;
  background: var(--green-950);
}

.hero-photo img {
  width: 100%;
  height: 56vw;
  min-height: 16rem;
  max-height: 24rem;
  object-fit: cover;
  object-position: center 45%;
}

.hero-photo figcaption,
.photo-caption {
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(243, 238, 228, 0.7);
  padding: 0.7rem var(--pad) 1rem;
}

.photo-caption {
  color: var(--muted);
  padding: 0.65rem 0 0;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }

  .hero-copy {
    padding: 4.5rem 3.5rem 4.5rem var(--pad);
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 4.6vw, 4.15rem);
  }

  .hero-photo {
    min-height: 100%;
  }

  .hero-photo img {
    height: 100%;
    min-height: 100%;
    max-height: none;
    position: absolute;
    inset: 0;
  }

  .hero-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(12, 31, 25, 0.72), rgba(12, 31, 25, 0));
    color: rgba(243, 238, 228, 0.86);
  }
}

/* Shared sections */

.section {
  padding: var(--section) var(--pad);
}

.section-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

.section-cream { background: var(--cream-50); }
.section-stone { background: var(--cream-100); }

/* How it works */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.step {
  padding: 1.5rem 1.4rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 100%;
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--green-700);
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Services */

.services-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.service {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.service svg {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  color: var(--green-700);
  margin-top: 0.1rem;
}

.service h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

/* Promise */

.promise {
  background: var(--green-900);
  color: var(--cream-100);
  padding: 0;
}

.promise-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}

.promise-photo {
  margin: 0;
  background: var(--green-950);
}

.promise-photo img {
  width: 100%;
  height: 58vw;
  min-height: 16rem;
  max-height: 26rem;
  object-fit: cover;
  object-position: center 40%;
}

.promise-photo figcaption {
  font-size: 0.75rem;
  color: rgba(243, 238, 228, 0.7);
  padding: 0.7rem var(--pad) 1rem;
}

.promise-copy {
  padding: clamp(2.5rem, 6vw, 4.75rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promise-copy h2 {
  color: var(--cream-50);
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  max-width: 16ch;
}

.promise-copy p {
  margin-top: 1.15rem;
  color: rgba(243, 238, 228, 0.86);
  max-width: 34rem;
  font-size: 1.08rem;
}

@media (min-width: 900px) {
  .promise-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 32rem;
  }

  .promise-photo,
  .promise-photo img {
    height: 100%;
    min-height: 32rem;
    max-height: none;
  }

  .promise-photo img {
    height: 32rem;
  }

  .promise-copy {
    padding: 4.5rem 3.5rem 4.5rem 3rem;
  }

  .promise-photo figcaption {
    /* keep under the image in document flow; image is not absolute here */
  }
}

/* Area */

.area-photos {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 760px) {
  .area-photos {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

.area-photos figure {
  margin: 0;
}

.area-photos img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: 6px;
}

@media (min-width: 760px) {
  .area-photos img {
    height: 22rem;
  }
}

.towns-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.towns {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0;
}

.towns li {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.towns li:not(:last-child)::after {
  content: "·";
  margin: 0 0.7rem;
  color: var(--gold);
  font-weight: 600;
}

/* Contact */

.contact {
  background: var(--green-800);
  color: var(--cream-100);
}

.contact .section-inner {
  display: grid;
  gap: 2.75rem;
}

@media (min-width: 860px) {
  .contact .section-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 4rem;
    align-items: start;
  }
}

.contact h2 {
  color: var(--cream-50);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
}

.contact .intro {
  margin-top: 0.95rem;
  color: rgba(243, 238, 228, 0.88);
  max-width: 32rem;
}

.contact-methods {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-methods a {
  color: var(--cream-50);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}

.contact-methods a:hover,
.contact-methods a:focus-visible {
  text-decoration: underline;
}

.contact-methods span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.65);
  margin-bottom: 0.15rem;
}

/* Form */

.form {
  background: var(--cream-50);
  color: var(--ink);
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: 8px;
}

@media (min-width: 600px) {
  .form {
    padding: 1.85rem 1.75rem 1.9rem;
  }
}

.form h3 {
  font-size: 1.25rem;
  margin-bottom: 1.15rem;
}

.form-row {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.7rem 0.75rem;
  width: 100%;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 1px;
  border-color: var(--green-700);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn {
  margin-top: 0.5rem;
  width: 100%;
}

@media (min-width: 560px) {
  .form .btn { width: auto; }
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-note a {
  color: var(--green-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */

.site-footer {
  background: var(--green-950);
  color: rgba(243, 238, 228, 0.78);
  padding: 2.5rem var(--pad) 2.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--cream-50);
  margin-bottom: 0.4rem;
}

.footer-area {
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-meta a {
  color: var(--cream-100);
  text-decoration: none;
  font-weight: 500;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  text-decoration: underline;
}

.credits {
  border-top: 1px solid rgba(243, 238, 228, 0.12);
  padding-top: 1.15rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(243, 238, 228, 0.62);
  max-width: 54rem;
}

.credits a {
  color: rgba(243, 238, 228, 0.84);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Utilities */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .site-header,
  .hero-actions,
  .form,
  .header-cta {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
