/*
Theme Name: Ayers Services
Theme URI: https://ayersservices.example
Author: Ayers Services
Description: Custom theme for Ayers Services — electrical contractors. Residential, commercial, EV charging & fleet depots, solar, and new construction/remodels.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: Proprietary — for use on the Ayers Services website only.
Text Domain: ayers-services
*/

:root{
  --navy:#16232E;
  --navy-deep:#0F1922;
  --navy-panel:#1C2C39;
  --steel:#4A7A9D;
  --steel-bright:#6C9CBD;
  --slate:#8B8A85;
  --amber:#C99A4E;
  --paper:#F7F6F3;
  --line:#2A3D4C;
  --ink:#16232E;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--navy);
  font-family:'Space Grotesk',sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
h1,h2,h3,h4{font-weight:700; line-height:1.1;}
img{max-width:100%; display:block;}
.wrap{max-width:1200px; margin:0 auto; padding:0 32px;}
:focus-visible{outline:2px solid var(--steel-bright); outline-offset:3px;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
}
.eyebrow{
  font-size:12px; font-weight:600; letter-spacing:2.5px; text-transform:uppercase;
  color:var(--steel); margin-bottom:14px; display:block;
}
.icon{width:30px; height:30px; stroke:var(--steel); fill:none; stroke-width:1.6;}

/* ---------- nav ---------- */
header.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:24px 0; transition:background .3s, padding .3s, border-color .3s;
  border-bottom:1px solid transparent;
}
header.site-header.scrolled{
  background:rgba(15,25,34,0.96); backdrop-filter:blur(8px);
  padding:14px 0; border-bottom:1px solid var(--line);
}
nav.main-nav{display:flex; align-items:center; justify-content:space-between; max-width:1200px; margin:0 auto; padding:0 32px;}
.brand{display:flex; align-items:center; gap:12px; font-weight:700; font-size:20px; color:var(--paper);}
.brand-mark{display:flex; align-items:flex-end; gap:2px; height:24px;}
.brand-mark span{width:6px; background:var(--steel);}
.brand-mark span:nth-child(1){height:12px;}
.brand-mark span:nth-child(2){height:18px;}
.brand-mark span:nth-child(3){height:24px;}
.navlinks{display:flex; gap:34px; font-size:14px; font-weight:500;}
.navlinks li{position:relative;}
.navlinks a{color:var(--paper); opacity:.82; position:relative; padding-bottom:4px; display:inline-block;}
.navlinks a:hover, .navlinks .current-menu-item > a{opacity:1;}
.navlinks a::after{content:''; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--steel-bright); transition:width .25s;}
.navlinks a:hover::after, .navlinks .current-menu-item > a::after{width:100%;}
@media(max-width:860px){.navlinks{display:none;}}
.phone{font-size:13px; color:var(--steel-bright); display:none;}
@media(min-width:900px){.phone{display:block;}}
.nav-cta{display:flex; align-items:center; gap:20px;}

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 24px; font-weight:600; font-size:14px;
  border-radius:2px; border:1px solid var(--steel); background:var(--steel); color:var(--navy-deep);
  transition:background .25s, color .25s, border-color .25s; white-space:nowrap;
}
.btn:hover{background:transparent; color:var(--steel-bright); border-color:var(--steel-bright);}
.btn.outline{background:transparent; color:var(--paper); border-color:rgba(247,246,243,0.4);}
.btn.outline:hover{border-color:var(--steel-bright); color:var(--steel-bright);}
.btn.dark{background:var(--navy); border-color:var(--navy); color:var(--paper);}
.btn.dark:hover{background:transparent; color:var(--navy);}

/* ---------- breadcrumb ---------- */
.crumb{padding:150px 0 0; font-size:13px; color:var(--slate); max-width:1200px; margin:0 auto; padding-left:32px; padding-right:32px;}
.crumb a{color:var(--steel);}
.crumb a:hover{text-decoration:underline;}

