/* ================================================
   ASBESTOS REGISTER UK — Design System v2
   Sora + Figtree typography
   Dark navy + amber/safety palette
   Mobile-first, consumer-facing, trustworthy
   ================================================ */

:root {
  --navy: #0c1f3d;
  --navy-800: #132d54;
  --navy-600: #1e3f6e;
  --primary: #1a3a5c;
  --primary-dark: #0c1f3d;
  --accent: #e8a838;
  --accent-dark: #c78a2a;
  --accent-light: #f5deb3;
  --accent-glow: rgba(232, 168, 56, 0.25);
  --cta: #2563eb;
  --cta-hover: #1d4ed8;
  --verified: #16a34a;
  --verified-bg: #dcfce7;
  --bg: #f5f6f8;
  --bg-white: #ffffff;
  --text: #1e293b;
  --text-mid: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================================
   RESET & BASE
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Figtree', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; font-weight: 600; }

img { max-width: 100%; height: auto; }

/* ================================================
   HAZARD BAR
   ================================================ */

.hazard-bar {
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 6px,
    var(--navy) 6px 12px
  );
}

/* ================================================
   LAYOUT
   ================================================ */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.section > p {
  text-align: center;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-align: center;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.content-block p {
  margin-bottom: 1rem;
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

.content-block {
  text-align: center;
}

.content-block ul {
  text-align: left;
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

.content-page {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.content-page h2 { margin-top: 1.5rem; }
.content-page ul { margin: 0.5rem 0 1rem 1.5rem; }

/* ================================================
   NAV
   ================================================ */

.nav {
  background: var(--navy);
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-logo:hover { text-decoration: none; }

.nav-shield {
  background: var(--accent);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-shield svg { width: 18px; height: 18px; }

.nav-logo .uk { color: var(--accent); }
/* Legacy support */
.nav-logo .dot { color: var(--accent); }

.nav-links-wrap {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover { color: #fff; text-decoration: none; }

/* Legacy nav-links (for existing blog pages) */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links-wrap,
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-links-wrap.open,
  .nav-links.open { display: flex; }
  .nav-link { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
}

/* ================================================
   BREADCRUMB
   ================================================ */

.breadcrumb {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 1120px;
  margin: 0 auto;
}

.breadcrumb a { color: var(--cta); }
.breadcrumb .sep { margin: 0 0.35rem; }

/* ================================================
   HERO (Homepage — light, search-first)
   ================================================ */

.hero {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero h1 {
  color: var(--navy);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease) 0.1s forwards;
}

.hero h1 span { color: var(--accent-dark); }

.hero-sub {
  color: var(--text-mid);
  font-size: 1.15rem;
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s var(--ease) 0.25s forwards;
}

/* Legacy hero-inner (inner pages) */
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* ================================================
   SEARCH (Homepage)
   ================================================ */

.search-wrap {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s var(--ease) 0.4s forwards;
}

.search-box {
  display: flex;
  background: #fff;
  border-radius: 56px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.search-icon svg { width: 20px; height: 20px; display: block; }

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: 'Figtree', sans-serif;
  padding: 1.1rem 1rem 1.1rem 3.25rem;
  background: transparent;
  color: var(--text);
  min-width: 0;
}

.search-input::placeholder { color: #94a3b8; }

.search-btn {
  background: var(--accent);
  color: var(--navy);
  border: none;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: background 0.2s;
  border-radius: 0 56px 56px 0;
}

.search-btn:hover { background: var(--accent-dark); }
.search-btn svg { width: 16px; height: 16px; }

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 50;
  max-height: 360px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--border);
}

.search-dropdown.active { display: block; }

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.1s;
  cursor: pointer;
}

.search-result:hover,
.search-result.highlighted {
  background: #f1f5f9;
  text-decoration: none;
}

.search-result-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-result-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.search-result-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #e0e7ff;
  color: #3730a3;
}

/* ================================================
   TRUST ROW (Hero inline stats)
   ================================================ */

.trust-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s var(--ease) 0.55s forwards;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
}

.trust-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fef3c7;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg { width: 16px; height: 16px; }

.trust-item strong {
  color: var(--navy);
  font-weight: 700;
}

/* ================================================
   HOW IT WORKS (Steps)
   ================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
}

.step.visible {
  animation: fadeUp 0.6s var(--ease) forwards;
}

.step:nth-child(2).visible { animation-delay: 0.1s; }
.step:nth-child(3).visible { animation-delay: 0.2s; }

.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--navy);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(232, 168, 56, 0.3);
}

.step-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0 auto;
}

/* ================================================
   REGION GRID (Homepage — arrow style)
   ================================================ */

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.region-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.25s var(--ease);
  border-left: 3px solid transparent;
  opacity: 0;
  transform: translateY(16px);
}

.region-card.visible {
  animation: fadeUp 0.5s var(--ease) forwards;
}

.region-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.region-card-info h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.region-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.region-card-arrow {
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.region-card:hover .region-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Legacy region-card style (for inner pages) */
.region-card h3,
.county-card h3 {
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.county-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.county-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
}

.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.counties-list {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================================================
   TRUST CARDS (Why section)
   ================================================ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-card {
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
}

.trust-card.visible {
  animation: fadeUp 0.5s var(--ease) forwards;
}

.trust-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: #fef3c7;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.85rem;
}

.trust-card-icon svg { width: 24px; height: 24px; color: var(--accent-dark); }

.trust-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.trust-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 220px;
  margin: 0 auto;
}

/* ================================================
   PAGE HEADER
   ================================================ */

.page-header {
  padding: 2rem 0 1rem;
  text-align: center;
}

.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); }

/* ================================================
   CARD GRID
   ================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card-grid.contractors {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ================================================
   COST GUIDE CARD
   ================================================ */

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card-blue {
  background: linear-gradient(135deg, #1a3a5c 0%, #234b73 100%);
  color: #fff;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  text-align: center;
}

.cost-item {
  padding: 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}

/* ================================================
   RELATED LINKS + VERIFICATION
   ================================================ */

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.related-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  color: #1a3a5c;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.related-link:hover {
  background: #e2e8f0;
}

.verification-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #16a34a;
  font-weight: 500;
  text-align: center;
}

