/* Shaw & Co Roofing - ad landing pages.
   Deliberately framework-free: these pages carry paid traffic, so every
   kilobyte is cost-per-click. System fonts, no webfont request, no JS
   needed to render. */

:root {
  --red: #c1272d;
  --red-dark: #9d1f24;
  --ink: #14181f;
  --muted: #5b6472;
  --line: #e4e8ee;
  --bg-alt: #f6f8fa;
  --radius: 10px;
  --wrap: 1140px;
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.06), 0 8px 24px rgba(20, 24, 31, 0.08);
}

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

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

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
}

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

a {
  color: var(--red);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 800;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.center {
  text-align: center;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}

.center .lede {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- header ---------- */
/* Dark header on purpose: the Shaw wordmark is white-on-transparent (there is
   no dark variant in the media library), so on a white bar the "SHAW & CO"
   line disappears entirely. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.topbar img {
  height: 38px;
  width: auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  background: var(--red-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn--ghost:hover {
  background: var(--bg-alt);
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(20, 24, 31, 0.72), rgba(20, 24, 31, 0.82)),
    var(--hero-img, none) center / cover no-repeat;
  color: #fff;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero h1 {
  color: #fff;
}

.hero__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
  }
}

.hero__copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero__badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero__badges img {
  height: 52px;
  width: auto;
}

.ticks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 10px;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

/* ---------- form ---------- */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.card h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.form__row {
  margin-bottom: 12px;
}

.form__row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.form__row input,
.form__row textarea {
  width: 100%;
  padding: 12px 14px;
  /* 16px minimum stops iOS zooming the page on focus */
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.15);
}

.form__row textarea {
  min-height: 96px;
  resize: vertical;
}

.form__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 10px 0 0;
  text-align: center;
}

/* Honeypot: hidden from people, irresistible to bots. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  /* Pinned at 16px like every other field: it is off-screen so it can never be
     tapped, but this leaves no ambiguity in a zoom-on-focus audit. */
  font-size: 16px !important;
}

.alert {
  background: #fdecec;
  border: 1px solid #f5c2c4;
  color: #8c1c21;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* ---------- trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: center;
}

@media (min-width: 760px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust strong {
  display: block;
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1.2;
}

.trust span {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- grids ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.tile img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.tile__body {
  padding: 14px 16px 18px;
}

.tile__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }
}

.split img {
  border-radius: 14px;
}

/* ---------- brand logos ---------- */
.brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 40px;
}

.brands img {
  height: 42px;
  width: auto;
  opacity: 0.72;
  filter: grayscale(1);
}

/* ---------- final CTA ---------- */
.cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- footer ---------- */
/* Dark for the same reason as the header - the logo needs a dark backing. */
.footer {
  background: var(--ink);
  padding: 34px 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
}

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

.footer img {
  height: 40px;
  width: auto;
}

.footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- thank you ---------- */
.ty {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(2.5rem, 8vw, 5rem) 0;
}

.ty__tick {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e9f7ef;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.ty__tick svg {
  width: 38px;
  height: 38px;
  stroke: #1e9e5a;
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== base-site additions (nav, prose, gallery) ===== */

.topbar__inner {
  flex-wrap: wrap;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  order: 3;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 900px) {
  .nav {
    order: 0;
    width: auto;
    padding-top: 0;
    border-top: 0;
    margin-left: auto;
    margin-right: 18px;
  }
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav a[aria-current="page"] {
  color: #fff;
  background: var(--red);
}

/* long-form page copy */
.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 1.8em;
}

.prose h3 {
  margin-top: 1.4em;
  font-size: 1.05rem;
}

.prose ul {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 1.2rem;
}

.prose ul li {
  position: relative;
  padding-left: 28px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 15px;
  height: 8px;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 14px 0 0;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--red);
}

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

/* page intro band */
.pagehead {
  background: var(--ink);
  color: #fff;
  padding: clamp(2rem, 5vw, 3.2rem) 0;
}

.pagehead h1 {
  color: #fff;
  margin-bottom: 0.3em;
}

.pagehead p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
  margin: 0;
}

.sidebar-cta {
  position: sticky;
  top: 90px;
}

.layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 980px) {
  .layout {
    grid-template-columns: 1fr 380px;
    gap: 48px;
  }
}
