/*
Theme Name: High Current Electric
Description: Custom theme for High Current Electric, based on the approved Design 1 mockup. Homepage, Services, About and Contact layouts are built in; the blog uses standard WordPress posts.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Integriserve
Text Domain: high-current-electric
License: GPL-2.0-or-later
*/

:root{--navy:#081e36;--navy2:#0d304f;--gold:#e2ae29;--cream:#f5f7f9;--ink:#102842}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#fff}
a{color:inherit}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
.container{width:min(1140px,92%);margin:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;top:8px;left:8px;z-index:100;width:auto;height:auto;clip:auto;background:var(--gold);color:#0b1c30;padding:10px 16px;border-radius:6px}

/* Header */
.header{background:var(--navy);color:#fff;position:sticky;top:0;z-index:10;box-shadow:0 2px 15px #0003}
.admin-bar .header{top:32px}
@media(max-width:782px){.admin-bar .header{top:46px}}
@media(max-width:600px){.admin-bar .header{top:0}}
.nav{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:82px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:900;line-height:1.05;letter-spacing:.05em}
.brand img{width:110px;height:65px;object-fit:contain}
.brand small{display:block;color:var(--gold);letter-spacing:.23em}
.navlinks ul{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0}
.navlinks a{text-decoration:none;font-weight:650;font-size:.95rem}
.navlinks a:hover,.navlinks .current-menu-item>a,.navlinks .current_page_item>a,.navlinks .current_page_parent>a{color:var(--gold)}
.menu{display:none}
#menuBtn{background:transparent;border:1px solid #91a6b7;color:#fff;border-radius:5px;padding:8px 12px;cursor:pointer}
/* The homepage shows the large logo in the hero, so the header logo is hidden there. */
body.home .header .brand{display:none}

/* Buttons */
.call,.btn{background:var(--gold);color:#0b1c30;border:0;border-radius:7px;padding:12px 20px;display:inline-block;text-decoration:none;font-weight:800;cursor:pointer}
.btn.outline{background:transparent;color:#fff;border:2px solid #fff}
.btn.dark{background:var(--navy);color:#fff}

/* Homepage hero */
.hero{background:linear-gradient(110deg,#071a30 0%,#0c304e 65%,#24516a 100%);color:#fff;text-align:center;padding:28px 0 52px}
.hero h1{font-size:clamp(1.2rem,3.15vw,2.55rem);line-height:1.25;width:100%;margin:8px 0 16px;white-space:nowrap;letter-spacing:-.025em}
.hero p{font-size:1.08rem;margin-left:auto;margin-right:auto}
.hero .actions{justify-content:center}
.home-hero-logo{display:block;width:min(430px,86vw);height:auto;max-height:305px;object-fit:contain;margin:0 auto 22px;filter:drop-shadow(0 5px 12px rgba(0,0,0,.28))}

/* Shared sections */
.eyebrow{color:var(--gold);font-size:.85rem;letter-spacing:.16em;font-weight:850;text-transform:uppercase}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.section{padding:60px 0}
.section h2{font-size:clamp(1.8rem,3vw,2.55rem);line-height:1.15;margin:7px 0 18px}
.hero h1,.pagehero h1,.section h2,.section h3{text-shadow:none}
.muted{color:#55697a}
.light{background:#f3f6f8}
.pill{display:inline-block;background:#e9f0f5;border-radius:30px;padding:3px 12px;font-size:.8rem;font-weight:700;text-decoration:none}
.note{background:#f1f5f8;border-left:4px solid var(--gold);padding:14px 18px;margin:18px 0}
.two{display:grid;grid-template-columns:1.4fr 1fr;gap:45px;align-items:start}

/* Interior page hero */
.pagehero{padding:58px 0;background:linear-gradient(110deg,#081e36 0%,#164262 100%);color:#fff}
.pagehero h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.15;margin:5px 0}
.pagehero .post-meta{color:#c9d6e2;margin:10px 0 0}

/* Homepage intro + featured post */
.intro-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr);gap:54px;align-items:center}
.intro-layout h2{max-width:680px}
.intro-layout p{max-width:690px}
.intro-aside{padding:28px 30px;border-radius:12px;background:#e9f0f5;border-top:5px solid var(--gold)}
.intro-aside h3{margin:14px 0 10px}
.intro-aside h3 a{text-decoration:none;color:inherit;font-weight:inherit}
.intro-aside a{font-weight:750;color:var(--navy2)}
.blog-preview-note{font-size:.85rem;color:#536b7c;margin:12px 0}

/* Service area */
.service-area-section{background:#f0f5f8;padding:44px 0 50px;border-top:1px solid #dce6ec;border-bottom:1px solid #dce6ec}
.service-area-content{text-align:center;max-width:1000px;margin:auto}
.service-area-content h2{margin:8px 0 18px}
.service-counties{font-size:clamp(1.25rem,2.4vw,1.65rem);font-weight:750;margin:0;color:#153756;line-height:1.5}
.service-cities{font-size:clamp(.95rem,1.6vw,1.08rem);color:#526477;line-height:1.9;margin:10px auto 0;max-width:1000px}
.service-cities span{color:#c69b45;padding:0 .22em}
.services-area-section{border-bottom:0}
.services-area-content{max-width:1050px}
.services-area-content .service-counties{color:#12334f;font-size:clamp(1.3rem,2.6vw,1.9rem);margin:0 0 12px}
.services-area-note{color:#596b78;font-size:.95rem;margin:14px 0 0}
.services-area-note a{color:#123f6b;text-decoration:underline}

/* About band + values */
.about{background:var(--navy);color:#fff}
.about p{max-width:780px}
.values{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.value{text-align:center;padding:18px}
.value span{font-size:2rem}
.value h3{margin:6px 0}

/* Service cards */
.cards{display:grid;grid-template-columns:repeat(6,1fr);gap:20px;margin-top:25px}
.card{grid-column:span 2;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 6px 22px #10284018;display:flex;flex-direction:column;border:1px solid #e8edf0}
.card.wide{grid-column:span 3}
.card img{width:100%;height:190px;object-fit:cover}
.card-content{padding:22px;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.card h3{margin:0 0 9px;font-size:1.22rem;line-height:1.25}
.card p{margin:0 0 18px;color:#44596d}
.card .btn{margin-top:auto}

/* About page */
.owner-portrait{margin:0;position:sticky;top:105px}
.owner-portrait img{display:block;width:100%;height:auto;max-height:670px;object-fit:cover;object-position:center 25%;border-radius:14px;box-shadow:0 12px 32px rgba(6,28,50,.15)}
.owner-portrait figcaption{padding-top:10px;text-align:center;color:#516579;font-size:.92rem}

/* Contact */
.form{display:grid;grid-template-columns:1fr 1fr;gap:17px;max-width:780px}
.field{display:flex;flex-direction:column;gap:5px;font-weight:700}
.field.full{grid-column:1/-1}
.field input,.field select,.field textarea{border:1px solid #b7c6d2;border-radius:7px;padding:12px;background:#fff;color:#152d43}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-message{padding:14px 18px;border-radius:8px;margin:0 0 20px;font-weight:650}
.form-message.success{background:#e7f5ec;border-left:4px solid #2f8a4c;color:#1d5a32}
.form-message.error{background:#fbeaea;border-left:4px solid #b33a3a;color:#7a2222}
.additional-service-area{margin-top:24px;padding:20px 22px;border:1px solid #d9e2eb;border-radius:12px;background:#f5f8fb;color:#253d53}
.additional-service-area h3{margin:0 0 10px;font-size:1.15rem;color:#173957}
.additional-service-area p{margin:0;line-height:1.65}

/* Blog list */
.blog-list{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.blog-card{border:1px solid #dbe4ea;border-radius:10px;background:#fff;overflow:hidden;display:flex;flex-direction:column}
.blog-card-image img{display:block;width:100%;height:190px;object-fit:cover}
.blog-card-body{padding:22px;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.blog-card h2,.blog-card h3{margin:8px 0;font-size:1.22rem;line-height:1.3}
.blog-card h2 a,.blog-card h3 a{text-decoration:none}
.blog-card h2 a:hover,.blog-card h3 a:hover{color:var(--navy2);text-decoration:underline}
.blog-card p{color:#44596d;margin:0 0 14px}
.blog-card .post-date{font-size:.85rem;color:#607386;margin:0 0 14px}
.blog-card .read-more{margin-top:auto;font-weight:750;color:var(--navy2)}
.pagination{margin-top:36px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.pagination .page-numbers{padding:8px 14px;border-radius:6px;border:1px solid #c8d5df;text-decoration:none;font-weight:700;background:#fff}
.pagination .page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy)}
.empty-state{text-align:center;padding:30px 0}

/* Single post + generic page content */
.entry{max-width:760px;margin:0 auto}
.entry-featured{margin:0 0 30px}
.entry-featured img{display:block;width:100%;border-radius:12px;box-shadow:0 8px 26px rgba(6,28,50,.12)}
.entry-content{font-size:1.06rem;line-height:1.75}
.entry-content h2{font-size:clamp(1.5rem,2.4vw,1.9rem);margin:1.6em 0 .5em;line-height:1.2}
.entry-content h3{font-size:1.3rem;margin:1.4em 0 .4em}
.entry-content a{color:var(--navy2);text-decoration:underline}
.entry-content blockquote{margin:1.5em 0;padding:6px 20px;border-left:4px solid var(--gold);background:#f5f8fb}
.entry-content img{border-radius:10px}
.entry-content figcaption{font-size:.9rem;color:#5a6d7e;text-align:center}
.entry-content .alignwide{width:min(1140px,92vw);max-width:none;margin-left:50%;transform:translateX(-50%)}
.entry-content .alignfull{width:100vw;max-width:none;margin-left:50%;transform:translateX(-50%)}
.entry-content .alignleft{float:left;margin:.3em 1.5em 1em 0}
.entry-content .alignright{float:right;margin:.3em 0 1em 1.5em}
.entry-content .aligncenter{margin-left:auto;margin-right:auto}
.entry-content::after{content:"";display:table;clear:both}
.entry-footer{margin-top:40px;padding-top:24px;border-top:1px solid #dbe4ea;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.entry-footer a{font-weight:750;color:var(--navy2)}
.post-tags{margin-top:24px;display:flex;gap:8px;flex-wrap:wrap}

/* CTA + footer */
.cta{background:linear-gradient(110deg,#081e36 0%,#164262 100%);color:#fff}
.cta h2{margin:4px 0}
.footer{background:#061627;color:#d9e4ef;padding:30px 0}
.footer a{color:#fff}
.footerinner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}

@media(max-width:850px){
  .navlinks ul{gap:12px}
  .brand span{font-size:.85rem}
  .brand img{width:80px}
  .navlinks a{font-size:.85rem}
  .call{padding:9px 11px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .card,.card.wide{grid-column:span 1}
  .values{grid-template-columns:repeat(2,1fr)}
  .blog-list{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .owner-portrait{position:static;max-width:520px;margin:0 auto}
  .owner-portrait img{max-height:none}
}
@media(max-width:700px){.intro-layout{grid-template-columns:1fr;gap:20px}}
@media(max-width:650px){
  .menu{display:block}
  .nav{flex-wrap:wrap;padding:8px 0}
  .navlinks{display:none;width:100%}
  .navlinks.open{display:block}
  .navlinks ul{flex-direction:column;align-items:stretch;padding:12px 0}
  .navlinks a{display:block;padding:7px}
  .header .call{display:none}
  .hero{min-height:430px}
  .hero h1{white-space:normal;font-size:1.5rem;letter-spacing:-.01em}
  .home-hero-logo{width:min(340px,82vw);max-height:240px;margin-bottom:15px}
  .cards,.blog-list,.two{grid-template-columns:1fr}
  .card,.card.wide{grid-column:span 1}
  .form{grid-template-columns:1fr}
  .values{grid-template-columns:1fr 1fr;gap:5px}
  .section{padding:40px 0}
  .service-cities span{padding:0 .05em}
  .service-area-section{padding:32px 0}
  .entry-content .alignleft,.entry-content .alignright{float:none;margin:1em 0}
}

/* About page bio keeps the larger section headings from the design. */
.about-bio{font-size:1rem;line-height:1.55}
.about-bio h2{font-size:clamp(1.8rem,3vw,2.55rem);line-height:1.15;margin:7px 0 18px}
.about-bio h2:not(:first-child){margin-top:1.4em}
