/* Raise The Roof NE
   Palette taken from the job itself: Welsh slate, lead flashing, a North East
   sky, and the orange of the RTR logo. Type is condensed like van signage. */
:root {
  --slate: #2a333c;
  --slate-deep: #1c232a;
  --lead: #6f7a84;
  --sky: #e7ebef;
  --paper: #ffffff;
  --rtr-orange: #e4572e;
  --rtr-orange-dark: #c2441f;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;

  /* Names kept for blog.css and the blog templates */
  --charcoal: #2a333c;
  --coal: #3a444e;
  --ink: #1c232a;
  --stone: #e7ebef;
  --sand: #e7ebef;
  --mist: #f5f7f8;
  --accent: #e4572e;
  --accent-dark: #c2441f;
  --shadow: 0 1px 2px rgba(28, 35, 42, 0.08), 0 8px 24px rgba(28, 35, 42, 0.08);
  --radius: 6px;
  --pitch: 5vw; /* height of the roof pitch cut into the hero */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

section {
  scroll-margin-top: 90px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--rtr-orange);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.005em;
}

h2 {
  font-size: clamp(2.25rem, 4.2vw, 3.4rem);
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--slate);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

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

/* ---------- Promo + header ---------- */

.promo-banner {
  background: var(--slate-deep);
  color: #dfe5ea;
  text-align: center;
  font-size: 0.95rem;
  padding: 8px 5%;
}

.promo-banner span {
  display: inline-block;
  margin: 0 0.2em;
  padding: 1px 8px;
  border: 1px dashed var(--rtr-orange);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #d9dfe4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: auto;
  height: auto;
  max-height: 140px;
  display: block;
  clip-path: inset(20% 0 20% 0);
  margin: -14px 0;
}

.brand-title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
}

.brand-subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--lead);
}

.primary-nav {
  display: flex;
  gap: 26px;
  font-weight: 600;
  font-size: 1rem;
}

.primary-nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  border-bottom-color: var(--rtr-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  border: 1px solid var(--slate);
  background: transparent;
  color: var(--slate);
  border-radius: var(--radius);
  padding: 8px 14px;
  font: 600 1rem var(--body);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 4px 5% 16px;
  border-top: 1px solid #d9dfe4;
}

.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid #edf0f2;
}

.mobile-nav a:last-child {
  border-bottom: 0;
  color: var(--rtr-orange-dark);
}

.mobile-nav.open {
  display: flex;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--body);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1.08rem;
}

.btn-primary {
  background: var(--rtr-orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--rtr-orange-dark);
}

.btn-outline {
  border-color: var(--slate);
  color: var(--slate);
  background: transparent;
}

.btn-outline:hover {
  background: var(--slate);
  color: #fff;
}

.btn-secondary {
  background: var(--slate);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--slate-deep);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.btn-google {
  background: #fff;
  color: var(--ink);
  border-color: #cfd6dc;
}

.btn-google:hover {
  border-color: var(--slate);
}

.btn-google .google-g {
  flex-shrink: 0;
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rtr-orange);
}

.eyebrow {
  font-weight: 600;
  color: var(--rtr-orange-dark);
  margin-bottom: 10px;
}

/* ---------- Hero: the roof pitch ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--slate-deep);
  /* The bottom edge is a pitched roof: eaves at both sides, ridge off-centre. */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pitch)), 64% 100%, 0 calc(100% - var(--pitch)));
  padding: 140px 0 calc(var(--pitch) + 84px);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(28, 35, 42, 0.92) 0%, rgba(28, 35, 42, 0.72) 42%, rgba(28, 35, 42, 0.12) 75%),
    linear-gradient(0deg, rgba(28, 35, 42, 0.55), rgba(28, 35, 42, 0) 45%);
}

.hero-content {
  max-width: 1200px;
}

.hero-kicker {
  font-weight: 500;
  color: #c9d2da;
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
  max-width: 11.5ch;
  margin-bottom: 26px;
}

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  max-width: 46ch;
  color: #e3e8ec;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---------- Proof ---------- */

