/*
Theme Name: AssetRoof
Theme URI: https://assetroof.com
Author: AssetRoof
Description: Block theme for assetroof.com. Independent commercial roof consulting. Colors, type, homepage sections and full page layouts built from the 2026 site redesign.
Version: 1.1.6
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: assetroof
*/

/* Floating header that sticks while the page scrolls */
.ar-site-header {
	position: sticky;
	top: calc(16px + var(--wp-admin--admin-bar--height, 0px));
	z-index: 50;
	margin-bottom: -88px;
	padding: 0 16px;
}
.ar-nav-pill {
	background: rgba(255, 255, 255, 0.94);
	border-radius: 28px;
	box-shadow: 0 8px 30px rgba(15, 30, 51, 0.14);
	backdrop-filter: blur(6px);
}
.ar-nav-pill .wp-block-navigation a { color: var(--wp--preset--color--navy); }
.ar-nav-pill .wp-block-button__link { padding: 12px 22px; }

/* Small uppercase labels above headings */
.ar-eyebrow {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
}

/* Cards: keep "Learn more" pinned to the bottom when cards share a row */
.ar-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.ar-card > .wp-block-group { flex-grow: 1; display: flex; flex-direction: column; }
.ar-card .ar-card-link { margin-top: auto !important; }
.ar-card .wp-block-image { margin: 0; }
.ar-card .wp-block-image img { width: 100%; height: 300px; object-fit: cover; display: block; }
.ar-card .wp-block-image.ar-contain img { object-fit: contain; }
.ar-card .wp-block-image.ar-face img { object-position: 50% 28%; }
.ar-card .wp-block-image.ar-crew img { object-position: 50% 30%; }

/* Featured inspections card */
.ar-featured { overflow: hidden; }
.ar-featured .wp-block-column:first-child .wp-block-image,
.ar-featured .wp-block-column:first-child .wp-block-image img { height: 100%; margin: 0; }
.ar-featured .wp-block-column:first-child .wp-block-image img { min-height: 380px; max-height: 520px; width: 100%; object-fit: cover; object-position: 50% 85%; display: block; }

/* Emergency list vs plan: icon lists */
.ar-x-list, .ar-check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ar-x-list li, .ar-check-list li {
	position: relative;
	background: #fff;
	border-radius: 18px;
	padding: 18px 20px 18px 56px;
	box-shadow: 0 6px 20px rgba(15, 30, 51, 0.07);
}
.ar-x-list li::before, .ar-check-list li::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 21px;
	width: 22px;
	height: 22px;
	background-repeat: no-repeat;
	background-size: contain;
}
.ar-x-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2410C' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.ar-check-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308806E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Credential list in About */
.ar-cred-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ar-cred-list li { position: relative; padding-left: 30px; }
.ar-cred-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308806E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Circle photo in the emergency vs plan section */
.ar-circle img {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 8px solid #fff;
	box-shadow: 0 18px 50px rgba(15, 30, 51, 0.22);
	box-sizing: border-box;
}

/* How it works step cards on the dark photo */
.ar-step { border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); }
.ar-step-service { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 14px; }

/* Outline button for dark backgrounds */
.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.1); }

/* Outline button on light backgrounds */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: #065F52;
	border: 1.5px solid var(--wp--preset--color--teal-deep);
}

/* Footer links */
.ar-footer a { color: var(--wp--preset--color--fog); font-weight: 400; }
.ar-footer a:hover { color: #fff; }

/* Badges */
.ar-badge img { height: 72px; width: auto; }

@media (max-width: 781px) {
	.ar-site-header { margin-bottom: -76px; }
	.ar-featured .wp-block-column:first-child .wp-block-image img { min-height: 280px; }
}

/* Template spacing: sections butt against each other */
.wp-site-blocks > * + * { margin-block-start: 0; }
.ar-logo img { width: 48px; height: 48px; object-fit: contain; }
mark.has-inline-color { padding: 0; }

/* Grids fill the row instead of leaving empty columns */
.ar-grid.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)) !important; }
.ar-grid-280.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)) !important; }
.ar-grid-220.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)) !important; }
.ar-grid-160.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)) !important; }
.ar-measure { max-width: 640px; }
.ar-logo-box { width: fit-content; }
.ar-rro { flex-shrink: 0; }
@media (max-width: 600px) {
	.ar-nav-phone { display: none; }
	.ar-nav-pill { padding-left: 14px !important; }
}

/* ---------- 1.1.0: inner pages ---------- */
.ar-grid-200.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)) !important; }
.ar-grid-240.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)) !important; }
.ar-grid-260.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) !important; }
.ar-grid-320.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)) !important; }
.ar-grid-340.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)) !important; }
.ar-grid-440.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)) !important; }
.ar-grid-480.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)) !important; }
.ar-measure-wide { max-width: 820px; }
.ar-measure-narrow { max-width: 520px; }

