/* Tilleys Trucking & Excavating. Colours come off their yard sign, the June 2026 drain job and the trucks. */
@font-face { font-family: "Saira"; src: url("fonts/saira.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
    --pipe-white: #f7f7f3;
    --drain-rock: #dadcda;
    --membrane: #1f2326;
    --blue-chip: #58626b;
    --cedar: #a8521b;
    --cedar-dark: #8a4214;
    --truck-blue: #1b4c8c;
    --machine-yellow: #f0b323;
    --trench-clay: #8b6b4c;
    --siding: #7d8a74;
    --max-width: 1180px;
    --radius: 4px;
    --head: "Saira", "Arial Narrow", Arial, sans-serif;
    --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--pipe-white); color: var(--membrane); font-family: var(--body); font-size: 1.125rem; line-height: 1.55; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--truck-blue); }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; line-height: 1.05; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 700; font-stretch: 70%; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 700; font-stretch: 72%; margin-bottom: 0.45em; }
:focus-visible { outline: 3px solid var(--truck-blue); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--membrane); color: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 0; border-radius: var(--radius); font-family: var(--head); font-stretch: 88%; font-weight: 650; font-size: 1.05rem; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button-call { background: var(--cedar); color: #fff; }
.button-call:hover { background: var(--cedar-dark); }
.button-dark { background: var(--membrane); color: #fff; }
.button-dark:hover { background: #000; }
.text-link { color: var(--truck-blue); font-weight: 600; text-underline-offset: 3px; }
.text-link.on-dark { color: var(--pipe-white); }

.topbar { background: var(--membrane); color: var(--pipe-white); font-size: 0.95rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.topbar-phones { display: flex; gap: 22px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35em; min-height: 44px; }
.topbar a:hover b { text-decoration: underline; }
.topbar :focus-visible, .gap :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--pipe-white); border-bottom: 1px solid var(--drain-rock); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--membrane); text-decoration: none; }
.brand-mark { width: 104px; height: 56px; flex: none; }
.brand-mark text { font-family: var(--head); fill: currentColor; }
.brand-sub { font-family: var(--head); font-stretch: 82%; font-weight: 600; font-size: 0.86rem; line-height: 1.25; color: var(--blue-chip); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.button) { color: var(--membrane); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 12px 0; border-bottom: 3px solid transparent; }
.site-nav a:not(.button):hover, .site-nav a.is-active { border-bottom-color: var(--membrane); }
.nav-toggle { display: none; font-family: var(--head); font-weight: 650; font-size: 1rem; min-height: 44px; padding: 8px 16px; background: var(--pipe-white); color: var(--membrane); border: 2px solid var(--membrane); border-radius: var(--radius); cursor: pointer; }

.hero-photo { height: clamp(260px, 44vw, 540px); overflow: hidden; background: var(--drain-rock); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.board { position: relative; background: var(--pipe-white); border: 9px solid var(--cedar); margin-top: -96px; max-width: 900px; padding: 34px 40px 36px; margin-bottom: 64px; }
.board::before, .board::after { content: ""; position: absolute; top: calc(100% + 9px); width: 20px; height: 55px; background: #4a3626; }
.board::before { left: 9%; }
.board::after { right: 9%; }
.lede { font-size: 1.22rem; margin: 18px 0 26px; max-width: 60ch; }
.board-phones { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.section { padding: 88px 0; }
.section-intro { font-size: 1.2rem; color: var(--blue-chip); margin-bottom: 40px; }
.work { padding-top: 56px; }
.work-group { display: grid; grid-template-columns: 220px 1fr; gap: 0 40px; border-top: 3px solid var(--membrane); padding-top: 18px; margin-bottom: 44px; }
.work-group:last-child { margin-bottom: 0; }
.group-title { font-size: 1.5rem; font-weight: 700; font-stretch: 78%; }

.group-head img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-top: 16px; }
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 4px 32px; padding: 16px 0 18px; border-top: 1px solid var(--drain-rock); }
.work-list li:first-child { border-top: 0; padding-top: 2px; }
.work-list h4 { font-size: 1.25rem; font-weight: 650; font-stretch: 86%; line-height: 1.2; }
.work-list p { margin: 0; }
.gap { background: var(--membrane); color: var(--pipe-white); }
.gap-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0 56px; align-items: start; }
.gap-head { grid-column: 1; grid-row: 1; }
.gap-copy { grid-column: 1; grid-row: 2; }
.gap-controls { margin-top: 12px; }
.gap-controls label { display: block; font-weight: 600; margin-bottom: 8px; }
.gap-row { display: flex; align-items: center; gap: 12px; }
.gap-step { flex: none; width: 48px; height: 48px; font-family: var(--head); font-size: 1.6rem; font-weight: 600; line-height: 1; background: var(--pipe-white); color: var(--membrane); border: 0; border-radius: var(--radius); cursor: pointer; }
.gap-step:hover { background: #fff; }
#gap-range { flex: 1; min-width: 0; height: 44px; accent-color: var(--machine-yellow); cursor: pointer; }
.gap-read { margin: 10px 0 0; font-family: var(--head); font-stretch: 64%; font-weight: 700; font-size: 3rem; line-height: 1; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.gap-read span + span { font-size: 1.5rem; font-weight: 500; color: #c3c8c6; }
.gap-result { margin: 18px 0; font-size: 1.2rem; font-weight: 600; min-height: 3.2em; }
.gap-list { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid #454b50; }
.gap-list li { display: grid; grid-template-columns: 1.2fr 1fr 1.5fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #454b50; font-size: 1.02rem; }
.gap-name { font-family: var(--head); font-stretch: 86%; font-weight: 650; }
.gap-width { color: #c3c8c6; }
.gap-list li.is-fit .gap-state { color: var(--machine-yellow); font-weight: 600; }
.gap-list li.is-wide .gap-state { color: #c3c8c6; }
.gap-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.gap-note { margin: 22px 0 0; font-size: 0.98rem; color: #c3c8c6; }
.gap-drawing { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 104px; }
#gap-svg { display: block; width: 100%; height: auto; background: #e9ecea; border-radius: var(--radius); touch-action: pan-y; user-select: none; }
.g-sky { fill: #e9ecea; }
.g-ground { fill: var(--trench-clay); }
.g-siding { fill: var(--siding); }
.g-lap { stroke: #69765f; stroke-width: 2; fill: none; }
.g-found { fill: var(--membrane); }
.g-eave { fill: #4a3626; }
.g-post { fill: #7a3c12; }
.g-boards { fill: var(--cedar); }
.g-boardlines { stroke: #7a3c12; stroke-width: 2; fill: none; }
#g-fence { cursor: ew-resize; }
#g-grab { touch-action: none; }
.g-dimline { stroke: var(--pipe-white); stroke-width: 2.5; fill: none; }
.g-dimtext { fill: var(--pipe-white); font-family: var(--head); font-stretch: 70%; font-weight: 700; font-size: 24px; }
.g-track { fill: #23272b; }
.g-under { fill: #3a4046; }
.g-body { fill: var(--machine-yellow); }
.g-bodydark { fill: #c98f12; }
.g-arm { fill: #f6c445; stroke: #c98f12; stroke-width: 2; }
.g-glass { fill: #2c3a44; }
.g-steel { fill: #2e3338; }
.g-label { fill: var(--membrane); font-family: var(--head); font-stretch: 78%; font-weight: 700; font-size: 20px; }
.g-none { fill: var(--blue-chip); font-family: var(--head); font-stretch: 80%; font-weight: 600; font-size: 20px; }
.gap-hint { margin: 10px 0 0; font-size: 0.98rem; color: #c3c8c6; }

.job-title { font-size: 1.5rem; font-weight: 700; font-stretch: 78%; margin: 0 0 16px; padding-top: 16px; border-top: 3px solid var(--membrane); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.job-title span { font-family: var(--body); font-size: 1rem; font-weight: 400; color: var(--blue-chip); }
.job-row { display: grid; gap: 14px; margin-bottom: 20px; }
.job-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.job-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 885px; }
.job-row-mixed { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.job-row-mixed .shot { grid-column: span 3; }
.job-row-mixed .shot-wide { grid-column: span 6; order: 2; }
.job-row + .job-title, .job-quote + .job-title { margin-top: 56px; }
.job-quote { color: var(--blue-chip); margin-bottom: 0; }
.shot { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: var(--membrane); font: inherit; text-align: left; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--drain-rock); }
.shot-wide img { aspect-ratio: 3 / 2; }
.shot span { display: block; padding-top: 8px; font-size: 0.98rem; line-height: 1.3; }
.shot:hover span { text-decoration: underline; }

.reviews { background: var(--drain-rock); }
.review-list { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px 56px; margin-top: 28px; align-items: start; }
.review { margin: 0; padding-left: 22px; border-left: 6px solid var(--membrane); }
.review-lead { grid-column: 1; grid-row: 1 / span 2; }
.review blockquote { margin: 0; }
.review p { font-size: 1.15rem; margin-bottom: 10px; max-width: 62ch; }
.review-lead p { font-size: 1.45rem; line-height: 1.4; max-width: 46ch; }
.review figcaption { font-weight: 600; color: #3d454c; }

.questions-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.faq { border-top: 3px solid var(--membrane); }
.faq-item { border-bottom: 1px solid var(--drain-rock); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; font-family: var(--head); font-stretch: 86%; font-weight: 650; font-size: 1.22rem; line-height: 1.25; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--membrane); border-bottom: 3px solid var(--membrane); transform: translateY(-3px) rotate(45deg); transition: transform 0.25s ease; }
.faq-item.is-open summary::after { transform: translateY(3px) rotate(225deg); }
.faq-answer { overflow: hidden; margin: 0; padding-bottom: 20px; }
.contact { border-top: 1px solid var(--drain-rock); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-phones { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 22px 0 24px; }
address { font-style: normal; margin: 0 0 1em; }
.job-form { background: var(--drain-rock); padding: 30px; border-radius: var(--radius); }
.job-form h3 { font-size: 1.5rem; font-weight: 700; font-stretch: 78%; margin-bottom: 10px; }
.form-demo { font-size: 1rem; background: var(--pipe-white); border-left: 6px solid var(--membrane); padding: 10px 14px; }
.job-form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.job-form input, .job-form textarea { width: 100%; font: inherit; color: var(--membrane); background: #fff; border: 2px solid #8b9298; border-radius: var(--radius); padding: 11px 12px; min-height: 48px; }
.job-form input[aria-invalid="true"], .job-form textarea[aria-invalid="true"] { border-color: #a11d1d; }
.job-form .button { margin-top: 18px; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.form-note { font-size: 0.95rem; margin: 6px 0 0; }

.site-footer { background: var(--membrane); color: var(--pipe-white); padding: 48px 0 110px; font-size: 1rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: inherit; }
.footer-name { font-family: var(--head); font-stretch: 80%; font-weight: 700; font-size: 1.3rem; }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(20, 23, 25, 0.96); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-height: 80vh; max-width: 100%; width: auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--pipe-white); text-align: center; max-width: 60ch; }
.lightbox button { font-family: var(--head); font-weight: 650; background: var(--pipe-white); color: var(--membrane); border: 0; border-radius: var(--radius); min-width: 48px; min-height: 48px; font-size: 1.6rem; cursor: pointer; }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; font-size: 1rem; padding: 0 16px; }

.page-simple .header-inner { min-height: 72px; }
.policy { padding: 56px 0 120px; }
.policy h1 { margin-bottom: 0.4em; }
.policy h2 { font-size: 1.5rem; margin: 1.6em 0 0.4em; }
.simple-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 24px 0; }

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; align-items: center; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--pipe-white); border-bottom: 3px solid var(--membrane); padding: 6px 24px 20px; }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.button) { padding: 14px 0; border-bottom: 1px solid var(--drain-rock); }
    .nav-call { margin-top: 16px; }
    .questions-inner, .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .gap-inner { grid-template-columns: minmax(0, 1fr); }
    .gap-head, .gap-copy, .gap-drawing { grid-column: 1; grid-row: auto; }
    .gap-drawing { position: static; margin-bottom: 20px; }
    .work-group { grid-template-columns: minmax(0, 1fr); }
    .group-title { margin-bottom: 12px; }
    .group-head img { display: none; }
    .job-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .job-row-mixed .shot { grid-column: span 6; }
    .job-row-mixed .shot-wide { grid-column: span 12; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 1.0625rem; }
    .wrap { padding: 0 18px; }
    .topbar { font-size: 0.86rem; }
    .topbar-inner > span:first-child { display: none; }
    .topbar-phones { width: 100%; justify-content: space-between; gap: 10px; }
    .brand-sub { display: none; }
    .board { margin-top: -48px; padding: 22px 20px 24px; border-width: 7px; margin-bottom: 56px; }
    .board::before, .board::after { width: 14px; height: 40px; top: calc(100% + 7px); }
    .board-phones { flex-direction: column; }
    .board-phones .button, .contact-phones .button, .gap-actions .button { width: 100%; }
    .contact-phones { align-items: stretch; }
    .lede { font-size: 1.1rem; }
    .section { padding: 60px 0; }
    .work { padding-top: 40px; }
    .work-list li { grid-template-columns: minmax(0, 1fr); }
    .job-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .review-list { grid-template-columns: minmax(0, 1fr); }
    .review-lead { grid-row: auto; }
    .review-lead p { font-size: 1.2rem; }
    .gap-read { font-size: 2.5rem; }
    .gap-list li { grid-template-columns: 1fr 1fr; }
    .gap-list .gap-state { grid-column: 1 / -1; }
    .job-form { padding: 22px 18px; }
    .lightbox { grid-template-columns: 48px 1fr 48px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .faq-item summary::after { transition: none; }
}