:root {
  --black: #080d0b;
  --dark: #122019;
  --green: #a7e632;
  --cyan: #24c7dc;
  --gold: #eec565;
  --paper: #f5f7f1;
  --text: #17231c;
  --muted: #626e64;
  --line: #d9e1d4;
}

/* BASE */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.7 Arial, Helvetica, sans-serif;
}

body.dialog-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}

.container {
  width: min(1180px, 88%);
  margin: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px;
  background: var(--green);
  color: var(--black);
}

.skip-link:focus {
  top: 10px;
}

/* HEADER */

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 6%;
  background: var(--green);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.topbar-message {
  letter-spacing: 0.2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 4px max(6%, calc((100% - 1180px) / 2));
  border-bottom: 1px solid #ffffff20;
  background: #000;
  color: white;
}

.logo {
  position: relative;
  display: block;
  flex: 0 0 180px;
  width: 180px;
  height: 108px;
  overflow: hidden;
  background: #000;
}

.logo img {
  position: absolute;
  top: -46px;
  left: -10px;
  width: 200px;
  height: auto;
  max-width: none;
}

#main-nav {
  display: flex;
  gap: 25px;
  margin-left: auto;
  font-size: 13px;
}

#main-nav a:hover {
  color: var(--green);
}

.header-phone {
  color: var(--gold);
  font-size: 13px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

/* BUTTONS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 52px;
  padding: 15px 23px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--green);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  transition: background 0.2s, transform 0.2s;
}

.button:hover {
  background: #c0f268;
  transform: translateY(-2px);
}

.header-quote {
  min-height: 44px;
  padding: 12px 17px;
  font-size: 12px;
}

.button-outline {
  border-color: #9bb5a0;
  background: transparent;
  color: white;
}

.button-outline:hover {
  background: #ffffff12;
}

.help-text-button {
  min-height: 54px;
  border-color: #91bb4d;
  background: #b4e84f;
  color: #172710;
  font-size: 15px;
}

.help-text-button:hover {
  background: #a4d83e;
}

/* HERO */

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--dark);
  color: white;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #06140eed 0%,
      #06140eb8 42%,
      #06140e21 75%,
      #06140e0f 100%
    ),
    linear-gradient(0deg, #06140e52, transparent 65%);
}

.hero-content {
  position: relative;
  padding: 72px 0 95px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #4b682a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 1.6px;
}

.hero .eyebrow,
.contact-section .eyebrow {
  color: var(--cyan);
}

.hero .eyebrow {
  margin-bottom: 14px;
}

.recognition-tag {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 1px solid #eec56599;
  border-radius: 4px;
  background: #0005;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(45px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -3.5px;
}

h1 span {
  color: var(--green);
}

.hero-description {
  max-width: 485px;
  color: #e0e8dc;
  font-size: 17px;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 36px;
  color: #e0e8dc;
  font-size: 11px;
}

.hero-highlights span::before {
  content: "✓";
  margin-right: 8px;
  color: var(--cyan);
}

.hero-caption {
  position: absolute;
  right: 6%;
  bottom: 35px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1px;
  text-shadow: 0 1px 5px #000c;
}

.hero-caption span {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: 12px;
  letter-spacing: 0;
}

.intro-strip {
  padding: 25px 0;
  border-top: 4px solid var(--green);
  border-bottom: 1px solid #d6e3cf;
  background: #eaf2e3;
  color: #1c2d21;
}

.intro-strip .container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 15px;
}

.intro-strip p {
  margin: 0;
  color: #445746;
}

/* SHARED SECTIONS */

.section {
  padding: 68px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.1vw, 52px);
  line-height: 1.13;
  letter-spacing: -2px;
}

