:root {
  --v2-border: rgba(14, 43, 32, 0.2);
  --v2-soft: #eef1e8;
  --v2-error: #9b2c2c;
}


.hero {
  background-image: url("assets/maple-estate-hero-desktop.webp?v=20260729a");
}

html {
  scroll-padding-top: 96px;
}

.hero-content {
  max-width: 850px;
}

.quick-facts > div:last-child span {
  max-width: 240px;
}

.service-helper {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

#service-count {
  color: var(--sage);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

button.service-card {
  position: relative;
  width: 100%;
  min-height: 220px;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.service-card:focus-visible {
  outline: 3px solid #bb8a35;
  outline-offset: 4px;
}

.service-check {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.service-check::before {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(14, 43, 32, 0.35);
  border-radius: 50%;
  content: "";
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.service-card[aria-pressed="true"] .service-check {
  color: var(--cream);
}

.service-card[aria-pressed="true"] .service-check::before {
  border-color: var(--cream);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='%23f5f1e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

.service-card[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
  transform: translateY(-2px);
}

.service-card[aria-pressed="true"] p,
.service-card[aria-pressed="true"] .service-number {
  color: rgba(245, 241, 232, 0.78);
}

.service-area {
  gap: 46px;
}

.area-copy p:last-child {
  max-width: 600px;
  margin-top: 20px;
  color: rgba(245, 241, 232, 0.72);
  line-height: 1.65;
}

.area-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.quote-section {
  scroll-margin-top: 96px;
}

.quote-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.quote-form fieldset.quote-form-fields {
  display: contents;
}

.service-options legend {
  width: 100%;
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 700;
}

.service-options legend span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.service-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quote-form .service-option-grid label {
  display: flex;
  min-height: 58px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--v2-border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.quote-form .service-option-grid label:has(input:checked) {
  border-color: var(--forest);
  background: var(--v2-soft);
}

.quote-form .service-option-grid input,
.quote-form .consent input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--forest);
}

.field-error {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--v2-error);
  font-size: 0.82rem;
  font-weight: 600;
}

.photo-upload {
  padding: 18px;
  border: 1px dashed rgba(14, 43, 32, 0.34);
  border-radius: 5px;
  background: rgba(238, 241, 232, 0.58);
}

.photo-upload > label {
  margin-bottom: 5px;
}

.photo-upload > p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.quote-form .photo-upload input[type="file"] {
  min-height: 52px;
  padding: 9px;
  background: var(--cream);
}

.quote-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 3px;
  background: var(--forest);
  color: var(--cream);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.photo-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.photo-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.quote-form .consent {
  align-items: flex-start;
}

.quote-form .consent a {
  color: inherit;
  text-underline-offset: 3px;
}

.form-status[data-state="success"] {
  color: #215d3e;
}

.form-status[data-state="error"] {
  color: var(--v2-error);
}

.faq-section {
  scroll-margin-top: 96px;
}

@media (max-width: 980px) {
  .area-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    background-image: url("assets/maple-estate-hero-mobile.webp?v=20260729a");
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero {
    min-height: 610px;
  }

  .hero h1 {
    font-size: 2.72rem;
    line-height: 1.03;
  }

  .service-helper {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  #service-count {
    white-space: normal;
  }

  button.service-card {
    min-height: 154px;
    padding: 20px;
  }

  .service-check {
    top: 17px;
    right: 18px;
  }

  .service-card h3 {
    max-width: calc(100% - 42px);
    font-size: 1.15rem;
  }

  .service-check {
    width: 22px;
    overflow: hidden;
    color: transparent;
  }

  .service-card p {
    font-size: 0.88rem;
  }

  .process-list li {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .service-area {
    gap: 30px;
  }

  .area-list,
  .service-option-grid {
    grid-template-columns: 1fr;
  }

  .area-list {
    gap: 8px;
  }

  .area-list li {
    min-height: 44px;
  }

  .quote-form,
  .availability {
    padding: 26px 20px;
  }

  .quote-form .service-option-grid label {
    min-height: 54px;
  }

  .faq-list summary {
    min-height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card::after,
  .service-check,
  .service-check::before,
  .service-option-grid label {
    transition: none !important;
    transform: none !important;
  }
}


/* V2 mobile journey compaction */
.quote-form .service-option-grid label {
  margin: 0;
}

@media (max-width: 640px) {
  .section-heading {
    gap: 18px;
    margin-bottom: 26px;
  }

  .service-number {
    margin-bottom: 20px;
  }

  button.service-card {
    min-height: 142px;
  }

  .process-section .section-heading > p {
    display: none;
  }

  .process-section .section-heading {
    margin-bottom: 18px;
  }

  .process-list li {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .process-list h3 {
    font-size: 1.25rem;
  }

  .process-list p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .process-cta {
    align-items: center;
    flex-direction: row;
    padding: 18px;
  }

  .process-cta p {
    font-size: 1.1rem;
  }

  .process-cta .button {
    padding-right: 15px;
    padding-left: 15px;
    white-space: nowrap;
  }

  .area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-list li {
    display: flex;
    align-items: center;
    padding: 10px 6px;
    font-size: 0.88rem;
  }

  .service-option-grid {
    grid-template-columns: 1fr;
  }

  .quote-form .service-option-grid label {
    min-height: 70px;
    padding: 10px;
    font-size: 0.78rem;
  }

  .quote-form label {
    margin-bottom: 14px;
  }

  .photo-upload {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .service-option-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 350px) {
  .process-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .area-list,
  .service-option-grid {
    grid-template-columns: 1fr;
  }

  .quote-form .service-option-grid label {
    min-height: 52px;
  }
}
