:root {
  --primary: #072C5C;
  --secondary: #E99F03;
  --text: #1a1a1a;
  --muted: #666;
  --border: #ddd;
  --bg: #fafaf8;
  --error: #b3261e;
  --error-bg: #fdecea;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--primary);
  color: #fff;
  padding: 34px 0;
  position: relative;
}
.site-header .header-stack,
.site-header .header-row-compact {
  text-align: center;
}
.site-header .header-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.site-header .logo-icon-corner {
  position: absolute;
  top: 0;
  left: 0;
  height: 170px;
  width: auto;
}
.site-header .wordmark {
  margin: 0;
  font-size: 84px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.site-header .wordmark .help {
  color: var(--secondary);
}
/* Below ~480px the 84px wordmark leaves no room for the absolutely
 * positioned corner icon and the two visually collide — switch to a
 * smaller, stacked (icon above text) layout instead. */
@media (max-width: 480px) {
  .site-header {
    padding: 20px 0;
  }
  .site-header .logo-icon-corner {
    position: static;
    display: block;
    height: 56px;
    margin: 0 auto 8px;
  }
  .site-header .wordmark {
    font-size: 36px;
  }
}
.site-header .tagline {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  opacity: 1;
}

.lang-tabs {
  display: flex;
  gap: 6px;
  padding: 3px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}
.lang-tab {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.85;
}
.lang-tab:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}
.lang-tab.active {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  opacity: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.lang-tabs-below {
  justify-content: center;
  margin: 0 0 28px;
  padding: 0;
  background: none;
}
.lang-tabs-below .lang-tab {
  color: var(--muted);
  background: #fff;
  border: 1.5px solid var(--border);
  opacity: 1;
}
.lang-tabs-below .lang-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}
.lang-tabs-below .lang-tab.active {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: none;
}

main.wrap {
  padding: 32px 20px 60px;
}

h1 {
  font-size: 26px;
  margin-bottom: 6px;
  text-align: center;
}

.legal-content {
  max-width: 720px;
  line-height: 1.6;
}
.legal-content h1 {
  text-align: left;
}
.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin-top: 0;
}
.legal-content h2 {
  font-size: 18px;
  margin: 28px 0 8px;
}
main.wrap > h2 {
  font-size: 19px;
  margin: 28px 0 12px;
}
.legal-content p, .legal-content ul {
  margin: 0 0 14px;
}
.legal-content ul {
  padding-left: 22px;
}
.legal-content li {
  margin-bottom: 6px;
}

.lede {
  color: var(--muted);
  margin-bottom: 24px;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-weight: 600;
  font-size: 14px;
  margin-top: 14px;
}

label .hint {
  font-weight: 400;
  color: var(--muted);
}

label.is-required::after {
  content: " *";
  color: var(--error);
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  margin-top: 18px;
}
.checkbox-label input {
  margin-top: 3px;
}

button[type="submit"] {
  margin-top: 24px;
  padding: 14px 20px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
button[type="submit"]:hover { filter: brightness(1.08); }
button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

.privacy-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* Multi-step wizard — all JS-created; with no JS none of this markup
 * exists and .form-step divs just render as normal stacked sections. */
.wizard-progress-wrap {
  margin: 0 0 20px;
}
.wizard-progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.wizard-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.25s ease;
}
.wizard-step-label {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
form.wizard-active .form-step {
  display: none;
}
form.wizard-active .form-step.wizard-step-active {
  display: block;
}
.wizard-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.wizard-step-nav:has(.wizard-next):not(:has(.wizard-back)) {
  justify-content: flex-end;
}
.wizard-next {
  padding: 14px 20px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.wizard-next:hover {
  filter: brightness(1.08);
}
.wizard-back {
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.wizard-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}
/* The real submit button sits inside the last .form-step; give it the
 * same top margin the wizard-next buttons get so spacing matches. */
.form-step button[type="submit"] {
  margin-top: 24px;
}

.form-errors {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.form-errors p { margin: 0 0 6px; font-weight: 600; }
.form-errors ul { margin: 0; padding-left: 20px; }

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.thank-you {
  text-align: center;
  padding-top: 60px;
}

/* Landing page (4-tab picker) */
.wrap-wide {
  max-width: 900px;
}
.find-a-pro-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.find-a-pro-banner:hover {
  filter: brightness(1.1);
}
.find-a-pro-banner-title {
  font-size: 18px;
  font-weight: 800;
}
.find-a-pro-banner-desc {
  font-size: 14px;
  opacity: 0.9;
}
.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 640px) {
  .tab-grid {
    grid-template-columns: 1fr;
  }
}
.tab-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.tab-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(7, 44, 92, 0.12);
}
.tab-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.tab-card-desc {
  font-size: 14px;
  color: var(--muted);
}
.tab-card-soon {
  opacity: 0.85;
}
.tab-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--secondary);
  padding: 4px 9px;
  border-radius: 10px;
}

