/*
Theme Name: Red & Orange (Astra Child)
Description: Brand layer for Red & Orange Electric & Fire Inc. on the Astra theme. Adds the red/orange palette, Archivo/Public Sans fonts, and content polish while keeping Astra's own header and footer.
Template: astra
Version: 1.0.0
Text Domain: red-orange-astra
*/

/* === Brand tokens (scaffolded by Studio Code) === */
:root{
	--roe-primary:#d7452f;
	--roe-accent:#e48337;
	--roe-blue:#1d3557;
	--roe-ink:#1c2631;
	--roe-surface:#f4f7f9;
	--roe-surface-2:#e9edf1;
	--roe-muted:#5b6b7b;
	--roe-white:#ffffff;
}

body{
	font-family:"Public Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
	color:#334155;
	background-color:#eceff3 !important;
}
.entry-content h1,.entry-content h2,.entry-content h3,
.entry-content h4,.entry-content h5,.entry-content h6,
.site-title,.ast-site-title-wrap h1,.entry-title{
	font-family:"Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
	color:var(--roe-accent);
}
/* headings inside dark bands stay light for contrast */
.hero h1,.hero h2,.hero h3,
.cta-band h1,.cta-band h2,.cta-band h3,
.service-area h1,.service-area h2,.service-area h3{color:#fff !important;}

/* === Hero === */
.hero{
	background:radial-gradient(1200px 620px at 82% -12%, rgba(215,69,47,.55) 0%, #24405f 48%, #1d3557 100%);
	color:#fff;
	text-align:center;
}
.hero-title{color:#fff !important;margin:0 auto;}
.hero-eyebrow{
	text-transform:uppercase;letter-spacing:.16em;font-weight:700;font-size:.8rem;
	color:var(--roe-accent);margin:0 auto;
}
.hero-lede{color:rgba(255,255,255,.86);max-width:38rem;margin-left:auto;margin-right:auto;}
.hero .wp-block-buttons{justify-content:center;}

/* === Buttons (brand) === */
.wp-block-button .wp-block-button__link{
	background:var(--roe-primary) !important;color:#fff !important;border-radius:8px;
	padding:.9em 1.6em !important;font-weight:600;text-decoration:none;
	border:1px solid var(--roe-primary) !important;
}
.wp-block-button .wp-block-button__link:hover{background:#bd3b27 !important;color:#fff !important;border-color:#bd3b27 !important;}
.hero .wp-block-button.is-style-outline .wp-block-button__link,
.cta-band .wp-block-button.is-style-outline .wp-block-button__link{
	background:transparent !important;color:#fff !important;border:1px solid rgba(255,255,255,.65) !important;
}
.hero .wp-block-button.is-style-outline .wp-block-button__link:hover,
.cta-band .wp-block-button.is-style-outline .wp-block-button__link:hover{
	background:rgba(255,255,255,.12) !important;color:#fff !important;border-color:#fff !important;
}
.wp-block-buttons{align-items:center;}

/* === Contact form: fields fill the card === */
.is-style-card > .jetpack-contact-form-container,
.jetpack-contact-form-container,
.jetpack-contact-form-container form.contact-form,
.wp-block-jetpack-contact-form{
	width:100% !important;
	max-width:none !important;
	margin-left:0 !important;
	margin-right:0 !important;
}
.wp-block-jetpack-contact-form{
	align-self:stretch;
	flex:1 1 auto;
}
.wp-block-jetpack-contact-form .grunion-field-wrap,
.wp-block-jetpack-contact-form .wp-block-jetpack-input-wrap{
	width:100% !important;
	max-width:none !important;
	margin-left:0 !important;
	margin-right:0 !important;
	align-self:stretch;
}
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form textarea{
	width:100% !important;
	box-sizing:border-box;
}
.wp-block-jetpack-contact-form textarea{min-height:150px;}

/* === Bands === */
.band-section{background:var(--roe-surface);}
.band-head__title{margin:0;}
.band-head__note{margin:0;color:var(--roe-muted);}
.band-head__note a{color:var(--roe-primary);font-weight:600;text-decoration:none;}
.band-head__note a:hover{text-decoration:underline;}

/* === Service cards === */
.is-style-card{
	background:#fff;border:1px solid var(--roe-surface-2);border-radius:14px;
	padding:1.85rem;box-shadow:0 12px 34px rgba(28,38,49,.06);
	height:100%;display:flex;flex-direction:column;
}
.service-card__icon{
	display:inline-flex;align-items:center;justify-content:center;
	width:54px;height:54px;border-radius:50%;
	background:var(--roe-blue);color:#fff;margin:0 0 .85rem;
}
.service-card__icon svg{width:26px;height:26px;}
/* What we do cards on Home: white -> light grey */
#services .is-style-card{background:#eef2f5;border-color:var(--roe-surface-2);}
.service-card__title{font-size:1.35rem;margin:0 0 .5rem;}
.service-card__text{color:var(--roe-muted);margin:0 0 .75rem;}
.is-style-card .wp-block-column, .is-style-card{}

/* card link */
.is-style-card a{color:var(--roe-primary);font-weight:600;text-decoration:none;}
.is-style-card a:hover{text-decoration:underline;}

/* equal-height card columns */
.wp-block-columns .wp-block-column > .is-style-card{height:100%;}

/* === Checklist === */
ul.checklist{
	list-style:none;padding:0;margin:0;
}
ul.checklist li{
	padding-left:1.4rem;position:relative;margin-bottom:.8rem;color:var(--roe-ink);
}
ul.checklist li::before{
	content:"";position:absolute;left:0;top:.6em;width:.5em;height:.5em;border-radius:50%;
	background:var(--roe-primary);
}
ul.checklist ul{
	list-style:none;margin:.5rem 0 0;padding-left:1.2rem;
}
ul.checklist ul li{margin-bottom:.5rem;}

/* === Panel change photo showcase === */
.panel-showcase-band .band-head__title{margin:0 0 .35rem;}
.panel-showcase-band .band-head__note{margin:0 0 1.5rem;}
.panel-showcase{max-width:620px;margin-left:auto;margin-right:auto;}
.panel-showcase img{width:100%;height:auto;object-fit:cover;border:1px solid var(--roe-surface-2);box-shadow:0 12px 30px rgba(28,38,49,.14);}
.panel-showcase figcaption{color:var(--roe-muted);font-size:.82rem;text-align:center;margin-top:.55rem;}

/* === Numbers card === */
.wp-block-column .is-style-card{ }

/* === CTA band === */
.cta-band{
	background:radial-gradient(1100px 560px at 15% 120%, rgba(228,131,55,.42) 0%, #24405f 58%, #1a3050 100%);
	color:#fff;
	text-align:center;
}
.cta-band :is(h1,h2,h3,h4,h5,h6){margin-left:auto;margin-right:auto;}
.cta-band .wp-block-buttons{justify-content:center;}
.cta-eyebrow{
	text-transform:uppercase;letter-spacing:.16em;font-weight:700;font-size:.8rem;
	color:var(--roe-accent);margin:0;
}
.cta-title{color:#fff !important;margin:0 auto;}
.cta-lede{color:rgba(255,255,255,.86);max-width:34rem;margin-left:auto;margin-right:auto;}

/* inline links in content match brand */
.entry-content a{color:var(--roe-primary);text-decoration:underline;}
.entry-content a:hover{color:#bd3b27;}
.hero a,.cta-band a,.service-area a{color:#fff;}
.hero a:hover,.cta-band a:hover,.service-area a:hover{color:#fff;text-decoration:underline;}

/* === Light header brand (Astra default header) === */
.site-header{
	background:#fff;
	border-bottom:3px solid var(--roe-primary);
}
.site-title, .site-title a{color:var(--roe-ink);font-weight:700;}
.main-header-menu .menu-link,
.ast-builder-menu .menu-link{color:var(--roe-ink);font-weight:500;}
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .menu-link:hover{color:var(--roe-primary);}

/* === Light footer brand === */
.site-footer, .site-footer .ast-container{color:var(--roe-muted);}
.site-footer a{color:var(--roe-muted);}
.site-footer a:hover{color:var(--roe-primary);}

/* === Header logo === */
.site-branding .site-title { display: none !important; }
.site-header .site-logo-img img.custom-logo { width: auto !important; height: 62px; max-width: 100%; object-fit: contain; }
@media (max-width: 782px){
	.site-header .site-logo-img img.custom-logo { height: 48px; }
}
/* phone number beside the logo */
.roe-header-phone{
	margin-left:1.1rem;color:var(--roe-primary);font-family:"Archivo",sans-serif;font-weight:700;
	font-size:1.08rem;line-height:1;white-space:nowrap;text-decoration:none;
	display:inline-flex;align-items:center;
}
.roe-header-phone:hover{color:#bd3b27;text-decoration:underline;}
@media (max-width: 921px){
	.roe-header-phone{display:none;}
}

/* === Contact page === */
.contact-side .is-style-card > * + * { margin-block-start: .6rem; }
.contact-side .is-style-card .wp-block-separator { margin-block: .9rem; }
.contact-side .is-style-card > *:last-child { margin-block-end: 0; }

/* === Service Area band (pre-footer) === */
.service-area{
	background-color:#1d3557;
	background-image:linear-gradient(rgba(15,29,51,.66), rgba(15,29,51,.74)), url("assets/images/servicemapv2.png");
	background-size:cover;
	background-position:center;
	padding:clamp(4.5rem,9vw,7rem) 1.5rem;
	text-align:center;
}
.service-area__eyebrow{
	color:var(--roe-accent);text-transform:uppercase;letter-spacing:.16em;
	font-weight:700;font-size:.8rem;margin:0 0 1rem;
}
.service-area__title{
	color:#fff;font-family:"Archivo",sans-serif;font-size:clamp(1.8rem,4vw,2.6rem);
	margin:0 0 1rem;
}
.service-area__areas{
	color:#fff;font-weight:600;font-size:1.1rem;margin:0 auto 1.75rem;
	max-width:46rem;
}
.service-area__contact{
	display:flex;flex-direction:column;align-items:center;gap:.35rem;
}
.service-area__phone{
	color:var(--roe-accent);font-family:"Archivo",sans-serif;font-weight:700;
	font-size:1.9rem;text-decoration:none;letter-spacing:-.01em;
}
.service-area__phone:hover{color:#fff;}
.service-area__hours{color:rgba(255,255,255,.85);margin:0;font-size:.95rem;}
.service-area__license{color:rgba(255,255,255,.7);margin:.45rem 0 0;font-size:.9rem;letter-spacing:.04em;}

/* === After-hours emergency banner === */
.roe-banner{
	position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;
	padding:1.25rem;opacity:0;visibility:hidden;transition:opacity .3s ease, visibility .3s ease;
}
.roe-banner.is-visible{opacity:1;visibility:visible;}
.roe-banner__backdrop{
	position:absolute;inset:0;background:rgba(13,20,28,.62);backdrop-filter:blur(2px);
}
.roe-banner__card{
	position:relative;background:#fff;border-radius:16px;max-width:440px;width:100%;
	padding:2.25rem 2rem 2rem;text-align:center;box-shadow:0 24px 60px rgba(10,16,24,.35);
}
.roe-banner__eyebrow{
	text-transform:uppercase;letter-spacing:.16em;font-weight:700;font-size:.75rem;
	color:var(--roe-primary);margin:0 0 .5rem;
}
.roe-banner__title{
	font-family:"Archivo",sans-serif;font-size:1.7rem;color:var(--roe-ink);margin:0 0 .75rem;
}
.roe-banner__text{color:var(--roe-muted);margin:0 0 1.25rem;line-height:1.55;}
.roe-banner__phone{
	display:inline-block;font-family:"Archivo",sans-serif;font-weight:700;font-size:1.9rem;
	color:var(--roe-primary);text-decoration:none;margin-bottom:1.1rem;
}
.roe-banner__phone:hover{text-decoration:underline;}
.roe-banner__hours{color:var(--roe-muted);font-size:.88rem;margin:0 0 1.5rem;}
.roe-banner__cta{
	display:inline-block;background:var(--roe-primary);color:#fff !important;font-weight:600;
	padding:.85em 1.8em;border-radius:8px;text-decoration:none;
}
.roe-banner__cta:hover{background:#bd3b27;color:#fff !important;}
.roe-banner__close{
	position:absolute;top:.65rem;right:.85rem;border:0;background:transparent;
	font-size:1.6rem;line-height:1;color:#94a3b3;cursor:pointer;padding:.25rem;
}
.roe-banner__close:hover{color:var(--roe-ink);}
body.roe-banner-open{overflow:hidden;}

@media (prefers-reduced-motion: reduce){
	.roe-banner{transition:none;}
}
