/*
 * Thermofoil Repair: "Shop drawing" design.
 * Ported from the approved mockup (proposal-2026-10/mockup-2/styles.css).
 * Same class names as the mockup; block markup adaptations are marked "block:".
 */

:root {
	--color-primary: #1D3A5C;
	--color-accent: #D63E2D;
	--color-accent-ink: #B02F1F;
	--color-bg: #F6F8F8;
	--color-surface: #FFFFFF;
	--color-text: #1B2229;
	--color-text-muted: #55606B;
	--color-border: #D5DCE1;
	--color-focus: #D63E2D;
	--color-line: #9FC0E3;
	--color-line-soft: rgba(159, 192, 227, 0.28);
	--color-on-blue: #EEF4FA;
	--color-on-blue-muted: #B8CCE0;
	--font-display: Archivo, ui-sans-serif, sans-serif;
	--font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;
	--font-label: "Chivo Mono", ui-monospace, monospace;
	--radius: 6px;
	--wrap: 1220px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
	--i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	--i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
	--i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.mark { color: var(--color-accent); }
.label { font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.screen-reader-text, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* block: neutralize core block defaults so the mockup spacing rules apply 1:1 */
.wp-block-image, .wp-block-table, .wp-block-quote, .wp-block-embed, .wp-block-details, figure { margin: 0; }
.wp-block-image img { height: auto; }
.wp-block-image :where(figcaption), .wp-element-caption { margin: 0; }
.wp-block-group, .entry-content { margin-block: 0; }
:where(.is-layout-flow) > * { margin-block: 0; }
.wp-site-blocks > * { margin-block: 0; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wp-block-buttons > .wp-block-button { margin: 0; }
.wp-block-list { margin: 0; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table thead, .wp-block-table tfoot { border: 0; }
.wp-block-table th, .wp-block-table td { border: 0; }
.wp-block-quote { border: 0; padding: 0; }
.wp-block-quote p { margin: 0; }

/* Icons drawn with CSS masks (content stays clean text) */
.icon-phone::before,
.facts li::before,
.index-table td a::after,
.spec tbody td:nth-of-type(1)::before,
.spec tbody td:nth-of-type(2)::before,
.faq summary::after {
	content: ""; display: inline-block; flex: none; width: 1.25em; height: 1.25em; background: currentColor;
	-webkit-mask: var(--i-phone) center / contain no-repeat; mask: var(--i-phone) center / contain no-repeat;
}

/* Header */
.site-header { position: relative; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 80px; }
.logo { flex-shrink: 0; }
.logo a, .footer-logo a { display: block; }
.logo img { width: 200px; }
nav.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--color-accent); }
/* block: navigation markup */
.site-header nav.nav { gap: 0; }
.site-header nav.nav .wp-block-navigation__container { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-header .nav .wp-block-navigation-item { margin: 0; }
.site-header .nav .wp-block-navigation-item__content { display: block; padding: 0.35rem 0; text-decoration: none; font-weight: 600; font-size: 1rem; border-bottom: 2px solid transparent; }
.site-header .nav .wp-block-navigation-item__content:hover,
.site-header .nav .current-menu-item > .wp-block-navigation-item__content,
.site-header .nav [aria-current="page"] { border-bottom-color: var(--color-accent); }
.header-call { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--color-text-muted); white-space: nowrap; }
.header-call:hover { color: var(--color-text); }
.header-call::before { background: currentColor; width: 1.05em; height: 1.05em; }

/* Buttons (block: .wp-block-button wrapper carries the variant class) */
.wp-block-button__link, .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 56px; padding: 0 1.6rem; border: 0; border-radius: var(--radius);
	font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn-red > .wp-block-button__link { background: var(--color-accent); color: #fff; box-shadow: 0 6px 16px rgba(214, 62, 45, 0.22); }
.btn-red > .wp-block-button__link:hover { background: var(--color-accent-ink); }
.btn-red > .wp-block-button__link:active { transform: translateY(1px); }
.btn-plain > .wp-block-button__link { background: var(--color-surface); color: var(--color-text); box-shadow: inset 0 0 0 1.5px var(--color-border); }
.btn-plain > .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--color-text); }
.btn-ghost-blue > .wp-block-button__link { background: transparent; color: var(--color-on-blue); box-shadow: inset 0 0 0 1.5px var(--color-line); }
.btn-ghost-blue > .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.08); }

