/* Service pages: scoped to service-specific markup and the shared site tokens. */

.svc-banner-inner,
.svc-process,
.svc-related,
.services-intro,
.services-card,
.services-quote-copy {
  overflow-wrap: anywhere;
}

.svc-banner {
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: var(--green);
  background-image:
    linear-gradient(90deg, rgba(5, 27, 12, 0.93) 0%, rgba(5, 27, 12, 0.84) 48%, rgba(5, 27, 12, 0.68) 100%),
    var(--banner-image, none);
  background-position: center;
  background-size: cover;
}

.svc-banner-inner {
  padding-top: 42px;
  padding-bottom: 42px;
}

.svc-breadcrumb {
  margin: 0 0 20px;
  color: #f0f4ef;
  font: 600 13px/1.5 var(--body);
  overflow-wrap: anywhere;
}

.svc-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.svc-banner .eyebrow {
  color: var(--gold);
  margin-bottom: 12px;
}

.svc-banner h1 {
  max-width: 900px;
  margin: 0 0 16px;
  color: #fff;
  font: 800 clamp(38px, 4.4vw, 60px)/1.1 var(--heading);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.svc-banner-summary {
  max-width: 710px;
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
}

.svc-banner-note {
  max-width: 710px;
  margin: 14px 0 0;
  color: #f2f5ee;
  font-size: 13px;
  line-height: 1.6;
}

/* The detail page pairs readable editorial content with a quote card. */
.svc-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  align-items: start;
  gap: clamp(44px, 6.5vw, 90px);
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

.svc-article,
.svc-quote,
.services-quote-copy {
  min-width: 0;
}

.svc-article {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.svc-article h2,
.svc-process h2,
.svc-related h2,
.services-intro h2,
.services-quote-copy h2 {
  color: var(--green);
  font: 800 clamp(29px, 3vw, 40px)/1.18 var(--heading);
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}

.svc-article h2:not(:first-child) {
  margin-top: 42px;
}

.svc-article h3 {
  color: var(--green);
  font: 800 21px/1.3 var(--heading);
  letter-spacing: -0.025em;
  margin: 32px 0 12px;
}

.svc-article p {
  margin: 0 0 18px;
}

.svc-article ul {
  margin: 0 0 24px;
  padding-left: 1.45em;
}

.svc-article li {
  padding-left: 4px;
  margin-bottom: 9px;
}

.svc-article li::marker {
  color: #806000;
}

.svc-article a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.svc-faq {
  margin-top: 48px;
}

.svc-faq details {
  border-top: 1px solid #d7e0d5;
}

.svc-faq details:last-child {
  border-bottom: 1px solid #d7e0d5;
}

.svc-faq summary {
  position: relative;
  padding: 18px 34px 18px 0;
  color: var(--green);
  font: 800 16px/1.5 var(--heading);
  cursor: pointer;
  list-style: none;
}

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

.svc-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 15px;
  color: var(--green);
  font: 500 24px/1.3 var(--body);
}

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

.svc-faq details > p:last-child {
  margin-bottom: 20px;
}

/* Form styling is shared by the detail and overview quote cards. */
.svc-quote-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  color: var(--ink);
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid #dfe7da;
  border-top: 4px solid var(--gold);
  box-shadow: 0 16px 50px rgba(14, 57, 26, 0.1);
}

.svc-quote-card h2.svc-quote-title {
  margin: 0 0 10px;
  color: var(--green);
  font: 800 clamp(25px, 2.3vw, 30px)/1.2 var(--heading);
  letter-spacing: -0.035em;
}

.svc-quote-intro {
  margin: 0 0 23px;
  color: #465a4c;
  font-size: 14px;
  line-height: 1.65;
}

.svc-form fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.svc-form legend {
  padding: 0;
  margin-bottom: 10px;
  color: var(--green);
  font: 700 14px/1.4 var(--heading);
}

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

.svc-form label {
  display: block;
  min-width: 0;
  margin-bottom: 16px;
  color: var(--green);
  font: 700 13px/1.45 var(--heading);
}

.svc-form-grid > label {
  margin-bottom: 0;
}

.svc-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.svc-form select,
.svc-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #aebdb0;
  border-radius: 2px;
  color: var(--ink);
  background-color: #fff;
  font: 400 16px/1.45 var(--body);
}

.svc-form textarea {
  min-height: 120px;
  resize: vertical;
}

.svc-form input::placeholder,
.svc-form textarea::placeholder {
  color: #5d6e61;
  opacity: 1;
}

