:root {
  --forest: #123c2f;
  --leaf: #2f6f44;
  --moss: #7f9d58;
  --earth: #6a4932;
  --bark: #2c231c;
  --stone: #757b72;
  --cream: #f7f2e8;
  --white: #fffdf8;
  --gold: #d8a642;
  --shadow: 0 18px 45px rgba(18, 60, 47, 0.13);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--bark);
  background: var(--cream);
  line-height: 1.6;
}

body.has-prototype-notice {
  padding-bottom: 98px;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--forest);
  color: var(--white);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(18, 60, 47, 0.1);
}

.topbar {
  background: var(--forest);
  color: var(--cream);
  font-size: 0.86rem;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--leaf));
  color: var(--cream);
  box-shadow: 0 10px 25px rgba(18, 60, 47, 0.18);
}

.brand small {
  display: block;
  margin-top: -4px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--earth);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 60, 47, 0.18);
  border-radius: 50%;
  background: var(--white);
  color: var(--forest);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 800;
  font-size: 0.92rem;
}

.nav-menu a {
  color: var(--forest);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--leaf);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.secondary {
  background: var(--white);
  color: var(--forest);
  border-color: rgba(18, 60, 47, 0.2);
}

.btn.gold {
  background: var(--gold);
  color: #241809;
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--forest);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 34, 27, 0.88), rgba(10, 34, 27, 0.48), rgba(10, 34, 27, 0.2)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero .section-inner {
  position: relative;
  padding: 110px 0 72px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  color: var(--forest);
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.hero p,
.page-hero p {
  max-width: 710px;
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255, 253, 248, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-card {
  max-width: 780px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.stat {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(255, 253, 248, 0.18);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--white);
}

.stat span {
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.9rem;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--white);
}

.section.dark {
  background: var(--forest);
  color: var(--cream);
}

.section.dark h2,
.section.dark h3 {
  color: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 34px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p {
  margin: 0;
  color: var(--stone);
}

.section.dark .section-heading p {
  color: rgba(247, 242, 232, 0.76);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 60, 47, 0.08);
  overflow: hidden;
}

.card.pad {
  padding: 26px;
}

.service-card img,
.feature-card img,
.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-card .card-body,
.feature-card .card-body,
.gallery-card .card-body {
  padding: 24px;
}

.service-card h3,
.feature-card h3,
.gallery-card h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.service-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.service-list li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: center;
}

.split-image {
  position: relative;
}

.split-image img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.split-panel {
  padding: 34px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(18, 60, 47, 0.1);
}

.steps {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.step-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-weight: 900;
}

.testimonial {
  position: relative;
  padding: 28px;
}

.testimonial p {
  margin-top: 0;
}

.testimonial strong {
  color: var(--forest);
}

.quote-mark {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
}

.cta-band {
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--forest), #1d5c44);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--forest);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 34, 27, 0.88), rgba(10, 34, 27, 0.42)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.page-hero .section-inner {
  position: relative;
  padding: 96px 0 62px;
}

.notice-card {
  border-left: 5px solid var(--gold);
  background: #fff8e7;
  padding: 18px;
  border-radius: 14px;
  color: #4c3a20;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-btn {
  border: 1px solid rgba(18, 60, 47, 0.18);
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  padding: 9px 14px;
  font-weight: 900;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--forest);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.contact-item {
  padding: 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(18, 60, 47, 0.08);
}

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

.field {
  display: grid;
  gap: 7px;
}

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

label {
  font-weight: 900;
  color: var(--forest);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(18, 60, 47, 0.16);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: var(--white);
  color: var(--bark);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.site-footer {
  background: #161d19;
  color: rgba(247, 242, 232, 0.78);
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 0.6fr));
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 242, 232, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.leaf-fab {
  position: fixed;
  right: 24px;
  bottom: 124px;
  z-index: 70;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leaf), var(--forest));
  color: var(--white);
  box-shadow: 0 18px 36px rgba(18, 60, 47, 0.28);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.leaf-fab:hover {
  transform: translateY(-4px) rotate(-4deg);
  box-shadow: 0 22px 44px rgba(18, 60, 47, 0.34);
}

.leaf-fab svg {
  width: 34px;
  height: 34px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(14, 24, 19, 0.72);
}

.modal-backdrop.open {
  display: grid;
}

.estimate-modal {
  width: min(680px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  animation: modalIn 190ms ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 26px 28px 18px;
  border-bottom: 1px solid rgba(18, 60, 47, 0.1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.modal-header h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.modal-header p {
  margin: 8px 0 0;
  color: var(--stone);
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(18, 60, 47, 0.16);
  border-radius: 50%;
  background: var(--white);
  color: var(--forest);
  cursor: pointer;
  font-size: 1.4rem;
}

.progress-wrap {
  padding: 18px 28px 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  color: var(--forest);
  font-size: 0.88rem;
}

.progress-bar {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 60, 47, 0.12);
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: var(--leaf);
  transition: width 180ms ease;
}

.estimate-step {
  display: none;
  padding: 24px 28px 6px;
}

.estimate-step.active {
  display: block;
}

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

.choice {
  position: relative;
}

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

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  min-height: 54px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(18, 60, 47, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: var(--cream);
  font-weight: 900;
  color: var(--forest);
  cursor: pointer;
}

.choice input:checked + span {
  border-color: var(--leaf);
  background: rgba(47, 111, 68, 0.1);
  box-shadow: inset 0 0 0 1px var(--leaf);
}

.modal-actions {
  padding: 18px 28px 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.error-message {
  display: none;
  margin: 14px 28px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f1;
  color: #8b1e1e;
  font-weight: 800;
}

.success-box {
  display: none;
  padding: 28px;
}

.success-box.active {
  display: block;
}

.prototype-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  background: #ffffff;
  color: #242424;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.1);
}

.prototype-notice__inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 10px 0;
  display: grid;
  gap: 3px;
}

.prototype-notice__label {
  font-weight: 900;
  color: #123c2f;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.prototype-notice__body {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

@media (max-width: 1020px) {
  .grid.four,
  .grid.three,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body.has-prototype-notice {
    padding-bottom: 68px;
  }

  .topbar {
    display: none;
  }

  .nav-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 74px;
    display: none;
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.open {
    display: flex;
  }

  .hero {
    min-height: 620px;
  }

  .hero-stats,
  .grid.three,
  .grid.four,
  .footer-grid,
  .form-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .cta-band {
    padding: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .leaf-fab {
    width: 58px;
    height: 58px;
    right: 16px;
    bottom: 84px;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .estimate-modal {
    max-height: 92vh;
    border-radius: 18px;
  }

  .modal-header,
  .estimate-step,
  .modal-actions,
  .progress-wrap,
  .success-box {
    padding-left: 18px;
    padding-right: 18px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .prototype-notice__inner {
    width: min(100% - 18px, 980px);
    padding: 6px 0;
  }

  .prototype-notice__label {
    font-size: 0.55rem;
  }

  .prototype-notice__body {
    font-size: 0.56rem;
    line-height: 1.22;
  }
}
