/* WDO Pro — design system */
:root {
  --color-navy: #1e3a5f;
  --color-navy-dark: #152a45;
  --color-teal: #2d6a6a;
  --color-teal-hover: #245656;
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-text: #2c3338;
  --color-text-muted: #5c6670;
  --color-border: #e2e0db;
  --font-sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
  --shadow-md: 0 4px 20px rgba(30, 58, 95, 0.1);
  --radius: 10px;
  --header-height: 72px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-teal-hover);
}

h1,
h2,
h3 {
  color: var(--color-navy);
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-navy);
  transition: transform 0.2s, opacity 0.2s;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.main-nav a:hover {
  color: var(--color-teal);
}

.main-nav a.btn-primary {
  color: #fff;
}

.main-nav a.btn-primary:hover {
  color: #fff;
  background: var(--color-teal-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-teal-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-navy-dark);
}

.hero-carousel-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.55);
}

.hero-carousel-dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-carousel-dots button.is-active {
  background: #fff;
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide {
    transition: none;
  }
}

/* Trust strip */
.trust-strip {
  padding: 1.25rem 0;
  background: var(--color-navy);
  color: #fff;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.trust-strip span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-strip .divider {
  width: 1px;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.35);
}

.trust-bbb a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.trust-bbb a:hover {
  background: #f8f7f4;
}

.trust-bbb img {
  height: 40px;
  width: auto;
  display: block;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--color-teal);
}

.service-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9875rem;
}

/* About / inspector */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.credentials {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.credentials li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-teal);
  border-radius: 50%;
}

.bbb-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.bbb-block a {
  display: inline-block;
}

.bbb-block img {
  height: 61px;
  width: auto;
}

/* FAQ */
.faq-list {
  max-width: 40rem;
  margin: 0 auto;
}

.faq-list details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-list summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-teal);
}

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

.faq-list details p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9875rem;
}

/* Service area */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.area-tags span {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--color-text);
}

.area-counties {
  text-align: center;
  color: var(--color-text-muted);
  font-weight: 500;
  margin: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: var(--color-navy);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-info h3 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.contact-info dl {
  margin: 0;
}

.contact-info dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-top: 1rem;
}

.contact-info dt:first-of-type {
  margin-top: 0;
}

.contact-info dd {
  margin: 0.25rem 0 0;
  font-size: 1.0625rem;
}

.contact-info a {
  color: #fff;
  text-decoration: underline;
}

.contact-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.form-intro {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.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;
}

.form-section {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.form-section-primary {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.form-section-primary:last-of-type {
  margin-bottom: 1rem;
}

.form-optional {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--color-bg);
}

.form-optional summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 0.65rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
}

.form-optional-label {
  min-width: 0;
  line-height: 1.35;
}

.form-optional summary::-webkit-details-marker {
  display: none;
}

.form-optional summary::after {
  content: "+";
  justify-self: end;
  width: 1.25rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-teal);
}

.form-optional[open] summary::after {
  content: "−";
}

.form-optional[open] summary {
  padding-bottom: 1.1rem;
}

.form-optional-body {
  padding: 1.35rem 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.optional-badge {
  justify-self: end;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.form-note-compact {
  margin-bottom: 0.75rem;
}

.form-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  padding: 0;
  margin: 0 0 0.75rem;
}

.optional-label {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.form-required-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.required {
  color: var(--color-teal);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-row .field {
  margin-bottom: 1.25rem;
}

.field-row-3 {
  grid-template-columns: 1fr auto auto;
  align-items: end;
}

.field-grow {
  min-width: 0;
}

.field-state {
  width: 7.5rem;
}

.field-zip {
  width: 7.5rem;
}

.input-readonly {
  background: #eef1f4;
  color: var(--color-text-muted);
  cursor: default;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--color-navy);
}

.contact-form .field {
  margin-bottom: 0.9rem;
}

.contact-form .field-last {
  margin-bottom: 0;
}

.contact-form .form-optional-body .field-row .field {
  margin-bottom: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
}

.contact-form select {
  appearance: none;
  padding-right: 2.25rem;
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
  cursor: pointer;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
  border-color: var(--color-teal);
}

.contact-form .field-invalid input,
.contact-form .field-invalid select,
.contact-form .field-invalid textarea {
  border-color: #c53030;
}

.contact-form .field-invalid input:focus,
.contact-form .field-invalid select:focus,
.contact-form .field-invalid textarea:focus {
  outline-color: #c53030;
  border-color: #c53030;
}

.field-error {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #b42318;
}

.field-error.is-visible {
  display: block;
}

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

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  display: none;
}

.form-message.visible {
  display: block;
}

.form-message.success {
  background: #e8f4f0;
  color: #1a4d3e;
  border: 1px solid #b8ddd0;
}

.form-message.error {
  background: #fce8e8;
  color: #6b1a1a;
  border: 1px solid #e8b8b8;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .field-row,
  .field-row-3 {
    grid-template-columns: 1fr;
  }

  .field-state,
  .field-zip {
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    order: -1;
  }

  .about-photo {
    max-width: 280px;
    margin-inline: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .site-header.nav-open .main-nav {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a,
  .main-nav .btn-nav {
    display: block;
    padding: 0.85rem 0.5rem;
    text-align: left;
  }

  .trust-strip .divider {
    display: none;
  }

  .trust-strip-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