/* Card stacks keep their link at the bottom */
.ar-card-flex { height: 100%; }
.ar-card-flex .ar-card-link { margin-top: auto !important; }
.ar-card .wp-block-image.ar-black img { background: #000; }
.ar-card .wp-block-image.ar-white-bg img, .wp-block-image.ar-white-bg img { background: #fff; object-fit: contain; }
.ar-card .wp-block-image.ar-pos-bottom img, .wp-block-image.ar-pos-bottom img { object-position: 50% 85%; }
.wp-block-image.ar-pos-left img { object-position: 30% 50%; }
.wp-block-image.ar-crew img { object-position: 50% 30%; }
.ar-card .wp-block-image.ar-contain img { height: 300px; }

/* Services hub */
.ar-index-row { height: 100%; box-sizing: border-box; }
.ar-index-row .ar-thumb { flex-shrink: 0; margin: 0; }
.ar-index-row .ar-eyebrow { font-size: 12px; }
.ar-index-title a { color: var(--wp--preset--color--navy); }
.ar-index-title a:hover { color: var(--wp--preset--color--teal-deep); }
.ar-start-q { flex: 1 1 420px; min-width: 0; margin: 0; }
.ar-start-a { flex: 0 1 300px; margin: 0; }
.ar-step p { margin: 0; }
.ar-step .has-white-color { color: #E3E9F0 !important; }

/* Plain tick list (no card behind each item) */
.ar-tick-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ar-tick-list li { position: relative; padding-left: 32px; }
.ar-tick-list li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308806E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Icon lists on mist and navy */
.ar-x-list.ar-list-mist li { background: var(--wp--preset--color--mist); box-shadow: none; }
.ar-flag-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2410C' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E"); }
.ar-check-list.ar-list-dark li { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: none; color: #E3E9F0; }
.ar-check-list.ar-list-dark li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232BC4A8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Numbered lists */
.ar-steps-list { list-style: none; padding: 0; counter-reset: ar-step; display: flex; flex-direction: column; gap: 18px; }
.ar-steps-list li { counter-increment: ar-step; position: relative; padding-left: 44px; }
.ar-steps-list li::before { content: counter(ar-step); position: absolute; left: 0; top: -2px; font-family: var(--wp--preset--font-family--archivo); font-weight: 600; font-size: 20px; color: var(--wp--preset--color--teal-deep); }
.ar-timeline-dark { list-style: none; padding: 0; margin: 0; counter-reset: ar-tl; display: flex; flex-direction: column; gap: 10px; }
.ar-timeline-dark li { counter-increment: ar-tl; padding: 16px 20px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px; color: #E3E9F0; }
.ar-timeline-dark li::before { content: "0" counter(ar-tl) "  "; font-weight: 600; color: var(--wp--preset--color--teal-bright); white-space: pre; }

/* Links that sit on navy */
.ar-link-white a { color: #fff; }
.ar-link-white a:hover { color: var(--wp--preset--color--teal-light); }
.ar-link-row a + a { margin-left: 28px; }
.ar-unit { font-family: var(--wp--preset--font-family--plex); font-size: 16px; font-weight: 500; color: var(--wp--preset--color--slate); }

/* Pricing tables */
.ar-price-table { margin: 20px 0 0; }
.ar-price-table table { border-collapse: collapse; width: 100%; font-size: 16px; }
.ar-price-table td { border: 0; border-top: 1px solid #DCE3EA; padding: 13px 8px 13px 0; vertical-align: top; }
.ar-price-table tr:last-child td { border-bottom: 1px solid #DCE3EA; }
.ar-price-table td:last-child { text-align: right; white-space: nowrap; padding-right: 0; }
.ar-price-table td:nth-child(2):not(:last-child) { color: var(--wp--preset--color--slate); }

/* Narrow text blocks stay left-aligned inside full-width sections */
section.is-layout-constrained > .ar-measure, section.is-layout-constrained > .ar-measure-wide, section.is-layout-constrained > .ar-measure-narrow { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1240px)) / 2)) !important; margin-right: auto !important; }
.wp-block-image.ar-white-bg img { width: 100%; max-height: 520px; }

/* About portrait, FAQ topic links, contact content */
.ar-portrait img { width: 100%; max-width: 420px; margin-inline: auto; display: block; }
.ar-faq-nav { position: sticky; top: 120px; }
.ar-faq-nav p { margin: 0; }
.ar-footer-area { color: #93A3B6; max-width: 300px; }
.ar-contact-content .wp-block-post-content > * { max-width: 1240px; }
@media (max-width: 781px) {
	.ar-faq-nav { position: static; }
	.ar-index-row .ar-thumb img { width: 96px !important; height: 84px !important; }
}

/* 1.1.3 RoofMRI badge on dark photo */
.ar-badge-tile img { border: 1px solid rgba(255,255,255,0.4); border-radius: 12px; }

/* Visually hidden text for screen readers and search engines */
.ar-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

