/* ==========================================================
   The Damp Register — styles.css
   Teal/slate palette · Sora + Figtree · Mobile-first
   ========================================================== */

:root {
  --primary: #1a4a4a;
  --primary-light: #245e5e;
  --secondary: #2d3748;
  --accent: #d4722a;
  --accent-light: #e8944d;
  --cta: #2563eb;
  --cta-hover: #1d4ed8;
  --trust: #16a34a;
  --bg: #f7f8f6;
  --bg-alt: #eef0ec;
  --white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #d1d5db;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --max-w: 1140px;
  --transition: .2s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cta); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cta-hover); }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: .75rem; }
h3 { font-size: 1.125rem; margin-bottom: .5rem; }

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
}
.nav-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.nav-brand:hover { color: var(--bg); }
.nav-icon { font-size: 1.4rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.25rem 3.5rem;
}
.hero h1 {
  color: var(--white);
  font-weight: 800;
  max-width: 720px;
  margin: 0 auto .75rem;
}
.hero-sub {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  opacity: .92;
  line-height: 1.6;
}

/* ── Search ─────────────────────────────────────────────── */
.search-wrap {
  max-width: 480px;
  margin: 0 auto 2rem;
  position: relative;
}
.search-box {
  display: flex;
  background: var(--white);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.search-input {
  flex: 1;
  border: none;
  padding: .85rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  background: transparent;
}
.search-input::placeholder { color: var(--text-light); }
.search-btn {
  background: var(--cta);
  border: none;
  padding: 0 1.25rem;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--white);
  transition: background var(--transition);
}
.search-btn:hover { background: var(--cta-hover); }

.search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: .35rem;
  overflow: hidden;
  z-index: 50;
}
.dd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 1.25rem;
  color: var(--text);
  transition: background var(--transition);
}
.dd-item:hover, .dd-item.active { background: var(--bg-alt); }
.dd-name { font-weight: 500; }
.dd-type {
  font-size: .75rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: .04em;
}

/* ── Trust Row ──────────────────────────────────────────── */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-item {
  font-size: .95rem;
  opacity: .9;
}
.trust-item strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
}

/* ── Steps ──────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
}
.step-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .35rem;
  color: var(--secondary);
}
.step p { font-size: .925rem; color: var(--text-light); }

/* ── Region Grid ────────────────────────────────────────── */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.region-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  color: var(--text);
  border-left: 4px solid var(--primary);
  transition: box-shadow var(--transition), transform var(--transition);
}
.region-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.region-card h3 { font-size: 1.05rem; margin: 0; color: var(--primary); }
.region-card-meta { font-size: .82rem; color: var(--text-light); margin-top: .25rem; }
.region-card-count {
  font-family: 'Sora', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

/* ── County Grid ────────────────────────────────────────── */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.county-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  color: var(--text);
  border-top: 3px solid var(--accent);
  transition: box-shadow var(--transition), transform var(--transition);
}
.county-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.county-card h3 { font-size: 1rem; color: var(--primary); margin: 0 0 .25rem; }
.county-city { font-size: .85rem; color: var(--text-light); }

/* ── City List ──────────────────────────────────────────── */
.city-list {
  columns: 2;
  column-gap: 2rem;
}
.city-list li {
  padding: .35rem 0;
  break-inside: avoid;
}
.city-list a { font-weight: 500; }

/* ── Cost Grid ──────────────────────────────────────────── */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.cost-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.cost-label {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--secondary);
  margin-bottom: .5rem;
}
.cost-range {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .35rem;
}
.cost-note { font-size: .85rem; color: var(--text-light); }
.cost-footnote { font-size: .85rem; color: var(--text-light); font-style: italic; }

/* ── Types of Damp ──────────────────────────────────────── */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.type-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.type-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: .5rem;
}
.type-card h3 { color: var(--primary); }
.type-card p { font-size: .925rem; color: var(--text-light); }

/* ── Trust Grid ─────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.trust-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.trust-card-icon { font-size: 2rem; margin-bottom: .5rem; }
.trust-card h3 { font-size: 1.05rem; }
.trust-card p { font-size: .9rem; color: var(--text-light); }

/* ── Checklist ──────────────────────────────────────────── */
.checklist {
  max-width: 680px;
  margin: 0 auto;
}
.check-item {
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  line-height: 1.55;
}
.check-item:last-child { border-bottom: none; }
.check { color: var(--trust); font-weight: 700; margin-right: .35rem; }

/* ── Quote Form / CTA ──────────────────────────────────── */
.cta-section { padding-top: 2rem; }
.cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  color: var(--white);
  max-width: 720px;
  margin: 0 auto;
}
.cta-card h2 { color: var(--white); margin-bottom: .5rem; }
.cta-card > p { opacity: .9; margin-bottom: 1.5rem; }

.quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .3rem;
  opacity: .92;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.5); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.18);
}
.form-group select option { color: var(--text); background: var(--white); }
.form-note { font-size: .82rem; opacity: .7; margin-top: .75rem; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.75rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn-cta {
  background: var(--cta);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.btn-cta:hover {
  background: var(--cta-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--bg-alt);
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: var(--radius-lg);
  margin: 2rem auto;
  max-width: var(--max-w);
}
.cta-banner h2 { margin-bottom: .5rem; }
.cta-banner p { color: var(--text-light); margin-bottom: 1.25rem; }

/* ── Highlight Box ──────────────────────────────────────── */
.highlight-box {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.highlight-box h3 { color: var(--primary); margin-bottom: .75rem; }
.highlight-box p { margin-bottom: .5rem; font-size: .95rem; }
.highlight-box p:last-child { margin-bottom: 0; }

/* ── Problems List ──────────────────────────────────────── */
.problems-list { display: grid; gap: 1.25rem; }
.problem {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.problem h3 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.problem p { font-size: .925rem; color: var(--text-light); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.5rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--bg-alt); }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-light);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: .925rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .75rem 1.25rem;
  font-size: .82rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--cta); }
.bc-sep { margin: 0 .3rem; opacity: .5; }

/* ── Page Header ────────────────────────────────────────── */
.page-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}
.page-header h1 { margin-bottom: .5rem; }
.page-header p { color: var(--text-light); max-width: 700px; font-size: 1.05rem; }
.page-header-sub {
  font-size: .95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Content Page ───────────────────────────────────────── */
.content-page { max-width: 720px; }
.content-page h2 { margin-top: 2rem; }
.content-page p { margin-bottom: 1rem; }
.content-page ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.content-page li { margin-bottom: .35rem; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,.8);
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col strong { display: block; color: var(--white); margin-bottom: .75rem; font-size: .95rem; }
.footer-col p { font-size: .88rem; opacity: .75; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .88rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .82rem;
  opacity: .6;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero-sub { font-size: 1rem; }
  .trust-row { gap: 1rem; }
  .trust-item strong { font-size: 1.15rem; }
  .region-grid { grid-template-columns: 1fr; }
  .quote-form .form-row { grid-template-columns: 1fr; }
  .city-list { columns: 1; }
  .steps { grid-template-columns: 1fr; }
  .cost-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 2rem 1rem; }
}

@media (max-width: 380px) {
  .cost-grid { grid-template-columns: 1fr; }
}

/* ── Register listings (PCA members) ───────────────────────── */
.listing-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
.listing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.listing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.listing-head h3 { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.listing-head h3 a { color: var(--primary); text-decoration: none; }
.listing-head h3 a:hover { text-decoration: underline; }
.listing-meta { font-size: .85rem; color: var(--text-light); }
.badge-pca {
  display: inline-block;
  flex-shrink: 0;
  background: #e6f6ec;
  color: var(--trust);
  border: 1px solid #b8e4c6;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .2rem .55rem;
  border-radius: 50px;
  white-space: nowrap;
}
.badge-pca::before { content: "\2713\00a0"; }
.badge-lg { font-size: .85rem; padding: .35rem .8rem; margin-top: .75rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-size: .75rem;
  background: var(--bg-alt);
  color: var(--secondary);
  padding: .15rem .55rem;
  border-radius: 4px;
}
.listing-contact { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .9rem; margin-top: .25rem; align-items: center; }
.card-phone { font-weight: 600; color: var(--text); text-decoration: none; }
.card-web { color: var(--text-light); }
.card-more { margin-left: auto; color: var(--cta); font-weight: 500; text-decoration: none; }
.verify-note { font-size: .85rem; color: var(--text-light); margin-top: 1.25rem; }

/* ── Specialist profile ────────────────────────────────────── */
.profile-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .profile-grid { grid-template-columns: 3fr 2fr; } }
.profile-grid h2 { font-size: 1.2rem; margin-top: 1.25rem; }
.profile-grid h2:first-child { margin-top: 0; }
.service-list { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.service-list li { background: var(--bg-alt); padding: .3rem .7rem; border-radius: 4px; font-size: .9rem; }
.contact-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.contact-table th { text-align: left; font-weight: 600; color: var(--text-light); padding: .5rem .75rem .5rem 0; vertical-align: top; width: 6.5rem; }
.contact-table td { padding: .5rem 0; border-bottom: 1px solid var(--border); word-break: break-word; }
.contact-table tr:last-child td { border-bottom: none; }

/* ── Form extras ───────────────────────────────────────────── */
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-error { margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--radius); background: #fdecec; color: #b91c1c; font-size: .9rem; }

/* ── Phone CTAs (rendered only when PHONE is set) ──────────── */
.nav-phone { font-weight: 700; color: var(--white) !important; background: var(--accent); padding: .35rem .8rem; border-radius: 50px; }
.nav-phone:hover { background: var(--accent-light); }
.call-strip { margin-top: 1.25rem; font-size: 1rem; }
.hero .call-strip a { color: var(--white); font-weight: 700; text-decoration: underline; }
.cta-card .call-strip { margin: -.25rem 0 1rem; opacity: .95; }
.cta-card .call-strip a { color: var(--white); font-weight: 700; }