.section-heading > p {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.text-link {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}

/* SERVICES */

.services-section {
  padding: 74px 0 80px;
  background: #f7f9f4;
  color: #172b1e;
}

.services-section .section-heading {
  margin-bottom: 36px;
}

.services-section .eyebrow {
  color: #0c6873;
  font-size: 12px;
  letter-spacing: 1.5px;
}

.muted-heading {
  color: #4c6746;
}

.services-section .section-heading > p {
  max-width: 390px;
  color: #465647;
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d4dfce;
  border-radius: 16px;
  background: white;
  color: #172b1e;
  box-shadow: 0 5px 20px #1b30190b;
}

.service-card.featured {
  border-color: #91b75b;
  box-shadow:
    inset 0 4px var(--green),
    0 6px 22px #182f180d;
}

.service-media {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  height: 195px;
  overflow: hidden;
  background: #e8f1e2;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.service-card:hover .service-media img {
  transform: scale(1.025);
}

.fascia-photo img {
  object-position: center 65%;
}

.media-label {
  position: absolute;
  bottom: 14px;
  left: 16px;
  padding: 7px 10px;
  border-radius: 5px;
  background: #fffffff5;
  color: #25412d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.6px;
}

.service-illustration {
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, #edf5e7, #e2eed9);
  color: #47751c;
}

.service-illustration svg {
  width: min(100%, 300px);
  height: 150px;
}

.service-illustration.drainage {
  background: linear-gradient(135deg, #edf9f8, #dcefed);
  color: #0c7882;
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.service-number {
  margin-bottom: 16px;
  color: #0b6570;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: #172b1e;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

.service-card p {
  color: #425245;
  font-size: 16px;
  line-height: 1.8;
}

.service-points {
  margin: 0 0 26px;
  padding: 0;
  color: #334c37;
  font-size: 14px;
  line-height: 1.7;
  list-style: none;
}

.service-points li {
  margin-bottom: 9px;
}

.service-points li::before {
  content: "✓";
  margin-right: 8px;
  color: #47751c;
  font-weight: 700;
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  padding: 14px 16px;
  border: 1px solid #91bb4d;
  border-radius: 8px;
  background: #b4e84f;
  color: #172710;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.service-cta:hover {
  border-color: #73992f;
  background: #a4d83e;
  color: #12210b;
}

.service-cta span {
  font-size: 19px;
}

.service-help {
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
  border-color: #ccddbf;
  background: #eef5e7;
}

.service-help h3 {
  font-size: 31px;
  line-height: 1.15;
}

.service-help .button {
  margin-top: 12px;
}

.service-help .text-link {
  margin-top: 22px;
  color: #314f21;
  font-size: 15px;
}

.service-help small {
  margin-top: 26px;
  color: #42573e;
  font-size: 13px;
  line-height: 1.8;
}

.services-note {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 23px;
  border-top: 1px solid #d4dfce;
}

.services-note > span {
  color: #3d611f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.services-note p {
  margin: 0;
  color: #465647;
  font-size: 15px;
  line-height: 1.8;
}

/* PROJECT GALLERY */

.projects-section {
  background: #edf3e7;
}

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.project {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--dark);
  text-align: left;
}

.project-large {
  grid-row: span 2;
}

.project img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-large img {
  height: 470px;
}

.project:hover img {
  transform: scale(1.035);
}

.project > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 25px 20px;
  background: linear-gradient(transparent, #06140edd);
  color: white;
  font-size: 13px;
}

.project b {
  float: right;
  color: var(--green);
  font-size: 11px;
}

/* PROJECTS FROM THE DASHBOARD */

.gallery.managed-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.managed-project {
  padding: 0;
  overflow: hidden;
  border: 1px solid #d5e0cb;
  border-radius: 14px;
  background: white;
  color: #203729;
  text-align: left;
}

.managed-project > img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.managed-project-copy {
  padding: 24px;
}

.managed-service {
  color: #126e79;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.managed-project h3 {
  margin: 12px 0 8px;
  font-size: 23px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.managed-project p {
  color: #65745d;
  font-size: 14px;
}

.managed-view {
  display: block;
  padding-top: 14px;
  border-top: 1px solid #e1e8d9;
  color: #456b28;
  font-size: 13px;
  font-weight: 700;
}

.managed-project:hover {
  border-color: #8fae65;
  box-shadow: 0 8px 24px #18331512;
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px solid #d5e0cb;
  border-radius: 12px;
  background: white;
  color: #53664c;
}

/* ABOUT AND STEPS */

.about-section {
  border-bottom: 1px solid #dbe6d2;
  background: #fcfdf9;
  color: #203729;
}

.about-section .eyebrow {
  color: #126e79;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
}

.about-copy {
  max-width: 460px;
  margin-top: 25px;
  color: #52644d;
  font-size: 16px;
  line-height: 1.8;
}

.about-section .actions {
  align-items: center;
}

.about-section .text-link {
  color: #2c654b;
}

.steps {
  display: grid;
  gap: 16px;
}

.steps article {
  display: flex;
  gap: 25px;
  padding: 24px;
  border: 1px solid #dae5d0;
  border-radius: 12px;
  background: white;
}

.steps article > span {
  display: inline-grid;
  flex: 0 0 34px;
  place-items: center;
  height: 34px;
  border-radius: 50%;
  background: #eaf3df;
  color: #537b30;
  font-size: 12px;
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.steps p {
  max-width: 350px;
  margin: 0;
  color: #5c6e54;
  font-size: 15px;
}

/* SERVICE AREAS */

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.area-panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--text);
}

.area-panel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  line-height: 1.4;
}

.state-code {
  display: inline-block;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 5px;
  background: var(--green);
  color: var(--black);
  font-size: 12px;
  letter-spacing: 1px;
}

.connecticut .state-code {
  background: var(--cyan);
}

.rhode-island .state-code {
  background: var(--gold);
}

.town-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.town-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.connecticut .town-list {
  grid-template-columns: 1fr;
}

.area-panel > p {
  margin-top: 25px;
  color: #52644d;
  font-size: 15px;
  line-height: 1.8;
}

.area-panel .text-link {
  color: #265d44;
}

.area-check {
  margin: 24px 0 0;
  padding: 18px 22px;
  border: 1px solid #d9e4cf;
  border-radius: 10px;
  background: #eaf2e1;
  color: #465d3d;
  font-size: 15px;
  text-align: center;
}

.area-check a {
  color: #245d47;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* FAQ */

.faq-section {
  padding-top: 8px;
}

.faq {
  max-width: 850px;
}

.faq h2 {
  margin-bottom: 32px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq details {
  overflow: hidden;
  border: 1px solid #d6e1ce;
  border-radius: 12px;
  background: white;
}

.faq summary {
  position: relative;
  padding: 21px 58px 21px 23px;
  cursor: pointer;
  list-style: none;
  color: #203729;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 23px;
  transform: translateY(-50%);
  color: #50782d;
  font-size: 25px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details[open] summary {
  border-bottom: 1px solid #e5ecdf;
  background: #f8fbf4;
}

.faq details p {
  margin: 0;
  padding: 20px 23px;
  color: #52644d;
  font-size: 15px;
  line-height: 1.8;
}

/* CONTACT */

.contact-section {
  background: var(--dark);
  color: white;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
  gap: 60px;
}

.contact-copy {
  margin-top: 25px;
  color: #c7d4c3;
  font-size: 16px;
}

.big-phone {
  display: inline-block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.contact-links {
  display: grid;
  gap: 16px;
  margin-top: 35px;
  font-size: 14px;
}

.contact-links a {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quote-card {
  min-width: 0;
  padding: 34px;
  border: 1px solid #d6e1cb;
  border-top: 4px solid var(--cyan);
  border-radius: 15px;
  background: white;
  color: #203729;
  box-shadow: 0 12px 32px #0002;
}

.contact-section .quote-card .eyebrow {
  color: #126e79;
}

.quote-card h3 {
  margin-bottom: 18px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.quote-card > p:not(.eyebrow) {
  color: #52644d;
  font-size: 16px;
  line-height: 1.8;
}

.quote-card > .button {
  width: 100%;
  border-color: #91bb4d;
  background: #b4e84f;
  font-size: 15px;
}

.quote-card > .button:hover {
  background: #a4d83e;
}

.quote-checklist {
  margin-top: 25px;
  padding: 20px;
  border: 1px solid #dee7d5;
  border-radius: 10px;
  background: #f3f8ec;
  color: #2b432f;
  font-size: 14px;
}

.quote-checklist ul {
  margin-bottom: 0;
  padding-left: 20px;
  color: #52644d;
}

.quote-checklist li {
  margin-top: 7px;
}

.quote-card .quote-note {
  margin: 20px 0 0;
  font-size: 13px !important;
}

/* FOOTER */

footer {
  padding: 32px 0;
  background: #000;
  color: #b9c8b5;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 35px;
}

.footer-info {
  flex: 1;
  min-width: 0;
}

.footer-info p {
  margin: 0 0 6px;
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 23px;
  margin-top: 16px;
  color: #e1eadb;
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--green);
}

.copyright {
  font-size: 11px;
  white-space: nowrap;
}

.mobile-contact {
  display: none;
}

/* SHARED DIALOGS */

dialog {
  max-width: 92vw;
  max-height: 90vh;
  padding: 0;
  border: 1px solid #39503b;
  background: var(--dark);
  color: white;
}

dialog::backdrop {
  background: #000e;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: black;
  font-size: 26px;
}

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

/* ESTIMATE DIALOG */

#estimate-dialog {
  width: min(760px, 94vw);
  max-height: 90vh;
  border: 1px solid #d2dfcb;
  border-radius: 18px;
  background: white;
  color: #1d3223;
  box-shadow: 0 24px 100px #0005;
}

#estimate-dialog::backdrop {
  background: #08130ca8;
}

.estimate-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 32px 25px;
  border-bottom: 1px solid #dce7d5;
  background: #eff6e9;
}

.estimate-top > div {
  flex: 1;
  min-width: 0;
}

.estimate-top .eyebrow {
  margin-bottom: 10px;
  color: #126672;
  font-size: 11px;
  letter-spacing: 1.4px;
}

.estimate-top h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(25px, 3vw, 33px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.estimate-top > div > p:last-child {
  margin: 12px 0 0;
  color: #486047;
  font-size: 14px;
  line-height: 1.6;
}

#estimate-dialog .dialog-close {
  position: static;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c4d4b9;
  background: white;
  color: #263e2a;
  font-size: 27px;
  line-height: 1;
}

#estimate-dialog .dialog-close:hover {
  background: #e0edcf;
}

.estimate-content {
  padding: 24px 32px 30px;
}

.preview-notice {
  margin: 0 0 28px;
  padding: 13px 16px;
  border: 1px solid #d4e4dc;
  border-radius: 8px;
  background: #f0f7f5;
  color: #40574c;
  font-size: 12px;
  line-height: 1.7;
}

.preview-notice strong {
  display: block;
  color: #205d64;
  font-size: 12px;
}

.form-section {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid #e1e8dc;
}

.form-section legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0;
  color: #253b2a;
  font-size: 18px;
  font-weight: 700;
}

.form-step {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #e9f2dd;
  color: #456a27;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.section-help {
  margin: 0 0 19px;
  color: #64725f;
  font-size: 13px;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 20px;
}

.form-grid label {
  display: block;
  min-width: 0;
  color: #2d432f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.full {
  grid-column: 1 / -1;
}

.required-mark {
  color: #61794c;
}

.optional-label {
  margin-left: 6px;
  color: #697861;
  font-size: 11px;
  font-weight: 400;
}

#estimate-dialog input,
#estimate-dialog select,
#estimate-dialog textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #bacab1;
  border-radius: 7px;
  background: #fcfdfa;
  color: #203425;
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
}

#estimate-dialog input::placeholder,
#estimate-dialog textarea::placeholder {
  color: #74816d;
  opacity: 1;
}