/* Hero: the drawing */
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); grid-template-areas: 'top sheet' 'bottom sheet'; column-gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-top { grid-area: top; align-self: end; }
.hero-bottom { grid-area: bottom; align-self: start; }
.hero-sheet { grid-area: sheet; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); }
.hero .lede { margin-top: 1.4rem; font-size: 1.22rem; color: var(--color-text-muted); max-width: 33rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-call { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
.hero-call a { font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.hero-call a::before { display: none; }
.hero-call span { color: var(--color-text-muted); font-size: 0.98rem; line-height: 1.35; }
.facts { margin: 2rem 0 0; padding: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; border-top: 1px solid var(--color-border); }
.facts li { list-style: none; display: flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.98rem; }
.facts li::before { width: 1.1em; height: 1.1em; background: var(--color-accent); -webkit-mask-image: var(--i-check); mask-image: var(--i-check); }

.sheet {
	position: relative; background: var(--color-primary); color: var(--color-on-blue); border-radius: 10px; padding: 1.25rem;
	background-image: linear-gradient(var(--color-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--color-line-soft) 1px, transparent 1px);
	background-size: 28px 28px; background-position: -1px -1px;
	box-shadow: 0 24px 48px rgba(29, 58, 92, 0.22);
}
/* Damage viewer (home hero): a big photo of each kind of damage, picked by labeled
   thumbnail tabs. It steps through them on its own until the visitor picks one. */
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sheet-title { margin: 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.15; color: #fff; text-wrap: balance; }
.sheet-count { font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--color-on-blue-muted); white-space: nowrap; }
.sheet-count .d-num { color: #fff; font-weight: 700; }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 12.5rem; gap: 1.1rem; }
.d-photo { position: relative; margin: 6px; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #16304F; outline: 1px solid var(--color-line); outline-offset: 5px; }
.d-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 220ms var(--ease-out); }
.d-photo img.swap { opacity: 0; }
.side { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.detail-body { background: var(--color-surface); color: var(--color-text); border-radius: 6px; padding: 0.85rem 0.95rem 0.95rem; }
.detail-body b { display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.15rem; line-height: 1.15; margin-bottom: 0.35rem; }
.detail-body p { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.45; }
.damage-tabs { display: grid; gap: 0.45rem; margin-top: auto; }
.tab {
	position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 56px; padding: 0.35rem 0.6rem 0.35rem 0.35rem;
	border: 1px solid var(--color-line-soft); border-radius: 6px; background: rgba(255, 255, 255, 0.05); color: var(--color-on-blue);
	font-family: var(--font-label); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-align: left; cursor: pointer;
	transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.tab-img { width: 44px; height: 44px; flex: none; border-radius: 4px; object-fit: cover; }
.tab:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--color-line); }
.tab[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--color-text); }
.tab[aria-pressed="true"] .tab-img { box-shadow: 0 0 0 2px var(--color-accent); }
.tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tab-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
	.sheet.auto .tab[aria-pressed="true"] .tab-bar { animation: tab-progress 6s linear forwards; }
	.sheet.auto:hover .tab-bar, .sheet.auto:focus-within .tab-bar { animation-play-state: paused; }
	@keyframes tab-progress { to { transform: scaleX(1); } }
}

/* Sections */
section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.section-head p { margin-top: 1rem; color: var(--color-text-muted); font-size: 1.2rem; }
.rule-top { border-top: 1px solid var(--color-border); }

/* Detail views (damage). block: each figure is an image block with a caption */
.details-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.details-grid .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--color-surface); box-shadow: 0 0 0 1.5px var(--color-accent); }
.details-grid figcaption { margin-top: 0.9rem; text-align: left; font-size: inherit; color: inherit; }
.details-grid figcaption .label { color: var(--color-accent-ink); display: block; }
.details-grid figcaption b { display: block; font-size: 1.08rem; margin-top: 0.2rem; }
.details-grid figcaption span { font-size: 0.98rem; }
.details-grid figcaption span:not(.label) { color: var(--color-text-muted); }
.details-foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.details-foot p { max-width: 42rem; }

