/* ==========================================================================
   Page components (inner pages): hero eyebrow, service chips, icon grid, checks band,
   split / local / areas, GAF band, "Why choose" grid, quote, closing band, yellow list band,
   towns, prose, process rows, service grid, cards, video, booking, owner.
   Old Wix look kept (black / yellow / light grey, Futura-like type); spacing and grids unified.
   ========================================================================== */

/* consecutive text sections read as one article (Wix split them into strips) */
.tr-section--narrow + .tr-section--narrow { padding-top: 0; }
.tr-section--narrow > * { max-width: var(--tr-content); }
.tr-center { justify-content: center; text-align: center; }

.tr-page-hero__eyebrow { color: var(--tr-yellow) !important; }
.tr-btn-wrap { margin: 0; }

/* --------------------------------------------------------------------------
   Prose (long SEO copy, legal text, articles)
   -------------------------------------------------------------------------- */
.tr-prose { display: grid; gap: 1.1rem; }
.tr-prose > * { margin: 0 !important; }
.tr-prose > :is(h2, h3, h4, h5, h6) { margin-top: .9rem !important; }
.tr-prose > :first-child { margin-top: 0 !important; }
.tr-prose h2 { font-size: var(--wp--preset--font-size--heading-lg); }
.tr-prose h3 { font-size: var(--wp--preset--font-size--heading-sm); }
.tr-prose h4 { font-size: 1.375rem; }
.tr-prose .wp-block-image img { border-radius: var(--tr-r-media); }
.tr-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tr-table :is(th, td) { padding: 12px 14px; border: 1px solid var(--tr-line); text-align: left; vertical-align: top; }
.tr-table thead th { background: var(--tr-ink); color: #fff; font-weight: 500; }
.tr-table tbody tr:nth-child(even) td { background: var(--tr-paper); }
@media (max-width: 640px) { .tr-table { overflow-x: auto; } .tr-table table { min-width: 560px; } }

/* --------------------------------------------------------------------------
   Service chips (location pages: Residential, Commercial, Gutters, ...)
   -------------------------------------------------------------------------- */
.tr-chips-band { background: var(--tr-ink); padding-block: 1.25rem; }
.tr-chips { justify-content: center; gap: 10px; }
.tr-chips .wp-block-button__link.tr-btn { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45); background: transparent; }
.tr-chips .wp-block-button__link.tr-btn::after { display: none; }
.tr-chips .wp-block-button__link.tr-btn:hover { background: var(--tr-yellow); color: var(--tr-ink); box-shadow: inset 0 0 0 1.5px var(--tr-yellow); }

/* --------------------------------------------------------------------------
   Icon grid ("PROUDLY SERVING <town>": 12 services with line icons)
   -------------------------------------------------------------------------- */
.tr-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tr-icon-card {
	display: grid;
	align-content: start;
	gap: .65rem;
	padding: 24px;
	background: #fff;
	border-radius: var(--tr-r-card);
	box-shadow: 0 0 0 1px var(--tr-line);
	transition: transform .35s var(--tr-ease), box-shadow .35s var(--tr-ease);
}
.tr-icon-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--tr-line), var(--tr-shadow); }
.tr-icon-card__icon img { width: 64px; height: 64px; object-fit: contain; }
.tr-icon-card__title { font-family: var(--tr-display); font-size: 1.0625rem; font-weight: 600; letter-spacing: .03em; color: var(--tr-ink); line-height: 1.3; }
.tr-icon-card :is(h3, h4) { font-size: 1.25rem; }
.tr-icon-card p:not(.tr-icon-card__title) { font-size: .9688rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Checks band ("Why Choose Us?" bullets on the old dark grey band)
   -------------------------------------------------------------------------- */
.tr-checks { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; }
.tr-checks > * { margin: 0 !important; }
.tr-checks__head h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .55em; background: var(--tr-yellow); }
.tr-checks__list { margin: 0; color: rgb(255 255 255 / .9); font-size: 1.0625rem; }
.tr-checks__list li::before { box-shadow: none; }
@media (max-width: 781px) { .tr-checks { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Split: media + body (local area, service areas, contact intro, prose with one photo)
   -------------------------------------------------------------------------- */
.tr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.tr-split--reverse .tr-split__media { order: 2; }
.tr-split__media { position: relative; }
.tr-split__img img { width: 100%; height: auto; border-radius: var(--tr-r-media); box-shadow: var(--tr-shadow); }
.tr-split__body { display: grid; gap: 1rem; align-content: center; }
.tr-split__body > * { margin: 0 !important; }
.tr-split__body h2 { font-size: var(--wp--preset--font-size--heading-lg); }
.tr-split__body h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .5em; background: var(--tr-yellow); }
@media (max-width: 860px) {
	.tr-split { grid-template-columns: 1fr; }
	.tr-split--reverse .tr-split__media { order: 0; }
}

/* town / county link lists (Why we love, Our service areas, Other areas) */
.tr-towns { list-style: none; padding: 0 !important; margin: .25rem 0 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 18px; }
.tr-towns li { margin: 0 !important; padding-left: 18px; position: relative; }
.tr-towns li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--tr-yellow); box-shadow: 0 0 0 1.5px var(--tr-ink); border-radius: 2px; }
.tr-towns a { text-decoration: none !important; }
.tr-towns a:hover { text-decoration: underline !important; }
.tr-areas .tr-towns { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); font-weight: 500; }

