/* ============================================================
   HomeAdapt UK — Main Stylesheet
   Palette: Navy #1a2b4a | Teal #2a9d8f | Warm White #fafaf8
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a2b4a;
  --navy-dark:  #111e33;
  --navy-mid:   #243659;
  --teal:       #2a9d8f;
  --teal-dark:  #207a6e;
  --teal-light: #e8f6f4;
  --warm-white: #fafaf8;
  --off-white:  #f4f3f0;
  --border:     #e0ddd8;
  --text:       #2c2c2c;
  --text-muted: #5a5a5a;
  --text-light: #7a7a7a;
  --star:       #f4a942;
  --badge-dfg:  #2a9d8f;
  --badge-tm:   #1a2b4a;
  --badge-cic:  #6b5b95;
  --success:    #2d8a4e;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 2px 8px rgba(0,0,0,.10);
  --shadow-lg:  0 4px 20px rgba(0,0,0,.12);
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --max-w:      1200px;
  --nav-h:      68px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--navy); color: #fff;
  padding: .5rem 1rem; z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
  font-size: .9rem;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
#site-nav {
  background: var(--navy);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1rem;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.nav-logo-text {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.2;
}

.nav-logo-text span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .15s, background .15s;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
  text-decoration: none;
}

.nav-cta {
  flex-shrink: 0;
}

.btn-nav-cta {
  background: var(--teal);
  color: #fff !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  text-decoration: none;
}

.btn-nav-cta:hover { background: var(--teal-dark) !important; text-decoration: none !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
}

.nav-toggle svg { display: block; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: .8rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  list-style: none;
}

.breadcrumb li { display: flex; align-items: center; gap: 4px; color: var(--text-muted); }
.breadcrumb li a { color: var(--teal); text-decoration: none; }
.breadcrumb li a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; color: var(--text-light); }
.breadcrumb li:last-child { color: var(--text-muted); font-weight: 500; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; text-decoration: none; }

.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline-teal:hover { background: var(--teal); color: #fff; text-decoration: none; }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-full { width: 100%; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1d3a5c 100%);
  color: #fff;
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -200px;
  width: 600px; height: 100%;
  background: radial-gradient(ellipse at center, rgba(42,157,143,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(42,157,143,.25);
  color: #5dd8cc;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(42,157,143,.3);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -.5px;
}

.hero h1 .highlight { color: #5dd8cc; }

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Search bar */
.hero-search {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  flex-wrap: wrap;
}

.hero-search select,
.hero-search input {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 14px;
  font-size: .9rem;
  color: var(--text);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.hero-search select:focus,
.hero-search input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,.15);
}

.hero-search .btn { flex-shrink: 0; }

.hero-trust {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}

.hero-trust span { display: flex; align-items: center; gap: 5px; }
.hero-trust .check { color: #5dd8cc; font-size: 1rem; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--teal);
  padding: 22px 0;
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  color: #fff;
  padding: 8px 20px;
  border-right: 1px solid rgba(255,255,255,.2);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -.5px;
}

.stat-label {
  font-size: .78rem;
  opacity: .85;
  font-weight: 500;
}

/* ── Section Layout ── */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 88px 0; }
.section-alt { background: var(--off-white); }

.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--navy); margin-bottom: 12px; letter-spacing: -.3px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ── Service Cards (Homepage) ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all .2s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform .2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
  text-decoration: none;
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: var(--teal-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}

.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.service-card .arrow { color: var(--teal); font-size: .8rem; font-weight: 600; margin-top: 12px; display: block; }

/* ── How It Works ── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.how-step {
  text-align: center;
  padding: 8px 16px;
}

.step-number {
  width: 48px; height: 48px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.how-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.how-step p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ── Trust Section ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trust-icon {
  width: 44px; height: 44px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.trust-item h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.trust-item p { font-size: .83rem; color: var(--text-muted); line-height: 1.55; }

/* ── Testimonial ── */
.testimonial-section { background: var(--navy); padding: 56px 0; }

.testimonial-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: #fff;
}

