@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #112c29;
  --muted: #435d57;
  --accent: #08765e;
  --accent-dark: #065e4b;
  --mint: #d8f4e9;
  --paper: #fff;
  --wash: #f0faf6;
  --line: #d7e8e1;
  --night: #102f2a;
  --radius: 1.5rem;
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 800; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #127d68; outline-offset: 4px; }

.wrap { width: min(100% - 4rem, 76rem); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  padding: .65rem 1rem;
  background: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--wash); border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 5.125rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  border-radius: .85rem;
  color: white;
  background: var(--accent);
}
.brand-mark .icon { width: 1.65rem; height: 1.65rem; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 1.22rem; letter-spacing: -.05em; }
.brand small { margin-top: .19rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3.25vw, 2.8rem); }
.site-nav a {
  display: grid;
  align-items: center;
  min-height: 2.75rem;
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }
.header-quote { justify-self: end; }
.menu-toggle { display: none !important; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  min-height: 3.15rem;
  padding: .75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.button-primary { color: white; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); box-shadow: 0 5px 16px #08654c22; }
.button-secondary { color: var(--ink); background: #ffffffa6; border-color: #bedbd0; }
.button-secondary:hover { background: white; border-color: var(--accent); }
.button:disabled { cursor: default; opacity: .6; }

.hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 81% 0%, #d7f0e8 0%, transparent 56%), var(--wash);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 5.5vw, 5rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .42rem;
  width: fit-content;
  color: var(--accent-dark);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .095em;
  line-height: 1.35;
  text-transform: uppercase;
}
.hero .eyebrow { padding: .55rem .85rem; border-radius: 2rem; background: #dbf3e9; }
.hero .eyebrow .icon { width: 1.05rem; height: 1.05rem; }
h1 {
  max-width: 10.6ch;
  margin-top: 1.35rem;
  font-size: clamp(3.2rem, 6.1vw, 6.05rem);
  letter-spacing: -.079em;
  line-height: 1;
}
h1 em { display: block; font-style: normal; color: var(--accent); }
.hero-copy { max-width: 32rem; margin-top: 1.45rem; color: var(--muted); font-size: clamp(1.03rem, 1.35vw, 1.19rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.hero-actions .button { min-height: 3.45rem; padding-inline: 1.35rem; }
.hero-visual { position: relative; }
.hero-visual img { aspect-ratio: 1.196; object-fit: cover; border-radius: var(--radius); box-shadow: 0 1rem 2.5rem #305c4b23; }
.hero-visual figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .62rem .9rem .62rem .7rem;
  border-radius: .82rem;
  background: #fff;
  box-shadow: 0 .3rem 1.2rem #112c2930;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.25;
}
.hero-visual figcaption .icon { width: 1.55rem; height: 1.55rem; color: var(--accent); }
.caption-sub { display: block; margin-top: .15rem; color: var(--muted); font-size: .75rem; font-weight: 650; }

.section { padding-block: clamp(3.3rem, 6.5vw, 6rem); }
.section-intro h2, .contact-details h2 {
  margin-top: .6rem;
  font-size: clamp(2.3rem, 4.4vw, 4.1rem);
  letter-spacing: -.068em;
  line-height: 1.06;
  text-wrap: balance;
}
.section-intro > p:last-child:not(.eyebrow) { margin-top: .9rem; color: var(--muted); }
.centered { max-width: 38rem; margin-inline: auto; text-align: center; }
.centered .eyebrow { margin-inline: auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 .6rem 1.7rem #123b2c0b;
}
.service-card > img { aspect-ratio: 1.7; object-fit: cover; }
.service-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.45rem; }
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: .76rem;
  color: var(--accent-dark);
  background: var(--mint);
}
.service-content h3 { margin-top: .85rem; font-size: 1.33rem; letter-spacing: -.04em; line-height: 1.25; }
.service-content p, .steps p { margin-top: .35rem; color: var(--muted); }
.service-content a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: auto;
  padding-top: .65rem;
  color: var(--accent-dark);
  font-size: .9rem;
  font-weight: 800;
  text-underline-offset: .24em;
}

.process-section { background: #ecf7f2; }
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.25rem, 6vw, 5.8rem);
}
.process-photo img { aspect-ratio: 1.28; object-fit: cover; border-radius: var(--radius); }
.steps { display: grid; gap: 1.1rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: .85rem; }
.steps h3 { font-size: 1.04rem; letter-spacing: -.025em; line-height: 1.4; }