.verification-note a {
  color: #16a34a;
  text-decoration: underline;
}

/* ================================================
   NEARBY CONTRACTORS
   ================================================ */

.nearby-wrap {
  position: relative;
}

.nearby-label {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

/* ================================================
   LICENCE TYPE CARDS
   ================================================ */

.licence-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.licence-type-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.licence-type-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
}

.licence-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.licence-type-card h3 { margin-bottom: 0.5rem; }
.licence-type-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* ================================================
   CONTRACTOR CARDS
   ================================================ */

.contractor-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.contractor-card.claimed {
  border-left: 3px solid var(--verified);
}

.claim-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  align-self: center;
  margin-left: auto;
}

.claim-link:hover {
  color: var(--cta);
}

.badge-claimed {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: var(--verified-bg);
  color: var(--verified);
  margin-left: 0.35rem;
  vertical-align: middle;
}

.contractor-card-top {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contractor-icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contractor-info h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.contractor-info h3 a {
  color: var(--navy);
  text-decoration: none;
}

.contractor-info h3 a:hover { color: var(--cta); }

.location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.badge-verified {
  background: #dbeafe;
  color: #1e40af;
}

.badge-scaffolding {
  background: #fef3c7;
  color: #92400e;
}

.badge-maintenance {
  background: #e0e7ff;
  color: #3730a3;
}

/* Badge + Rating Row */
.badge-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

/* Rating */
.contractor-rating,
.detail-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.stars { color: var(--accent); font-size: 1rem; }
.rating-text { font-size: 0.85rem; }

/* Licence row */
.licence-row {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Actions */
.contractor-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 48px;
}

.btn-phone {
  background: var(--cta);
  color: #fff;
}

.btn-phone:hover {
  background: var(--cta-hover);
  text-decoration: none;
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cta-hover);
  text-decoration: none;
}

