/*
Theme Name: Wired Right
Template: twentytwentyfive
Description: Wired Right Ohio – smart home & small-business tech services. Child theme of Twenty Twenty-Five.
Version: 1.3.0
Text Domain: wired-right
*/

/* ---------- Header ---------- */
.wr-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--line); }
/* The frosted glass lives on a pseudo-element: backdrop-filter on .wr-header itself would make it the containing
   block for the mobile menu overlay (position: fixed), trapping the open menu inside the header strip. */
.wr-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.wr-header .wp-block-navigation__responsive-container.is-menu-open { background: #fff; color: var(--wp--preset--color--contrast); padding: 20px 24px; }
.wr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; }
.wr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.35rem; }
.wr-header .wp-block-navigation__responsive-container-open, .wr-header .wp-block-navigation__responsive-container-close { padding: 8px; margin: -8px; }
.wr-header .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
body:has(.wp-block-navigation__responsive-container.is-menu-open) .wr-mobilebar { display: none; }
.wr-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--wp--preset--color--contrast); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.wr-brand svg { width: 38px; height: 38px; flex: none; }
.wr-brand small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-dark); margin-top: -2px; }
.wr-header .wp-block-navigation a { font-weight: 600; }
@media (max-width: 781px) { .wr-header .wr-head-cta { display: none; } }

/* ---------- Hero ---------- */
.wr-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(224,122,47,.28), transparent 60%), linear-gradient(160deg, #0c1a2b 0%, #16304d 100%); color: #fff; }
.wr-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
	background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
	background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.wr-hero > * { position: relative; z-index: 1; }
.wr-hero h1, .wr-hero h2, .wr-hero p { color: #fff; }
.wr-hero .wr-kicker { color: #ffb37a; }
.wr-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.wr-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--accent-dark); }
.wr-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .92rem; opacity: .9; }
.wr-trust span::before { content: "✓"; color: #ffb37a; font-weight: 800; margin-right: .4rem; }

/* ---------- Cards ---------- */
.wr-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: clamp(20px, 3vw, 28px); box-shadow: 0 1px 2px rgba(12,26,43,.04), 0 8px 24px rgba(12,26,43,.06); height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.wr-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(12,26,43,.06), 0 14px 32px rgba(12,26,43,.10); }
.wr-card h3 { margin-top: .4rem; }
.wr-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff3ea; color: var(--wp--preset--color--accent-dark); font-size: 1.4rem; }
.wr-from { font-weight: 800; color: var(--wp--preset--color--accent-dark); }

/* ---------- Price tables ---------- */
.wr-prices { width: 100%; border-collapse: collapse; }
.wr-prices table { border-collapse: collapse; width: 100%; }
.wr-prices td { padding: .7rem .2rem; border-bottom: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.wr-prices td:last-child { text-align: right; font-weight: 800; white-space: nowrap; color: var(--wp--preset--color--contrast); padding-left: 1rem; }
.wr-prices tr:last-child td { border-bottom: 0; }
.wr-prices figure, .wp-block-table.wr-prices { margin: 0; }
.wp-block-table.wr-prices td, .wp-block-table.wr-prices th { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); }

/* ---------- Steps ---------- */
.wr-step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--contrast); color: #fff; font-weight: 800; }