.svc-form input:focus,
.svc-form select:focus,
.svc-form textarea:focus {
  border-color: var(--green);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.svc-form .honey {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.svc-form button.button {
  width: 100%;
  min-height: 54px;
  color: #132c19;
  background: var(--gold);
  font-size: 13px;
}

.svc-form button.button:hover {
  background: #ffcf50;
}

.svc-form button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.svc-form-status {
  margin: 12px 0 0;
  color: #465a4c;
  font-size: 13px;
  line-height: 1.5;
}

.svc-form-status:empty {
  margin: 0;
}

.svc-form-status.error {
  color: #9b2020;
}

.svc-form-status.success {
  color: #145b29;
}

/* Illustrative service imagery stays below the quote card in the right rail. */
.svc-gallery {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.svc-gallery h2 {
  margin: 0;
  color: var(--green);
  font: 800 22px/1.25 var(--heading);
  letter-spacing: -0.025em;
}

.svc-gallery-note {
  margin: -6px 0 2px;
  color: #526456;
  font: 400 13px/1.5 var(--body);
}

.svc-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #e3e9df;
}

.svc-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.svc-gallery figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(5, 27, 12, 0.85);
  font: 600 11px/1.3 var(--body);
}

/* Materials pages share the service layout, with a balanced comparison. */
.material-pros-cons,
.material-resource {
  margin-top: 48px;
}

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

.material-comparison > div {
  padding: 22px 24px 4px;
  background: #f6f8f3;
  border-top: 3px solid var(--gold);
}

.material-comparison h3 {
  margin-top: 0;
}

.material-resource {
  padding: 26px;
  border-left: 3px solid var(--gold);
  background: #f6f8f3;
}

.svc-article .material-pros-cons h2,
.svc-article .material-resource h2 {
  margin-top: 0;
}

.material-resource a span {
  font-weight: 400;
}

/* Process and related services. */
.svc-process {
  padding: clamp(64px, 7vw, 96px) 0;
}

.svc-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 28px;
  margin-top: 36px;
}

.svc-process-grid article {
  min-width: 0;
  padding: 25px 0 0;
  border-top: 2px solid var(--gold);
  overflow-wrap: anywhere;
}

.svc-process-grid article > span {
  display: inline-block;
  color: #6c5100;
  font: 800 13px/1.3 var(--heading);
  letter-spacing: 0.1em;
}

.svc-process-grid h3 {
  margin: 14px 0 10px;
  color: var(--green);
  font-size: 19px;
  letter-spacing: -0.025em;
}

.svc-process-grid p {
  margin: 0;
  color: #465a4c;
  font-size: 15px;
  line-height: 1.75;
}

.svc-related {
  padding: clamp(60px, 6.5vw, 86px) 0;
  background: #fff;
}

.svc-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.svc-related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 17px;
  border: 1px solid #c9d6c9;
  color: var(--green);
  background: var(--ivory);
  font: 700 14px/1.4 var(--heading);
  overflow-wrap: anywhere;
}

.svc-related-links a:hover {
  border-color: var(--green);
  background: #eaf0e7;
}

/* Services overview. */
.services-intro {
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: 36px;
}

.services-intro h2,
.services-intro p {
  max-width: 800px;
}

.services-intro p:not(.eyebrow) {
  color: #465a4c;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: clamp(64px, 7vw, 96px);
}

.services-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e8dc;
  box-shadow: 0 10px 32px rgba(14, 57, 26, 0.07);
}

.services-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e3e9df;
}

.services-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.services-card:hover .services-card-image img,
.services-card-image:focus-visible img {
  transform: scale(1.04);
}

.services-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}

.services-card-body h2 {
  margin: 0 0 12px;
  color: var(--green);
  font: 800 21px/1.3 var(--heading);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.services-card-body p {
  margin: 0 0 20px;
  color: #465a4c;
  font-size: 15px;
  line-height: 1.7;
}

.services-card-link {
  margin-top: auto;
  padding: 6px 0;
  border-bottom: 2px solid var(--gold);
  color: var(--green);
  font: 800 14px/1.4 var(--heading);
}

.services-card-link:hover {
  border-color: var(--green);
}

.services-quote-section {
  padding: clamp(64px, 7vw, 96px) 0;
  color: #fff;
  background: var(--green);
}

.services-quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.services-quote-copy h2 {
  color: #fff;
}

.services-quote-copy .eyebrow {
  color: var(--gold);
}

.services-quote-copy p:not(.eyebrow) {
  max-width: 570px;
  margin: 0 0 20px;
  color: #f0f4ef;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.services-quote-copy a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* High-visibility keyboard focus on both light and dark surfaces. */
.svc-main-grid a:focus-visible,
.svc-main-grid button:focus-visible,
.svc-faq summary:focus-visible,
.svc-related a:focus-visible,
.services-intro a:focus-visible,
.services-grid a:focus-visible,
.services-quote-grid .svc-quote-card a:focus-visible,
.services-quote-grid .svc-quote-card button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.services-grid a.services-card-image:focus-visible {
  outline-color: #fff;
  outline-offset: -4px;
}

.services-grid a.services-card-image:focus-visible::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid var(--green);
  pointer-events: none;
}

.svc-banner a:focus-visible,
.services-quote-copy a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .svc-main-grid,
  .services-quote-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

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

@media (max-width: 640px) {
  .svc-banner {
    min-height: 320px;
    background-image:
      linear-gradient(90deg, rgba(5, 27, 12, 0.93) 0%, rgba(5, 27, 12, 0.84) 48%, rgba(5, 27, 12, 0.68) 100%),
      var(--banner-image-small, var(--banner-image, none));
  }

  .svc-banner-inner {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .svc-banner h1 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .svc-banner-summary {
    font-size: 16px;
  }

  .svc-main-grid,
  .services-quote-grid {
    gap: 32px;
  }

  .svc-article {
    font-size: 15px;
  }

  .svc-form-grid,
  .material-comparison,
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid {
    gap: 18px;
  }

  .svc-faq {
    margin-top: 36px;
  }

  .services-card-body {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-card-image img {
    transition: none;
  }

  .services-card:hover .services-card-image img,
  .services-card-image:focus-visible img {
    transform: none;
  }
}