#estimate-dialog input:focus,
#estimate-dialog select:focus,
#estimate-dialog textarea:focus {
  outline: 2px solid #168798;
  outline-offset: 2px;
  background: white;
}

#estimate-dialog textarea {
  min-height: 125px;
  resize: vertical;
}

.field-hint {
  display: block;
  margin-top: 8px;
  color: #687660;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.estimate-form-footer {
  text-align: center;
}

.estimate-form-footer > p:first-child {
  margin-bottom: 16px;
  color: #536647;
  font-size: 13px;
}

.estimate-form-footer > p:first-child > span:first-child {
  color: #4d7828;
}

.footer-dot {
  margin: 0 7px;
}

#estimate-dialog .button {
  font-size: 15px;
}

#estimate-dialog .review-button {
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  border: 1px solid #90b741;
  font-size: 16px;
}

.estimate-form-footer .form-note {
  margin: 13px 0 0;
  color: #61715a;
  font-size: 12px;
  line-height: 1.6;
}

.request-review .eyebrow {
  color: #0b6570;
  font-size: 12px;
}

.request-review h3 {
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.review-intro {
  color: #53664b;
  font-size: 14px;
}

#review-details {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #dce5d4;
  border-radius: 9px;
  background: #fafcf7;
}

#review-details dt {
  margin-top: 16px;
  color: #60764f;
  font-size: 12px;
  font-weight: 700;
}