.quote-mark { font-size: 4rem; color: var(--teal); line-height: 1; margin-bottom: 16px; font-family: var(--font-serif); }
.testimonial-inner blockquote { font-size: 1.2rem; line-height: 1.7; color: rgba(255,255,255,.9); margin-bottom: 24px; font-style: italic; }
.testimonial-author { font-size: .85rem; color: rgba(255,255,255,.6); }
.testimonial-author strong { color: #fff; display: block; margin-bottom: 2px; }

/* ── DFG Banner ── */
.dfg-banner {
  background: linear-gradient(135deg, #1a2b4a 0%, #243659 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-left: 5px solid var(--teal);
}

.dfg-banner-text h2 { font-size: 1.4rem; color: #fff; margin-bottom: 8px; font-weight: 700; }
.dfg-banner-text p { color: rgba(255,255,255,.75); font-size: .92rem; }
.dfg-banner-text strong { color: #5dd8cc; }

/* ── Quote Form ── */
.quote-section { background: var(--off-white); padding: 64px 0; }

.quote-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}

.quote-form-wrap h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.quote-form-wrap .form-intro { font-size: .88rem; color: var(--text-muted); margin-bottom: 28px; }

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text);
  font-family: var(--font);
  background: #fff;
  transition: border .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,.12);
}

.form-row textarea { resize: vertical; min-height: 90px; }

.form-privacy { font-size: .75rem; color: var(--text-light); margin-top: 14px; text-align: center; }

/* ── Directory Layout (2-col) ── */
.dir-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.dir-main {}
.dir-sidebar {}

/* Filter bar */
.filter-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-bar label { font-size: .83rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.filter-bar select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .85rem;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.filter-check input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
}

.results-count { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; }
.results-count strong { color: var(--navy); }

/* ── Provider Card ── */
.provider-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: box-shadow .2s, border-color .2s;
  position: relative;
}

.provider-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #c8d8d6;
}

.provider-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.provider-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.provider-name a { color: var(--navy); text-decoration: none; }
.provider-name a:hover { color: var(--teal); }

.provider-location {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}

.provider-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stars {
  display: flex;
  gap: 1px;
  font-size: .9rem;
}

