/*
 * Local SEO pages (Milestone 2): General Contractor, Roofing, Electrical.
 *
 * Unlike the X-Mod landing page these are full site pages. They keep the site
 * header, navigation and footer, because the copy doc is explicit: "Full site
 * page - includes navigation and footer. Not nav-stripped." They are meant to
 * rank and to be browsed from, not to be a dead end for paid traffic.
 *
 * They therefore use the real brand palette from the copy spec, #C00000 red and
 * #595959 body grey, not the darker one-off palette Saad used on the landing
 * page. A visitor can land here and click straight into the rest of the site,
 * so these pages have to look like the site.
 *
 * One stylesheet for all three trades. Everything that differs between them is
 * content, which is exactly what the clone annotation guide intends: cloning a
 * page must never mean cloning a stylesheet.
 */

body.urm-seo {
	--s-red:    #C00000;
	--s-black:  #000000;
	--s-body:   #595959;
	--s-white:  #FFFFFF;
	--s-surface:#F4F4F4;
	--s-dark:   #111111;
	--s-line:   #D9D9D9;
	--s-head: 'Poppins', 'Carlito', Calibri, Arial, sans-serif;
	--s-text: 'Carlito', Calibri, Arial, sans-serif;
}

/* Without this the form card's side padding is added to its width rather than
   fitting inside it, which pushed the whole page 65px wider than the viewport
   on a phone and gave every SEO page a horizontal scrollbar. */
body.urm-seo *, body.urm-seo *::before, body.urm-seo *::after { box-sizing: border-box; }

body.urm-seo .s-sec { padding: 74px 0; }
body.urm-seo .s-sec--surface { background: var(--s-surface); }
body.urm-seo .s-sec--dark { background: var(--s-dark); }
.s-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.s-wrap--narrow { max-width: 840px; }