#review-details dt:first-child {
  margin-top: 0;
}

#review-details dd {
  margin: 4px 0 0;
  color: #233b28;
  font-size: 15px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.review-call {
  margin-top: 22px;
  color: #56694e;
  font-size: 14px;
}

.review-call a {
  color: #225e64;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#request-status {
  margin: 18px 0 0;
  color: #48613c;
  font-size: 13px;
}

#request-status:empty {
  display: none;
}

/* PROJECT VIEWER */

#project-dialog {
  width: min(1000px, 94vw);
  max-height: 92vh;
  border: 1px solid #d4dfca;
  border-radius: 16px;
  background: white;
  color: #203729;
}

#project-dialog::backdrop {
  background: #09180ddd;
}

.project-dialog-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid #d5e1ca;
  background: #f0f6e9;
}

.project-dialog-top .eyebrow {
  margin: 0 0 9px;
  color: #126e79;
}

.project-dialog-top h2 {
  font-size: 30px;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}

#project-dialog-town {
  margin: 9px 0 0;
  color: #607354;
  font-size: 14px;
}

#project-dialog .dialog-close {
  position: static;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #c3d3b6;
  background: white;
  color: #203729;
}

.project-dialog-content {
  padding: 25px 28px 30px;
}

#project-dialog-description {
  color: #52644a;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#project-viewer-image {
  width: 100%;
  height: min(56vh, 580px);
  border-radius: 9px;
  background: #f3f5ef;
  object-fit: contain;
}