.tr-towns-band { display: grid; gap: .9rem; padding: 24px 28px; border-radius: var(--tr-r-card); background: var(--tr-paper); box-shadow: inset 4px 0 0 var(--tr-yellow), 0 0 0 1px var(--tr-line); }
.tr-towns-band > * { margin: 0 !important; }
.tr-towns-band__label { font-weight: 600; color: var(--tr-ink); }

/* --------------------------------------------------------------------------
   GAF Master Elite band
   -------------------------------------------------------------------------- */
.tr-gaf { display: grid; justify-items: center; text-align: center; gap: 1rem; max-width: 860px !important; }
.tr-gaf > * { margin: 0 !important; }
.tr-gaf h2::after { content: ""; display: block; width: 56px; height: 4px; margin: .55em auto 0; background: var(--tr-yellow); box-shadow: 0 0 0 1px rgb(0 0 0 / .06); }
.tr-gaf__badge img { width: 96px; height: auto; }

/* --------------------------------------------------------------------------
   "WHY CHOOSE ALL PROFESSIONAL?" grid (title + text pairs, old H4s)
   -------------------------------------------------------------------------- */
.tr-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--tr-r-card); overflow: hidden; }
.tr-why-item { display: grid; align-content: start; gap: .6rem; padding: 26px 24px; background: var(--tr-ink); transition: background-color .3s; }
.tr-why-item:hover { background: #111; }
.tr-why-item > * { margin: 0 !important; }
.tr-why-item__title { font-size: 1.25rem !important; color: var(--tr-yellow) !important; font-weight: 500; }
.tr-why-item__text { font-family: var(--tr-body); font-size: 1rem !important; font-weight: 400; line-height: 1.55; color: rgb(255 255 255 / .85) !important; }

/* --------------------------------------------------------------------------
   Quote section (H2 + form card | photo)
   -------------------------------------------------------------------------- */
.tr-quote { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: stretch; }
.tr-quote__body { display: grid; gap: 1.25rem; align-content: start; }
.tr-quote__body > * { margin: 0 !important; }
.tr-quote__body h2 { font-size: var(--wp--preset--font-size--heading-lg); }
.tr-quote__media { position: relative; min-height: 320px; }
.tr-quote__img { position: absolute; inset: 0; margin: 0 !important; }
.tr-quote__img img { width: 100%; height: 100% !important; object-fit: cover; border-radius: var(--tr-r-media); }
.tr-quote:not(:has(.tr-quote__media)) { grid-template-columns: minmax(0, 760px); justify-content: center; }
@media (max-width: 900px) {
	.tr-quote { grid-template-columns: 1fr; }
	.tr-quote__media { min-height: 260px; }
}

/* --------------------------------------------------------------------------
   Closing band ("Don't wait for small issues…" between the two BusinessRate plaques)
   -------------------------------------------------------------------------- */
.tr-closing { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) minmax(120px, 220px); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tr-closing__plaque img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgb(0 0 0 / .25)); }
.tr-closing__body { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.tr-closing__body > * { margin: 0 !important; }
.tr-closing__body h2 { font-size: var(--wp--preset--font-size--heading-lg); }
.tr-closing__body p { max-width: 640px; }
@media (max-width: 860px) {
	.tr-closing { grid-template-columns: 1fr 1fr; }
	.tr-closing__body { grid-column: 1 / -1; grid-row: 1; }
	.tr-closing__plaque { max-width: 180px; justify-self: center; }
}

/* --------------------------------------------------------------------------
   Yellow list band (OUR PROCESS / EXPLORE OUR SERVICES)
   -------------------------------------------------------------------------- */
.tr-band { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.tr-band__media { display: grid; gap: 1.25rem; }
.tr-band__media > * { margin: 0 !important; }
.tr-band__img img { width: 100%; border-radius: var(--tr-r-media); box-shadow: 0 0 0 3px var(--tr-ink); }
.tr-band__list { margin: 0 !important; padding-left: 0 !important; list-style: none; display: grid; gap: .6rem; font-size: 1.125rem; color: var(--tr-ink); }
.tr-band__list li { margin: 0 !important; padding-left: 30px; position: relative; }
.tr-band__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; background: var(--tr-ink); -webkit-mask: var(--tr-arrow) center / contain no-repeat; mask: var(--tr-arrow) center / contain no-repeat; }
.tr-band__list a { color: var(--tr-ink); }
@media (max-width: 781px) { .tr-band { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Process rows (round photos beside text, as on the old repair pages)
   -------------------------------------------------------------------------- */
.tr-process { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.tr-process__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.tr-process__row--reverse { grid-template-columns: minmax(0, 1fr) 200px; }
.tr-process__row--reverse .tr-process__media { order: 2; }
.tr-process__img img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--tr-yellow); }
.tr-process__body { display: grid; gap: .9rem; }
.tr-process__body > * { margin: 0 !important; }
@media (max-width: 640px) {
	.tr-process__row, .tr-process__row--reverse { grid-template-columns: 1fr; justify-items: start; }
	.tr-process__row--reverse .tr-process__media { order: 0; }
	.tr-process__img img { width: 150px; height: 150px; }
}

/* --------------------------------------------------------------------------
   Service grid (OUR SERVICES: image left, title, text, Read More)
   -------------------------------------------------------------------------- */
.tr-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tr-service-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--tr-mist); border-radius: var(--tr-r-card); overflow: hidden; transition: box-shadow .35s var(--tr-ease), transform .35s var(--tr-ease); }
.tr-service-card:hover { transform: translateY(-4px); box-shadow: var(--tr-shadow); }
.tr-service-card__media { margin: 0 !important; min-height: 220px; position: relative; }
.tr-service-card__img { position: absolute; inset: 0; margin: 0 !important; }
.tr-service-card__img img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s var(--tr-ease); }
.tr-service-card:hover .tr-service-card__img img { transform: scale(1.04); }
.tr-service-card__body { display: grid; gap: .8rem; align-content: start; padding: clamp(20px, 2.4vw, 30px); }
.tr-service-card__body > * { margin: 0 !important; }
.tr-service-card__title { font-family: var(--tr-display); font-size: clamp(1.375rem, 2vw, 1.75rem) !important; line-height: 1.15 !important; color: var(--tr-ink); letter-spacing: .01em; }
.tr-service-card__body p:not(.tr-service-card__title) { font-size: .9688rem; line-height: 1.6; }
.tr-service-card .wp-block-buttons { margin-top: auto !important; }
@media (max-width: 1024px) { .tr-service-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tr-service-card { grid-template-columns: 1fr; } .tr-service-card__media { min-height: 200px; } }

