/* ===== Blue Chip Heating Solutions — styles ===== */
:root {
  --navy: #0b1f33;
  --navy-2: #102a44;
  --navy-3: #143554;
  --ink: #1c2b3b;
  --muted: #5b6b7c;
  --bg: #ffffff;
  --bg-alt: #f2f7fa;
  --line: #dbe6ef;
  --accent: #0e9f6e;
  --accent-2: #10b981;
  --accent-dark: #0b7f57;
  --gold: #fbbf24;
  --radius: 18px;
  --shadow-sm: 0 4px 14px rgba(11, 31, 51, 0.06);
  --shadow: 0 14px 40px rgba(11, 31, 51, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, 0.16);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; }

.container { width: min(1140px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border-radius: 999px; padding: 0.85rem 1.7rem; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; box-shadow: 0 8px 24px rgba(14, 159, 110, 0.35);
}
.btn-accent:hover { box-shadow: 0 12px 30px rgba(14, 159, 110, 0.45); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline { border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.88rem; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 31, 51, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); color: #fff; font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-text small { color: #7fd7b4; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a { color: #d5e2ee; text-decoration: none; font-weight: 500; font-size: 0.94rem; position: relative; }
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent-2); border-radius: 2px; transition: width 0.25s ease;
}
.site-nav > a:not(.btn):hover { color: #fff; }
.site-nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy-3) 0%, var(--navy-2) 45%, var(--navy) 100%);
  padding: 5.2rem 0 5.6rem;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.orb-1 { width: 480px; height: 480px; background: rgba(16, 185, 129, 0.28); top: -160px; right: -120px; animation: drift 14s ease-in-out infinite alternate; }
.orb-2 { width: 380px; height: 380px; background: rgba(37, 99, 235, 0.22); bottom: -140px; left: -100px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(40px, 30px); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent-2); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -0.02em; }
.grad-text {
  background: linear-gradient(90deg, #4ade9c, #2dd4bf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: #c2d3e2; font-size: 1.08rem; margin: 1.3rem 0 2rem; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }

.hero-badges { display: flex; gap: 2.4rem; list-style: none; flex-wrap: wrap; }
.hero-badges li { display: flex; flex-direction: column; gap: 0.1rem; padding-left: 1rem; border-left: 2px solid rgba(74, 222, 156, 0.4); }
.badge-num { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #4ade9c; font-variant-numeric: tabular-nums; }
.badge-label { color: #8ba3b8; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }

.hero-visual { position: relative; }
.hero-visual img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255, 255, 255, 0.97); border-radius: 14px; padding: 0.7rem 1rem;
  box-shadow: var(--shadow); font-size: 0.82rem; color: var(--ink); line-height: 1.3;
  animation: float 5s ease-in-out infinite;
}
.float-chip strong { font-family: var(--font-display); color: var(--navy); }
.chip-grant { top: -18px; right: 22px; flex-direction: column; align-items: flex-start; gap: 0; }
.chip-grant strong { font-size: 1.5rem; color: var(--accent-dark); }
.chip-grant span { color: var(--muted); font-size: 0.78rem; }
.chip-mcs { bottom: -20px; left: 22px; }
.chip-icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; flex-shrink: 0;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ===== Trust bar ===== */
.trustbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 0; }
.trust-item { text-align: center; display: flex; flex-direction: column; gap: 0.1rem; position: relative; }
.trust-item + .trust-item::before { content: ""; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: var(--line); }
.trust-item strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--accent-dark); }
.trust-item span { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); }

/* ===== Services ===== */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14, 159, 110, 0.35); }
.card-media { background: linear-gradient(160deg, #eef6fb, #e6f4ef); border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; aspect-ratio: 400 / 220; object-fit: cover; }
.card h3 { font-size: 1.2rem; padding: 1.4rem 1.6rem 0; }
.card > p { color: var(--muted); font-size: 0.94rem; padding: 0.6rem 1.6rem 0; }
.card-list { list-style: none; padding: 1rem 1.6rem 1.6rem; margin-top: auto; }
.card-list li { position: relative; padding-left: 1.5rem; font-size: 0.9rem; margin-bottom: 0.45rem; color: var(--ink); }
.card-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}

/* ===== Why us ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.05));
  color: var(--accent-dark); margin-bottom: 1.1rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.9rem; }

/* ===== Grant ===== */
.grant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.grant-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.1rem; }
.grant-copy p { color: var(--muted); margin-bottom: 1rem; }
.grant-copy .btn { margin-top: 0.8rem; }

