/*
  Deployment-only fixes that sit after the generated Next CSS.
  Keep this file small: it exists for static package hardening, not redesign.
*/

:root {
  --drysky-anchor-offset: 20rem;
}

[id] {
  scroll-margin-top: var(--drysky-anchor-offset);
}

section[id].scroll-mt-32,
section[id].scroll-mt-24,
section[id].scroll-mt-20 {
  scroll-margin-top: var(--drysky-anchor-offset) !important;
}

.trust-proof-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: .18em;
}

.trust-proof-link:hover {
  color: #90c832;
}

.trust-logo-link {
  display: inline-flex;
  line-height: 0;
}

.trust-logo-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid #90c832;
  outline-offset: 4px;
}

.trust-homeadvisor-button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(3, 18, 77, .14);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(3, 18, 77, .08);
  display: inline-flex;
  height: 5.75rem;
  justify-content: center;
  padding: .45rem .65rem;
  text-decoration: none;
  width: 8.5rem;
}

.trust-homeadvisor-logo {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.trust-homeadvisor-button:hover {
  border-color: #90c832;
  box-shadow: 0 10px 26px rgba(3, 18, 77, .14);
}

.trust-homeadvisor-button:focus-visible {
  outline: 3px solid #90c832;
  outline-offset: 4px;
}

.drysky-faq-list {
  display: grid;
  gap: 1rem;
}

.drysky-faq-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.drysky-faq-item:hover,
.drysky-faq-item[open] {
  border-color: #90c832;
}

.drysky-faq-item[open] {
  box-shadow: 0 12px 30px rgba(3, 18, 77, .08);
}

.drysky-faq-item summary {
  align-items: center;
  color: #03124d;
  cursor: pointer;
  display: flex;
  font-size: 1.125rem;
  font-weight: 700;
  gap: 1rem;
  justify-content: space-between;
  line-height: 1.45;
  list-style: none;
  padding: 1.25rem 1.5rem;
}

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

.drysky-faq-icon {
  align-items: center;
  background: #90c832;
  border-radius: 999px;
  color: #03124d;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 800;
  height: 1.75rem;
  justify-content: center;
  line-height: 1;
  transition: transform .2s ease;
  width: 1.75rem;
}

.drysky-faq-item[open] .drysky-faq-icon {
  transform: rotate(45deg);
}

.drysky-faq-answer {
  color: #374151;
  font-size: 1rem;
  line-height: 1.7;
  padding: 0 1.5rem 1.25rem;
}

.drysky-faq-answer p {
  margin: 0;
}

.thank-you-page {
  background: #f5f8fb;
  color: #253047;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.thank-you-shell {
  min-height: 100vh;
}

.thank-you-hero {
  background:
    linear-gradient(135deg, rgba(3, 18, 77, .94), rgba(3, 18, 77, .78)),
    url("/media/roof-replacement/replace-with-first-pic-that-is-just-roof-top-7472e993.fast.webp") center/cover;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.thank-you-card {
  background: #fff;
  border: 1px solid rgba(216, 222, 232, .95);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
  margin: 0 auto;
  max-width: 760px;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.thank-you-logo {
  display: block;
  height: auto;
  margin-bottom: 2rem;
  width: 190px;
}

.thank-you-kicker {
  color: #5faa3b;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 .65rem;
  text-transform: uppercase;
}

.thank-you-card h1 {
  color: #03124d;
  font-size: clamp(2.35rem, 7vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0 0 1rem;
}

.thank-you-summary {
  color: #4b5565;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0;
}

.thank-you-detail-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.thank-you-detail {
  background: #f7f9fc;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 1rem;
}

.thank-you-detail span {
  color: #5faa3b;
  display: block;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.thank-you-detail strong {
  color: #03124d;
  display: block;
  font-size: 1rem;
  line-height: 1.45;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.thank-you-button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: .75rem 1.1rem;
  text-decoration: none;
}

.thank-you-button.primary {
  background: #5faa3b;
  color: #fff;
}

.thank-you-button.secondary {
  border: 1px solid #d8dee8;
  color: #03124d;
}

.thank-you-note {
  border-top: 1px solid #d8dee8;
  color: #657083;
  font-size: .95rem;
  line-height: 1.6;
  margin: 2rem 0 0;
  padding-top: 1.2rem;
}

@media (max-width: 767px) {
  :root {
    --drysky-anchor-offset: 18rem;
  }

  section[data-homepage-badges="true"] {
    padding-bottom: 2.25rem !important;
    padding-top: 2.5rem !important;
  }

  section[data-homepage-badges="true"] .mb-16 {
    margin-bottom: 1.5rem !important;
  }

  section[data-homepage-badges="true"] .mt-12 {
    margin-top: 1.25rem !important;
  }

  section[data-homepage-badges="true"] .mx-8 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }

  section[data-homepage-services="true"] {
    padding-top: 2.5rem !important;
  }

  .drysky-faq-item summary {
    font-size: 1rem;
    padding: 1rem;
  }

  .drysky-faq-answer {
    padding: 0 1rem 1rem;
  }

  .thank-you-hero {
    padding: 1rem;
  }

  .thank-you-card {
    padding: 1.35rem;
  }

  .thank-you-logo {
    margin-bottom: 1.5rem;
    width: 160px;
  }

  .thank-you-detail-grid {
    grid-template-columns: 1fr;
  }

  .thank-you-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thank-you-button.primary {
    grid-column: 1 / -1;
  }
}