.s-label {
	font-family: var(--s-text); font-size: 12.5px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: var(--s-red);
	margin: 0 0 12px; display: inline-block;
	border-bottom: 3px solid var(--s-red); padding-bottom: 9px;
}
.s-h1 {
	font-family: var(--s-head); font-size: 44px; font-weight: 700; line-height: 1.16;
	letter-spacing: -.01em; color: var(--s-black); margin: 0 0 18px; max-width: 900px;
}
.s-h2 {
	font-family: var(--s-head); font-size: 30px; font-weight: 700; line-height: 1.25;
	color: var(--s-black); margin: 0 0 18px; max-width: 880px;
}
.s-sec--dark .s-h2, .s-sec--dark .s-h3 { color: var(--s-white); }
.s-h3 {
	font-family: var(--s-head); font-size: 17px; font-weight: 700; line-height: 1.35;
	color: var(--s-black); margin: 0 0 8px;
}
.s-p { font-size: 16px; line-height: 1.55; color: var(--s-body); margin: 0 0 15px; max-width: 860px; }
.s-p:last-child { margin-bottom: 0; }
.s-sec--dark .s-p { color: #D8D8D8; }

/* Hero.
 * Dark, full-bleed job-site photograph with a scrim and white text, matching
 * Saad's mobile frame. The first build used a light split hero because no
 * frames existed at the time; that was wrong and this replaces it.
 *
 * The scrim is a CSS gradient over the image inside our own markup rather than
 * an Elementor section overlay, because overlays written directly into
 * _elementor_data do not render (see the landing page build).
 */
.s-hero { position: relative; background: var(--s-dark); overflow: hidden; }
.s-hero__bg { position: absolute; inset: 0; background-position: center; background-size: cover; }
.s-hero__scrim {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(10,10,10,.93) 0%, rgba(10,10,10,.86) 52%, rgba(10,10,10,.62) 100%);
}
.s-hero .s-sec { position: relative; padding: 84px 0 76px; }
.s-hero .s-h1 { color: var(--s-white); max-width: 900px; }
.s-hero__sub { font-size: 18px; line-height: 1.55; color: #D9D9D9; max-width: 740px; margin: 0 0 12px; }
.s-hero__fix { font-size: 18px; font-weight: 700; color: var(--s-white); margin: 0 0 26px; }
.s-trust {
	font-size: 13px; font-weight: 700; letter-spacing: .04em;
	color: #D9D9D9; margin: 24px 0 0;
}
/* The frame picks out the turnaround claim in red. It is the one differentiator
   in that line that a GC actually feels on a job site. */
/* Brand red on a near-black scrim fails contrast badly. Lifted for the dark
   hero only, so the accent still reads without weakening it elsewhere. */
.s-trust em { font-style: normal; color: #FF6B6B; }

/* buttons */
body.urm-seo a.s-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--s-red); color: var(--s-white) !important; text-decoration: none;
	font-family: var(--s-text); font-size: 15px; font-weight: 700;
	padding: 14px 26px; border-radius: 3px; transition: background .15s ease;
}
body.urm-seo a.s-btn:hover, body.urm-seo a.s-btn:focus { background: #9C0000; }
body.urm-seo a.s-btn--ghost {
	background: transparent; color: var(--s-black) !important; border: 2px solid var(--s-black);
	padding: 12px 24px;
}
body.urm-seo a.s-btn--ghost:hover { background: var(--s-black); color: var(--s-white) !important; }

/* The ghost button is black-on-transparent, which works in the X-Mod section
   on white but disappears against the dark hero photograph: dark text and a
   dark border over a dark image left the phone number all but unreadable.
   Scoped to the hero so the light-background version is untouched. */
body.urm-seo .s-hero a.s-btn--ghost {
	color: var(--s-white) !important;
	border-color: rgba(255, 255, 255, .9);
	background: rgba(0, 0, 0, .18);
}
body.urm-seo .s-hero a.s-btn--ghost:hover,
body.urm-seo .s-hero a.s-btn--ghost:focus {
	background: var(--s-white);
	color: var(--s-black) !important;
	border-color: var(--s-white);
}

/* two column grids (coverage lines, kit stages, credibility) */
.s-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 44px; margin-top: 34px; }
.s-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 26px; }
.s-item { background: var(--s-white); border-top: 3px solid var(--s-red); padding: 20px 22px 22px; }
.s-sec--dark .s-item { background: rgba(255,255,255,.05); }
.s-item .s-p { font-size: 14.5px; }

/* compliance list */
.s-reqs { list-style: none; margin: 22px 0 0; padding: 0; max-width: 860px; }
.s-reqs li {
	font-size: 15.5px; line-height: 1.5; color: var(--s-body);
	padding: 11px 0 11px 26px; border-bottom: 1px solid var(--s-line); position: relative;
}
.s-reqs li:last-child { border-bottom: 0; }
.s-reqs li::before {
	content: ''; position: absolute; left: 2px; top: 16px; width: 13px; height: 8px;
	border-left: 2.5px solid var(--s-red); border-bottom: 2.5px solid var(--s-red);
	transform: rotate(-45deg);
}

/* callout */
.s-callout {
	background: var(--s-surface); border-left: 5px solid var(--s-red);
	border-radius: 0 8px 8px 0; padding: 22px 26px; margin: 30px 0 26px; max-width: 880px;
}
.s-callout .s-p { margin: 0; color: var(--s-black); }

/* numbered stages */
.s-stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 44px; margin-top: 32px; }
.s-stage__n {
	display: inline-block; font-family: var(--s-head); font-size: 12.5px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: var(--s-red); margin-bottom: 6px;
}

/* Form card.
 * The class lands on the Elementor widget wrapper, which sits outside the
 * section's .s-wrap and would otherwise run flush to the viewport edge. So the
 * wrapper carries the container, and the form element itself becomes the card. */
