/* Roof Shield — static recreation of the live WordPress/Divi site.
   Every colour, size and spacing value below was measured from the live
   site's own stylesheets and screenshots (see AUDIT.md). Tokens only. */

:root {
  /* colours, measured from the live Divi customizer + module CSS */
  --accent: #56c0fa;          /* primary blue: buttons, headings, current nav */
  --accent-2: #5cbffa;        /* hover blue, footer icon circles, bottom bar */
  --accent-3: #0fbfee;        /* mobile menu icon */
  --link: #68bd45;            /* Divi default link colour, still live on the site */
  --ink: #090b0a;             /* body text */
  --heading: #222222;         /* headings */
  --dark: #393939;            /* header + footer ground */
  --near-black: #020202;
  --muted: #b3c1c2;
  --white: #ffffff;

  --font: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
  --container: 1200px;
  --gutter: 80%;              /* Divi row width */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 2px 18px 0 rgba(0, 0, 0, 0.12);
  --shadow-panel: 0 2px 18px 0 rgba(0, 0, 0, 0.08);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8em;
  font-weight: 500;           /* live Divi body text is weight 500 (U17) */
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding-bottom: 10px;
  color: var(--heading);
  line-height: 1em;
  font-weight: 500;
}
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; border: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.theme-color { color: var(--accent); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  padding: 15px 0;
  transition: padding 300ms ease;
}
.site-header.is-stuck { padding: 10px 0; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo { display: block; line-height: 0; margin-right: 50px; }
.header__logo img {
  height: 93px;
  width: auto;
  transition: height 300ms ease;
}
.site-header.is-stuck .header__logo img { height: 83px; }

.header__nav { margin-left: auto; }
.header__nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__nav a {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 300ms ease;
}
.header__nav a:hover { color: var(--accent); text-decoration: none; }
.header__nav a[aria-current="page"] { color: var(--accent); }

.btn-phone {
  display: inline-block;
  margin-left: 100px;
  padding: 9px 25px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.7em;
  text-decoration: none;
  transition: color 300ms ease, background-color 300ms ease, border 300ms ease;
}
.btn-phone:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--white);
  text-decoration: none;
}

/* mobile header pieces */
.header__call,
.header__burger { display: none; }

.header__call {
  color: var(--accent);
  line-height: 0;
  margin-left: auto;
}
.header__call svg { width: 22px; height: 22px; fill: currentColor; }

.header__burger {
  appearance: none;
  border: 0;
  background: none;
  padding: 6px;
  cursor: pointer;
  color: var(--accent-3);
  line-height: 0;
}
.header__burger svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.header__burger .burger-x { display: none; }
.header__burger[aria-expanded="true"] .burger-bars { display: none; }
.header__burger[aria-expanded="true"] .burger-x { display: block; }

/* mobile dropdown menu (Wardrop Digital standard, see BUILD-NOTES) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(57, 57, 57, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.nav-panel {
  position: fixed;
  left: 16px;
  right: 16px;
  z-index: 99;
  background: var(--dark);
  border-radius: 14px;
  padding: 14px 18px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 250ms ease, transform 250ms ease, visibility 250ms ease;
}
.nav-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-panel ul { list-style: none; margin: 0 0 12px; padding: 0; }
.nav-panel li + li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.nav-panel a {
  display: block;
  padding: 13px 2px;
  color: var(--white);
  font-size: 17px;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-panel a[aria-current="page"] { color: var(--accent); }
.nav-panel .nav-panel__call {
  display: block;
  margin-bottom: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}
.nav-panel .nav-panel__email {
  display: block;
  text-align: center;
  color: var(--white);
  font-size: 15px;
  text-transform: none;
  padding: 0;
}

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  background: url('/images/hero-home.webp') center / cover no-repeat;
  padding: 10vh 0 180px;
}
.hero__row {
  display: grid;
  grid-template-columns: 58.8% 38.2%;
  gap: 3%;
  align-items: center;
}
.hero__text {
  width: 600px;
  max-width: 100%;
}
.hero__text h4 {
  font-size: 26px;
  line-height: 1.2em;
  color: var(--white);
  font-weight: 500;
}
.hero__text h1 {
  font-size: 48px;
  line-height: 1.2em;
  color: var(--white);
}
.hero__text h3 {
  text-transform: uppercase;
  color: var(--white);
  font-size: 22px;
}
.hero__panel {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  padding: 25px;
  overflow: hidden;
}
.hero__panel h2 {
  font-size: 26px;
  color: var(--white);
  line-height: 1em;
  margin-bottom: 8px;
}

/* the Divi bottom divider, redrawn from the live site's own SVG */
.section-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  z-index: 1;
  background-size: 100% 100px;
  background-repeat: no-repeat;
  background-position: bottom;
  transform: scale(1, -1);
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNGRkZGRkYiPjxwYXRoIGQ9Ik05NzguODEgMTIyLjI1TDAgMGgxMjgwbC0yNjIuMSAxMTYuMjZhNzMuMjkgNzMuMjkgMCAwIDEtMzkuMDkgNS45OXoiLz48L2c+PC9zdmc+");
}