.proof {
  margin-top: calc(var(--pitch) * -1);
  padding: calc(var(--pitch) + 28px) 0 36px;
  background: var(--paper);
}

.proof-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.proof-list li {
  border-left: 3px solid var(--rtr-orange);
  padding-left: 16px;
}

.proof-list strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ink);
}

.proof-list span {
  color: var(--lead);
  font-size: 0.97rem;
}

/* ---------- Services ---------- */

.services {
  padding: 72px 0 96px;
}

.services-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.services-intro h2 {
  margin-bottom: 16px;
}

.services-intro p {
  max-width: 40ch;
  color: var(--coal);
}

.services-photo {
  margin-top: 32px;
}

.services-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-list {
  list-style: none;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) 3fr;
  gap: 8px 32px;
  padding: 26px 0;
  border-bottom: 1px solid #d3d9de;
}

.service-item h3 {
  font-size: 1.9rem;
}

.service-item p {
  color: var(--coal);
  max-width: 44ch;
}

.service-item--urgent {
  background: var(--slate);
  color: #e3e8ec;
  padding: 28px;
  margin-bottom: 4px;
  border-bottom: 0;
  border-radius: var(--radius);
}

.service-item--urgent h3 {
  color: #fff;
}

.service-item--urgent p {
  color: #d3dbe1;
}

.service-link {
  grid-column: 2;
  justify-self: start;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid var(--rtr-orange);
  padding-bottom: 2px;
}

/* ---------- About ---------- */

.about {
  background: var(--sky);
  padding: 96px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 64px;
  align-items: center;
}

.about-photos {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: 560px;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-photo--tall {
  grid-row: span 2;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  max-width: 52ch;
  margin-bottom: 14px;
  color: var(--coal);
}

.about-facts {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.about-facts dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.about-facts dd {
  color: var(--coal);
}

/* ---------- Reviews ---------- */

.testimonials {
  padding: 104px 0 96px;
}

.review-feature {
  max-width: 900px;
}

.stars {
  color: var(--rtr-orange);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.review-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  color: var(--ink);
  min-height: 3.4em;
}

.review-name {
  margin-top: 18px;
  font-weight: 600;
  color: var(--lead);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 40px 0 56px;
  padding-top: 28px;
  border-top: 1px solid #d3d9de;
}

.review-actions p {
  flex: 1 1 320px;
  color: var(--coal);
}

.review-embeds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.embed-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.embed-card iframe {
  border-radius: var(--radius);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--slate);
  color: #e3e8ec;
  padding: 104px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
}

.contact-text h2 {
  color: #fff;
  margin-bottom: 18px;
}

.contact-text p {
  max-width: 42ch;
}

.contact-phone {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1;
  color: #fff;
  border-bottom: 3px solid var(--rtr-orange);
}

.contact-email {
  margin-top: 14px;
}

.contact-email a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-points {
  list-style: none;
  margin-top: 30px;
  display: grid;
  gap: 8px;
}

.contact-points li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 6px;
  margin-right: 12px;
  border-left: 2px solid var(--rtr-orange);
  border-bottom: 2px solid var(--rtr-orange);
  transform: rotate(-45deg) translateY(-3px);
}

.contact-form {
  background: var(--paper);
  color: var(--charcoal);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: 400 1rem var(--body);
  padding: 12px 14px;
  border: 1px solid #b9c2ca;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--slate);
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  font-weight: 600;
  min-height: 1.4em;
}

/* Used by the blog and privacy pages */
.cta-banner {
  background: var(--slate);
  color: #e3e8ec;
  padding: 56px 0;
}

.cta-banner h2 {
  color: #fff;
}

.cta-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--slate-deep);
  color: #b8c3cc;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  margin-bottom: 6px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1200px, 90%);
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-bottom a {
  display: inline;
  color: #fff;
}

  margin-top: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link-button {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-dialog-open {
  overflow: hidden;
}

.consent-embed {
  position: relative;
  min-height: 210px;
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #f3ede7, #ece2d8);
}

.consent-embed iframe {
  width: 100%;
  min-height: 210px;
  border: 0;
  display: block;
}

.consent-embed-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 18px;
  text-align: center;
  background: var(--sky);
  color: var(--coal);
}

