/*
Theme Name:        Sewer Clean Pro
Theme URI:         https://rightnowmarketinggroup.com
Author:            Right Now Marketing Group LLC
Description:       Complete standalone WordPress theme for sewer cleaning companies. Activates and instantly builds a fully-editable Gutenberg website — no plugins required. Includes Home, About, 8 Service pages, Before & After Gallery, and Contact, plus unlimited city landing pages, 6 CPTs, dynamic {{tag}} system, LocalBusiness schema, and WP-CLI support.
Version:           1.0.0
Requires at least: 6.4
Tested up to:      7.0
Requires PHP:      8.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       sewer-clean
Tags:              block-editor, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
	--sc-primary:       #1a3f6f;   /* navy — white text 7.2:1 WCAG AA ✅ */
	--sc-primary-dark:  #112a4a;
	--sc-accent:        #c0392b;   /* red  — white text 4.7:1 WCAG AA ✅ */
	--sc-accent-dark:   #962d22;
	--sc-secondary:     #2563eb;
	--sc-text:          #111827;
	--sc-muted:         #6b7280;
	--sc-border:        #e5e7eb;
	--sc-surface:       #f9fafb;
	--sc-light:         #f3f4f6;
	--sc-white:         #ffffff;
	--sc-dark:          #1f2937;
	--sc-radius:        6px;
	--sc-radius-lg:     10px;
	--sc-shadow:        0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
	--sc-shadow-md:     0 4px 12px rgba(0,0,0,.1);
	--sc-shadow-lg:     0 10px 30px rgba(0,0,0,.12);
	--sc-max-w:         1200px;
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
	font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--sc-text);
	background: var(--sc-white);
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sc-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--sc-secondary); outline-offset: 3px; border-radius: 2px; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--sc-text); margin-bottom: .75em; }
h1 { font-size: clamp(1.875rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.375rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

/* ============================================================
   CRITICAL — Full-width block breakout
   Makes wp:group alignfull span 100vw with colored backgrounds
   ============================================================ */
.site-content { overflow-x: hidden; }

.wp-block-group.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}
/* Constrain inner children to 1200px */
.wp-block-group.alignfull > * {
	max-width: var(--sc-max-w);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
/* Allow block children to be full-width within that 1200px box */
.wp-block-group.alignfull > .wp-block-columns,
.wp-block-group.alignfull > .wp-block-heading,
.wp-block-group.alignfull > .wp-block-paragraph,
.wp-block-group.alignfull > .wp-block-buttons,
.wp-block-group.alignfull > .wp-block-query,
.wp-block-group.alignfull > .wp-block-group {
	width: 100%;
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.wp-block-button__link {
	border-radius: var(--sc-radius) !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	transition: filter .15s, transform .1s !important;
	cursor: pointer;
	line-height: 1.2 !important;
}
.wp-block-button__link:hover { filter: brightness(.9); transform: translateY(-1px); }
.wp-block-button__link:focus-visible { outline: 3px solid var(--sc-white); outline-offset: 3px; }
.wp-block-buttons { gap: 1rem !important; flex-wrap: wrap; }

/* ============================================================
   Columns responsive
   ============================================================ */
@media (max-width: 599px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) { flex-direction: column; }
	.wp-block-column { flex-basis: 100% !important; }
}

/* ============================================================
   Query Loop grids
   ============================================================ */
.wp-block-post-template.is-layout-grid { display: grid !important; gap: 1.5rem !important; }
.wp-block-post-template.columns-3.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.wp-block-post-template.columns-2.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }

/* ============================================================
   FAQ details/summary accordion
   ============================================================ */
.wp-block-details {
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius);
	margin-bottom: .875rem;
	overflow: hidden;
}
.wp-block-details summary {
	padding: 1.125rem 1.375rem;
	background: var(--sc-surface);
	cursor: pointer;
	font-weight: 600;
	color: var(--sc-primary);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: '+'; font-size: 1.5rem; font-weight: 300; flex-shrink: 0; }
.wp-block-details[open] summary { background: var(--sc-light); }
.wp-block-details[open] summary::after { content: '−'; }
.wp-block-details > *:not(summary) { padding: 1.125rem 1.375rem; }

/* ============================================================
   Accessibility
   ============================================================ */
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link {
	background: var(--sc-primary); color: var(--sc-white); font-weight: 700;
	left: 1rem; padding: .625rem 1.25rem; position: absolute; top: -999px;
	z-index: 999999; border-radius: 0 0 var(--sc-radius) var(--sc-radius);
}
.skip-link:focus { top: 0; }

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 768px) {
	.wp-block-group.alignfull > * { padding-left: 1rem; padding-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}
