:root {
  color-scheme: light;
  --green-950: #0b2118;
  --green-900: #10291f;
  --green-800: #173d2d;
  --green-700: #20543c;
  --green-500: #4f8f55;
  --leaf: #82b756;
  --gold: #e7b957;
  --gold-soft: #fff1cf;
  --ink: #18201c;
  --muted: #4d5b52;
  --line: #d9e1da;
  --paper: #eef2eb;
  --surface: #fbfcf8;
  --surface-soft: #f3f6ef;
  --heading: #10291f;
  --white: #fff;
  --shadow-sm: 0 10px 30px rgb(16 41 31 / 10%);
  --shadow-lg: 0 22px 60px rgb(16 41 31 / 16%);
  --radius-sm: 8px;
  --radius-lg: 14px;
  --content: min(1120px, calc(100% - 40px));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --green-700: #91c393;
  --green-500: #9bd08e;
  --leaf: #a4cf79;
  --gold: #f0c66d;
  --gold-soft: #3a301b;
  --ink: #edf5ee;
  --muted: #b8c4bb;
  --line: #304238;
  --paper: #101713;
  --surface: #18231d;
  --surface-soft: #142019;
  --heading: #f1f8ef;
  --shadow-sm: 0 10px 30px rgb(0 0 0 / 22%);
  --shadow-lg: 0 22px 60px rgb(0 0 0 / 36%);
}

/* Foundation */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgb(130 183 86 / 12%), transparent 34rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

button,
summary {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--green-950);
  background: var(--gold);
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.section,
.section-inner,
.gallery-section,
.contact-section {
  width: var(--content);
  margin-inline: auto;
}

.section,
.section-inner,
.gallery-section {
  padding: 96px 0;
}

.section h2,
.section-inner h2,
.gallery-section h2,
.contact-section h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.section-band {
  width: 100%;
  border-block: 1px solid var(--line);
}

.services-section {
  margin-top: 64px;
  background: var(--surface);
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header and navigation */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: var(--content);
  margin: 16px auto 0;
  padding: 10px 12px;
  color: var(--white);
  background: rgb(16 41 31 / 82%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgb(255 255 255 / 8%) inset;
  backdrop-filter: blur(16px);
  transition:
    margin 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  margin-top: 8px;
  background: rgb(16 41 31 / 96%);
  box-shadow: var(--shadow-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  padding: 3px;
  overflow: hidden;
  background: var(--white);
  border-radius: 7px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.brand small {
  color: rgb(255 255 255 / 82%);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 750;
}

.site-nav a {
  padding: 10px;
  color: rgb(255 255 255 / 86%);
  border-radius: 7px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgb(255 255 255 / 12%);
}

.mobile-theme-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 12px;
  color: rgb(255 255 255 / 86%);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
}

.mobile-theme-toggle:hover,
.mobile-theme-toggle:focus-visible {
  color: var(--white);
  background: rgb(255 255 255 / 12%);
}

.mobile-theme-toggle .theme-icon {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.header-estimate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--green-950);
  background: var(--gold);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-estimate:hover,
.header-estimate:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgb(0 0 0 / 22%);
}

.header-estimate-short {
  display: none;
}

.nav-contact {
  color: var(--white) !important;
  background: rgb(255 255 255 / 13%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%);
}

.theme-toggle,
.nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: rgb(255 255 255 / 11%);
  border: 1px solid rgb(255 255 255 / 21%);
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.theme-toggle:hover,
.nav-toggle:hover {
  transform: translateY(-1px);
  background: rgb(255 255 255 / 18%);
  border-color: rgb(255 255 255 / 34%);
}

.theme-icon {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset -8px -8px 0 rgb(16 41 31 / 0%);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

:root[data-theme="dark"] .theme-icon {
  background: var(--white);
  box-shadow: inset -8px -8px 0 var(--green-900);
  transform: rotate(-16deg);
}

.nav-toggle {
  display: none;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.nav-open .nav-toggle span:nth-of-type(2) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-of-type(3) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-of-type(4) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero and at-a-glance business details */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(880px, 94vh);
  overflow: hidden;
  color: var(--white);
  background: var(--green-950);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/garden-walkway-after.webp");
  background-position: center calc(50% + var(--hero-shift, 0px));
  background-size: cover;
  filter: saturate(0.9) contrast(1.02);
  transform: scale(1.015);
  transition: background-position 120ms linear;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgb(11 33 24 / 96%) 0%, rgb(11 33 24 / 82%) 43%, rgb(11 33 24 / 26%) 100%),
    linear-gradient(0deg, rgb(11 33 24 / 82%) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--content);
  margin: 0 auto;
  padding: 164px 0 112px;
}

.hero .eyebrow,
.contact-panel .eyebrow {
  color: var(--gold);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgb(255 255 255 / 92%);
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(0 0 0 / 22%);
}

.button-primary {
  color: var(--green-950);
  background: var(--gold);
}

.button-secondary {
  color: var(--white);
  border-color: rgb(255 255 255 / 48%);
  background: rgb(255 255 255 / 8%);
}

.quick-facts {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: var(--content);
  margin: -48px auto 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.quick-facts > div {
  min-width: 0;
  padding: 23px;
  background: var(--surface);
}

.quick-facts > div + div {
  border-left: 1px solid var(--line);
}

.quick-facts span,
.contact-methods span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-facts strong,
.contact-methods strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.4;
}

.trust-ribbon {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  width: min(900px, calc(100% - 56px));
  margin: 30px auto 0;
  padding: 14px 36px;
  color: var(--green-950);
  background: var(--gold);
  box-shadow: 0 12px 30px rgb(16 41 31 / 14%);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

.trust-ribbon span + span::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 18px 2px 0;
  background: var(--green-700);
  border-radius: 50%;
  content: "";
}

/* Services */

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 58px;
  align-items: end;
}

