:root {
    --ink: #15191d;
    --ink-soft: #30363b;
    --red: #d71920;
    --red-dark: #aa1117;
    --green: #4f675b;
    --paper: #ffffff;
    --mist: #f1f3f4;
    --line: #d9dde0;
    --muted: #626b72;
    --container: 1240px;
    --shadow: 0 14px 34px rgba(21, 25, 29, 0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 132px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

svg {
    flex: 0 0 auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 1.08;
}

h1 {
    margin-bottom: 24px;
    font-size: 64px;
}

h2 {
    margin-bottom: 22px;
    font-size: 42px;
}

h3 {
    margin-bottom: 13px;
    font-size: 24px;
}

p {
    margin-bottom: 20px;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 3px;
    background: currentColor;
    content: "";
}

.eyebrow-light {
    color: #ffffff;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    transform: translateY(-150%);
    border-radius: 4px;
    color: #ffffff;
    background: var(--ink);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid #f3a000;
    outline-offset: 3px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 19px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button svg,
.text-link svg,
.service-card a svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.button-primary {
    color: #ffffff;
    background: var(--red);
}

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

.button-secondary {
    border-color: var(--ink);
    color: var(--ink);
    background: #ffffff;
}

.button-secondary:hover {
    color: #ffffff;
    background: var(--ink);
}

.button-light {
    color: var(--ink);
    background: #ffffff;
}

.button-light:hover {
    background: var(--mist);
}

.button-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
    background: transparent;
}

.button-outline-light:hover {
    color: var(--ink);
    background: #ffffff;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-weight: 800;
    text-decoration-color: var(--red);
}

.text-link:hover {
    color: var(--red);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 1px 0 var(--line);
}

.utility-bar {
    min-height: 36px;
    color: #ffffff;
    background: var(--ink);
}

.utility-inner {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

.utility-inner p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
}

.utility-inner svg {
    width: 14px;
    height: 14px;
    color: #ef555a;
}

.utility-inner a {
    text-decoration: none;
}

.utility-inner a:hover {
    text-decoration: underline;
}

.nav-shell {
    min-height: 82px;
}

.nav-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    width: 270px;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand img {
    width: 72px;
    height: 53px;
    object-fit: contain;
}

.brand-name {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.05;
    text-transform: uppercase;
}

.brand-name strong {
    white-space: nowrap;
    font-size: 17px;
}

.primary-nav {
    margin-left: auto;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    position: relative;
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 11px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a::after {
    position: absolute;
    right: 11px;
    bottom: 5px;
    left: 11px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--red);
    content: "";
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

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

.header-phone {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}

.header-phone svg {
    width: 31px;
    height: 31px;
    padding: 7px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--green);
}

.header-phone small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.header-quote {
    min-height: 44px;
    padding: 10px 14px;
    white-space: nowrap;
}

.icon-button {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--ink);
    background: #ffffff;
    cursor: pointer;
}

.icon-button svg {
    width: 24px;
    height: 24px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
}

.home-hero {
    position: relative;
    min-height: min(650px, calc(100svh - 96px));
    overflow: hidden;
    color: #ffffff;
    background-image: url("/assets/images/hero-roofing-ottawa.jpg");
    background-position: center center;
    background-size: cover;
}

.home-hero::before,
.page-hero::before {
    position: absolute;
    inset: 0;
    background: rgba(10, 13, 15, 0.58);
    content: "";
}

.hero-inner {
    position: relative;
    display: flex;
    min-height: inherit;
    align-items: center;
    padding: 56px 0 72px;
}

.hero-copy {
    max-width: 730px;
}

.hero-copy h1 {
    max-width: 700px;
    color: #ffffff;
    font-size: 70px;
}

.hero-lead {
    max-width: 680px;
    margin-bottom: 30px;
    color: #f2f4f5;
    font-size: 21px;
    line-height: 1.55;
}

.hero-actions {
    margin-bottom: 28px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
}

.hero-points svg {
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--red);
}