/* ================================================
   CONTRACTOR DETAIL PAGE
   ================================================ */

.contractor-detail {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1rem 0 2rem;
  box-shadow: var(--shadow);
}

.detail-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-icon {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.detail-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
}

.contractor-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
}

.contractor-description {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.services-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.services-list li {
  background: var(--bg);
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  color: var(--navy);
  border: 1px solid var(--border);
}

.accreditation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.accreditation-tag {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.3rem 0.65rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.detail-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.detail-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table th,
.detail-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.detail-table th {
  width: 40%;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.contact-item span:first-child { width: 1.25rem; text-align: center; }

/* ================================================
   COMPARISON TABLE
   ================================================ */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  white-space: nowrap;
}

.compare-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.compare-table tr:hover { background: #f1f5f9; }
.compare-table a { text-decoration: none; }
.compare-table a:hover { text-decoration: underline; }

/* ================================================
   FAQ
   ================================================ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  background: var(--bg-white);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Chevron icon (SVG) */
.faq-chevron {
  width: 20px; height: 20px;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

/* Fallback +/- for items without SVG chevron */
.faq-item summary:not(:has(.faq-chevron))::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-muted);
}

.faq-item[open] summary:not(:has(.faq-chevron))::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.faq-answer p { margin-bottom: 0.5rem; }

/* ================================================
   ERROR PAGE
   ================================================ */

.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.error-page p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 2rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: #fff; text-decoration: none; }

.footer-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* ================================================
   CLAIM FORM
   ================================================ */

.claim-card {
  background: #fffbeb;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
}

.claim-card h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.claim-card > p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 65ch;
}

.claim-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

.form-group input:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 1rem;
  min-height: 48px;
}

.btn-claim:hover {
  background: var(--accent-dark);
}

.claim-trust {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ================================================
   BLOG / ARTICLE
   ================================================ */

.article-header {
  padding: 2rem 0 1rem;
}

.article-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  background: #e0e7ff;
  color: #3730a3;
}

.article-body {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.article-body p {
  margin-bottom: 1rem;
  max-width: 75ch;
  line-height: 1.7;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-body ul,
.article-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
  max-width: 75ch;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: #fffbeb;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 75ch;
}

.article-body blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-body th,
.article-body td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.article-body th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.article-body tr:hover td {
  background: #f1f5f9;
}

.article-body strong {
  color: var(--navy);
}

.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 2rem;
}

.article-cta h3 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.article-cta p {
  opacity: 0.9;
  margin-bottom: 1rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.article-cta .btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.article-cta .btn-primary:hover {
  background: var(--accent-dark);
}

/* Blog Index */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
}

.blog-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.blog-card h2 a {
  color: var(--navy);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--cta);
}

.blog-card .blog-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-card .blog-excerpt {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  max-width: 75ch;
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero-sub { font-size: 1rem; }
  .search-btn span { display: none; }
  .search-btn { padding: 0 1.1rem; border-radius: 0 56px 56px 0; }
  .trust-row { gap: 1rem; }
  .trust-item { font-size: 0.8rem; }
  .trust-icon { width: 28px; height: 28px; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .region-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.3rem; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .hero h1 { font-size: 1.55rem; }
  .card-grid { grid-template-columns: 1fr; }
  .licence-type-grid { grid-template-columns: 1fr; }
  .contractor-detail { padding: 1.25rem; }
  .detail-table th { width: 35%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { justify-content: center; }
  .compare-table th,
  .compare-table td { padding: 0.5rem; font-size: 0.8rem; }
  .claim-form-grid { grid-template-columns: 1fr; }
  .claim-card { padding: 1.25rem; }
  .article-header h1 { font-size: 1.5rem; }
  .article-body { padding: 1.25rem; }
  .article-body table { font-size: 0.85rem; }
  .trust-row { flex-direction: column; gap: 0.6rem; }
  .trust-grid { grid-template-columns: 1fr; }
}