.s-formcard { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.s-formcard .frm-fluent-form {
	background: var(--s-white); border: 1px solid var(--s-line); border-top: 3px solid var(--s-red);
	border-radius: 0 0 8px 8px; padding: 30px 32px 26px; margin-top: 34px; max-width: 640px;
}
.s-formnote { font-size: 12.5px; line-height: 1.5; color: var(--s-body); margin: 14px 0 0; }

/* Flex and grid children default to min-width:auto, which refuses to shrink
   below their content and is the usual reason a form pushes a phone layout
   wider than the screen. */
body.urm-seo .fluentform .ff-el-group,
body.urm-seo .fluentform .ff-t-container,
body.urm-seo .fluentform .ff-t-cell { min-width: 0; }
body.urm-seo .s-formcard, body.urm-seo .s-formcard * { overflow-wrap: anywhere; }

body.urm-seo .fluentform .ff-el-group { margin-bottom: 15px; }
body.urm-seo .fluentform .ff-el-input--label label {
	font-family: var(--s-text); font-size: 12.5px; font-weight: 700; letter-spacing: .05em;
	text-transform: uppercase; color: var(--s-body); margin-bottom: 5px;
}
body.urm-seo .fluentform .ff-el-form-control {
	font-family: var(--s-text); font-size: 15px; color: var(--s-black);
	border: 1px solid var(--s-line); border-radius: 3px; padding: 11px 13px; height: auto;
	background: var(--s-white); box-shadow: none; width: 100%;
}
body.urm-seo .fluentform .ff-el-form-control:focus {
	border-color: var(--s-red); outline: 2px solid rgba(192,0,0,.16);
}
body.urm-seo .fluentform .ff-el-help-message {
	font-size: 12.5px; color: var(--s-body); margin-top: 4px; font-style: italic;
}
body.urm-seo .fluentform .ff-btn-submit {
	width: 100%; background: var(--s-red); border: 0; border-radius: 3px; color: var(--s-white);
	font-family: var(--s-text); font-size: 15px; font-weight: 700; padding: 14px 20px;
	cursor: pointer; transition: background .15s ease;
	/* Fluent Forms sets white-space:nowrap on the submit button. These labels
	   name the asset, so on the roofing and electrical pages the text is wider
	   than a phone and pushed the whole page into a horizontal scroll. Let it
	   wrap rather than shortening a label that is doing useful work. */
	white-space: normal; line-height: 1.35; height: auto;
}
body.urm-seo .fluentform .ff-btn-submit:hover { background: #9C0000; }

/* testimonials: red left border, matching the X-Mod page treatment per the doc */
.s-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px; }
.s-quote { border-left: 4px solid var(--s-red); padding: 4px 0 4px 20px; margin: 0; }
.s-quote p { font-size: 15px; line-height: 1.6; color: var(--s-black); margin: 0; }
.s-quote footer {
	font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	color: var(--s-red); margin-top: 12px;
}

.s-reassure {
	font-style: italic; text-align: center; font-size: 15.5px; line-height: 1.55;
	color: #D8D8D8; margin: 34px auto 0; max-width: 760px;
}

/* local signals */
.s-local { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; margin-top: 30px; }
.s-map { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--s-line); border-radius: 8px; overflow: hidden; }
.s-map iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Idle state: no iframe exists yet, so Google has not been contacted. */
.s-map--idle { display: flex; align-items: center; justify-content: center; background: var(--s-white); }
.s-map__inner { padding: 26px 28px; text-align: center; max-width: 420px; }
.s-map__addr { font-size: 15.5px; line-height: 1.55; color: var(--s-black); font-weight: 700; margin: 0 0 10px; }
.s-map__note { font-size: 13.5px; line-height: 1.5; color: var(--s-body); margin: 0 0 18px; }
.s-map__actions { margin: 0; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.s-map__load {
	background: var(--s-red); color: var(--s-white); border: 0; border-radius: 3px;
	font-family: var(--s-text); font-size: 14.5px; font-weight: 700; padding: 11px 20px;
	cursor: pointer; transition: background .15s ease;
}
.s-map__load:hover { background: #9C0000; }
.s-map__open { font-size: 14px; color: var(--s-red); }
.s-addr { font-size: 15.5px; line-height: 1.65; color: var(--s-body); margin: 0; }
.s-addr strong { color: var(--s-black); display: block; margin-bottom: 6px; }
.s-addr a { color: var(--s-red); }
.s-counties { font-size: 14px; line-height: 1.6; color: var(--s-body); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--s-line); }

/* final CTA bar */
.s-cta { background: var(--s-red); color: var(--s-white); text-align: center; padding: 48px 0; }
.s-cta h2 { font-family: var(--s-head); font-size: 27px; font-weight: 700; line-height: 1.3; color: var(--s-white); margin: 0 0 10px; }
.s-cta p { font-size: 17px; line-height: 1.5; color: var(--s-white); margin: 0 0 6px; }
.s-cta p a { color: var(--s-white); font-weight: 700; text-decoration: underline; }
.s-cta__fine { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }

/* --------------------------------------------------------------------
 * Responsive. As with the landing page, the designer supplied desktop
 * frames only, so these are implementation decisions and are flagged as
 * such. Grids collapse at the same widths the rest of the site uses, so
 * these pages break at the points a visitor already expects.
 * ----------------------------------------------------------------- */

@media (max-width: 960px) {
	/* Copy first, photograph after: on a phone the headline and the CTA must be
	   what lands above the fold, not the image. */
	.s-grid, .s-stages { grid-template-columns: 1fr; gap: 24px; }
	.s-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.s-quotes { grid-template-columns: 1fr; }
	.s-local { grid-template-columns: 1fr; gap: 28px; }
	body.urm-seo .s-sec { padding: 54px 0; }
	.s-h1 { font-size: 34px; }
	.s-h2 { font-size: 26px; }
}

@media (max-width: 680px) {
	.s-wrap, .s-formcard { padding: 0 20px; }
	.s-grid--4 { grid-template-columns: 1fr; }
	.s-h1 { font-size: 28px; }
	.s-h2 { font-size: 23px; }
	.s-hero__sub, .s-hero__fix { font-size: 16.5px; }
	.s-hero .s-sec { padding: 52px 0 48px; }
	body.urm-seo a.s-btn { display: flex; justify-content: center; width: 100%; }
	.s-formcard .frm-fluent-form { padding: 24px 20px 22px; }
	body.urm-seo .s-sec { padding: 42px 0; }
	.s-cta h2 { font-size: 22px; }
}

/* ---- FAQ accordion -------------------------------------------------
 * Native details/summary, matching the pattern already used on the
 * pillar pages. No JavaScript, answer text present in the DOM whether
 * or not a panel is open, keyboard accessible without any work.
 * ------------------------------------------------------------------ */

.s-faq__list { margin-top: 26px; max-width: 900px; }
.s-faq__item { border-bottom: 1px solid var(--s-line); }
.s-faq__item:first-child { border-top: 1px solid var(--s-line); }

.s-faq__q {
	position: relative; list-style: none; cursor: pointer;
	font-family: var(--s-head); font-size: 17px; font-weight: 700; line-height: 1.45;
	color: var(--s-black); padding: 18px 44px 18px 0;
}
.s-faq__q::-webkit-details-marker { display: none; }
.s-faq__q:hover { color: var(--s-red); }
.s-faq__q:focus-visible { outline: 2px solid var(--s-red); outline-offset: 3px; }

/* Red plus that becomes a minus when open, matching the site's existing
   FAQ treatment on the pillar pages. */
.s-faq__q::after {
	content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
	font-family: var(--s-text); font-size: 26px; font-weight: 400; line-height: 1;
	color: var(--s-red);
}
.s-faq__item[open] > .s-faq__q::after { content: '\2013'; }
.s-faq__item[open] > .s-faq__q { color: var(--s-red); }

.s-faq__a { padding: 0 44px 20px 0; }
.s-faq__a p { font-size: 15.5px; line-height: 1.62; color: var(--s-body); margin: 0; }

@media (max-width: 680px) {
	.s-faq__q { font-size: 15.5px; padding: 15px 36px 15px 0; }
	.s-faq__a { padding: 0 8px 17px 0; }
	.s-faq__a p { font-size: 15px; }
}
