/* CertiSafe UK – theme taken from the CertiSafe logo
   Red #C31E1C and charcoal #333740 sampled directly from the logo artwork. */
:root {
  --red: #c31e1c;          /* logo red – white text on it = 5.97:1 */
  --red-700: #a3181a;      /* hover / pressed */
  --red-800: #8a1416;
  --red-50: #fdf0ef;
  --red-100: #f9dcda;
  --red-on-dark: #ff8a82;  /* red for small text on charcoal (≥4.5:1) */
  --red-icon-dark: #f0574f;/* red for icons on charcoal (≥3:1) */
  --charcoal: #333740;     /* logo charcoal */
  --charcoal-800: #2a2d35;
  --charcoal-900: #1f2228;
  --charcoal-600: #4a4f5a;
  --ink: #2b2e35;
  --muted: #5a5f6a;
  --line: #e4e5e8;
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --bg-warm: #faf9f8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 34, 40, 0.07);
  --shadow-lg: 0 24px 60px rgba(31, 34, 40, 0.16);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); }
h1, h2 { text-wrap: balance; }
h1, h2, h3 { font-family: var(--font-head); color: var(--charcoal); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.25rem); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.35rem); letter-spacing: -0.015em; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.55em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(195, 30, 28, .28); }
.btn-primary:hover { background: var(--red-700); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-sm { padding: .55em 1.2em; font-size: .95rem; }
.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: .8em;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: auto; height: 48px; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--charcoal); letter-spacing: -0.01em; line-height: 1; }
.logo-text span { color: var(--red); }
.logo-tagline { font-family: var(--font-head); font-weight: 600; font-size: .54rem; letter-spacing: .15em; text-transform: uppercase; color: var(--charcoal); margin-top: 5px; white-space: nowrap; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; }
.site-nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2.5px; background: var(--charcoal); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(760px 460px at 88% 30%, rgba(195,30,28,.10), transparent 62%),
    radial-gradient(600px 400px at 0% 100%, rgba(51,55,64,.07), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg-soft));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(51,55,64,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(51,55,64,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 88px 0 100px; }
.hero h1 { color: var(--charcoal); }
.hero .eyebrow { text-wrap: balance; }
.highlight { color: var(--red); }
.lead { font-size: 1.12rem; max-width: 36em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; color: var(--charcoal); font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; }
.hero-logo-panel {
  position: relative; background: #fff; border-radius: 24px; padding: 44px 40px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.hero-logo-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 50%, var(--charcoal) 50% 100%); }
.hero-logo-panel img { width: 100%; max-width: 400px; margin-inline: auto; }
.hero-badge {
  position: absolute; left: -24px; bottom: -22px; display: flex; align-items: center; gap: 10px;
  background: var(--charcoal); color: #fff; font-family: var(--font-head); font-weight: 700;
  padding: 12px 18px; border-radius: 14px; box-shadow: 0 12px 30px rgba(31,34,40,.28); font-size: .95rem; transform: rotate(-2deg);
}
.hero-badge svg { width: 22px; height: 22px; fill: var(--red-icon-dark); }
.hero-badge svg .tick { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-head.light h2 { color: #fff; }
.section-head.light p:last-child { color: #c9cbd1; }
.section-head.light .eyebrow { color: var(--red-on-dark); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; overflow: hidden;
  padding: 32px 28px; transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(31,34,40,.10); }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--red); }
.service-card p { color: var(--muted); }
.service-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.service-icon svg { width: 40px; height: 40px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-fire { background: var(--red-50); } .icon-fire svg { stroke: var(--charcoal); }
.icon-fire .accent { stroke: none; fill: var(--red); }
.icon-fire .accent-stroke { stroke: var(--red); }
.eyebrow-fire { color: var(--red); }
.service-card .text-link { color: var(--red); }

/* Monthly inspections – highlighted full-width band */
.service-feature {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center;
  background:
    radial-gradient(520px 280px at 100% 0%, rgba(195,30,28,.22), transparent 62%),
    linear-gradient(160deg, var(--charcoal), var(--charcoal-900));
  border-color: var(--charcoal); color: #c9cbd1; padding: 36px 40px;
}
.service-feature .feature-main { display: flex; gap: 24px; align-items: flex-start; }
.service-feature .service-icon { flex: none; margin-bottom: 0; }
.service-feature h3 { color: #fff; font-size: 1.4rem; margin-bottom: .45em; }
.service-feature p { color: #c9cbd1; }
.service-feature .feature-tag {
  display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 999px; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.service-feature .feature-list { margin: 0; padding: 24px 26px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; }
.service-feature .feature-list li { color: #eef0f2; }
.service-feature .text-link { color: var(--red-on-dark); display: inline-block; margin-top: 4px; }
.service-feature .text-link:hover { color: #ffb3ad; }
.audience-sub { color: var(--muted); font-size: .97rem; margin: -10px 0 18px; }

.legal-note { display: flex; align-items: flex-start; gap: 12px; max-width: 760px; margin: 36px auto 0; padding: 16px 20px; border-radius: 14px; background: var(--bg-soft); border-left: 4px solid var(--red); }
.legal-note svg { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legal-note p { margin: 0; font-size: .95rem; color: var(--ink); }

/* Additional services */
.section-soft { background: var(--bg-soft); }
.extra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.extra-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; }
.extra-card h3 { font-size: 1.05rem; margin-bottom: .4em; }
.extra-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.extra-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--charcoal); display: grid; place-items: center; }
.extra-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-list { list-style: none; padding: 0; margin: 4px 0 26px; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--ink); font-size: .98rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat;
}
.text-link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--red); }
.text-link:hover { text-decoration: underline; color: var(--red-700); }

.audience { margin-top: 56px; text-align: center; }
.audience-title { font-family: var(--font-head); font-weight: 700; color: var(--charcoal); margin-bottom: 18px; }
.audience-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.audience-list li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--charcoal); font-size: .97rem;
}
.audience-list svg { width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Why us (dark charcoal) */
.section-dark {
  background:
    radial-gradient(700px 380px at 100% 0%, rgba(195,30,28,.16), transparent 60%),
    linear-gradient(170deg, var(--charcoal), var(--charcoal-900));
  color: #c9cbd1;
}
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, background-color .2s; }
.why-item:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }
.why-item h3 { color: #fff; font-size: 1.08rem; }
.why-item p { margin: 0; font-size: .97rem; color: #c9cbd1; }
.why-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--red); display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 8px 18px rgba(195,30,28,.3); }
.why-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 58px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 18px); opacity: .45; }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-icon { width: 116px; height: 116px; margin: 0 auto 22px; border-radius: 50%; background: #fff; border: 2px solid var(--red-100); box-shadow: var(--shadow); display: grid; place-items: center; position: relative; z-index: 1; }
.step-icon svg { width: 46px; height: 46px; fill: none; stroke: var(--charcoal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-num { position: absolute; top: -4px; left: calc(50% + 30px); z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(195,30,28,.35); }
.step p { color: var(--muted); max-width: 30ch; margin-inline: auto; }

/* Contact */
.contact-section { background: var(--bg-soft); }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; background: #fff; border-radius: 24px; padding: 56px; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 50%, var(--charcoal) 50% 100%); }
.contact-copy p { color: var(--muted); font-size: 1.05rem; }
.contact-copy .eyebrow { font-size: .8rem; color: var(--red); }
.contact-copy .contact-area { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--ink); font-size: 1rem; }
.contact-area strong { color: var(--charcoal); }
.contact-area svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.include-box { margin-top: 28px; padding: 22px 24px; border-radius: 14px; border: 1px dashed #c9cbd1; background: var(--bg-soft); }
.contact-copy .include-title { font-family: var(--font-head); font-weight: 700; color: var(--charcoal); font-size: .98rem; margin-bottom: 10px; }
.include-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; color: var(--ink); }
.include-list li { position: relative; padding-left: 20px; }
.include-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.contact-email {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; padding: 14px 20px; border-radius: 14px;
  background: var(--red-50); color: var(--red-700); font-weight: 600; font-size: 1.1rem; text-decoration: none; word-break: break-all;
  border: 1px solid var(--red-100);
}
.contact-email:hover { background: var(--red-100); }
.contact-email svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-form { display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--charcoal); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #cfd1d6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 0 0 4px rgba(51,55,64,.14); }
.field textarea { resize: vertical; }
.field.invalid input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(195,30,28,.12); }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; text-align: center; }