/* ---------- about ---------- */

.about {
  background: var(--white);
  padding: 60px 0 80px;
  /* the two columns slide in from off-screen (Divi's slideLeft/slideRight,
     U3); clip them here so their start state never widens the page on a phone */
  overflow: hidden;
}
.about__intro {
  text-align: center;
  line-height: 2em;
  padding: 0 10% 40px;
}
.about__intro h4 {
  text-transform: uppercase;
  font-size: 39px;
  color: var(--ink);
  line-height: 1em;
}
.about__split {
  display: grid;
  grid-template-columns: 48.5% 48.5%;
  gap: 3%;
  align-items: stretch;
}
.about__photo {
  background: url('/images/about.webp') center / cover no-repeat;
  min-height: 321px;
  border-radius: 0;
}
.about__copy {
  padding: 30px 0;
  margin: auto 0;
}
.about__copy h4 {
  font-size: 38px;
  line-height: 1.3em;
  color: var(--ink);
  margin-bottom: 15px;
}

/* ---------- testimonials ---------- */

.testimonials {
  position: relative;
  padding: 100px 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 10, 0.7) 0%, rgba(9, 11, 10, 0.7) 100%),
    url('/images/testimonials-bg.webp') center / cover no-repeat;
}
.testimonials h2 {
  font-size: 36px;
  line-height: 1.3em;
  color: var(--white);
  text-align: center;
  padding: 0 10% 50px;
}
.slider {
  position: relative;
}
.slider__track { display: grid; width: 80%; margin: 0 auto; overflow: hidden; }
.slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
  text-align: center;
  padding: 0 10%;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide p {
  font-weight: 400;           /* the live slider quote is 400 */
  font-size: 21px;
  line-height: 1.6em;
  color: var(--white);
}
.slide h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 20px;
  padding-bottom: 0;
  line-height: 1.4em;
}
/* Arrows: the live Divi slider only showed its 48px white chevrons on mouse-hover
   (rule U1, Rob 2026-09-24: arrows are always visible, on every width). Same
   white chevron, same 22px inset as Divi's hover position, shown at rest. */
.slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  opacity: 1;
  transition: opacity 200ms ease-in-out;
  display: grid;
  place-items: center;
}
.slider__nav:hover { opacity: 0.7; }
.slider__nav svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.slider__nav--prev { left: 22px; }
.slider__nav--next { right: 22px; }

/* ---------- services ---------- */

.services { padding: 80px 0; background: var(--white); }
.services h2 {
  font-size: 36px;
  color: var(--accent);
  text-align: center;
  padding: 0 12% 10px;
  line-height: 1em;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 31.3333%);
  gap: 35px 3%;
  padding-top: 35px;
}
.service-card {
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: 25px;
  text-align: center;
  transition: background-color 300ms ease;
}
.service-card img {
  display: block;
  width: 100px;
  height: auto;
  margin: 0 auto 30px;
}
.service-card h4 {
  text-transform: uppercase;
  color: var(--heading);
  padding-bottom: 0;
  line-height: 1.4em;
  transition: color 300ms ease;
}
.service-card:hover { background: var(--accent-2); }
.service-card:hover h4 { color: var(--white); }

/* ---------- call-to-action band ---------- */

.cta {
  background: var(--accent);
  padding: 50px 0;
}
.cta__row {
  display: grid;
  grid-template-columns: 58.8% 38.2%;
  gap: 3%;
  align-items: center;
}
.cta__text {
  color: var(--white);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5em;
}
.cta__text h4 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 36px;
  color: var(--white);
  line-height: 1.2em;
  padding-bottom: 0;
}
.cta__text h3 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 50px;
  color: var(--white);
  line-height: 1.1em;
}
.cta__btn-wrap { text-align: right; }
.btn-light {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid var(--white);
  border-radius: 3px;
  background: var(--white);
  color: var(--dark);
  font-size: 17px;
  text-decoration: none;
  transition: color 300ms ease, background-color 300ms ease;
}
.btn-light:hover { background: var(--accent); color: var(--white); text-decoration: none; }