/* ---------- Forms ---------- */
.wr-form { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 8px 24px rgba(12,26,43,.06); }
.wr-form label { display: block; font-weight: 700; font-size: .95rem; }
.wr-form input, .wr-form select, .wr-form textarea, .wr-zip-check input { display: block; width: 100%; box-sizing: border-box; margin-top: .35rem; padding: .75rem .85rem; border: 1px solid #c4d0dd; border-radius: 10px; font: inherit; font-weight: 500; background: #fbfcfe; color: var(--wp--preset--color--contrast); }
.wr-form input:focus, .wr-form select:focus, .wr-form textarea:focus, .wr-zip-check input:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 1px; border-color: transparent; }
.wr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.wr-hp { position: absolute !important; left: -9999px !important; }
.wr-note { font-size: .88rem; color: var(--wp--preset--color--muted); }
.wr-error { background: #fdecea; border: 1px solid #f5c2bc; color: #8a1f12; padding: .8rem 1rem; border-radius: 10px; }
.wr-sent { background: #eaf7ef; border: 1px solid #b9e3c8; padding: 1.2rem 1.4rem; border-radius: 16px; }
.wr-pill { display: inline-block; background: var(--wp--preset--color--contrast); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 99px; margin: 0 0 .5rem; }
.wr-zip-check label { font-weight: 700; }
.wr-zip-row { display: flex; gap: .5rem; align-items: end; max-width: 380px; }
.wr-zip-row input { margin-top: .35rem; }
.wr-zip-row button { white-space: nowrap; }
.wr-zip-result { font-weight: 700; padding: .7rem 1rem; border-radius: 10px; background: #eaf7ef; display: inline-block; }
.wr-zip-result.is-out { background: #fff3ea; }

/* ---------- FAQ (tap to expand) ---------- */
.wp-block-details { border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 0; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.wp-block-details[open] { border-color: #f6cfae; box-shadow: 0 8px 24px rgba(12,26,43,.06); }
.wp-block-details summary { font-weight: 800; cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--accent-dark); font-size: 1.2rem; transition: transform .2s; }
.wp-block-details[open] summary::after { content: "–"; background: #fff3ea; }
.wp-block-details > :not(summary) { padding: 0 1.2rem; margin-top: 0; }
.wp-block-details > :last-child { padding-bottom: 1.1rem; }
.wp-block-details + .wp-block-details { margin-top: .75rem; }
.wr-faq-h { margin-top: 2.2rem !important; }

/* ---------- Footer ---------- */
.wr-footer { background: var(--wp--preset--color--contrast); color: #c9d6e4; }
.wr-footer a { color: #fff; }
.wr-footer h2, .wr-footer h3, .wr-footer .wr-brand { color: #fff; }
.wr-footer .wr-brand small { color: #ffb37a; }

/* ---------- Mobile bottom action bar ---------- */
.wr-mobilebar { display: none; }
@media (max-width: 781px) {
	.wr-mobilebar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(12,26,43,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
	.wr-mobilebar.is-2 { grid-template-columns: 1fr 1fr; }
	.wr-mobilebar a { display: block; text-align: center; padding: .8rem .4rem; border-radius: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
	.wr-mobilebar a.q { background: var(--wp--preset--color--accent); color: #1a0e05; }
	.wr-mobilebar a.c, .wr-mobilebar a.t { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
	body { padding-bottom: 76px; }
}

/* ---------- Header phone ---------- */
.wr-headcall { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; text-decoration: none; color: var(--wp--preset--color--contrast); white-space: nowrap; }
.wr-headcall svg { width: 18px; height: 18px; color: var(--wp--preset--color--accent-dark); }
@media (max-width: 1100px) and (min-width: 782px) { .wr-headcall span { display: none; } }
@media (max-width: 781px) {
	.wr-headcall { width: 42px; height: 42px; justify-content: center; border-radius: 50%; background: var(--wp--preset--color--accent); color: #1a0e05; }
	.wr-headcall svg { color: #1a0e05; width: 20px; height: 20px; }
	.wr-headcall span { display: none; }
}
.wr-tel { font-weight: 800; white-space: nowrap; }

/* ---------- Live estimate ---------- */
.wr-estimate { margin: .4rem 0 1.1rem; padding: .9rem 1.1rem; border-radius: 12px; background: #fff3ea; border: 1px solid #f6cfae; }
.wr-estimate-k { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent-dark); }
.wr-estimate-v { display: block; font-size: 1.2rem; margin: .1rem 0 .25rem; color: var(--wp--preset--color--contrast); }
.wr-estimate small { color: var(--wp--preset--color--muted); font-size: .82rem; }
.wr-opt { font-weight: 500; color: var(--wp--preset--color--muted); }

/* ---------- What happens next ---------- */
.wr-sent h2 { margin: .2rem 0 .4rem; font-size: 1.6rem; }
.wr-next { list-style: none; counter-reset: s; padding: 0; margin: 1.2rem 0; display: grid; gap: .9rem; }
.wr-next li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 0 .8rem; align-items: start; }
.wr-next li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--contrast); color: #fff; font-weight: 800; }
.wr-next span { color: var(--wp--preset--color--muted); font-size: .95rem; }

/* ---------- Town pages ---------- */
.wr-towns { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.wr-towns a { display: block; padding: .8rem 1rem; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--wp--preset--color--contrast); transition: border-color .15s, transform .15s; }
.wr-towns a:hover { border-color: var(--wp--preset--color--accent); transform: translateY(-1px); }
.wr-towns strong { display: block; }
.wr-towns span { font-size: .85rem; color: var(--wp--preset--color--muted); }
.wr-fact { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.wr-fact li { background: var(--wp--preset--color--surface); border-radius: 99px; padding: .35rem .85rem; font-weight: 700; font-size: .92rem; }

/* ---------- Install card ---------- */
.wr-install { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 70; background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 18px 50px rgba(12,26,43,.28); border: 1px solid var(--wp--preset--color--line); transform: translateY(16px); opacity: 0; transition: transform .25s ease, opacity .25s ease; max-width: 460px; margin: 0 auto; }
.wr-install.is-on { transform: none; opacity: 1; }
.wr-install-row { display: flex; gap: 12px; align-items: center; padding-right: 24px; }
.wr-install-row img { border-radius: 12px; flex: none; }
.wr-install-row p { margin: .15rem 0 0; font-size: .92rem; color: var(--wp--preset--color--muted); }
.wr-install-go { width: 100%; margin-top: 12px; border: 0; cursor: pointer; }
.wr-install-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 26px; line-height: 1; padding: 6px 10px; cursor: pointer; color: var(--wp--preset--color--muted); }
@media (min-width: 782px) { .wr-install { bottom: 20px; left: auto; right: 20px; } }

@media (prefers-reduced-motion: reduce) { .wr-card, .wr-card:hover { transition: none; transform: none; } }
.wr-hero-call { font-size: 1.05rem; } .wr-hero .wr-tel { color: #ffb37a; }

/* ---------- Breadcrumbs, service pages, footer areas ---------- */
.wr-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .88rem; color: var(--wp--preset--color--muted); margin-bottom: .6rem; }
.wr-crumbs a { color: var(--wp--preset--color--accent-dark); text-decoration: none; font-weight: 600; }
.wr-crumbs a:hover { text-decoration: underline; }
.wr-req { font-weight: 600; font-size: .85rem; margin-left: .4rem; }
.wr-svc-links { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.wr-svc-links a { display: inline-block; padding: .45rem .9rem; border-radius: 99px; background: var(--wp--preset--color--surface); text-decoration: none; font-weight: 700; color: var(--wp--preset--color--contrast); }
.wr-svc-links a:hover { background: #fff3ea; }
.wr-areas { line-height: 1.9; }
.wr-footer .wr-areas a { color: #c9d6e4; text-decoration: none; }
.wr-footer .wr-areas a:hover { color: #fff; text-decoration: underline; }

/* ---------- Guides ---------- */
.wr-byline { gap: .4rem 1rem; color: var(--wp--preset--color--muted); font-size: .92rem; margin-top: .3rem !important; }
.wr-byline p, .wr-byline .wp-block-post-date { margin: 0; }
.wr-guide-cta { margin-top: 48px; background: #fff7f0; border-color: #f6cfae; }
.wr-guide-cta h2 { margin: .2rem 0 .5rem; font-size: 1.5rem; }
.wr-guide-list { list-style: none; padding: 0; }
.wr-guide-list .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.wr-guide-list .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-dark); }
.wr-callout { background: var(--wp--preset--color--surface); border-left: 4px solid var(--wp--preset--color--accent); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; }