.project-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
}

.project-viewer-controls .button {
  min-height: 44px;
  padding: 12px 18px;
  font-size: 13px;
}

.project-viewer-controls button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

#project-photo-counter {
  color: #607354;
  font-size: 14px;
}

#project-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}

#project-thumbnails button {
  flex: 0 0 90px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: none;
}

#project-thumbnails button[aria-pressed="true"] {
  border-color: #7eaa37;
}

#project-thumbnails img {
  width: 80px;
  height: 65px;
  border-radius: 3px;
  object-fit: cover;
}

/* TABLET */

@media (max-width: 1100px) {
  .header-phone {
    display: none;
  }

  .site-header {
    gap: 20px;
  }

  #main-nav {
    gap: 20px;
  }

  .contact-layout,
  .split {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .service-grid,
  .area-grid,
  .gallery.managed-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rhode-island {
    grid-column: 1 / -1;
  }

  .footer-content {
    flex-wrap: wrap;
  }

  .copyright {
    margin-left: 215px;
  }
}

@media (max-width: 800px) {
  .header-quote {
    display: none;
  }

  .site-header {
    justify-content: space-between;
  }

  .section-heading {
    gap: 30px;
  }
}

/* MOBILE */

@media (max-width: 650px) {
  html {
    scroll-padding-top: 110px;
  }

  .topbar {
    justify-content: center;
    padding: 10px 4%;
    font-size: 9px;
    letter-spacing: 0.6px;
    text-align: center;
  }

  .topbar-message {
    display: none;
  }

  .logo {
    flex-basis: 145px;
    width: 145px;
    height: 88px;
  }

  .logo img {
    top: -36px;
    left: -9px;
    width: 162px;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 0;
    padding: 4px 6%;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ffffff40;
    border-radius: 4px;
    background: transparent;
    color: var(--green);
    font-size: 13px;
  }

  #main-nav {
    display: none;
    flex: 0 0 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px 0;
  }

  #main-nav.is-open {
    display: flex;
  }

  #main-nav a {
    padding: 12px 0;
    border-top: 1px solid #ffffff20;
  }

  .hero {
    min-height: 630px;
  }

  .hero-photo {
    object-position: 65% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, #06140ef0, #06140ea8);
  }

  .hero-content {
    padding: 55px 0 100px;
  }

  h1 {
    font-size: clamp(40px, 9.5vw, 56px);
    letter-spacing: -2px;
  }

  .recognition-tag {
    font-size: 11px;
  }

  .hero-description {
    max-width: 350px;
    font-size: 16px;
  }

  .hero-highlights {
    display: grid;
    gap: 9px;
    margin-top: 28px;
  }

  .hero-caption {
    bottom: 25px;
  }

  .button {
    padding: 14px 18px;
    font-size: 13px;
  }

  .intro-strip .container {
    display: block;
  }

  .intro-strip p {
    margin-top: 10px;
  }

  .section,
  .services-section {
    padding: 48px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-heading > p {
    margin-top: 22px;
  }

  h2 {
    font-size: 38px;
    letter-spacing: -1.6px;
  }

  .service-grid,
  .gallery,
  .split,
  .area-grid,
  .contact-layout,
  .form-grid,
  .gallery.managed-gallery {
    grid-template-columns: 1fr;
  }

  .service-grid {
    gap: 22px;
  }

  .service-media {
    height: 205px;
  }

  .service-body {
    padding: 25px;
  }

  .service-card h3 {
    font-size: 25px;
  }

  .service-help {
    padding: 27px;
  }

  .service-help h3 {
    font-size: 29px;
  }

  .service-help .help-text-button {
    width: 100%;
  }

  .services-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .project-large {
    grid-row: auto;
  }

  .project img {
    height: 270px;
  }

  .project-large img {
    height: 350px;
  }

  .project > span {
    padding: 35px 18px 18px;
    font-size: 12px;
  }

  .project b {
    float: none;
    display: block;
    margin-top: 6px;
  }

  .steps article {
    gap: 17px;
    padding: 22px;
  }

  .area-panel {
    padding: 25px;
  }

  .area-panel h3 {
    font-size: 19px;
  }

  .rhode-island {
    grid-column: auto;
  }

  .town-list li {
    font-size: 14px;
  }

  .area-check {
    text-align: left;
    font-size: 14px;
  }

  .faq-section {
    padding-top: 8px;
  }

  .faq summary {
    padding: 19px 50px 19px 19px;
    font-size: 15px;
  }

  .faq details p {
    padding: 18px 19px;
  }

  .faq summary::after {
    right: 19px;
  }

  .quote-card {
    padding: 25px;
  }

  .quote-card h3 {
    font-size: 29px;
  }

  .big-phone {
    font-size: 26px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-nav {
    gap: 12px 20px;
  }

  .copyright {
    margin-left: 0;
  }

  footer {
    padding-bottom: 110px;
  }

  .mobile-contact {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -3px 18px #0003;
  }

  .mobile-contact a {
    padding: 18px 8px;
    background: var(--green);
    color: var(--black);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
  }

  .mobile-contact a:first-child {
    background: var(--black);
    color: var(--cyan);
  }

  #estimate-dialog {
    width: 95vw;
    max-height: 92vh;
    border-radius: 13px;
  }

  .estimate-top {
    gap: 12px;
    padding: 22px 20px 19px;
  }

  .estimate-top h2 {
    font-size: 25px;
  }

  .estimate-top .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .estimate-top > div > p:last-child {
    font-size: 13px;
  }

  #estimate-dialog .dialog-close {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .estimate-content {
    padding: 20px;
  }

  .form-grid {
    gap: 18px;
  }

  .full {
    grid-column: auto;
  }

  .form-section legend {
    font-size: 17px;
  }

  .project-dialog-top {
    padding: 20px;
  }

  .project-dialog-top h2 {
    font-size: 23px;
  }

  .project-dialog-content {
    padding: 20px;
  }

  #project-viewer-image {
    height: 40vh;
  }

  .project-viewer-controls .button {
    padding: 11px 13px;
  }

  .managed-project > img {
    height: 250px;
  }
}

/* REDUCED MOTION */

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

  * {
    transition: none !important;
  }

  .service-card:hover .service-media img,
  .project:hover img {
    transform: none;
  }
}