/* ---------- contact page ---------- */

.page-hero {
  position: relative;
  padding: 25vh 0 190px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%),
    url('/images/hero-contact.webp') center / cover no-repeat;
}
.page-hero h1 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 40px;
  color: var(--white);
  padding-bottom: 0;
  line-height: 1em;
}

.get-in-touch { padding: 60px 0 80px; }
.get-in-touch h2 {
  font-size: 36px;
  text-align: center;
  color: var(--heading);
  padding-bottom: 35px;
  line-height: 1em;
}
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-panel);
  background: var(--white);
}
.contact-card__details,
.contact-card__form { padding: 40px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}
.contact-line:first-child { padding: 0; line-height: 2em; }
.contact-line .icon { color: var(--accent-2); line-height: 0; flex: none; }
.contact-line .icon svg { width: 32px; height: 32px; fill: currentColor; }
.contact-line a,
.contact-line span.contact-line__text {
  font-size: 17px;
  line-height: 1.6em;
  color: var(--heading);
  text-decoration: none;
  transition: color 300ms ease;
}
.contact-line a:hover { color: var(--muted); text-decoration: none; }

.social-square {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--accent-2);
  color: var(--accent-2);
  margin-top: 6px;
}
.social-square svg { width: 22px; height: 22px; fill: currentColor; }

.contact-card__note {
  padding-top: 30px;
  font-size: 16px;
  line-height: 2em;
  color: var(--heading);
}
.contact-card__form h4 {
  font-size: 26px;
  color: var(--ink);
  padding-bottom: 25px;
  line-height: 1.2em;
}

/* ---------- hosted quote form ---------- */

.quote-form iframe { display: block; width: 100%; border: 0; }

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  padding: 60px 0;
  background-color: var(--dark);
  color: var(--white);
}
.site-footer__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyAgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAxMykiIGhlaWdodD0iMTk0cHgiIHdpZHRoPSIxMTJweCIgdmlld0JveD0iMCAwIDExMiAxOTQiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTU2LDEyOS4zMywwLDk3LDU2LDY0LjY3LDExMiw5N1pNNTYsMEgwVjMyLjMzWm01NiwzMi4zM1YwSDU2Wk01NiwxOTRoNTZWMTYxLjY3Wk0wLDE2MS42N1YxOTRINTZaIi8+CgkJCQkJCQkJCQk8cGF0aCBmaWxsLW9wYWNpdHk9Ii41IiBkPSJNNTYsMFY2NC42N0wwLDk3VjMyLjMzWm0wLDEyOS4zM1YxOTRsNTYtMzIuMzNWOTdaIi8+PC9zdmc+");
  background-repeat: repeat;
  background-size: 112px 194px;
}
.site-footer .container { z-index: 2; }
.site-footer__logo { text-align: center; margin-bottom: 10px; }
.site-footer__logo img { width: 200px; height: auto; }
.site-footer__blurb {
  text-align: center;
  color: var(--white);
  line-height: 2em;
  padding: 0 10%;
}
.site-footer__social { text-align: center; padding: 10px 0; }
.social-circle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--white);
  border-radius: 33px;
  color: var(--white);
}
.social-circle svg { width: 19px; height: 19px; fill: currentColor; }
.site-footer__tag {
  text-align: center;
  color: var(--white);
  line-height: 1.2em;
  padding: 0 10%;
}
.footer-contacts {
  display: grid;
  grid-template-columns: 48.5% 48.5%;
  gap: 3%;
  padding: 25px 150px 0;
}
.footer-contact { text-align: center; }
.footer-contact__icon {
  display: inline-grid;
  place-items: center;
  width: 80px;
  height: 80px;
  padding: 25px;
  border-radius: 55px;
  background: var(--accent-2);
  color: var(--white);
  margin-bottom: 14px;
}
.footer-contact__icon svg { width: 30px; height: 30px; fill: currentColor; }
.footer-contact p { margin: 0; line-height: 1.6em; }
.footer-contact .phone { color: var(--white); }

.site-footer__bar {
  background: var(--accent-2);
  padding: 12px 0;
}
.site-footer__bar p {
  margin: 0;
  text-align: center;
  color: var(--white);
  line-height: 1.8em;
}

/* ---------- 404 (a new page, not carried over from the live site) ---------- */