.trust-band {
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
    display: flex;
    min-height: 118px;
    align-items: center;
    gap: 15px;
    padding: 22px;
    border-right: 1px solid var(--line);
}

.trust-grid > div:first-child {
    border-left: 1px solid var(--line);
}

.trust-grid svg {
    width: 34px;
    height: 34px;
    color: var(--red);
    stroke-width: 1.7;
}

.trust-grid span {
    display: flex;
    flex-direction: column;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.trust-grid strong {
    color: var(--ink);
    font-size: 15px;
}

.section-heading {
    margin-bottom: 48px;
}

.section-heading h2 {
    max-width: 760px;
    margin-bottom: 0;
}

.heading-with-action {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    align-items: end;
    gap: 70px;
}

.heading-with-action p:last-child {
    margin: 0;
    color: var(--muted);
}

.centered-heading {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.centered-heading .eyebrow {
    justify-content: center;
}

.centered-heading h2 {
    margin-inline: auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 330px;
    padding: 34px 30px 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.service-card:hover {
    border-color: #b3babf;
    box-shadow: var(--shadow);
}

.service-card > svg {
    width: 40px;
    height: 40px;
    margin-bottom: 31px;
    color: var(--red);
    stroke-width: 1.5;
}

.service-card p {
    color: var(--muted);
}

.service-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration-color: var(--red);
}

.service-number {
    position: absolute;
    top: 24px;
    right: 26px;
    color: #aeb4b8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
}

.split-feature {
    background: var(--mist);
}

.split-feature.alternate {
    background: #ffffff;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 76px;
}

.alternate .split-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.feature-image {
    position: relative;
}

.feature-image > img {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    right: -20px;
    bottom: -20px;
    display: flex;
    width: 230px;
    min-height: 88px;
    flex-direction: column;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 4px;
    color: #ffffff;
    background: var(--red);
}

.image-caption strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.image-caption span {
    font-size: 12px;
}

.feature-copy .lead-copy {
    color: var(--ink-soft);
    font-size: 19px;
    line-height: 1.55;
}

.feature-copy > p:not(.eyebrow):not(.lead-copy) {
    color: var(--muted);
}

.check-list {
    display: grid;
    gap: 14px;
    margin: 28px 0 30px;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-list svg {
    width: 23px;
    height: 23px;
    margin-top: 2px;
    color: var(--red);
}

.check-list span {
    color: var(--muted);
}

.check-list strong {
    color: var(--ink);
}

.compact-list {
    gap: 10px;
}

.project-types {
    background: #ffffff;
}

.project-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-type {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.project-type > img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.project-type-copy {
    padding: 32px;
}

.project-type-copy p:not(.eyebrow) {
    color: var(--muted);
}

.process-band {
    padding: 96px 0;
    color: #ffffff;
    background: var(--ink);
}

.process-heading {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr;
    align-items: end;
    gap: 80px;
}

.process-heading h2,
.process-grid h3 {
    color: #ffffff;
}

.process-heading > p {
    margin: 0;
    color: #c3c9cd;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: roofing-process;
}

.process-grid li {
    min-height: 230px;
    padding: 28px 30px 20px;
    border-top: 1px solid #4c5358;
    border-right: 1px solid #4c5358;
}

.process-grid li:first-child {
    border-left: 1px solid #4c5358;
}

.process-grid span {
    display: block;
    margin-bottom: 33px;
    color: #ef555a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
}

.process-grid p {
    margin: 0;
    color: #bfc5c9;
    font-size: 14px;
}

.faq-preview {
    background: #ffffff;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.2fr);
    gap: 90px;
}

.faq-intro {
    align-self: start;
}

.faq-intro > p:not(.eyebrow) {
    color: var(--muted);
}

.accordion-list {
    border-top: 1px solid var(--line);
}

.accordion-list details {
    border-bottom: 1px solid var(--line);
}

.accordion-list summary {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 4px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.accordion-list summary::-webkit-details-marker {
    display: none;
}

.accordion-list summary svg {
    width: 25px;
    height: 25px;
    padding: 4px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--red);
}

.accordion-list details[open] summary svg {
    transform: rotate(45deg);
}

.accordion-list details p {
    max-width: 820px;
    margin: -3px 48px 24px 4px;
    color: var(--muted);
}

.quote-section {
    position: relative;
    padding: 100px 0;
    color: #ffffff;
    background: #263029;
}

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(540px, 1fr);
    align-items: start;
    gap: 80px;
}

.quote-intro {
    position: sticky;
    top: 150px;
    padding-top: 20px;
}

.quote-intro h2 {
    color: #ffffff;
}

.quote-intro > p:not(.eyebrow) {
    color: #d4dbd7;
    font-size: 18px;
}

.quote-contact-list {
    display: grid;
    gap: 12px;
    margin-top: 36px;
}

.quote-contact-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.quote-contact-list svg {
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
}

.quote-contact-list span {
    display: flex;
    flex-direction: column;
    font-weight: 800;
}

.quote-contact-list small {
    color: #b8c1bc;
    font-size: 11px;
    font-weight: 600;
}

.form-panel {
    padding: 38px;
    border-radius: 7px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.quote-form {
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    min-width: 0;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
}

.field label span {
    color: var(--red);
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    border: 1px solid #b8c0c5;
    border-radius: 4px;
    color: var(--ink);
    background: #ffffff;
}

.field input,
.field select {
    height: 50px;
    padding: 9px 12px;
}

.field textarea {
    min-height: 132px;
    padding: 11px 12px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--ink);
    outline: 3px solid rgba(215, 25, 32, 0.2);
    outline-offset: 0;
}

.field-error input,
.field-error select,
.field-error textarea {
    border-color: var(--red);
    background: #fff7f7;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.consent input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: var(--red);
}

.consent.field-error {
    padding: 8px;
    border-left: 3px solid var(--red);
    color: var(--ink);
    background: #fff7f7;
}

.form-submit {
    width: 100%;
}

.form-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.form-note a {
    color: var(--ink);
    font-weight: 800;
}

.form-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-left: 4px solid var(--red);
    border-radius: 3px;
    background: #fff0f0;
}

.form-alert strong {
    display: block;
    margin-bottom: 5px;
}

.form-alert ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
}

.form-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.page-hero {
    position: relative;
    display: flex;
    min-height: 370px;
    align-items: center;
    color: #ffffff;
    background-image: url("/assets/images/hero-roofing-ottawa.jpg");
    background-position: center 43%;
    background-size: cover;
}

.page-hero-residential {
    background-image: url("/assets/images/residential-roofing.jpg");
    background-position: center 48%;
}

.page-hero-commercial {
    background-image: url("/assets/images/commercial-roofing.jpg");
    background-position: center 42%;
}

.page-hero-inner {
    position: relative;
    padding: 58px 0;
}

.page-hero h1 {
    margin-bottom: 17px;
    color: #ffffff;
    font-size: 54px;
}

.page-hero-inner > p:last-child {
    max-width: 690px;
    margin: 0;
    color: #f0f2f3;
    font-size: 19px;
}

.compact-hero {
    min-height: 310px;
}

.breadcrumb {
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.breadcrumb .container {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
}

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

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service-detail-grid article {
    min-height: 260px;
    padding: 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-detail-grid article > svg {
    width: 38px;
    height: 38px;
    margin-bottom: 24px;
    color: var(--red);
    stroke-width: 1.5;
}

.service-detail-grid article p {
    margin: 0;
    color: var(--muted);
}

.decision-band {
    padding: 76px 0;
    color: #ffffff;
    background: var(--green);
}

.decision-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.75fr 0.75fr;
    gap: 55px;
}

.decision-grid h2,
.decision-grid h3 {
    color: #ffffff;
}

.decision-grid h2 {
    margin: 0;
    font-size: 36px;
}

.decision-grid h3 {
    font-size: 20px;
}

.decision-grid p {
    margin: 0;
    color: #e4eae7;
    font-size: 14px;
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    min-height: 260px;
    padding: 31px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.info-card > svg {
    width: 39px;
    height: 39px;
    margin-bottom: 31px;
    color: var(--red);
    stroke-width: 1.5;
}

.info-card p {
    margin: 0;
    color: var(--muted);
}

.residential-options,
.commercial-systems {
    background: var(--mist);
}

.warning-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 90px;
}

.warning-layout > div:first-child > p:not(.eyebrow) {
    color: var(--muted);
}

.signal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.signal-list li {
    display: flex;
    min-height: 94px;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #ffffff;
}

.signal-list svg {
    width: 27px;
    height: 27px;
    color: var(--red);
}

.positive-list svg {
    padding: 4px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--green);
}

.mini-faq {
    background: var(--mist);
}

.commercial-process {
    background: #242b31;
}

.facility-list-section {
    background: #ffffff;
}

.faq-page-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    align-items: start;
    gap: 80px;
}