/* Match spec. block: table block wraps the table in a figure.spec */
.match { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.match-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.match h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.match-copy p { margin-top: 1.1rem; font-size: 1.18rem; max-width: 34rem; text-wrap: balance; }
.spec table { width: 100%; border-collapse: collapse; font-size: 1.05rem; table-layout: fixed; }
.spec thead th:first-child { width: 4.5rem; }
.spec th, .spec td { padding: 0.95rem 0.5rem; border-bottom: 1px solid var(--color-border); text-align: center; }
.spec thead th { font-family: var(--font-label); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); font-weight: 400; border-bottom: 2px solid var(--color-text); }
.spec tbody th { font-weight: 700; }
.spec tbody td:nth-of-type(1) { color: #1F6B3A; font-weight: 700; }
.spec tbody td:nth-of-type(1)::before { width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-right: 0.35rem; -webkit-mask-image: var(--i-check); mask-image: var(--i-check); }
.spec th, .spec td { vertical-align: middle; }
.spec thead th { vertical-align: bottom; }
.spec tbody td:nth-of-type(2) { color: var(--color-accent-ink); font-weight: 700; }
.spec tbody td:nth-of-type(2)::before { width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-right: 0.35rem; -webkit-mask-image: var(--i-x); mask-image: var(--i-x); }

/* Route (process). block: groups instead of an ordered list */
.route { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; }
.route::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; border-top: 2px dashed var(--color-accent); }
.stop { position: relative; text-align: left; }
.stop-n { position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-text); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.stop-n.is-size-1 { font-size: 1rem; }
.stop-n.is-size-11 { font-size: 1.1rem; }
.stop h3, .stop .step-title { font-size: 1.45rem; margin: 1.2rem 0 0.5rem; }
.stop p { color: var(--color-text-muted); }
.stop-n p { color: inherit; }
.ship-strip { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.ship-strip > div { background: var(--color-surface); padding: 1.4rem 1.5rem; }
.ship-strip .label { color: var(--color-text-muted); }
.ship-strip b { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1.35rem; margin: 0.3rem 0 0.4rem; }
.ship-strip p > span { color: var(--color-text-muted); font-size: 1rem; }

/* Blue sections */
.blue {
	background: var(--color-primary); color: var(--color-on-blue);
	background-image: linear-gradient(var(--color-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--color-line-soft) 1px, transparent 1px);
	background-size: 28px 28px;
}
.blue h2 { color: #fff; }
.note-card { background: var(--color-surface); color: var(--color-text); border-radius: 10px; padding: clamp(1.75rem, 4vw, 3rem); max-width: 54rem; position: relative; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }
.note-card blockquote { margin: 0; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.5; }
.note-card cite { display: block; margin-top: 1.25rem; font-style: normal; font-weight: 700; }
.note-card .label { color: var(--color-accent-ink); display: block; margin-bottom: 1rem; }
.quote-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.quote-head a { color: var(--color-on-blue); }

/* Sheet index (catalog). block: table block wraps it in figure.index-table */
.index-table table { width: 100%; border-collapse: collapse; }
.index-table th, .index-table td { text-align: left; padding: 0; border-bottom: 1px solid var(--color-border); }
.index-table thead th { font-family: var(--font-label); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); font-weight: 400; padding: 0.6rem 0; border-bottom: 2px solid var(--color-text); }
.index-table td a { display: grid; grid-template-columns: 5rem 1fr auto; align-items: center; gap: 1rem; padding: 1rem 0; text-decoration: none; }
.index-table td a:hover b { color: var(--color-accent-ink); }
.index-table td a::after { background: var(--color-accent); -webkit-mask-image: var(--i-arrow); mask-image: var(--i-arrow); }
.index-table .sheet-no { font-family: var(--font-label); color: var(--color-text-muted); }
.index-table b { font-size: 1.15rem; }
.index-table .desc { color: var(--color-text-muted); font-size: 0.98rem; display: block; font-weight: 400; }
.since { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.since h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.since p { margin-top: 1rem; color: var(--color-text-muted); }

/* Quote section and form card */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.quote h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.quote .lead { margin-top: 1.2rem; font-size: 1.2rem; color: var(--color-on-blue-muted); }
.quote-call { margin-top: 2rem; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 0.2rem; }
.quote-call a { font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 0.45rem; align-items: center; }
.quote-call a::before { background: var(--color-on-blue-muted); width: 1em; height: 1em; }
.quote-call span { display: block; color: var(--color-on-blue-muted); }
.form-card { background: var(--color-surface); color: var(--color-text); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }
.form-card h3 { font-size: 1.5rem; }
.form-card .sub { color: var(--color-text-muted); margin: 0.4rem 0 1.25rem; }
.form-frame { position: relative; background: var(--color-surface); border-radius: var(--radius); min-height: 395px; }
/* Shown behind the form until the CRM iframe paints over it (2 to 4 seconds on first load) */
.form-frame::before { content: "Loading the form"; position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 1.25rem; color: var(--color-text-muted); font-size: 1rem;
	background: repeating-linear-gradient(180deg, transparent 0 22px, var(--color-bg) 22px 76px) 0 34px / 100% 304px no-repeat; border-radius: var(--radius); }
.form-frame iframe { position: relative; display: block; width: 100%; }

/* Interior page head */
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.page-head p { margin-top: 1rem; max-width: 40rem; font-size: 1.2rem; color: var(--color-text-muted); }
.page-head .label { color: var(--color-accent-ink); display: block; margin-bottom: 0.9rem; }
.page-head .hero-actions { margin-top: 2rem; }

/* Video. block: embed block */
.video { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.video-frame { position: relative; border-radius: 10px; overflow: hidden; background: #000; }
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
/* Embed fallback (the raw video URL) only shows if the player script fails: keep it readable on black */
.video-frame .wp-block-embed__wrapper { color: #fff; font-size: 0.9rem; }
.video h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 1rem; }
.video p { color: var(--color-text-muted); }
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper { position: relative; }
.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.wp-block-embed.wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.video-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; }
.video-card h3 { font-size: 1.25rem; margin: 1.1rem 1.25rem 0.4rem; }
.video-card p { margin: 0 1.25rem 1.4rem; color: var(--color-text-muted); font-size: 1rem; }

/* FAQ. block: details block */
.faq { max-width: 52rem; }
.faq .wp-block-details { border-bottom: 1px solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; font-weight: 700; font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after { background: var(--color-accent); -webkit-mask-image: var(--i-plus); mask-image: var(--i-plus); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--color-text-muted); max-width: 44rem; }

/* Contact. block: next-list rows are groups with two paragraphs */
.next-list { margin: 1.5rem 0 0; }
.next-list > div { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--color-border); }
.next-list .n { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--color-text); display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); }
.next-list b { display: block; font-size: 1.15rem; }
.next-list p > span { color: var(--color-text-muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.h2-md { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.h2-sm { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.mt-2 { margin-top: 2rem; }
.visit { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-top: 1.5rem; border-top: 2px solid var(--color-text); }
.visit b { display: block; margin-bottom: 0.3rem; }
.visit span { color: var(--color-text-muted); }
.contact-call { margin-top: 2rem; }
.contact-call a { font-weight: 700; font-size: 1.1rem; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.45rem; }
.contact-call a::before { background: var(--color-text-muted); width: 1em; height: 1em; }
.contact-call span { display: block; color: var(--color-text-muted); }

/* Footer */
.site-footer { background: #141B23; color: #A9B4BF; padding: 3.5rem 0 2rem; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { font-family: var(--font-label); font-size: 0.8rem; font-stretch: 100%; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin-bottom: 0.8rem; font-weight: 400; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .phone-link { display: block; margin-top: 0.4rem; }
.footer-logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 6px; }
.footer-logo img { width: 170px; }
.footer-tag { margin-top: 1rem; color: #fff; font-weight: 600; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #26313C; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
.footer-legal a + a { margin-left: 1rem; }

.action-bar { display: none; }

/* Interior pages */
.prose p + p { margin-top: 1rem; }
.prose p { font-size: 1.12rem; }
.letter { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.letter-photo img { border-radius: 10px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.letter-photo figcaption { margin-top: 0.7rem; font-family: var(--font-label); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.letter-card { max-width: none; border: 1px solid var(--color-border); box-shadow: none; }
.letter-card p { margin-top: 1rem; font-size: 1.1rem; }
.letter-card .letter-lead { font-weight: 700; color: var(--color-accent-ink); }
.letter-card .sign { font-weight: 700; }
.style-sheets { display: grid; gap: 1.5rem; }
.style-sheet { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: 1.75rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: 1.5rem; scroll-margin-top: 1rem; }
.style-door { background: var(--color-bg); border-radius: 6px; display: grid; place-items: center; padding: 1rem; }
.style-door img { max-height: 320px; width: auto; }
.style-body .label { color: var(--color-accent-ink); }
.style-body h3 { font-size: 2rem; margin-top: 0.3rem; }
.style-name { font-weight: 700; margin: 0.2rem 0 0.6rem; }
.style-body > p:not(.style-name) { color: var(--color-text-muted); max-width: 40rem; }
.style-parts { margin-top: 1.25rem; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }
.style-parts img { max-height: 140px; width: auto; }
.style-parts .df { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.style-parts figcaption, .style-parts .figcaption { margin-top: 0.5rem; color: var(--color-text-muted); }
.cap-label figcaption { font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.thumb-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1rem; }
.thumb-grid .wp-block-image { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; padding: 0.6rem; text-align: center; }
.thumb-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.thumb-grid figcaption { font-family: var(--font-label); font-size: 0.8rem; margin-top: 0.4rem; }
.foil-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.foil-tabs p { display: contents; }
.foil-tabs a { text-decoration: none; font-weight: 600; padding: 0.6rem 1rem; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface); min-height: 44px; display: inline-flex; align-items: center; }
.foil-tabs a[aria-current="page"] { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.foil-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.foil-card { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.foil-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.foil-card p a { padding: 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; text-decoration: none; }
.foil-card .label { white-space: nowrap; }
.foil-card p a::after { content: ""; position: absolute; inset: 0; }
.foil-card b { font-size: 1.15rem; }
.foil-card .label { color: var(--color-text-muted); }
.foil-card:hover b { color: var(--color-accent-ink); }
.swatch-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.swatch-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--color-border); }
.swatch-grid figcaption { margin-top: 0.5rem; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.gallery-grid { columns: 4 220px; column-gap: 1rem; }
.gallery-grid .wp-block-image { margin: 0 0 1rem; break-inside: avoid; }
.gallery-grid img { width: 100%; border-radius: 8px; }
.review-grid { columns: 2 380px; column-gap: 1.25rem; }
.review { margin: 0 0 1.25rem; break-inside: avoid; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: 1.5rem; }
.review.wp-block-quote { margin: 0 0 1.25rem; padding: 1.5rem; }
.review p { font-size: 1.08rem; }
.review cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; }
.legal > * { max-width: 46rem; }
.legal ol { padding-left: 1.4rem; margin: 1rem 0; }
.legal li + li { margin-top: 0.35rem; }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { color: var(--color-text-muted); }
.legal p + p { margin-top: 1rem; }

/* Tablet */
@media (max-width: 1080px) {
	.site-header nav.nav { display: none; }
	.header-call { margin-left: auto; }
	.hero-grid { grid-template-columns: 1fr; grid-template-areas: 'top' 'sheet' 'bottom'; row-gap: 2rem; }
	.viewer { grid-template-columns: minmax(0, 1fr) 15rem; }
	.d-photo { aspect-ratio: 4 / 3; }
	.match-grid, .since, .quote, .video, .contact-grid { grid-template-columns: 1fr; }
	.details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.letter, .style-sheet { grid-template-columns: 1fr; }
	.thumb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.foil-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.swatch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 760px) {
	body { font-size: 1.0625rem; }
	.site-header .wrap { min-height: 66px; gap: 1rem; }
	.logo img { width: 150px !important; }
	.header-call { font-size: 0.95rem; }
	.hero { padding-top: 1.75rem; }
	.hero .lede { font-size: 1.1rem; }
	.sheet { padding: 0.75rem; }
	.viewer { grid-template-columns: 1fr; gap: 0.9rem; }
	.d-photo { aspect-ratio: 4 / 3; }
	.damage-tabs { order: -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin-top: 0; }
	.tab { flex-direction: column; justify-content: flex-start; gap: 0.35rem; min-height: 0; padding: 0.3rem 0.2rem 0.45rem; font-size: 0.66rem; letter-spacing: 0.03em; line-height: 1.25; text-align: center; }
	.tab-img { width: 100%; height: auto; aspect-ratio: 1; }
	.sheet-head { margin-bottom: 0.75rem; }
	.details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
	.route { grid-template-columns: 1fr; gap: 0; }
	.route::before { left: 33px; right: auto; top: 34px; bottom: 34px; border-top: 0; border-left: 2px dashed var(--color-accent); }
	.stop { display: grid; grid-template-columns: 68px 1fr; gap: 0 1.1rem; padding-bottom: 1.75rem; }
	.stop h3, .stop .step-title { margin-top: 0.6rem; }
	.ship-strip { grid-template-columns: 1fr; }
	.index-table td a { grid-template-columns: 3.4rem 1fr auto; }
	.visit { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.thumb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
	.thumb-grid .wp-block-image { padding: 0.4rem; }
	.swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.style-parts { grid-template-columns: 1fr; }
	.style-door img { max-height: 240px; }
	.video-grid { grid-template-columns: 1fr; }
}

/* Menu (tablet and phone) */
.menu-btn { display: none; align-items: center; gap: 0.4rem; min-height: 48px; padding: 0 0.9rem; border: 1.5px solid currentColor; border-radius: var(--radius); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 1080px) {
	.menu-btn { display: inline-flex; margin-left: auto; }
	.site-header nav.nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border-bottom: 1px solid var(--color-border); padding: 0.5rem 1rem 1rem; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); }
	.site-header nav.nav.open { align-items: stretch; }
	.site-header nav.nav.open .wp-block-navigation__container { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.site-header nav.nav.open .wp-block-navigation-item { width: 100%; justify-content: flex-start; text-align: left; }
	.site-header nav.nav.open .wp-block-navigation-item__content { flex: 1; width: 100%; padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--color-border); font-size: 1.1rem; }
	body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.action-bar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--color-border); box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08); }
	.action-bar .wp-block-buttons, .action-bar .wp-block-button { display: grid; }
	.action-bar .wp-block-button__link { min-height: 54px; padding: 0 0.75rem; width: 100%; }
}
@media (max-width: 760px) {
	.menu-btn { padding: 0 0.7rem; }
}
@media (max-width: 480px) {
	.menu-label { display: none; }
	.menu-btn { padding: 0 0.7rem; }
	.logo img { width: 132px !important; }
	.site-header .wrap { gap: 0.6rem; }
}

/* Phones: the header phone is a 44px call icon (the number stays its accessible name);
   the form is the main action and "Call" is in the mobile bar. */
@media (max-width: 760px) {
	.header-call { font-size: 0; width: 44px; height: 44px; justify-content: center; border-radius: var(--radius); }
	.header-call::before { width: 1.5rem; height: 1.5rem; }
}

/* The CRM chat bubble is fixed 20px from the bottom right inside its own shadow DOM,
   so on tablets the bottom bar leaves room for it instead of sitting under it. */
@media (min-width: 761px) and (max-width: 1080px) {
	body:has(chat-widget) .action-bar { padding-right: calc(0.75rem + 78px); }
}
/* Phones: no chat (Jake 2026-11-07). The quote button is the one action. */
@media (max-width: 760px) {
	chat-widget { display: none !important; }
}

/* Phone tap targets: footer links and the header phone link get 44px rows */
@media (max-width: 760px) {
	.site-footer ul { gap: 0; }
	.site-footer li a, .site-footer .phone-link { display: inline-flex; align-items: center; min-height: 44px; }
	.site-footer .phone-link { margin-top: 0; }
	.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
	.header-call { min-height: 44px; }
}

/* Short labels and titles wrap evenly instead of leaving one word on its own line */
figcaption, .foil-card b, .video-card h3, .review cite, .stop .step-title, .next-list b, .ship-strip b { text-wrap: balance; }