/* Home Services as the site's sole current focus — one big featured CTA,
   with the other 3 verticals demoted to a small "coming soon" strip below. */
.tab-card-featured {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
  padding: 32px;
  border-radius: 12px;
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(233, 159, 3, 0.25);
  transition: filter 0.15s;
}
.tab-card-featured:hover {
  filter: brightness(1.05);
}
.tab-card-featured-title {
  font-size: 28px;
  font-weight: 800;
}
.tab-card-featured-desc {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.85;
}
.more-services-heading {
  margin-top: 40px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.tab-grid-compact {
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 14px;
}
@media (max-width: 640px) {
  .tab-grid-compact {
    grid-template-columns: 1fr;
  }
}
.tab-card-compact {
  padding: 16px;
  gap: 3px;
}
.tab-card-compact .tab-card-title {
  font-size: 15px;
}
.tab-card-compact .tab-card-desc {
  font-size: 12px;
}
.tab-card-compact.tab-card-soon {
  background: var(--bg);
  opacity: 0.75;
}
.tab-card-compact .tab-card-badge {
  position: static;
  align-self: flex-start;
  margin-bottom: 2px;
}

/* "Coming soon" interest-capture stub pages */
.stub-page .interest-form {
  max-width: 420px;
  margin: 0 auto;
}
.stub-page p {
  text-align: center;
}

/* Public pro directory + profile pages */
.directory-link {
  text-align: center;
  margin: 0 0 16px;
}
.directory-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.directory-link a:hover {
  text-decoration: underline;
}

.requested-contact-banner {
  background: #E7EDF4;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.success-flash {
  background: #e3f7e8;
  border: 1px solid #1a7d3a;
  color: #1a7d3a;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.empty-state {
  color: var(--muted);
  padding: 30px 0;
  text-align: center;
}

.vertical-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 8px;
}
.vertical-tab {
  color: var(--muted);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.vertical-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.vertical-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.top-rated-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.area-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
}
.area-search input[type="text"] {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 260px;
  max-width: 100%;
}
.area-search button {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.area-search-clear {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.area-search-clear:hover {
  color: var(--primary);
  text-decoration: underline;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
  margin: 24px 0 32px;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.category-tile:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(7, 44, 92, 0.12);
}
.category-tile.active {
  border-color: var(--primary);
  background: #E7EDF4;
  color: var(--primary);
}
.category-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}
.category-icon svg {
  width: 100%;
  height: 100%;
}

.pro-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.pro-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.pro-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(7, 44, 92, 0.12);
}
.pro-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pro-card-name {
  font-weight: 700;
  font-size: 15px;
}
.pro-card-title {
  font-size: 13px;
  color: var(--muted);
}
.pro-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.pro-card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.contact-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.contact-photo-large {
  width: 88px;
  height: 88px;
  font-size: 32px;
}
.contact-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}
.contact-bio {
  font-size: 15px;
  margin: 16px 0;
  color: var(--text);
}

.rating-badge {
  font-size: 14px;
  font-weight: 700;
  color: #b06a00;
}
.rating-badge .stars {
  color: #f2a600;
}
.rating-count {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

.licensed-badge {
  background: #e3f7e8;
  color: #1a7d3a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 4px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}
.profile-name {
  margin: 0;
  font-size: 26px;
  text-align: left;
}
.profile-title {
  margin: 2px 0 8px;
  color: var(--muted);
}

.lead-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 16px;
  font-size: 14px;
  margin: 16px 0;
}
.lead-fields strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 600;
}

.request-pro-button {
  display: inline-block;
  margin: 8px 0 28px;
  padding: 14px 22px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.request-pro-button:hover {
  filter: brightness(1.08);
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.portfolio-gallery-item {
  margin: 0;
}
.portfolio-gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.portfolio-gallery-item figcaption {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.review-tags-field {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.review-tags-field legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 4px;
  width: 100%;
}
.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.review-tag {
  background: #E7EDF4;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.review-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.review-stars {
  color: #f2a600;
  font-size: 14px;
}
.review-author {
  font-weight: 700;
  font-size: 14px;
  margin: 2px 0 6px;
}