/* ---------- hero (home) ---------- */
.hero{position:relative; padding:200px 0 110px; background:var(--navy); color:var(--paper); overflow:hidden;}
.hero::before{
  content:''; position:absolute; inset:0;
  background-image:linear-gradient(rgba(74,122,157,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(74,122,157,0.14) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}
.hero-inner{position:relative; z-index:1; max-width:720px;}
.hero h1{font-size:clamp(38px,6vw,68px); margin-bottom:22px;}
.hero h1 span{color:var(--steel-bright);}
.hero p.sub{font-size:17px; color:#B9C4CD; max-width:560px; margin-bottom:38px;}
.hero-ctas{display:flex; gap:16px; flex-wrap:wrap; margin-bottom:56px;}
.hero-stats{display:grid; grid-template-columns:repeat(3,minmax(140px,1fr)); gap:0; border-top:1px solid var(--line); padding-top:26px; max-width:680px;}
.hero-stats > div{padding-right:24px; border-right:1px solid var(--line);}
.hero-stats > div:last-child{border-right:none;}
.stat-num{font-size:30px; font-weight:700; color:var(--paper);}
.stat-label{font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--slate); margin-top:6px;}

/* ---------- hero (inner pages) ---------- */
.page-hero{position:relative; padding:50px 0 100px; background:var(--paper); overflow:hidden;}
.page-hero-inner{position:relative; z-index:1; max-width:760px; margin:0 auto; padding:0 32px;}
.page-hero h1{font-size:clamp(34px,5.4vw,58px); margin-bottom:20px;}
.page-hero h1 span{color:var(--steel);}
.page-hero p.sub{font-size:16.5px; color:#5A5952; max-width:600px; margin-bottom:34px;}

/* ---------- section shell ---------- */
section{padding:100px 0;}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-bottom:52px; flex-wrap:wrap;}
.section-head h2{font-size:clamp(28px,3.6vw,44px); max-width:600px;}
.section-head p{max-width:320px; color:var(--slate); font-size:15px;}

/* ---------- services ---------- */
.service-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1px; background:#E4E0D6; border:1px solid #E4E0D6;}
.service-card{background:var(--paper); padding:36px 26px;}
.service-card .icon{margin-bottom:20px;}
.service-card h3{font-size:19px; margin-bottom:10px;}
.service-card p{color:#5A5952; font-size:13.5px; line-height:1.65;}

/* ---------- spotlight / tiers (dark panels) ---------- */
.spotlight, .tiers, .credentials{background:var(--navy); color:var(--paper);}
.credentials{background:var(--navy-panel);}
.spotlight .wrap{display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center;}
@media(max-width:900px){.spotlight .wrap{grid-template-columns:1fr;}}
.spotlight h2{font-size:clamp(28px,3.6vw,42px); margin-bottom:20px;}
.spotlight p.lead{color:#B9C4CD; font-size:16px; margin-bottom:28px; max-width:480px;}
.cred-row{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:32px;}
.cred{border:1px solid var(--line); padding:10px 16px; font-size:12px; letter-spacing:0.5px; color:var(--steel-bright); border-radius:2px;}
.check-list{display:flex; flex-direction:column; gap:16px;}
.check-list li{display:flex; gap:14px; align-items:flex-start; font-size:14.5px; color:#D7DEE3;}
.check-list .tick{width:18px; height:18px; border:1px solid var(--steel); border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; margin-top:2px;}
.check-list .tick::after{content:''; width:6px; height:6px; background:var(--steel-bright); border-radius:50%;}
.spotlight-panel{background:var(--navy-panel); border:1px solid var(--line); padding:36px; border-radius:4px;}
.spotlight-panel h3{font-size:16px; margin-bottom:18px; color:var(--paper);}
.tier-row{display:flex; justify-content:space-between; padding:16px 0; border-top:1px solid var(--line); font-size:13.5px;}
.tier-row:first-of-type{border-top:none;}
.tier-row span:first-child{color:#D7DEE3;}
.tier-row span:last-child{color:var(--steel-bright); font-weight:600;}

.tier-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line);}
.tier-card{background:var(--navy); padding:34px 28px;}
.tier-card .level{font-size:12px; letter-spacing:1.5px; text-transform:uppercase; color:var(--steel-bright); margin-bottom:10px; display:block;}
.tier-card h3{font-size:22px; margin-bottom:10px;}
.tier-card .spec{font-size:13px; color:var(--slate); margin-bottom:16px;}
.tier-card p{color:#B9C4CD; font-size:13.5px; line-height:1.65;}

/* ---------- solar ---------- */
.solar .wrap{display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center;}
@media(max-width:900px){.solar .wrap{grid-template-columns:1fr; }}
.solar-visual{aspect-ratio:4/3; border-radius:4px; background:var(--navy); position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center;}
.solar-visual svg{width:60%; height:60%;}
.solar-visual::before{
  content:''; position:absolute; inset:0;
  background-image:linear-gradient(rgba(201,154,78,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(201,154,78,0.12) 1px, transparent 1px);
  background-size:34px 34px;
}
.solar-copy .eyebrow{color:var(--amber);}
.solar-copy h2{font-size:clamp(26px,3.4vw,38px); margin-bottom:18px;}
.solar-copy p{color:#5A5952; font-size:15.5px; margin-bottom:16px; max-width:460px;}

/* ---------- process / depot steps ---------- */
.process-list, .depot-steps{display:flex; flex-direction:column;}
.process-row{display:grid; grid-template-columns:90px 1fr; gap:30px; padding:32px 0; border-top:1px solid #E4E0D6; align-items:baseline;}
.process-row:last-child{border-bottom:1px solid #E4E0D6;}
.process-row .step-num{font-size:13px; font-weight:700; color:var(--steel);}
.process-row h3{font-size:20px; margin-bottom:8px;}
.process-row p{color:#5A5952; font-size:14.5px; max-width:600px;}
@media(max-width:640px){.process-row{grid-template-columns:1fr;}}

.depot .wrap{display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:flex-start;}
@media(max-width:900px){.depot .wrap{grid-template-columns:1fr;}}
.depot-copy h2{font-size:clamp(28px,3.6vw,40px); margin-bottom:18px;}
.depot-copy p{color:#5A5952; font-size:15.5px; margin-bottom:16px; max-width:480px;}
.depot-step{display:grid; grid-template-columns:36px 1fr; gap:18px; padding:22px 0; border-top:1px solid #E4E0D6;}
.depot-step:first-child{border-top:none;}
.depot-step .num{width:36px; height:36px; border:1px solid var(--steel); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:var(--steel);}
.depot-step h4{font-size:16px; margin-bottom:6px;}
.depot-step p{color:#5A5952; font-size:13.5px;}

/* ---------- credentials grid ---------- */
.cred-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:32px;}
.cred-item{border-left:2px solid var(--steel); padding-left:20px;}
.cred-item h3{font-size:17px; margin-bottom:8px;}
.cred-item p{color:#B9C4CD; font-size:13.5px;}

/* ---------- faq ---------- */
.faq-list{display:flex; flex-direction:column; max-width:820px;}
.faq-item{border-top:1px solid #E4E0D6; padding:26px 0;}
.faq-item:last-child{border-bottom:1px solid #E4E0D6;}
.faq-item h3{font-size:16.5px; margin-bottom:10px;}
.faq-item p{color:#5A5952; font-size:14.5px; max-width:680px;}

/* ---------- area ---------- */
.area{background:var(--navy-panel); color:var(--paper);}
.area .wrap{display:flex; justify-content:space-between; align-items:center; gap:40px; flex-wrap:wrap;}
.area h2{font-size:clamp(24px,3vw,34px); max-width:520px;}
.area p{color:#B9C4CD; font-size:14.5px; max-width:380px;}

/* ---------- cta band ---------- */
.cta-band{background:var(--steel); color:var(--navy-deep); padding:90px 0; text-align:center;}
.cta-band h2{font-size:clamp(28px,4.6vw,50px); max-width:760px; margin:0 auto 30px;}
.cta-band .btns{display:flex; gap:16px; justify-content:center; flex-wrap:wrap;}
.cta-band .btn{background:var(--navy-deep); border-color:var(--navy-deep); color:var(--paper);}
.cta-band .btn:hover{background:transparent; color:var(--navy-deep);}
.cta-band .btn.outline{border-color:var(--navy-deep); color:var(--navy-deep);}
.cta-band .btn.outline:hover{background:var(--navy-deep); color:var(--paper);}

/* ---------- footer ---------- */
footer.site-footer{background:var(--navy-deep); color:var(--paper); padding:70px 0 30px;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:50px; border-bottom:1px solid var(--line);}
@media(max-width:800px){.foot-grid{grid-template-columns:1fr 1fr;}}
.foot-brand .brand{margin-bottom:18px;}
.foot-brand p{color:var(--slate); font-size:14px; max-width:280px;}
.foot-col h4{font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:var(--steel-bright); margin-bottom:18px; font-weight:600;}
.foot-col ul{display:flex; flex-direction:column; gap:11px;}
.foot-col a,.foot-col p{color:var(--slate); font-size:14px;}
.foot-col a:hover{color:var(--paper);}
.foot-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:28px; flex-wrap:wrap; gap:16px; font-size:12px; color:#4C5762;}

/* ---------- generic page content (page.php fallback) ---------- */
.page-content{padding:180px 0 100px;}
.page-content .entry-content{max-width:760px; font-size:16px; color:#3A3934;}
.page-content .entry-content h2{margin:32px 0 14px;}
.page-content .entry-content p{margin-bottom:16px;}
