/* testsfumee.ca. Colours and type close to the previous site; mobile first. */
:root {
    --bg: #e9e4e4;
    --band: #fff;
    --text: #7a7a7a;
    --dark: #333;
    --purple: #410a99;
    --blue: #333399;
    --orange: #e86000;
    --maroon: #491919;
    --grey: #b7b4b4;
    --green: #61ce70;
    --field: #f9f9f9;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Roboto, Arial, Helvetica, sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--purple); }
a:hover, a:focus { color: var(--orange); }
main { max-width: 1140px; margin: 0 auto; padding: 0 16px 2rem; }
h1, h2, h3 { line-height: 1.25; }
figure { margin: 0; text-align: center; }
figcaption { font-size: .8rem; font-style: italic; color: var(--text); margin-top: .4rem; }
.accent { color: #ff6600; }

/* Header (only when config nav has links) and footer. */
.site-header, .site-footer { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: center; max-width: 1140px; margin: 0 auto; padding: 1rem 16px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer { font-size: .85rem; color: var(--dark); text-align: center; }
.site-footer p { margin: 0; }

/* Home. */
.hero { text-align: center; padding-top: .5rem; }
.hero figure { max-width: 1024px; margin: 0 auto; }
.hero h1 { color: var(--purple); font-size: 1.35rem; margin: 1rem 0 1.5rem; }
.split { display: grid; gap: 1rem; align-items: center; justify-items: center; margin: 1.5rem 0; }
.split img { width: 200px; }
.split-reverse img { width: 100%; max-width: 400px; }
.split-title { color: var(--dark); font-size: 1.15rem; margin: 0 0 .75rem; text-align: justify; }
.small-print { color: var(--dark); font-size: .8rem; font-weight: 700; margin: 0; text-align: justify; }
.challenge { color: var(--blue); font-size: 1.3rem; font-weight: 700; text-align: center; text-shadow: 2px 0 41px rgba(0, 0, 0, .3); margin: 2rem 0; }
.detections ul { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: .6rem; text-align: center; }
.detections li { color: #ea6900; font-size: 1.05rem; font-weight: 600; }
.call { text-align: center; }
.call h2 { color: var(--maroon); font-size: 22px; margin: 2rem 0 .5rem; }
.call-sub { color: var(--maroon); font-size: 20px; font-weight: 700; margin: 0 0 1.5rem; }
.call-phones { color: var(--purple); font-size: 22px; font-weight: 700; }
.call-phones a { text-decoration: none; }
.call-strong { color: var(--dark); font-size: 1.05rem; font-weight: 700; margin: .75rem 0; }
.call-company { color: var(--dark); font-size: 1.5rem; margin: 1rem 0 2rem; }
.section-title { color: #ed673b; font-size: 20px; text-align: center; margin: 2rem 0 .75rem; }
.section-title-large { color: #ea5d00; font-size: 24px; }
.band { background: var(--band); padding: 1rem 0; box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.gallery { list-style: none; margin: 0 auto; padding: 0; max-width: 1140px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; }
.range > p, .expertise > p { line-height: 1.8; margin: 1rem 0; }
.sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; text-align: center; }
.sectors h3 { color: var(--grey); font-size: 1.1rem; margin: 0 0 .5rem; }
.expertise strong { color: inherit; }
.expertise strong.accent { color: #ff6600; }
.order h2 { color: #000; font-size: 1.1rem; text-align: center; margin: 2rem 0 1rem; }
.order-grid { display: grid; gap: 1.5rem; }
.map { width: 100%; height: 300px; border: 0; }
.order-contact { display: grid; gap: .75rem; justify-items: center; text-align: center; }
.order-address { color: var(--text); font-size: 21px; margin: 0; }
.order-link { color: var(--purple); font-size: 21px; font-weight: 700; text-decoration: none; padding: .4rem 1rem; }

/* Contact page and form. */
.contact-page { max-width: 1024px; margin: 0 auto; }
.contact-page h1 { color: var(--dark); text-align: center; font-size: 2rem; margin: 1rem 0; }
.contact-identity { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.contact-identity p { margin: 0; color: var(--dark); }
.contact-domain { font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 16pt; }
.contact-address { font-family: Calibri, Arial, sans-serif; font-size: 14pt; }
.contact-form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field label { font-size: .9rem; color: var(--text); }
.field input, .field textarea { font: inherit; font-size: .9rem; padding: .5rem .75rem; color: var(--dark); background: var(--field); border: 1px solid #69727d; border-radius: 3px; }
.field ::placeholder { color: #9a9a9a; }
.field [aria-invalid="true"] { border-color: #b91c1c; }
.field-error, .form-notice { color: #b91c1c; margin: 0; }
.button { display: inline-block; font: inherit; padding: .6rem 1.2rem; border: 0; border-radius: 3px; background: var(--green); color: #fff; text-decoration: none; cursor: pointer; }
.button-send { width: 100%; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Thank-you, policy, 404 and 500 pages. */
.message-page { text-align: center; padding: 2rem 0; color: var(--dark); }
.error-code { font-size: 3rem; font-weight: 700; margin: 0; }

@media (min-width: 768px) {
    .hero h1 { font-size: 1.4rem; }
    .split-title { font-size: 1.05rem; }
    .small-print { font-size: .75rem; }
    .split img { width: 150px; }
    .split-reverse img { width: 180px; }
    .split { grid-template-columns: 150px 1fr; }
    .split-reverse { grid-template-columns: 1fr 180px; }
    .split-reverse img { order: 2; }
    .detections ul { grid-template-columns: 1fr 1fr; }
    .call h2, .call-phones { font-size: 28px; }
    .gallery { grid-template-columns: repeat(6, 1fr); }
    .sectors { grid-template-columns: repeat(4, 1fr); }
    .order-grid { grid-template-columns: 1fr 1fr; align-items: center; }
    .section-title { text-align: left; }
    .contact-identity { justify-content: flex-start; }
    .map { height: 380px; }
}