.contact-section { background: var(--night); color: white; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: start;
  gap: clamp(2.1rem, 5vw, 5rem);
}
.contact-details { padding-top: 1rem; }
.contact-details .eyebrow { color: #a1efc8; }
.contact-details .section-intro > p:last-child { color: #c9e5d9; }
.contact-details h2 { text-wrap: wrap; }
.contact-details address { display: grid; gap: .85rem; margin-top: 1.75rem; font-style: normal; }
.contact-details address a {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: fit-content;
  max-width: 100%;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.contact-details address a:hover { text-decoration: underline; text-underline-offset: .22em; }
.contact-details :focus-visible { outline-color: #98efc3; }
.contact-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; border-radius: .7rem; color: #b9f4d5; background: #21483e; }

.quote-form {
  min-width: 0;
  padding: clamp(1.2rem, 3.5vw, 2.35rem);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}
.quote-form h3 { font-size: 1.65rem; letter-spacing: -.045em; line-height: 1.2; }
.quote-form > p { margin-top: .5rem; color: var(--muted); font-size: .94rem; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem; margin-block: 1.3rem; }
.form-fields label { display: block; min-width: 0; font-size: .875rem; font-weight: 800; }
.field-wide { grid-column: 1 / -1; }
.optional { font-weight: 600; color: var(--muted); }
.form-fields input, .form-fields textarea, .form-fields select, .chat-form input {
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  padding: .6rem .73rem;
  border: 1px solid #b9cdc4;
  border-radius: .52rem;
  background: #f9fcfa;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 550;
}
.form-fields input, .form-fields textarea, .form-fields select { display: block; margin-top: .3rem; }
.form-fields textarea { min-height: 6rem; resize: vertical; }
.form-fields select {
  appearance: none;
  padding-right: 2.05rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 1rem center, right .68rem center;
  background-size: .33rem .33rem;
  background-repeat: no-repeat;
}
.form-status:not(:empty) { margin-top: .9rem; padding: .7rem .9rem; border-radius: .55rem; background: var(--mint); color: var(--accent-dark); font-weight: 750; }

.site-footer { background: #f7fbf9; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .85rem 1.5rem; padding-block: 1.3rem; }
.footer-inner p { color: var(--muted); font-size: .9rem; }
body:has(.chat-widget:not([hidden])) .footer-inner { padding-bottom: 4.8rem; }

.icon-button { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: .6rem; color: inherit; background: transparent; }
.icon-button .icon { width: 1.25rem; height: 1.25rem; }
.icon-button:hover { background: var(--mint); }
.chat-widget { position: fixed; z-index: 5; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: grid; justify-items: end; gap: .65rem; pointer-events: none; }
.chat-toggle, .chat-panel { pointer-events: auto; }
.chat-toggle {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 3.1rem;
  padding: .55rem 1rem;
  border: 1px solid #ffffff50;
  border-radius: 2rem;
  background: var(--accent-dark);
  color: white;
  box-shadow: 0 .4rem 1.16rem #082e2760;
  font-size: .89rem;
  font-weight: 800;
}
.chat-toggle:hover { background: var(--night); }
.chat-panel {
  display: flex;
  flex-direction: column;
  width: min(23rem, calc(100vw - 2rem));
  max-height: calc(100vh - 5.5rem);
  max-height: calc(100dvh - 5.5rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 .9rem 2.8rem #082e2747;
}
.chat-header { display: flex; align-items: center; gap: .6rem; padding: .65rem .75rem; background: var(--wash); }
.chat-header .brand-mark { width: 2.35rem; height: 2.35rem; border-radius: .65rem; }
.chat-header h2 { font-size: 1rem; line-height: 1.2; }
.chat-header p { color: var(--muted); font-size: .8rem; }
.chat-close { margin-left: auto; flex: 0 0 auto; }
.chat-log { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; height: clamp(7rem, 35dvh, 16rem); min-height: 3rem; overflow: auto; padding: .82rem; overscroll-behavior: contain; }
.chat-log:focus-visible { outline-offset: -3px; }
.chat-message { max-width: 94%; padding: .55rem .72rem; border-radius: .8rem .8rem .8rem .25rem; background: var(--wash); color: var(--ink); overflow-wrap: anywhere; font-size: .91rem; }
.chat-message.visitor { align-self: flex-end; border-radius: .8rem .8rem .25rem .8rem; background: var(--accent-dark); color: white; }
.chat-message a { display: inline-block; margin-top: .25rem; color: var(--accent-dark); font-weight: 800; text-underline-offset: .2em; }
.chat-topics { display: flex; flex-wrap: wrap; gap: .3rem; padding: .15rem .75rem .55rem; }
.chat-topics button { min-height: 2.75rem; padding: .3rem .55rem; border: 1px solid #b7d7c9; border-radius: 1rem; background: white; color: var(--accent-dark); font-size: .81rem; font-weight: 800; }
.chat-topics button:hover { background: var(--mint); }
.chat-form { display: flex; gap: .45rem; padding: .6rem .75rem; border-top: 1px solid var(--line); }
.chat-form .icon-button { flex: 0 0 auto; background: var(--accent); color: white; }
.chat-form .icon-button:hover { background: var(--accent-dark); }

@media (max-width: 56rem) {
  .wrap { width: min(100% - 2.5rem, 76rem); }
  .header-inner { gap: 1rem; }
  .hero-grid { gap: 1.7rem; }
  .hero-actions .button { padding-inline: .95rem; }
  .service-content { padding: 1.05rem; }
  .services-grid { gap: .8rem; }
}

@media (max-width: 44rem) {
  .header-inner { position: relative; grid-template-columns: 1fr auto; min-height: 4.3rem; }
  .header-quote { display: none; }
  .menu-toggle:not([hidden]) { display: inline-grid !important; }
  .site-nav { grid-column: 1 / -1; gap: 0; justify-content: space-between; }
  .site-nav[data-collapsible] { position: absolute; z-index: 3; top: calc(100% - .2rem); right: 0; left: 0; display: grid; gap: .1rem; padding: .55rem; border: 1px solid var(--line); border-radius: .8rem; background: white; box-shadow: 0 .45rem 1.4rem #163c2920; }
  .site-nav[data-collapsible] a { padding-inline: .65rem; border-radius: .4rem; }
  .site-nav[data-collapsible] a:hover { background: var(--wash); }
  .hero-grid, .process-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 1.8rem; }
  h1 { max-width: 12ch; }
  .hero-visual img { aspect-ratio: 1.24; }
  .services-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.6rem; }
  .service-card > img { aspect-ratio: 2; }
  .service-content { padding: 1.2rem; }
  .process-photo { grid-row: 2; }
  .contact-details { padding-top: 0; }
}

@media (max-width: 28rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero .eyebrow { font-size: .78rem; }
  h1 { font-size: clamp(2.9rem, 11.4vw, 3.6rem); }
  .hero-actions { margin-top: 1.3rem; }
  .hero-actions .button { min-height: 3rem; font-size: .875rem; }
  .hero-visual figcaption { bottom: .65rem; left: .65rem; }
  .form-fields { grid-template-columns: minmax(0, 1fr); }
  .chat-toggle { width: 3.1rem; justify-content: center; padding: 0; }
  .chat-toggle .icon { width: 1.4rem; height: 1.4rem; }
  .chat-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

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