/* ==========================================================================
   Bradford Roofing Services LTD — bradfordroofrepairs.co.uk
   Simple & modern. Mobile-first. No external fonts or libraries.
   ========================================================================== */

:root {
  --red: #c9100c;          /* AA on white for button text */
  --red-bright: #fa0604;   /* logo red — accents only */
  --red-dark: #9d0b08;
  --ink: #14171a;
  --ink-soft: #3d444c;
  --slate: #5c646e;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-alt: #f5f7f8;
  --bg-dark: #14171a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 23, 26, .06), 0 6px 20px rgba(20, 23, 26, .07);
  --shadow-lg: 0 2px 4px rgba(20, 23, 26, .06), 0 14px 40px rgba(20, 23, 26, .12);
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 68px; /* space for mobile call bar */
}

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

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 52px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 38px 0; }
.center { text-align: center; }
.lead { font-size: 1.09rem; color: var(--slate); }
.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;
}

/* ---------- Section heading ---------- */
.shead { max-width: 720px; margin-bottom: 30px; }
.shead.center { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .55em;
}
.shead p { margin-bottom: 0; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  line-height: 1.2;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: #f0f0f0; color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- Top strip ---------- */
.topbar {
  background: var(--bg-dark);
  color: #c9ced4;
  font-size: .85rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--red-bright); }