/* Footer */
.site-footer { background: var(--charcoal-900); color: #b9bcc4; padding: 56px 0 0; font-size: .95rem; border-top: 4px solid var(--red); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; padding-bottom: 40px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 16px 22px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.footer-logo img { width: 190px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-nav { display: grid; gap: 8px; }
.site-footer a:not(.footer-logo) { color: #e6e7ea; text-decoration: none; }
.site-footer a:not(.footer-logo):hover { color: var(--red-on-dark); }
.footer-contact { justify-self: end; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .87rem; }
.footer-bottom p { margin: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .extra-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; padding: 64px 0 88px; }
  .hero-visual { max-width: 440px; margin-inline: auto; width: 100%; }
  .service-feature { grid-template-columns: 1fr; gap: 26px; padding: 32px 28px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(31,34,40,.08); display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav li .btn { margin-top: 16px; width: 100%; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }

  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps::before { display: none; }
  .contact-card { grid-template-columns: 1fr; padding: 40px 26px 36px; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-contact { justify-self: start; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { height: 68px; }
  .site-nav { top: 68px; }
  .logo-mark { height: 42px; }
  .logo-text { font-size: 1.4rem; }
  .logo-tagline { font-size: .44rem; letter-spacing: .12em; }
  .why-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 22px; }
  .service-feature .feature-main { flex-direction: column; gap: 18px; }
  .service-feature .feature-list { padding: 20px 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-logo-panel { padding: 34px 26px 38px; }
  .hero-badge { left: 8px; bottom: -24px; font-size: .85rem; }
  .extra-card { padding: 20px 18px; }
  .section-head { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