.faq-sidebar {
    position: sticky;
    top: 150px;
}

.faq-sidebar > p:not(.eyebrow) {
    color: var(--muted);
}

.sidebar-callout {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 28px;
    padding: 18px;
    border-left: 4px solid var(--red);
    background: var(--mist);
}

.sidebar-callout > svg {
    width: 31px;
    height: 31px;
    color: var(--red);
}

.sidebar-callout span {
    display: flex;
    flex-direction: column;
}

.sidebar-callout small {
    color: var(--muted);
}

.sidebar-callout a {
    font-weight: 800;
}

.accordion-large summary {
    min-height: 86px;
    font-size: 21px;
}

.contact-details {
    padding-bottom: 80px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-methods > a {
    display: flex;
    min-height: 190px;
    align-items: flex-start;
    gap: 17px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
}

.contact-methods > a:hover {
    border-color: var(--ink);
    box-shadow: var(--shadow);
}

.contact-methods > a > svg {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--red);
}

.contact-methods span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow-wrap: anywhere;
}

.contact-methods small {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-methods strong {
    margin: 7px 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
}

.contact-quote {
    padding-top: 96px;
}

.contact-checks {
    display: grid;
    gap: 8px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.contact-checks li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #edf1ef;
    font-weight: 700;
}

.contact-checks svg {
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    background: var(--red);
}

.office-panel {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 28px;
    border-left: 5px solid var(--red);
    background: var(--mist);
}

.office-panel > svg {
    width: 34px;
    height: 34px;
    color: var(--red);
}

.office-panel strong,
.office-panel address {
    display: block;
}

.office-panel address {
    margin: 6px 0 14px;
    color: var(--muted);
    font-style: normal;
}

.legal-section {
    background: #ffffff;
}

.legal-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 760px);
    justify-content: center;
    gap: 90px;
}