.topbar span { display: inline-flex; align-items: center; gap: .4em; }
/* On the narrowest screens the phone number is what matters — keep it one line. */
.topbar span.topbar__area { display: none; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* lets the mobile nav drop onto its own full-width row */
  gap: 16px;
  min-height: 68px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { width: 178px; height: auto; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 42px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Mobile: full-width panel dropping below the logo row */
.nav {
  display: none;
  order: 3;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-bottom: 10px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block;
  padding: 13px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav .nav__cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--bg-dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,17,20,.86) 0%, rgba(15,17,20,.78) 45%, rgba(15,17,20,.9) 100%);
}
.hero__inner { position: relative; padding: 54px 0 46px; }
.hero__content { max-width: 660px; }
.hero h1 { color: #fff; font-size: 2.05rem; margin-bottom: .45em; }
.hero h1 .accent { color: var(--red-bright); }
.hero__sub { font-size: 1.08rem; color: #d7dbe0; margin-bottom: 1.4em; }
.hero__badges { list-style: none; padding: 0; margin: 0 0 1.6em; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero__badges li { margin: 0; display: flex; align-items: center; gap: .45em; font-size: .93rem; font-weight: 600; color: #eef1f3; }
.hero__badges svg { color: var(--red-bright); flex-shrink: 0; }
.hero__note { margin: 1.3em 0 0; font-size: .9rem; color: #aeb5bd; }
.hero__note strong { color: #fff; }

/* ---------- Trust strip ---------- */
.trust { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 22px 0; }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
.trust__item { text-align: center; }
.trust__num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.trust__lbl { display: block; font-size: .84rem; color: var(--slate); margin-top: 3px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
/* Whole-card links must not tint their body copy red */
a.card { color: var(--ink-soft); }
a.card:hover { border-color: #cfd5db; }
a.card:hover h3 { color: var(--red); }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: #fdecec;
  color: var(--red);
  margin-bottom: 15px;
}
.card__list { list-style: none; padding: 0; margin: 14px 0 0; }
.card__list li { position: relative; padding-left: 24px; font-size: .95rem; color: var(--slate); margin-bottom: .35em; }
.card__list li::before {
  content: "";
  position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
}
.card__link { display: inline-block; margin-top: 16px; font-weight: 700; text-decoration: none; font-size: .95rem; }
.card__link::after { content: " →"; }

/* Service card with photo */
.scard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.scard__img { aspect-ratio: 4 / 3; background: var(--bg-alt); }
.scard__img img { width: 100%; height: 100%; object-fit: cover; }
.scard__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.scard__body h3 { margin-bottom: .45em; }
.scard__body > p { font-size: .97rem; }
.scard__body .card__link { margin-top: auto; }

/* ---------- Split feature ---------- */
.split { display: grid; gap: 26px; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split__body h2 { margin-bottom: .5em; }

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: .28em;
  width: 21px; height: 21px; 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Warning signs (2-col list) ---------- */
.signs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.signs li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  margin: 0;
  font-size: .97rem;
}
.signs strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 22px 68px;
  margin: 0;
  box-shadow: var(--shadow);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px; top: 21px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border-radius: 50%;
  font-weight: 800; font-size: .98rem;
}
.steps h3 { margin-bottom: .3em; font-size: 1.05rem; }
.steps p { margin: 0; font-size: .95rem; color: var(--slate); }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 580px; font-size: .95rem; }
caption { text-align: left; padding: 16px 18px 0; color: var(--slate); font-size: .9rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-alt); color: var(--ink); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq details[open] { border-color: #d3d8dd; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  padding: 17px 50px 17px 20px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  list-style: none;
  font-size: 1.01rem;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 20px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -7px;
  border-right: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .faq__a { padding: 0 20px 18px; }
.faq .faq__a p:last-child { margin-bottom: 0; }
.faq .faq__a p { font-size: .97rem; }

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1.4em; list-style: none; }
.areas li {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .88rem;
  color: var(--ink-soft);
}

/* ---------- Contact blocks ---------- */
.contact-grid { display: grid; gap: 16px; }
.cbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.cbox__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: #fdecec; color: var(--red);
  margin-bottom: 14px;
}
.cbox h3 { margin-bottom: .3em; font-size: 1.05rem; }
.cbox__val { font-size: 1.22rem; font-weight: 800; color: var(--ink); text-decoration: none; display: block; margin-bottom: .3em; word-break: break-word; letter-spacing: -.01em; }
a.cbox__val:hover { color: var(--red); }
.cbox p { font-size: .93rem; color: var(--slate); margin-bottom: 0; }
.cbox address { font-style: normal; font-size: 1.02rem; color: var(--ink); font-weight: 600; line-height: 1.5; }


/* ---------- Map ---------- */
.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  line-height: 0;
  background: var(--bg-alt);
}
.map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--bg-dark);
  color: #fff;
  padding: 46px 0;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #c3c9d0; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta__phone {
  display: inline-block;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.02em;
  margin: .2em 0 .7em;
}
.cta__phone:hover { color: var(--red-bright); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .86rem; color: var(--slate); padding: 14px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: #b9c0c7; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Page header ---------- */
.phead { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 26px 0 40px; }
.phead h1 { margin-bottom: .4em; }
.phead p { max-width: 680px; margin-bottom: 0; color: var(--slate); font-size: 1.06rem; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: #9aa2ab; padding: 44px 0 20px; font-size: .93rem; }
.footer h2 { color: #fff; font-size: .95rem; margin-bottom: 1em; letter-spacing: .02em; }
.footer a { color: #c9ced4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 30px; }
.footer__logo { width: 175px; margin-bottom: 16px; background: #fff; padding: 9px 12px; border-radius: var(--radius-sm); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55em; }
.footer address { font-style: normal; }
.footer__bottom {
  border-top: 1px solid #2a2f35;
  margin-top: 34px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: .85rem;
}
.footer__bottom p { margin: 0; }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  gap: 8px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(20,23,26,.09);
}
.callbar .btn { flex: 1; padding: 13px 10px; font-size: .97rem; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 600px) {
  .topbar span.topbar__area { display: inline-flex; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .signs { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }
}

@media (min-width: 780px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 40px; }
  .split--reverse .split__media { order: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }

  .nav-toggle { display: none; }
  .nav {
    display: block !important;
    order: 0;
    width: auto;
    border-top: 0;
    padding-bottom: 0;
    max-height: none;
    overflow: visible;
  }
  .nav ul { display: flex; align-items: center; gap: 4px; }
  .nav a { border-bottom: 0; padding: 9px 14px; border-radius: var(--radius-sm); font-size: .98rem; }
  .nav a:hover { background: var(--bg-alt); }
  .nav a[aria-current="page"] { background: var(--bg-alt); }
  .nav .nav__cta { display: block; margin-left: 10px; }
  .nav .nav__cta a {
    background: var(--red); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 700;
  }
  .nav .nav__cta a:hover { background: var(--red-dark); color: #fff; }

  .header__inner { min-height: 78px; }
  .logo img { width: 205px; }

  .section { padding: 72px 0; }
  .section--tight { padding: 48px 0; }
  .hero__inner { padding: 86px 0 78px; }
  .hero h1 { font-size: 3rem; }
  .hero__sub { font-size: 1.18rem; }
  .phead { padding: 30px 0 54px; }
  h1 { font-size: 2.7rem; }
  .map iframe { height: 420px; }
  .cta { padding: 64px 0; }
  .cta__phone { font-size: 2.3rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .signs { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover { transform: none; }
}

@media print {
  .header, .topbar, .callbar, .cta, .footer, .nav-toggle { display: none !important; }
  body { padding: 0; color: #000; }
  .hero { background: #fff; color: #000; }
  .hero__media { display: none; }
  .hero h1 { color: #000; }
}