/* --------------------------------------------------------------------------
   Cards (white cards with a yellow rule: "Why … choose us", SEO copy cards) + stats
   -------------------------------------------------------------------------- */
.tr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.tr-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tr-card { display: grid; align-content: start; gap: .7rem; padding: 26px 26px 28px; background: #fff; border-radius: var(--tr-r-card); box-shadow: 0 0 0 1px var(--tr-line); transition: transform .35s var(--tr-ease), box-shadow .35s var(--tr-ease); }
.tr-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--tr-line), var(--tr-shadow); }
.tr-card > * { margin: 0 !important; }
.tr-card h3 { font-size: 1.375rem; }
.tr-card--rule { box-shadow: inset 4px 0 0 var(--tr-yellow), 0 0 0 1px var(--tr-line); }
@media (max-width: 781px) { .tr-cards--two { grid-template-columns: 1fr; } }

.tr-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tr-stat { display: grid; justify-items: center; min-width: 170px; padding: 16px 22px; background: #fff; border-radius: var(--tr-r-card); box-shadow: 0 0 0 1px var(--tr-line); text-align: center; font-size: .875rem; color: var(--tr-muted); margin: 0 !important; }
.tr-stat strong { display: block; font-family: var(--tr-display); font-size: 1.75rem; font-weight: 500; color: var(--tr-ink); line-height: 1.15; }

/* --------------------------------------------------------------------------
   Reviews widget (Elfsight / RealWorkLabs embeds)
   -------------------------------------------------------------------------- */
.tr-widget > * { max-width: var(--tr-wide); }
.tr-widget { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* --------------------------------------------------------------------------
   Video (owner video, testimonials) + map in sections
   -------------------------------------------------------------------------- */
.tr-video { margin: 0; }
.tr-video video { width: 100%; height: auto; border-radius: var(--tr-r-media); background: #000; box-shadow: var(--tr-shadow); }
.tr-video-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.tr-video-group { display: grid; gap: 1.25rem; }
.tr-video-group > * { margin: 0 !important; }
.tr-video-group:last-child { grid-template-columns: 1fr 1fr; }
.tr-video-group:last-child > :first-child { grid-column: 1 / -1; }
@media (max-width: 860px) { .tr-video-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   About: owner block + areas
   -------------------------------------------------------------------------- */
.tr-owner { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; max-width: 960px !important; }
.tr-owner__img img { width: 100%; border-radius: var(--tr-r-media); box-shadow: 10px 10px 0 var(--tr-yellow); }
.tr-owner__body { display: grid; gap: .5rem; }
.tr-owner__body > * { margin: 0 !important; }
.tr-about-areas { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.tr-about-areas > * { margin: 0 !important; }
.tr-about-areas h5 { font-size: 1.375rem; line-height: 1.6; color: var(--tr-yellow) !important; letter-spacing: .04em; }
@media (max-width: 760px) { .tr-owner { grid-template-columns: 1fr; } .tr-owner__media { max-width: 320px; } }

/* --------------------------------------------------------------------------
   Booking (book online, roof inspection)
   -------------------------------------------------------------------------- */
.tr-booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; max-width: 960px !important; background: #fff; border-radius: var(--tr-r-card); overflow: hidden; box-shadow: 0 0 0 1px var(--tr-line), var(--tr-shadow); }
.tr-booking__img img { width: 100%; height: 100% !important; object-fit: cover; }
.tr-booking__body { display: grid; gap: .8rem; align-content: center; padding: clamp(24px, 4vw, 44px); }
.tr-booking__body > * { margin: 0 !important; }
.tr-booking__meta { color: var(--tr-muted); }
@media (max-width: 760px) { .tr-booking { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Manufacturer logos (Carlisle, EverGuard, Versico) + partner sentence
   -------------------------------------------------------------------------- */
.tr-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px clamp(28px, 5vw, 64px); }
.tr-logos > * { margin: 0 !important; }
.tr-logos__img img { height: clamp(44px, 6vw, 72px); width: auto; max-width: 240px; object-fit: contain; }
.tr-logos__text { max-width: var(--tr-content) !important; text-align: center; }
.tr-logos__text > * { margin: 0 !important; }

/* Booking facts in the roof inspection hero ("1 hr", "$99", "Location 1" as on the Wix service page) */
.tr-booking__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0 !important; margin: 0 !important; }
.tr-booking__facts li { margin: 0 !important; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .12); color: #fff; font-size: .9375rem; }
.tr-contact-grid .tr-booking__body { align-content: start; }

/* Third-party widgets load after the page: reserve their space so the content below does not jump (CLS) */
.tr-widget .elfsight-app-07cb9079-92b1-43db-8edb-04833a175d5e:empty { min-height: 420px; } /* Google Reviews; the calculator widget is inactive (also on the old site) */
.tr-widget #rwl-map:empty { min-height: 360px; }
.tr-widget #rwl-output:empty { min-height: 600px; }
