/* Font display optimization */
@font-face { font-display: swap; }

/* ============================================
   DAMP SOLVER UK — DESIGN SYSTEM v2.0
   Audience: UK homeowners & renters 30-55
   Style: Editorial · Trustworthy · Which? meets modern
   Fonts: Lora (serif headlines) + Outfit (clean body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============ TOKENS ============ */
:root {
  /* Brand */
  --navy:        #1B3A5C;
  --navy-dark:   #122843;
  --navy-light:  #E8F0F8;
  --teal:        #0E7C6A;
  --teal-light:  #E6F5F2;
  --teal-mid:    #118A76;
  --amber:       #D4691E;
  --amber-light: #FDF0E6;
  --green:       #1A7A4A;
  --green-light: #E8F5EE;
  --red:         #C0392B;

  /* Neutrals */
  --bg:          #F8F9FA;
  --bg2:         #F0F2F5;
  --white:       #FFFFFF;
  --border:      #DDE3EC;
  --border2:     #C8D0DC;
  --text:        #1A2030;
  --text2:       #3A4560;
  --muted:       #6B7590;

  /* Type */
  --font-serif:  'Lora', Georgia, serif;
  --font-sans:   'Outfit', system-ui, sans-serif;

  /* Shadows */
  --shadow-xs:   0 1px 4px rgba(27,58,92,0.06);
  --shadow-sm:   0 2px 10px rgba(27,58,92,0.08);
  --shadow:      0 4px 20px rgba(27,58,92,0.10);
  --shadow-lg:   0 12px 40px rgba(27,58,92,0.14);

  /* Radius */
  --r:    8px;
  --r-lg: 14px;
}

/* ============ LAYOUT ============ */
.wrap        { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px;  margin: 0 auto; padding: 0 24px; }
.wrap-blog   { max-width: 780px;  margin: 0 auto; padding: 0 24px; }

/* ============ ANNOUNCEMENT STRIP ============ */
.announce {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  text-align: center;
  padding: 9px 20px;
  letter-spacing: 0.01em;
}
.announce b { color: #fff; }

/* ============ HEADER ============ */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-xs);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { fill: white; }
.logo-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1;
}
.logo-name small {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.header-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  padding: 7px 14px;
  border-radius: var(--r);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg2); color: var(--navy); }
.nav-link.active { color: var(--teal); font-weight: 600; }
.nav-cta {
  background: var(--teal);
  color: #fff;
  border-radius: var(--r);
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .2s;
  margin-left: 4px;
}
.nav-cta:hover { background: var(--teal-mid); color: #fff; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; border-radius: var(--r); transition: all .2s; cursor: pointer; white-space: nowrap; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-primary { background: var(--teal); color: #fff; padding: 12px 24px; font-size: 15px; }
.btn-primary:hover { background: var(--teal-mid); transform: translateY(-1px); }
.btn-secondary { background: var(--amber); color: #fff; padding: 11px 22px; font-size: 14.5px; }
.btn-secondary:hover { background: #b85a18; transform: scale(1.02); }
.btn-ghost { background: transparent; color: var(--navy); padding: 11px 20px; font-size: 14.5px; border: 1.5px solid var(--border2); }
.btn-ghost:hover { background: var(--bg2); border-color: var(--navy); }
.btn-outline { background: transparent; color: var(--teal); padding: 9px 18px; font-size: 13.5px; border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal-light); }

/* ============ SECTION LABELS ============ */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--teal); border-radius: 1px; }
.section-h { font-family: var(--font-serif); font-size: clamp(22px,3.5vw,34px); color: var(--navy); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.section-sub { font-size: 15.5px; color: var(--muted); line-height: 1.6; max-width: 560px; }

/* ============ BADGES ============ */
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.badge-gold   { background: #FEF3CD; color: #92600A; }
.badge-teal   { background: var(--teal-light); color: var(--teal); }
.badge-amber  { background: var(--amber-light); color: var(--amber); }
.badge-green  { background: var(--green-light); color: var(--green); }
.badge-navy   { background: var(--navy-light); color: var(--navy); }
.badge-red    { background: #FDE8E8; color: var(--red); }
.badge-purple { background: #F0EBFE; color: #5B3FA6; }

/* ============ STARS ============ */
.stars-row { display: flex; align-items: center; gap: 5px; }
.stars { color: #F5A623; font-size: 13px; letter-spacing: 1px; }
.rating { font-size: 13px; font-weight: 700; color: var(--text); }
.rcount { font-size: 12px; color: var(--muted); }

/* ============ FEATURE TAGS ============ */
.feat-list { display: flex; flex-wrap: wrap; gap: 5px; }
.feat { font-size: 11.5px; background: var(--bg2); border: 1px solid var(--border); color: var(--text2); padding: 3px 9px; border-radius: 5px; font-weight: 600; }

/* ============ DISCLOSURE ============ */
.disclosure-wrap { padding: 0 24px 40px; max-width: 1080px; margin: 0 auto; }
.disclosure-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 20px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.site-footer { background: var(--navy-dark); padding: 52px 24px 32px; }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-icon { width: 32px; height: 32px; background: var(--teal); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.footer-logo-icon svg { fill: white; width: 18px; height: 18px; }
.footer-brand-name { font-family: var(--font-serif); font-size: 17px; color: #fff; font-weight: 700; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.42); line-height: 1.65; }
.footer-col-title { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.52); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.28); }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.38); transition: color .15s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-nav .nav-link { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