.legal-layout aside {
    align-self: start;
    padding: 20px 0;
    border-top: 3px solid var(--red);
    border-bottom: 1px solid var(--line);
}

.legal-layout aside p:not(.eyebrow) {
    color: var(--muted);
}

.legal-content h2 {
    margin-top: 42px;
    font-size: 28px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--muted);
}

.message-page {
    display: flex;
    min-height: 650px;
    align-items: center;
    padding: 90px 0;
    background: var(--mist);
}

.message-inner {
    max-width: 760px;
    text-align: center;
}

.message-inner .eyebrow {
    justify-content: center;
}

.message-inner > p:not(.eyebrow):not(.request-reference) {
    color: var(--muted);
    font-size: 19px;
}

.message-inner .button-row {
    justify-content: center;
    margin-top: 30px;
}

.message-icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    margin: 0 auto 30px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--green);
}

.message-icon svg {
    width: 38px;
    height: 38px;
}

.request-reference {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 4px;
    background: #ffffff;
    font-size: 13px;
}

.error-code {
    color: var(--red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 82px;
    font-weight: 700;
    line-height: 1;
}

.footer-cta {
    padding: 56px 0;
    color: #ffffff;
    background: var(--red);
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-cta h2 {
    max-width: 680px;
    margin: 0;
    color: #ffffff;
    font-size: 34px;
}

.site-footer {
    padding: 72px 0 0;
    color: #b9c0c4;
    background: #101316;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr 0.65fr 1.1fr;
    gap: 60px;
    padding-bottom: 58px;
}

.brand-footer {
    width: 270px;
    margin-bottom: 20px;
}

.brand-footer img {
    padding: 3px;
    border-radius: 3px;
    background: #ffffff;
}

.brand-footer .brand-name,
.brand-footer .brand-name strong {
    color: #ffffff;
}

.footer-brand > p {
    max-width: 360px;
    margin: 0;
    font-size: 14px;
}

.footer-heading {
    margin-bottom: 20px;
    color: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: #b9c0c4;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact {
    display: grid;
    gap: 13px;
    font-style: normal;
}

.footer-contact a,
.footer-contact span {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #b9c0c4;
    font-size: 13px;
    text-decoration: none;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: #ef555a;
}

.footer-bottom {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #343a3e;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
}

.mobile-action-bar {
    display: none;
}

@media (max-width: 1180px) {
    .container {
        width: min(calc(100% - 40px), var(--container));
    }

    .brand {
        width: 225px;
    }

    .brand img {
        width: 61px;
        height: 47px;
    }

    .brand-name {
        font-size: 13px;
    }

    .brand-name strong {
        font-size: 15px;
    }

    .primary-nav a {
        padding-inline: 8px;
        font-size: 13px;
    }

    .header-phone {
        display: none;
    }

    .split-grid {
        gap: 50px;
    }

    .quote-layout {
        grid-template-columns: minmax(0, 0.7fr) minmax(500px, 1fr);
        gap: 50px;
    }

    .footer-grid {
        gap: 36px;
    }
}

@media (max-width: 940px) {
    html {
        scroll-padding-top: 92px;
    }

    .utility-bar {
        display: none;
    }

    .nav-shell,
    .nav-inner {
        min-height: 74px;
    }

    .nav-toggle {
        display: inline-grid;
    }

    .header-actions {
        display: none;
    }

    .primary-nav {
        position: fixed;
        top: 74px;
        right: 0;
        bottom: 0;
        left: 0;
        display: none;
        margin: 0;
        padding: 18px 20px 90px;
        overflow-y: auto;
        border-top: 1px solid var(--line);
        background: #ffffff;
    }

    .nav-open .primary-nav {
        display: block;
    }

    .primary-nav ul {
        display: grid;
        gap: 0;
        max-width: 680px;
        margin: 0 auto;
    }

    .primary-nav li {
        border-bottom: 1px solid var(--line);
    }

    .primary-nav a {
        min-height: 62px;
        padding: 12px 4px;
        font-size: 18px;
    }

    .primary-nav a::after {
        right: auto;
        bottom: 10px;
        left: 4px;
        width: 40px;
    }

    .home-hero {
        min-height: min(620px, calc(100svh - 74px));
        background-image: url("/assets/images/hero-roofing-ottawa-960.jpg");
        background-position: 58% center;
    }

    .hero-copy h1 {
        font-size: 58px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid > div:nth-child(odd) {
        border-left: 1px solid var(--line);
    }

    .trust-grid > div {
        border-bottom: 1px solid var(--line);
    }

    .heading-with-action,
    .process-heading,
    .faq-layout,
    .warning-layout,
    .quote-layout,
    .faq-page-layout,
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-grid,
    .alternate .split-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .alternate .feature-copy {
        order: 2;
    }

    .alternate .feature-image {
        order: 1;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid li:nth-child(3) {
        border-left: 1px solid #4c5358;
    }

    .quote-intro,
    .faq-sidebar {
        position: static;
    }

    .quote-intro {
        max-width: 650px;
    }

    .decision-grid {
        grid-template-columns: 1fr 1fr;
    }

    .decision-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .contact-methods > a {
        min-height: 0;
    }

    .legal-layout aside {
        max-width: 360px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    body {
        padding-bottom: 58px;
        font-size: 15px;
    }

    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    .section {
        padding: 72px 0;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 34px;
    }

    h3 {
        font-size: 22px;
    }

    .brand {
        width: 220px;
        gap: 8px;
    }

    .brand img {
        width: 56px;
        height: 42px;
    }

    .brand-name {
        font-size: 12px;
    }

    .brand-name strong {
        font-size: 14px;
    }

    .hero-inner {
        align-items: flex-end;
        padding: 70px 0 48px;
    }

    .home-hero {
        min-height: min(590px, calc(100svh - 74px));
        background-position: 64% center;
    }

    .home-hero::before,
    .page-hero::before {
        background: rgba(10, 13, 15, 0.65);
    }

    .hero-copy h1 {
        font-size: 43px;
    }

    .hero-lead {
        font-size: 18px;
        line-height: 1.5;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-points {
        gap: 9px 16px;
    }

    .hero-points li {
        font-size: 12px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid > div,
    .trust-grid > div:first-child,
    .trust-grid > div:nth-child(odd) {
        min-height: 90px;
        border-right: 1px solid var(--line);
        border-left: 1px solid var(--line);
    }

    .service-grid,
    .project-type-grid,
    .service-detail-grid,
    .three-column-grid,
    .signal-list,
    .form-grid,
    .decision-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
    }

    .feature-image > img {
        aspect-ratio: 4 / 3;
    }

    .image-caption {
        right: 10px;
        bottom: -18px;
        width: 210px;
    }

    .process-band {
        padding: 72px 0;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid li,
    .process-grid li:nth-child(3) {
        min-height: 0;
        border-right: 1px solid #4c5358;
        border-left: 1px solid #4c5358;
    }

    .process-grid span {
        margin-bottom: 16px;
    }

    .accordion-list summary {
        min-height: 70px;
        font-size: 18px;
    }

    .accordion-list details p {
        margin-right: 8px;
    }

    .quote-section {
        padding: 72px 0;
    }

    .form-panel {
        padding: 24px 18px;
    }

    .field-wide {
        grid-column: auto;
    }

    .page-hero {
        min-height: 320px;
    }

    .page-hero h1 {
        font-size: 42px;
    }

    .page-hero-inner > p:last-child {
        font-size: 17px;
    }

    .service-detail-grid {
        border-top: 0;
        border-left: 0;
        gap: 12px;
    }

    .service-detail-grid article {
        min-height: 0;
        border: 1px solid var(--line);
        border-radius: 5px;
    }

    .decision-grid > div:first-child {
        grid-column: auto;
    }

    .decision-grid {
        gap: 32px;
    }

    .decision-grid h2 {
        font-size: 31px;
    }

    .footer-cta-inner,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-cta h2 {
        font-size: 29px;
    }

    .footer-cta .button-row,
    .footer-cta .button {
        width: 100%;
    }

    .site-footer {
        padding-top: 58px;
    }

    .footer-grid {
        gap: 38px;
    }

    .footer-bottom {
        justify-content: center;
        padding: 19px 0;
    }

    .mobile-action-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 120;
        display: grid;
        height: 58px;
        grid-template-columns: 0.8fr 1.2fr;
        border-top: 1px solid #ffffff;
        background: var(--ink);
    }

    .mobile-action-bar a {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-action-bar a:last-child {
        background: var(--red);
    }

    .mobile-action-bar svg {
        width: 19px;
        height: 19px;
    }

    .message-page {
        min-height: 570px;
    }
}

@media (max-width: 380px) {
    .brand {
        width: 198px;
    }

    .brand img {
        width: 48px;
        height: 38px;
    }

    .brand-name {
        font-size: 11px;
    }

    .brand-name strong {
        font-size: 13px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-points {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

