/* ============================================================
   UK Energy Efficiency Report — Main Stylesheet
   Design system: navy / cream / gold / forest
============================================================ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --navy:    #0f1e2e;
  --cream:   #f7f3ed;
  --gold:    #b8960c;
  --gold-lt: #fdf8e8;
  --gold-dk: #9a7d0a;
  --forest:  #2c4a2e;
  --rule:    #c4b49a;
  --ink:     #1c1c1c;
  --ink-mid: #444;
  --ink-lt:  #888;
  --paper:   #f7f3ed;
  --paper-dk:#ede8e0;

  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;

  --max-w:   1200px;
  --content-w: 760px;
  --gap:     clamp(16px, 4vw, 32px);
  --radius:  2px;
  --trans:   0.2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

/* ── BASE ── */
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--trans);
}
.skip-link:focus { top: 16px; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.container--narrow {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  transition: box-shadow var(--trans);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.site-logo {
  font-family: var(--serif);
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  line-height: 1.2;
}
.site-logo span { color: var(--gold); }

.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-list a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(247,243,237,0.72);
  text-decoration: none;
  padding: 6px 10px;
  transition: color var(--trans), background var(--trans);
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--cream);
  background: rgba(255,255,255,0.07);
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  margin-left: 6px;
}
.nav-cta:hover { background: var(--gold-dk) !important; }
.nav-cta.pulse { animation: navPulse 0.6s ease; }
@keyframes navPulse {
  0%   { box-shadow: 0 0 0 0 rgba(184,150,12,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(184,150,12,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,150,12,0); }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--cream);
  flex-shrink: 0;
}
.header-cta-mobile {
  display: none;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .header-cta-mobile { display: block; }
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px var(--gap) 24px;
  }
  .site-nav.open { display: block; }

  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-list a { font-size: 15px; padding: 10px 0; width: 100%; }
  .nav-cta { margin: 12px 0 0; display: inline-block; padding: 10px 20px !important; }
}

/* ── TRUST STRIP ── */
.trust-strip {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(184,150,12,0.4);
  padding: 12px 0;
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
  align-items: center;
}
.trust-item {
  font-size: 13px;
  font-weight: 400;
  color: rgba(247,243,237,0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.trust-item::before { content: '✓'; color: var(--gold); font-weight: 700; }

@media (max-width: 600px) {
  .trust-item { font-size: 12px; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-brand .site-logo { display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 320px; color: rgba(247,243,237,0.55); }
.footer-col h3 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; text-decoration: none; color: rgba(247,243,237,0.55); transition: color var(--trans); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { font-size: 12px; line-height: 1.7; color: rgba(247,243,237,0.4); }
.footer-bottom p + p { margin-top: 8px; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  cursor: pointer;
  border: none;
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dk); box-shadow: 0 4px 20px rgba(184,150,12,0.45); }
.btn--large { font-size: 17px; padding: 17px 36px; }
.btn--full { width: 100%; justify-content: center; }

/* ── SECTION LABELS ── */
.section-kicker {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-mid);
}

/* ── GRANT TABLE ── */
.grant-table-wrap { overflow-x: auto; margin: 36px 0; }
.grant-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.grant-table thead tr { background: var(--navy); color: var(--cream); }
.grant-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.grant-table tbody tr { border-bottom: 1px solid var(--rule); }
.grant-table tbody tr:nth-child(even) { background: var(--paper-dk); }
.grant-table tbody td { padding: 12px 16px; vertical-align: top; line-height: 1.4; }
.grant-table .highlight-row { background: var(--gold-lt) !important; font-weight: 500; }
.grant-table .highlight-row td:first-child { border-left: 3px solid var(--gold); }
.grant-amount { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); }
.grant-amount--gold { color: var(--gold-dk); }

/* ── STAT ROW ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  margin: 48px 0 32px;
}
.stat-block { padding: 28px 24px; border-right: 1px solid var(--rule); text-align: center; }
.stat-block:last-child { border-right: none; }
.stat-number { font-family: var(--serif); font-size: clamp(36px, 5vw, 54px); font-weight: 700; color: var(--navy); line-height: 1; display: block; }
.stat-label { font-size: 13px; color: var(--ink-mid); line-height: 1.4; margin-top: 6px; display: block; }
.stat-source { font-size: 11px; color: var(--ink-lt); font-style: italic; margin-top: 4px; display: block; }

@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-block { border-right: none; border-bottom: 1px solid var(--rule); }
  .stat-block:last-child { border-bottom: none; }
}

/* ── LOGO TRUST STRIP ── */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 32px 0;
}
.logo-strip-label { font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-lt); width: 100%; text-align: center; margin-bottom: 4px; }
.logo-pill { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-mid); padding: 6px 14px; border: 1px solid var(--rule); letter-spacing: 0.5px; text-transform: uppercase; }

/* ── TESTIMONIALS ── */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0; }
.testimonial-card { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: 24px; }
.testimonial-card p { font-family: var(--serif); font-size: 16px; font-style: italic; line-height: 1.6; color: var(--ink); margin-bottom: 14px; }
.testimonial-card cite { font-size: 13px; font-style: normal; color: var(--ink-lt); display: block; }

@media (max-width: 700px) { .testimonials { grid-template-columns: 1fr; } }

/* ── CTA BAND ── */
.cta-band { background: var(--navy); padding: 72px 0; text-align: center; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 40px); color: var(--cream); margin-bottom: 14px; }
.cta-band p { color: rgba(247,243,237,0.6); font-size: 16px; max-width: 460px; margin: 0 auto 28px; }

/* ── FOCUS / A11Y ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