.steps { list-style: none; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.steps li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.steps li > span {
  flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
  font-family: var(--font-display); font-weight: 700;
}
.steps strong { color: var(--navy); display: block; }
.steps p { color: var(--muted); font-size: 0.88rem; }

/* ===== Certifications ===== */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.4rem; }
.cert-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cert-tag {
  align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; color: var(--accent-dark);
  background: rgba(14, 159, 110, 0.1); border: 1px solid rgba(14, 159, 110, 0.25);
  padding: 0.3rem 0.8rem; border-radius: 999px;
}
.cert-head h3 { font-size: 1.12rem; margin-top: 0.7rem; }
.cert-details { display: grid; gap: 0.55rem; }
.cert-details div {
  display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem;
  padding-bottom: 0.5rem; border-bottom: 1px dashed var(--line);
}
.cert-details dt { color: var(--muted); }
.cert-details dd { font-weight: 600; text-align: right; }
.cert-text { color: var(--muted); font-size: 0.92rem; }
.cert-note { color: var(--muted); font-size: 0.82rem; margin-top: auto; padding-top: 0.6rem; border-top: 1px dashed var(--line); }

.skills-panel {
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
  border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow);
}
.skills-panel h3 { color: #fff; text-align: center; font-size: 1.25rem; margin-bottom: 1.8rem; }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.skill {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; padding: 1.3rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.skill:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.skill h4 { color: #4ade9c; font-size: 0.98rem; margin-bottom: 0.4rem; }
.skill p { color: #b6c8d8; font-size: 0.85rem; }

/* ===== Coverage ===== */
.coverage-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: center; }
.coverage-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.coverage-copy > p { color: var(--muted); margin-bottom: 1.4rem; }
.coverage-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.coverage-list li { position: relative; padding-left: 1.6rem; font-weight: 500; color: var(--ink); }
.coverage-list li::before { content: "📍"; position: absolute; left: 0; top: 0; font-size: 0.9rem; }
.coverage-card {
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
  color: #c2d3e2; border-radius: var(--radius); padding: 2.4rem 2rem; text-align: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.coverage-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 50% -40%, rgba(16, 185, 129, 0.25), transparent);
}
.coverage-pin { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(16, 185, 129, 0.15); color: #4ade9c; margin-bottom: 1rem; position: relative; }
.coverage-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.4rem; position: relative; }
.coverage-postcode { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: #4ade9c; letter-spacing: 0.03em; position: relative; }
.coverage-card p:last-child { font-size: 0.9rem; position: relative; }

/* ===== Contact ===== */
.contact {
  background: linear-gradient(155deg, var(--navy-3), var(--navy-2) 55%, var(--navy));
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 0%, rgba(16, 185, 129, 0.14), transparent);
}
.contact-inner { position: relative; }
.contact .eyebrow { color: #4ade9c; }
.contact h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 0.8rem; }
.contact > .container > p, .contact-inner > p { color: #b6c8d8; max-width: 54ch; margin: 0 auto 2.4rem; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2.4rem; }
.contact-tile {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px; padding: 1.6rem 1.2rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.contact-tile:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-4px); border-color: rgba(74, 222, 156, 0.4); }
.tile-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(16, 185, 129, 0.16); color: #4ade9c; margin-bottom: 0.4rem; }
.contact-tile strong { font-family: var(--font-display); color: #fff; font-size: 0.95rem; }
.contact-tile span:last-child { color: #c2d3e2; font-size: 0.9rem; }
.contact-note { color: #8ba3b8; font-size: 0.85rem; }
.contact-note strong { color: #4ade9c; }

/* ===== Footer ===== */
.site-footer { background: #081625; color: #b6c8d8; }
.footer-inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem;
  padding: 3.2rem 0 2.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.08rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.6rem; max-width: 46ch; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-content: start; }
.footer-links a { color: #c2d3e2; text-decoration: none; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover { color: #4ade9c; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  padding: 1.5rem 0; font-size: 0.82rem; color: #7d92a6;
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.cards-grid .reveal:nth-child(2), .features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .reveal:nth-child(3), .features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.cards-grid .reveal:nth-child(4), .features-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .float-chip, .pulse-dot { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 540px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .grant-grid, .coverage-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .trust-item:nth-child(3)::before { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0.4rem;
    background: var(--navy); padding: 1rem 1.4rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 0.7rem 0.4rem; border-radius: 8px; }
  .site-nav > a:not(.btn):hover { background: rgba(255, 255, 255, 0.06); }
  .site-nav .btn { margin-top: 0.6rem; text-align: center; }

  .hero { padding: 3.4rem 0 4rem; }
  .section { padding: 3.6rem 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .coverage-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .float-chip { font-size: 0.75rem; padding: 0.55rem 0.8rem; }
  .chip-grant strong { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .features-grid, .skills-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 1.4rem; }
  .trust-item strong { font-size: 1.1rem; }
}
