/*
Theme Name:        Home Improvement Pro
Theme URI:         https://rightnowmarketinggroup.com
Author:            Right Now Marketing Group LLC
Description:       Complete standalone WordPress theme for The Complete Home Improvement Services. Activates and instantly builds a fully-editable Gutenberg website — no plugins required. Includes Home, About, Contact, Roofing Hub + 9 roofing service pages, Home Improvement Hub + 6 exterior service pages, plus unlimited city landing pages, dynamic {{tag}} system, LocalBusiness schema, and WP-CLI support. Color palette: Navy / Orange / White.
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:       hi-pro
Tags:              block-editor, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   CSS Custom Properties — Navy / Orange / White Palette
   ============================================================ */
:root {
	/* Primary — deep navy */
	--hi-navy:          #1a2e4a;
	--hi-navy-dark:     #111f33;
	--hi-navy-mid:      #243b5e;
	--hi-navy-soft:     #2d4a72;
	--hi-navy-light:    #3a5f8a;

	/* Accent — warm orange */
	--hi-orange:        #e8711a;
	--hi-orange-dark:   #c45e12;
	--hi-orange-hover:  #d4651a;
	--hi-orange-light:  #f08030;

	/* Whites & Greys */
	--hi-white:         #ffffff;
	--hi-cream:         #faf8f5;
	--hi-grey-light:    #f0ede8;
	--hi-grey-mid:      #d8d3cc;
	--hi-grey-text:     #666666;
	--hi-grey-dark:     #444444;
	--hi-off-white:     #f7f5f2;

	/* Functional */
	--hi-text:          #1a1a1a;
	--hi-border:        #e0dbd4;
	--hi-surface:       #faf8f5;

	/* Shape */
	--hi-radius:        6px;
	--hi-radius-lg:     12px;
	--hi-shadow:        0 2px 8px rgba(0,0,0,.10);
	--hi-shadow-md:     0 4px 16px rgba(0,0,0,.13);
	--hi-shadow-lg:     0 8px 32px rgba(0,0,0,.16);
	--hi-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: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--hi-text);
	background: var(--hi-white);
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--hi-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--hi-orange); outline-offset: 3px; border-radius: 2px; }

/* Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--hi-navy); margin-bottom: .75em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .4rem; }

/* ============================================================
   CRITICAL — Full-width block breakout
   ============================================================ */
.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;
}
.wp-block-group.alignfull > * {
	max-width: var(--hi-max-w);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
.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(--hi-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(--hi-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 Accordion
   ============================================================ */
.wp-block-details {
	border: 1px solid var(--hi-border);
	border-radius: var(--hi-radius);
	margin-bottom: .875rem;
	overflow: hidden;
}
.wp-block-details summary {
	padding: 1.125rem 1.375rem;
	background: var(--hi-surface);
	cursor: pointer; font-weight: 600;
	color: var(--hi-navy); 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; color: var(--hi-orange); }
.wp-block-details[open] summary { background: var(--hi-grey-light); }
.wp-block-details[open] summary::after { content: '\2212'; }
.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(--hi-navy); color: var(--hi-white); font-weight: 700;
	left: 1rem; padding: .625rem 1.25rem; position: absolute; top: -999px;
	z-index: 999999; border-radius: 0 0 var(--hi-radius) var(--hi-radius);
}
.skip-link:focus { top: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@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; }
}
