/*
Theme Name: GPRO Electric
Theme URI: https://www.gproelectric.com/
Author: GPRO Electric
Description: A bold, responsive WordPress theme for a trusted residential and commercial electrical contractor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: gpro-electric
*/

:root {
  --red: #159ed1;
  --red-dark: #0879a6;
  --safety: #ffc629;
  --safety-dark: #e5aa00;
  --ink: #102a43;
  --ink-soft: #183b56;
  --paper: #f4f8fb;
  --white: #fff;
  --muted: #5d7182;
  --line: #d8e3ea;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(16, 42, 67, .13);
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-150%); background: var(--white); color: var(--ink); }
.skip-link:focus { transform: none; }

.topbar { background: var(--safety); color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.topbar .container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar p { margin: 0; }
.topbar a:hover { text-decoration: underline; }
.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(16, 42, 67, .98); color: var(--white); box-shadow: 0 8px 30px rgba(16,42,67,.2); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-logo { flex: 0 0 auto; }
.site-logo img { width: 155px; max-height: 62px; object-fit: contain; }
.site-title { color: var(--white); font-size: 1.35rem; font-weight: 900; text-transform: uppercase; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav a { position: relative; padding-block: 30px; font-size: .83rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.main-nav a::after { content: ''; position: absolute; right: 0; bottom: 21px; left: 0; height: 2px; transform: scaleX(0); background: var(--red); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { transform: scaleX(1); }
.header-cta { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 4px; background: var(--safety); color: var(--ink); font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; transition: background .2s, transform .2s; }
.header-cta:hover { transform: translateY(-2px); background: var(--safety-dark); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 11px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--white); }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; isolation: isolate; min-height: 720px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--ink); }
.hero::before { content: ''; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(16,42,67,.98) 0%, rgba(16,42,67,.90) 48%, rgba(16,42,67,.38) 100%), var(--hero-image, linear-gradient(135deg, #102a43, #176b91)); background-size: cover; background-position: center; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .16; background-image: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,255,255,.15) 17px 18px); mask-image: linear-gradient(to right, transparent 35%, #000); }
.hero-content { max-width: 760px; padding: 110px 0 150px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 42px; height: 3px; background: currentColor; }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(3.1rem, 7.2vw, 6.8rem); line-height: .91; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 span { display: block; color: var(--red); }
.hero .lead { max-width: 630px; margin: 28px 0 34px; color: #dedfe2; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 25px; border: 2px solid var(--safety); border-radius: 4px; background: var(--safety); color: var(--ink); font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transition: .2s ease; }
.button:hover { border-color: var(--safety-dark); background: var(--safety-dark); transform: translateY(-2px); }
.button-outline { border-color: rgba(255,255,255,.5); background: transparent; }
.button-outline:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.button-dark { border-color: var(--ink); background: var(--ink); color: var(--white); }
.hero-trust { position: absolute; right: 0; bottom: 0; left: 0; background: rgba(16,42,67,.9); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.12); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { min-height: 92px; display: flex; align-items: center; gap: 15px; padding: 20px 30px; border-right: 1px solid rgba(255,255,255,.12); }
.trust-item:last-child { border-right: 0; }
.trust-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-weight: 900; }
.trust-item strong { display: block; font-size: .94rem; text-transform: uppercase; }
.trust-item small { color: #aeb0b5; }

.section { padding: 110px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-red { background: var(--red); color: var(--white); }
.section-heading { max-width: 740px; margin-bottom: 45px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading h2, .split-copy h2, .cta-band h2 { margin: 0; font-size: clamp(2.2rem, 4.8vw, 4.4rem); line-height: .98; letter-spacing: -.045em; text-transform: uppercase; }
.section-heading p { margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }
.section-dark .section-heading p { color: #b8bbc1; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 315px; padding: 35px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 rgba(0,0,0,0); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.service-number { color: var(--red); font-size: .8rem; font-weight: 900; letter-spacing: .13em; }
.service-card h3 { margin: 38px 0 14px; font-size: 1.5rem; line-height: 1.15; text-transform: uppercase; }
.service-card p { margin: 0; color: var(--muted); }
.text-link { position: absolute; bottom: 30px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.text-link::after { content: '  →'; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 70px; }
.split-visual { position: relative; min-height: 540px; border-radius: var(--radius); background: linear-gradient(145deg, #176b91, #102a43); overflow: hidden; box-shadow: var(--shadow); }
.split-visual::before { content: ''; position: absolute; width: 460px; height: 90px; right: -90px; top: 80px; transform: rotate(-38deg); background: var(--red); }
.split-visual::after { content: 'GPRO'; position: absolute; right: -12px; bottom: -55px; color: rgba(255,255,255,.06); font-size: 9rem; font-weight: 900; letter-spacing: -.08em; }
.experience-box { position: absolute; left: 0; bottom: 0; width: 220px; padding: 30px; background: var(--red); color: var(--white); }
.experience-box strong { display: block; font-size: 3.2rem; line-height: 1; }
.experience-box span { display: block; margin-top: 8px; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.visual-bolt { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -55%); color: var(--safety); font-size: 9rem; line-height: 1; text-shadow: 12px 12px 0 rgba(21,158,209,.65); }
.split-copy { align-self: center; }
.split-copy p { color: #bbbfc5; font-size: 1.05rem; }
.check-list { margin: 30px 0 35px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.check-list li { position: relative; padding-left: 28px; font-weight: 700; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 900; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process-step { padding: 34px 28px; background: var(--paper); }
.process-step span { display: block; margin-bottom: 45px; color: var(--red); font-size: 2.4rem; font-weight: 900; }
.process-step h3 { margin: 0 0 10px; font-size: 1.1rem; text-transform: uppercase; }
.process-step p { margin: 0; color: var(--muted); font-size: .93rem; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.cta-band h2 { max-width: 700px; }
.cta-band p { margin: 16px 0 0; font-weight: 700; }

.content-area { min-height: 55vh; padding: 85px 0; }
.page-header { padding: 90px 0 75px; background: var(--ink); color: var(--white); }
.page-header h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -.05em; text-transform: uppercase; }
.entry-content { max-width: 820px; font-size: 1.05rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--red); text-decoration: underline; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.post-card h2 { margin: 8px 0 12px; line-height: 1.2; }
.post-card .meta { color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.site-footer { padding: 75px 0 25px; background: #0b2339; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 55px; }
.footer-brand img { width: 175px; margin-bottom: 20px; }
.footer-brand p, .footer-col li, .footer-col p { color: #9da0a6; }
.footer-col h3 { margin: 0 0 20px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 9px 0; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { margin-top: 55px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #24262a; color: #777b82; font-size: .8rem; }

@media (max-width: 920px) {
  .topbar .container { justify-content: center; }
  .topbar p:first-child { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { position: fixed; top: 122px; right: 0; bottom: 0; left: 0; padding: 35px 20px; transform: translateX(100%); background: var(--ink); transition: transform .25s; }
  .nav-open .main-nav { transform: none; }
  .main-nav ul { display: block; }
  .main-nav a { display: block; padding: 18px 0; border-bottom: 1px solid #294a63; font-size: 1.1rem; }
  .main-nav a::after { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-visual { min-height: 440px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .section { padding: 78px 0; }
  .hero { min-height: 700px; }
  .hero-content { padding: 80px 0 190px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { display: none; min-height: 76px; padding: 14px 0; border: 0; }
  .trust-item:first-child { display: flex; }
  .services-grid, .process-grid, .post-list { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .check-list { grid-template-columns: 1fr; }
  .cta-band .container { display: block; }
  .cta-band .actions { margin-top: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