.error-copy a { color: var(--accent); }
.error-copy .btn-phone { display: inline-block; margin-left: 0; color: var(--white); }
.error-copy .btn-phone:hover { color: var(--white); text-decoration: none; }

/* ---------- floating mobile buttons ---------- */

.call-fab,
.to-top {
  position: fixed;
  right: 18px;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
}
.call-fab {
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.call-fab svg { width: 26px; height: 26px; fill: currentColor; }
.to-top {
  bottom: calc(90px + env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent);
  background: var(--white);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
  padding: 0;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.reveal-icon { transition-duration: 0.5s; }

/* ---------- breakpoints (the live site's: 980px and 767px) ---------- */

@media only screen and (max-width: 980px) {
  .header__logo { margin-right: 0; }
  .header__logo img,
  .site-header.is-stuck .header__logo img { height: auto; width: 100px; }
  .site-header { padding: 5px 0; }
  .site-header.is-stuck { padding: 5px 0; }
  .header__nav,
  .btn-phone { display: none; }
  .header__call { display: block; }
  .header__burger { display: block; }

  .hero { padding: 200px 0 140px; }
  .hero__row { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero__text { width: 600px; max-width: 100%; margin-bottom: 25px; }
  .hero__text h1 { font-size: 39px; line-height: 1.2em; }
  .hero__text h3 { font-size: 20px; }
  .hero__text h4 { font-size: 24px; }

  .about { padding: 50px 0 60px; }
  .about__intro { padding: 0 0 40px; }
  .about__intro h4 { font-size: 36px; }
  .about__split { grid-template-columns: 1fr; gap: 30px; }
  .about__photo { min-height: 300px; }
  .about__copy { padding: 0; text-align: center; }
  .about__copy h4 { font-size: 31px; line-height: 1.2em; }

  .testimonials { padding: 80px 0; }
  .testimonials h2 { font-size: 36px; padding: 0 0 50px; }
  .slider__track { width: 90%; }
  .slide { padding: 0; }
  /* U1: on phones and tablets the arrows sit in the page's side gutters
     (the 10% outside the container), clear of the quote text */
  .slider__nav { width: 36px; height: 44px; }
  .slider__nav svg { width: 26px; height: 26px; }
  .slider__nav--prev { left: calc((100% - 100vw) / 2 + 2px); }
  .slider__nav--next { right: calc((100% - 100vw) / 2 + 2px); }

  .services { padding: 60px 0; }
  .services h2 { font-size: 34px; padding: 0 0 10px; }
  .services__grid { grid-template-columns: 1fr; gap: 30px; }

  .cta__row { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .cta__btn-wrap { text-align: center; }

  .page-hero { padding: 200px 0 140px; }
  .get-in-touch { padding: 50px 0 60px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card__details,
  .contact-card__form { padding: 40px 30px; }

  .site-footer__logo img { width: 150px; }
  .site-footer__blurb,
  .site-footer__tag { padding: 0; }
  .footer-contacts { grid-template-columns: 1fr; gap: 30px; padding: 25px 0 0; }
}

@media only screen and (max-width: 767px) {
  .hero { padding: 180px 0 120px; }
  .hero__text { width: 350px; max-width: 100%; margin-bottom: 20px; }
  .hero__text h1 { font-size: 39px; line-height: 1.3em; }
  .hero__text h4 { font-size: 22px; }

  .about { padding: 50px 0; }
  .about__intro h4 { font-size: 32px; }
  .about__copy h4 { font-size: 30px; line-height: 1.3em; }

  .testimonials { padding: 60px 0; }
  .testimonials h2 { font-size: 32px; }

  .services,
  .cta { padding: 50px 0; }
  .cta__text h3 { font-size: 40px; }
  .cta__text h4 { font-size: 30px; }

  .page-hero { padding: 180px 0 120px; }
  .page-hero h1 { font-size: 34px; }
  .get-in-touch { padding: 50px 0; }
  .contact-card { box-shadow: none; }
  .contact-card__details { padding: 40px 0; }
  .contact-card__form { padding: 20px 0; }
}

@media only screen and (max-width: 720px) {
  .call-fab { display: flex; }
  .to-top { display: flex; }
  .site-footer { padding-bottom: 96px; }
  /* U5: the floating call and back-to-top buttons (right 18px, 60px wide)
     must never cover the © line: keep the text clear of that column */
  .site-footer__bar .container { padding-right: 72px; }
  .site-footer__bar p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