.consent-embed-placeholder p {
  max-width: 26rem;
}

.consent-embed-placeholder[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  right: auto;
  top: auto;
  z-index: 60;
  display: grid;
  place-items: end start;
  pointer-events: none;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__scrim {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: auto;
}

.cookie-consent:not(.cookie-consent--modal) .cookie-consent__scrim {
  display: none;
}

.cookie-consent__panel {
  position: relative;
  width: min(300px, calc(100vw - 32px));
  background: #fff;
  box-shadow: 0 12px 40px rgba(28, 35, 42, 0.25);
  border-top: 4px solid var(--rtr-orange) !important;
  color: var(--charcoal);
  border-radius: 10px;
  border: none;
  box-shadow: 0 24px 60px rgba(15, 15, 15, 0.16);
  padding: 16px;
  overflow: hidden;
  pointer-events: auto;
}

.cookie-consent--modal {
  left: 16px;
  bottom: 16px;
  right: auto;
  top: auto;
  place-items: end start;
  padding: 0;
}

.cookie-consent--modal .cookie-consent__panel {
  width: min(340px, calc(100vw - 24px));
  max-height: none;
  overflow: hidden;
}

.cookie-consent__view {
  display: grid;
  gap: 10px;
}

.cookie-consent__view[hidden] {
  display: none !important;
}

.cookie-consent__eyebrow {
  font-size: 0.9rem;
  color: var(--lead);
  font-weight: 700;
  margin-bottom: 0;
}

.cookie-consent h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1vw + 1rem, 1.85rem);
  line-height: 1.15;
}

.cookie-consent__details {
  font-size: 0.95rem;
  color: rgba(31, 31, 31, 0.8);
}

.cookie-consent__policy-note {
  font-size: 0.9rem;
  color: rgba(31, 31, 31, 0.74);
}

.cookie-consent__policy-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.cookie-consent__actions .btn {
  flex: 1 1 0;
  padding: 11px 12px;
  font-size: 0.88rem;
}

.cookie-consent__form {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.cookie-consent__option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  border: none;
  box-shadow: inset 0 0 0 1px rgba(44, 44, 44, 0.06);
}

.cookie-consent__option input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.cookie-consent__option span {
  display: grid;
  gap: 4px;
}

.cookie-consent__option small {
  color: rgba(31, 31, 31, 0.7);
  font-size: 0.82rem;
}


/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .primary-nav { gap: 18px; }
  .header-actions .btn { display: none; }
}

@media (max-width: 980px) {
  .site-header { position: relative; }
  .primary-nav,
  .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { min-height: 64px; padding: 6px 0; }
  .brand-logo { max-width: 110px; }
  .brand-title { font-size: 1.15rem; }
  .brand-subtitle { font-size: 0.78rem; }

  .services-layout,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .services-photo { display: none; }
  .about-photos { height: 420px; }
  .proof-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --pitch: 9vw; }
  body { font-size: 1rem; }
  .hero { min-height: 92vh; padding-top: 100px; }
  .hero::before {
    background: linear-gradient(0deg, rgba(28, 35, 42, 0.95) 0%, rgba(28, 35, 42, 0.78) 55%, rgba(28, 35, 42, 0.35) 100%);
  }
  .hero-cta .btn { flex: 1 1 100%; }
  .proof-list { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .proof-list strong { font-size: 1.35rem; }
  .service-item { grid-template-columns: 1fr; padding: 22px 0; }
  .service-item--urgent { margin: 0 -5vw; padding: 26px 5vw; border-radius: 0; }
  .service-link { grid-column: 1; margin-top: 6px; }
  .about-photos { height: 340px; }
  .review-embeds,
  .form-row,
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .services, .about, .testimonials, .contact { padding-top: 72px; padding-bottom: 72px; }

  .cookie-consent { left: 8px; bottom: 8px; width: calc(100vw - 16px); }
  .cookie-consent__panel { width: 100%; padding: 15px; }
  .cookie-consent__actions .btn { flex: 1 1 100%; }
  .cookie-consent--modal .cookie-consent__panel { max-height: 72vh; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