.section-intro > p,
.section-copy,
.section-lead,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 38px 0 0;
}

.service-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgb(79 143 85 / 42%);
  box-shadow: var(--shadow-lg);
}

.service-card > img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition:
    transform 500ms cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 500ms ease;
}

.service-card:hover > img,
figure:hover img {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.025);
}

.service-card-body {
  padding: 26px;
}

.service-card h3,
.step h3 {
  margin: 14px 0 8px;
  color: var(--heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.service-card p,
.service-card li,
.step p,
figcaption,
.faq-list p {
  color: var(--muted);
}

.service-card p {
  margin: 0;
}

.service-card .service-fit {
  color: var(--muted);
  line-height: 1.65;
}

.service-fit strong {
  color: var(--heading);
}

.service-card ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px 18px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.service-note {
  margin-top: 20px !important;
  padding: 14px 16px;
  background: var(--surface-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.98rem;
}

.extra-help {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  margin-top: 30px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.extra-help > img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center 58%;
}

.extra-help-body {
  padding: clamp(30px, 4vw, 48px);
}

.extra-help h3 {
  margin: 15px 0 12px;
  color: var(--heading);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.extra-help-body > p {
  margin: 0;
  color: var(--muted);
}

.extra-help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 30px;
  margin: 25px 0;
  padding-left: 21px;
  color: var(--text);
}

.extra-help-list li::marker {
  color: var(--green-500);
}

.extra-help .extra-help-note {
  padding: 14px 16px;
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.extra-help .button {
  margin-top: 24px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-live {
  color: #10291f;
  background: #c9e7a5;
}

.status-limited {
  color: #463106;
  background: #ffe1a3;
}

:root[data-theme="dark"] .status-live {
  background: #a4d884;
}

:root[data-theme="dark"] .status-limited {
  color: #241800;
  background: #e6bc62;
}

/* Portfolio */

.gallery-section {
  padding-top: 112px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.section-lead {
  max-width: 720px;
  margin-top: 18px;
}

figure {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.gallery-grid > figure {
  grid-column: 1 / -1;
}

figure:hover {
  transform: translateY(-5px);
  border-color: rgb(79 143 85 / 40%);
  box-shadow: var(--shadow-lg);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--green-950);
}

.photo-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition:
    transform 500ms cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 500ms ease;
}

.gallery-grid > figure:not(.gallery-pair) .photo-frame img {
  height: 560px;
}

.gallery-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-pair-item + .gallery-pair-item {
  border-left: 1px solid var(--line);
}

.photo-label {
  position: absolute;
  top: 16px;
  z-index: 2;
  padding: 7px 11px;
  color: var(--white);
  background: rgb(11 33 24 / 82%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 18%);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.photo-label-before {
  left: 16px;
}

.photo-label-after {
  right: 16px;
}

figcaption {
  padding: 18px 20px 21px;
  font-size: 0.96rem;
}

figcaption strong {
  display: block;
  margin-bottom: 3px;
  color: var(--heading);
  font-size: 1.08rem;
}

/* Practical guidance and common questions */

.guidance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 64px;
  align-items: start;
}

.section-copy {
  margin-top: 22px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 30px;
}

.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: rgb(79 143 85 / 38%);
  box-shadow: var(--shadow-sm);
}

.step > span {
  color: var(--green-500);
  font-weight: 900;
}

.step p {
  margin: 0;
}

.faq-block h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

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

.faq-list details {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq-list details[open] {
  border-color: rgb(79 143 85 / 42%);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  position: relative;
  padding: 21px 56px 21px 21px;
  color: var(--heading);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--green-500);
  font-size: 1.5rem;
  font-weight: 500;
  transform: translateY(-50%);
}

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

.faq-list p {
  margin: -4px 20px 20px;
}

/* Contact and footer */

.contact-section {
  padding: 16px 0 96px;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 50px;
  overflow: hidden;
  padding: 46px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgb(16 41 31 / 99%), rgb(32 84 60 / 96%)),
    var(--green-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 46%, rgb(226 179 86 / 14%) 50%, transparent 57%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 4%) 0 1px, transparent 1px 78px);
  content: "";
  pointer-events: none;
}

.contact-panel > * {
  position: relative;
}

.contact-panel h2 {
  color: var(--white);
}

.contact-panel p {
  margin-top: 18px;
  color: rgb(255 255 255 / 90%);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-methods > a,
.contact-methods > div {
  min-width: 0;
  padding: 17px 18px;
  color: var(--white);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.contact-methods > a:hover,
.contact-methods > a:focus-visible {
  transform: translateX(4px);
  background: rgb(255 255 255 / 16%);
  border-color: rgb(255 255 255 / 30%);
}

.contact-methods span {
  color: rgb(255 255 255 / 80%);
}

.contact-method-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.contact-method-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  color: var(--green-950);
  background: var(--gold);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.contact-method-actions a:hover,
.contact-method-actions a:focus-visible {
  background: var(--gold-dark);
}

.contact-methods .sr-only {
  position: absolute;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) auto;
  align-items: start;
  gap: 28px;
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-identity,
.footer-contact,
.footer-meta {
  display: grid;
  gap: 4px;
}

.footer-identity strong {
  color: var(--heading);
  font-size: 1.08rem;
}

.footer-identity span,
.footer-contact span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.footer-contact-spacer {
  margin-top: 8px;
}

.footer-phone-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green-700);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta {
  justify-items: end;
  text-align: right;
}

/* Branded not-found page */

.error-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.error-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: var(--content);
  margin: 16px auto 0;
  padding: 10px 12px;
  color: var(--white);
  background: var(--green-950);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.not-found {
  display: grid;
  flex: 1;
  align-items: center;
  width: var(--content);
  margin-inline: auto;
  padding: 72px 0;
}

.not-found-card {
  position: relative;
  max-width: 880px;
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgb(130 183 86 / 12%), transparent 58%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.not-found-card::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  background: var(--green-700);
  border-radius: 50%;
  content: "";
  opacity: 0.12;
}

.not-found h1 {
  max-width: 760px;
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.not-found-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.not-found .button-secondary {
  color: var(--green-700);
  background: transparent;
  border-color: var(--green-700);
}

.not-found .button-secondary:hover,
.not-found .button-secondary:focus-visible {
  background: rgb(79 143 85 / 10%);
}

.error-footer .footer-meta {
  grid-column: auto;
}

/* Responsive layout */

@media (max-width: 960px) {
  .brand small {
    display: none;
  }

  .site-nav a {
    padding-inline: 8px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card > img {
    height: 280px;
  }

  .gallery-grid > figure:not(.gallery-pair) .photo-frame img {
    height: 480px;
  }
}

@media (max-width: 860px) {
  :root {
    --content: min(100% - 28px, 1120px);
  }

  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .theme-toggle {
    display: none;
  }

  .mobile-theme-toggle {
    display: flex;
  }

  .error-header .theme-toggle {
    display: block;
  }

  .header-estimate-long {
    display: none;
  }

  .header-estimate-short {
    display: inline;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 7px;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgb(255 255 255 / 15%);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: 820px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgb(11 33 24 / 96%) 0%, rgb(11 33 24 / 82%) 62%, rgb(11 33 24 / 50%) 100%),
      linear-gradient(0deg, rgb(11 33 24 / 86%) 0%, transparent 50%);
  }

  .hero-content {
    padding-bottom: 86px;
  }

  .quick-facts,
    .section-intro,
    .service-grid,
    .extra-help,
    .gallery-grid,
  .gallery-pair-grid,
  .guidance-layout,
  .contact-methods,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .extra-help > img {
    height: 340px;
    min-height: 0;
  }

  .gallery-pair-item + .gallery-pair-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .quick-facts > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-intro,
  .guidance-layout,
  .contact-panel {
    gap: 34px;
  }

  .section,
  .section-inner,
  .gallery-section {
    padding-block: 76px;
  }

  .gallery-section {
    padding-top: 92px;
  }

  figure:first-child,
  figure:last-child {
    grid-column: auto;
  }

  .photo-frame img,
  figure:first-child .photo-frame img,
  figure:last-child .photo-frame img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .contact-section {
    padding-bottom: 76px;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .extra-help-list {
    grid-template-columns: 1fr;
  }

  .extra-help > img {
    height: 260px;
  }

  .site-header {
    margin-top: 9px;
    gap: 8px;
    padding: 7px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    max-width: 118px;
    font-size: 1.02rem;
    line-height: 1.05;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-estimate {
    min-height: 42px;
    padding-inline: 9px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 780px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-content {
    padding-bottom: 78px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .quick-facts {
    margin-top: -34px;
  }

  .trust-ribbon {
    flex-direction: column;
    gap: 5px;
    width: calc(100% - 40px);
    padding: 13px 26px;
  }

  .trust-ribbon span + span::before {
    display: none;
  }

  .quick-facts > div,
  .service-card-body,
  .step,
  .contact-panel {
    padding: 21px;
  }

  .service-card > img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .service-card ul,
  .steps {
    grid-template-columns: 1fr;
  }

  .photo-label {
    top: 10px;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .photo-label-before {
    left: 10px;
  }

  .photo-label-after {
    right: 10px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .not-found {
    padding-block: 48px;
  }

  .not-found-card {
    padding: 30px 22px;
  }

  .not-found-actions,
  .not-found-actions .button {
    width: 100%;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