.star-full { color: var(--star); }
.star-half { color: var(--star); }
.star-empty { color: #ddd; }

.rating-score { font-size: .95rem; font-weight: 700; color: var(--text); }
.rating-count { font-size: .78rem; color: var(--text-muted); }

.provider-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.badge-dfg { background: #e8f6f4; color: var(--teal-dark); border: 1px solid #b8e8e3; }
.badge-trustmark { background: #eef1f7; color: var(--navy); border: 1px solid #c8d0e0; }
.badge-cic { background: #f3f0f9; color: var(--badge-cic); border: 1px solid #d8d0ec; }
.badge-ot { background: #fef8e8; color: #9a6d00; border: 1px solid #edd89a; }

.provider-attrs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.attr-tag {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .72rem;
  padding: 3px 9px;
  border-radius: 12px;
}

.provider-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.provider-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.provider-services-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.service-tag {
  background: #fff;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
}

/* ── Sidebar Widgets ── */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.sidebar-widget-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 20px;
  font-size: .9rem;
  font-weight: 700;
}

.sidebar-widget-header.teal { background: var(--teal); }

.sidebar-widget-body {
  padding: 20px;
}

.sidebar-widget-body p { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.sidebar-widget-body ul { margin-bottom: 14px; }
.sidebar-widget-body ul li { font-size: .83rem; color: var(--text-muted); padding: 4px 0; border-bottom: 1px solid var(--off-white); display: flex; align-items: flex-start; gap: 6px; }
.sidebar-widget-body ul li:last-child { border-bottom: none; }
.sidebar-widget-body ul li::before { content: "✓"; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* Sidebar form (compact) */
.sidebar-form { }
.sidebar-form .form-row { margin-bottom: 12px; }
.sidebar-form .form-row input,
.sidebar-form .form-row select,
.sidebar-form .form-row textarea {
  padding: 9px 12px;
  font-size: .84rem;
}

/* ── Provider Profile Page ── */
.profile-header {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
}

.profile-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-logo-placeholder {
  width: 90px; height: 90px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.profile-header-details { flex: 1; }
.profile-header h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.profile-header-meta { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.profile-header-meta span { font-size: .85rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 4px; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
}

.profile-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.profile-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--off-white);
}

.profile-section p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

.contact-list { }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--off-white);
  font-size: .9rem;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .contact-label { font-weight: 600; color: var(--text); min-width: 80px; }
.contact-list .contact-value { color: var(--text-muted); }
.contact-list .contact-value a { color: var(--teal); }

.services-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.services-tags .service-tag { font-size: .82rem; padding: 5px 14px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed iframe { display: block; width: 100%; height: 280px; border: none; }

.credentials-list { }
.credential-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--off-white);
}
.credential-item:last-child { border-bottom: none; }
.credential-icon { font-size: 1.2rem; }
.credential-text { font-size: .88rem; }
.credential-text strong { color: var(--navy); display: block; }
.credential-text span { color: var(--text-muted); font-size: .8rem; }

.profile-enquiry-note {
  background: var(--teal-light);
  border: 1px solid #b8e8e3;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .82rem;
  color: var(--teal-dark);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ── Grants Pages ── */
.grants-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.grants-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.grants-hero p { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }

.grants-amount-box {
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
  margin: 32px 0;
}

.grants-amount-box .amount { font-size: 3rem; font-weight: 800; display: block; margin-bottom: 4px; }
.grants-amount-box p { font-size: .95rem; opacity: .9; }

.grants-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding: 56px 0;
}

.grants-content h2 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 28px 0 12px; }
.grants-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 20px 0 8px; }
.grants-content p { font-size: .9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.grants-content ul { margin: 12px 0 16px 20px; list-style: disc; }
.grants-content ul li { font-size: .9rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.6; }

.info-box {
  background: var(--teal-light);
  border: 1px solid #b8e8e3;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}

.info-box p { font-size: .875rem; color: var(--teal-dark); margin: 0; }
.info-box strong { font-weight: 700; }

.news-box {
  background: #fff8e8;
  border: 1px solid #edd89a;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}
.news-box p { font-size: .875rem; color: #7a5900; margin: 0; }

/* FAQ */
.faq-list { margin: 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  text-align: left;
  padding: 16px 20px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .15s;
}

.faq-question:hover { background: var(--off-white); }
.faq-question[aria-expanded=true] { background: var(--off-white); }

.faq-icon { font-size: 1.2rem; color: var(--teal); transition: transform .2s; flex-shrink: 0; }
.faq-question[aria-expanded=true] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.faq-answer.open {
  padding: 12px 20px 20px;
  max-height: 400px;
}

.faq-answer p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── Footer ── */
#site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-mark {
  width: 34px; height: 34px;
  background: var(--teal);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: .9rem;
}

.footer-logo-text { color: #fff; font-size: 1.05rem; font-weight: 700; }
.footer-logo-text span { color: var(--teal); }
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 16px; }
.footer-badge { font-size: .75rem; color: rgba(255,255,255,.4); }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}

.footer-col ul { }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}

.footer-col ul li a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  margin-top: 48px;
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: .76rem; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: .76rem; color: rgba(255,255,255,.4); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── 404 Page ── */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.error-page h1 { font-size: 5rem; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.error-page h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.error-page p { color: var(--text-muted); max-width: 420px; margin: 0 auto 28px; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Loading state */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-muted);
  font-size: .9rem;
  gap: 10px;
}

.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.no-results {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.no-results h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .dir-layout,
  .profile-layout,
  .grants-layout { grid-template-columns: 1fr; }
  .dir-sidebar,
  .profile-sidebar { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links { display: none; flex-direction: column; gap: 4px; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    z-index: 99;
  }
  .nav-links a { padding: 12px 16px; font-size: .95rem; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero { padding: 48px 0 40px; }
  .hero-search { flex-direction: column; }
  .hero-search select, .hero-search input { min-width: 100%; }

  .stats-inner { flex-direction: column; gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); padding: 12px 20px; }
  .stat-item:last-child { border-bottom: none; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; gap: 24px; }

  .dfg-banner { flex-direction: column; text-align: center; padding: 28px 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .profile-header-inner { flex-direction: column; }
  .provider-card-top { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 48px 0; }
  .quote-form-wrap { padding: 24px 20px; }
  .profile-section { padding: 20px; }
}

/* ── Print ── */
@media print {
  #site-nav, #site-footer, .dir-sidebar { display: none; }
  .provider-card { page-break-inside: avoid; }
}
