/* Canada's Roofer — mockup theme (Canadian palette) */
:root {
  --maple-red: #c8102e;
  --maple-red-dark: #9e0c24;
  --white: #ffffff;
  --snow: #f7f5f2;
  --slate: #2b2f36;
  --slate-muted: #5c6370;
  --line: #e6e1da;
  --parliament: #26374a;
  --success: #1f7a4a;
  --shadow: 0 12px 40px rgba(28, 28, 28, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--snow);
}

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

a {
  color: var(--maple-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--maple-red-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--maple-red);
  color: var(--white);
  z-index: 2000;
  border-radius: var(--radius-sm);
}

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--maple-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--slate-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--slate);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--maple-red);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--snow);
  color: var(--maple-red);
}

.site-nav a.is-active {
  background: var(--maple-red);
  color: var(--white);
}

.site-nav a.is-active:hover {
  background: var(--maple-red-dark);
  color: var(--white);
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    width: 100%;
    order: 10;
    display: none;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    width: 100%;
  }

  .header-cta {
    order: 5;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

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

.btn-primary {
  background: var(--maple-red);
  color: var(--white);
  border-color: var(--maple-red);
}

.btn-primary:hover {
  background: var(--maple-red-dark);
  border-color: var(--maple-red-dark);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--maple-red);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--slate);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--maple-red);
  color: var(--maple-red);
}

.hero {
  position: relative;
  color: var(--white);
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(40, 20, 24, 0.25) 0%,
    rgba(12, 12, 18, 0.85) 100%
  );
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 56px;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 16ch;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 52ch;
  margin: 0 0 24px;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.page-hero {
  background: linear-gradient(135deg, var(--parliament) 0%, #1a2330 100%);
  color: var(--white);
  padding: 48px 20px 40px;
  border-bottom: 6px solid var(--maple-red);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  margin: 0 0 12px;
}

.page-hero p {
  margin: 0;
  max-width: 65ch;
  opacity: 0.92;
  font-size: 1.1rem;
}

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

.section-tight {
  padding-top: 32px;
  padding-bottom: 32px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0 0 12px;
  color: var(--parliament);
}

.section-intro {
  margin: 0 0 32px;
  max-width: 70ch;
  color: var(--slate-muted);
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--slate);
}

.card p {
  margin: 0;
  color: var(--slate-muted);
  font-size: 0.98rem;
}

.card .btn {
  margin-top: 16px;
}

.flag-strip {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--maple-red) 0%,
    var(--maple-red) 30%,
    var(--white) 30%,
    var(--white) 70%,
    var(--maple-red) 70%,
    var(--maple-red) 100%
  );
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--maple-red);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

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

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

table.compare th,
table.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

table.compare th {
  background: var(--snow);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--parliament);
}

table.compare tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(200, 16, 46, 0.1);
  color: var(--maple-red);
}

.quote-banner {
  background: var(--maple-red);
  color: var(--white);
  padding: 28px 20px;
  text-align: center;
}

.quote-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
}

.quote-banner strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.form {
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font: inherit;
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--maple-red);
  outline-offset: 1px;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 4px;
}

.site-footer {
  background: var(--parliament);
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 20px 28px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

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

@media (min-width: 900px) {
  .split.two {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  margin: 10px 0 0;
  color: var(--slate-muted);
  font-size: 0.96rem;
}

.cta-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}

.cta-bar p {
  margin: 0;
  max-width: 48ch;
}

.muted {
  color: var(--slate-muted);
  font-size: 0.95rem;
}
