/*
Theme Name: Family Electrical Custom
Theme URI: https://familyelectrical.net/
Author: Family Electrical
Description: Custom lightweight WordPress theme for Family Electrical, based on the approved homepage redesign.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: family-electrical
*/

:root{
  --ink:#101828;
  --ink2:#344054;
  --muted:#667085;
  --paper:#ffffff;
  --soft:#f7f8fa;
  --line:#e4e7ec;
  --yellow:#f5b700;
  --yellow2:#ffd34d;
  --dark:#111827;
  --dark2:#1f2937;
  --success:#18794e;
  --radius:18px;
  --shadow:0 14px 38px rgba(16,24,40,.10);
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);line-height:1.55}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
img{max-width:100%;height:auto}
.fe-wrap{width:min(var(--max),calc(100% - 36px));margin-inline:auto}
.fe-topbar{background:var(--dark);color:#fff;font-size:14px}
.fe-topbar .fe-wrap{min-height:42px;display:flex;gap:20px;align-items:center;justify-content:space-between}
.fe-topbar-left,.fe-topbar-right{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.fe-dot{width:7px;height:7px;border-radius:50%;background:var(--yellow);display:inline-block;margin-right:7px}
.fe-toplink{color:#fff;font-weight:700}
.fe-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(228,231,236,.9)}
.admin-bar .fe-header{top:32px}
.fe-nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.fe-brand{display:flex;align-items:center;gap:11px;font-weight:900;letter-spacing:-.03em;font-size:22px}
.fe-brandmark{width:42px;height:42px;border-radius:12px;background:var(--yellow);display:grid;place-items:center;color:var(--dark);flex:0 0 auto}
.fe-brandmark svg{width:24px;height:24px}
.fe-brandmark img{width:100%;height:100%;object-fit:contain;border-radius:10px;display:block}
.fe-navlinks{display:flex;gap:24px;align-items:center;font-size:15px;font-weight:700;color:var(--ink2)}
.fe-navlinks a:hover{color:var(--ink)}
.fe-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:12px;padding:13px 18px;font-weight:850;cursor:pointer;transition:.18s ease;white-space:nowrap}
.fe-btn:hover{transform:translateY(-1px)}
.fe-btn-primary{background:var(--yellow);color:var(--dark);box-shadow:0 8px 18px rgba(245,183,0,.24)}
.fe-btn-dark{background:var(--dark);color:#fff}
.fe-btn-outline{background:#fff;color:var(--dark);border:1px solid var(--line)}
.fe-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#f8fafc 0%,#fff 52%,#fff8dd 100%);border-bottom:1px solid var(--line)}
.fe-hero:after{content:"";position:absolute;right:-130px;top:-180px;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle at center,rgba(245,183,0,.24),rgba(245,183,0,0) 67%);pointer-events:none}
.fe-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.12fr .88fr;gap:54px;align-items:center;padding:78px 0 72px}
.fe-eyebrow{display:inline-flex;align-items:center;gap:9px;background:#fff8dd;border:1px solid #f6dc7e;border-radius:999px;padding:7px 11px;font-size:13px;font-weight:850;color:#694f00;margin-bottom:18px}
.fe-hero h1{font-size:clamp(42px,6vw,68px);line-height:1.02;letter-spacing:-.055em;margin:0 0 20px;max-width:790px}
.fe-lead{font-size:20px;line-height:1.6;color:var(--ink2);max-width:690px;margin:0 0 25px}
.fe-hero-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 22px;margin:0 0 28px;padding:0;list-style:none;color:var(--ink2);font-weight:700}
.fe-hero-checks li:before{content:"✓";display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#eaf7f0;color:var(--success);margin-right:9px;font-size:12px;font-weight:900}
.fe-actions{display:flex;gap:10px;flex-wrap:wrap}
.fe-micro{margin-top:16px;color:var(--muted);font-size:14px;font-weight:650}
.fe-hero-card{background:var(--dark);color:#fff;border-radius:24px;padding:28px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.fe-hero-card:before{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:rgba(245,183,0,.16);right:-100px;top:-115px}
.fe-hero-card h2{font-size:27px;line-height:1.15;letter-spacing:-.03em;margin:0 0 10px}
.fe-hero-card p{color:#d0d5dd;margin:0 0 22px}
.fe-quick-list{display:grid;gap:10px;margin-bottom:22px}
.fe-quick-item{display:flex;align-items:flex-start;gap:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);padding:13px 14px;border-radius:13px}
.fe-quick-icon{width:35px;height:35px;border-radius:10px;background:var(--yellow);color:var(--dark);display:grid;place-items:center;flex:0 0 auto;font-weight:900}
.fe-quick-item strong{display:block;font-size:15px}
.fe-quick-item span{display:block;color:#d0d5dd;font-size:13px;margin-top:2px}
.fe-hero-card .fe-btn{width:100%}
.fe-trust{padding:24px 0;border-bottom:1px solid var(--line);background:#fff}
.fe-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.fe-trust-item{padding:16px 18px;border-right:1px solid var(--line)}
.fe-trust-item:last-child{border-right:0}
.fe-trust-item strong{display:block;font-size:16px}
.fe-trust-item span{font-size:13px;color:var(--muted)}
.fe-section{padding:78px 0}
.fe-section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:34px}
.fe-section-head h2{font-size:clamp(32px,4vw,46px);line-height:1.05;letter-spacing:-.045em;margin:0}
.fe-section-head p{margin:0;color:var(--muted);max-width:600px;font-size:17px}
.fe-services{background:var(--soft)}
.fe-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.fe-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;transition:.2s ease;min-height:250px;display:flex;flex-direction:column}
.fe-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.fe-iconbox{width:46px;height:46px;border-radius:13px;background:#fff6cf;border:1px solid #f4da79;display:grid;place-items:center;margin-bottom:22px;color:#7a5a00}
.fe-iconbox svg{width:24px;height:24px}
.fe-card h3{font-size:21px;line-height:1.2;letter-spacing:-.025em;margin:0 0 9px}
.fe-card p{color:var(--muted);margin:0 0 20px}
.fe-card a{font-weight:850;margin-top:auto;color:#5d4700}
.fe-process-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:22px;counter-reset:step}
.fe-step{border-top:3px solid var(--yellow);padding:22px 18px 0 0;counter-increment:step}
.fe-step:before{content:"0" counter(step);font-size:13px;font-weight:900;color:#8a6700;letter-spacing:.08em}
.fe-step h3{font-size:21px;margin:7px 0 8px}
.fe-step p{margin:0;color:var(--muted)}
.fe-area{background:var(--dark);color:#fff}
.fe-area .fe-section-head p{color:#d0d5dd}
.fe-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.fe-chip{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);border-radius:999px;padding:9px 13px;color:#f2f4f7;font-weight:700;font-size:14px}
.fe-project-note{display:grid;grid-template-columns:1.05fr .95fr;gap:25px;align-items:stretch}
.fe-photo-grid{display:grid;grid-template-columns:1.2fr .8fr;grid-template-rows:190px 190px;gap:12px}
.fe-photo-slot{border-radius:18px;overflow:hidden;position:relative;background:linear-gradient(145deg,#eceff3,#dfe3e9);border:1px solid var(--line)}
.fe-photo-slot:first-child{grid-row:1/3}
.fe-photo-slot:after{content:"Add real project photo";position:absolute;inset:auto 12px 12px 12px;background:rgba(17,24,39,.78);color:#fff;padding:8px 10px;border-radius:9px;font-size:12px;font-weight:800;text-align:center}
.fe-photo-slot.has-photo:after{display:none}
.fe-photo-slot svg{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:48px;height:48px;color:#98a2b3}
.fe-photo-slot img{width:100%;height:100%;display:block;object-fit:cover}
.fe-project-copy{border:1px solid var(--line);border-radius:20px;padding:30px;background:#fff}
.fe-project-copy h2{font-size:36px;line-height:1.1;letter-spacing:-.04em;margin:0 0 14px}
.fe-project-copy p{color:var(--muted);font-size:17px;margin:0 0 18px}
.fe-project-copy ul{padding-left:19px;color:var(--ink2)}
.fe-project-copy li{margin:7px 0}
.fe-faq{background:var(--soft)}
.fe-faq details{background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 18px;margin-bottom:10px}
.fe-faq summary{cursor:pointer;font-weight:850;padding:18px 0;list-style:none;display:flex;justify-content:space-between;gap:20px}
.fe-faq summary::-webkit-details-marker{display:none}
.fe-faq summary:after{content:"+";font-size:22px;color:#8a6700}
.fe-faq details[open] summary:after{content:"–"}
.fe-faq details p{margin:0 0 18px;color:var(--muted)}
.fe-estimate{background:linear-gradient(180deg,#fff 0%,#fff9e8 100%)}
.fe-estimate-grid{display:grid;grid-template-columns:.82fr 1.18fr;gap:36px;align-items:start}
.fe-estimate-copy{padding-top:8px}
.fe-estimate-copy h2{font-size:clamp(34px,4.5vw,48px);line-height:1.06;letter-spacing:-.045em;margin:0 0 16px}
.fe-estimate-copy p{color:var(--muted);font-size:17px;margin:0 0 20px}
.fe-contact-lines{display:grid;gap:10px;margin-top:25px}
.fe-contact-lines a{display:flex;gap:10px;align-items:center;font-weight:850}
.fe-form{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);padding:26px;border-radius:22px}
.fe-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fe-form label{display:block;font-size:13px;font-weight:800;color:var(--ink2);margin-bottom:6px}
.fe-form input,.fe-form textarea{width:100%;border:1px solid #d0d5dd;border-radius:10px;padding:12px 13px;outline:none;background:#fff;color:var(--ink)}
.fe-form input:focus,.fe-form textarea:focus{border-color:#d4a100;box-shadow:0 0 0 3px rgba(245,183,0,.15)}
.fe-form textarea{min-height:130px;resize:vertical}
.fe-full{grid-column:1/-1}
.fe-form-note{font-size:12px;color:var(--muted);margin:10px 0 0}
.fe-form .fe-btn{margin-top:16px;width:100%}
.fe-footer{background:#0b1220;color:#fff;padding:42px 0 90px}
.fe-footer-grid{display:grid;grid-template-columns:1.25fr .75fr .75fr;gap:35px}
.fe-footer p,.fe-footer a{color:#cbd5e1}
.fe-footer h3{font-size:14px;text-transform:uppercase;letter-spacing:.08em;color:#fff;margin:0 0 12px}
.fe-copyright{border-top:1px solid rgba(255,255,255,.1);margin-top:30px;padding-top:18px;color:#98a2b3;font-size:13px}
.fe-mobilebar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:100;background:#fff;border-top:1px solid var(--line);padding:9px 10px max(9px,env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(16,24,40,.10)}
.fe-mobilebar-inner{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:7px}
.fe-mobilebar .fe-btn{padding:11px 8px;font-size:13px;border-radius:10px}
.fe-page-content{width:min(var(--max),calc(100% - 36px));margin:60px auto;min-height:45vh}

@media (max-width: 980px){
  .fe-navlinks{display:none}
  .fe-hero-grid{grid-template-columns:1fr;gap:30px;padding:62px 0}
  .fe-hero-card{max-width:680px}
  .fe-cards{grid-template-columns:repeat(2,1fr)}
  .fe-trust-grid{grid-template-columns:repeat(2,1fr)}
  .fe-trust-item:nth-child(2){border-right:0}
  .fe-project-note,.fe-estimate-grid{grid-template-columns:1fr}
  .fe-footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:782px){.admin-bar .fe-header{top:46px}}
@media (max-width: 680px){
  .fe-wrap{width:min(var(--max),calc(100% - 26px))}
  .fe-topbar .fe-wrap{justify-content:center;text-align:center;padding:7px 0}
  .fe-topbar-right{display:none}
  .fe-nav{height:68px}
  .fe-nav>.fe-btn{display:none}
  .fe-hero-grid{padding:48px 0 46px}
  .fe-hero h1{font-size:44px}
  .fe-lead{font-size:18px}
  .fe-hero-checks{grid-template-columns:1fr}
  .fe-actions .fe-btn{flex:1 1 45%}
  .fe-section{padding:58px 0}
  .fe-section-head{display:block}
  .fe-section-head p{margin-top:13px}
  .fe-cards,.fe-process-grid,.fe-trust-grid,.fe-footer-grid{grid-template-columns:1fr}
  .fe-trust-item{border-right:0;border-bottom:1px solid var(--line)}
  .fe-trust-item:last-child{border-bottom:0}
  .fe-photo-grid{grid-template-columns:1fr 1fr;grid-template-rows:220px 150px}
  .fe-photo-slot:first-child{grid-column:1/-1;grid-row:auto}
  .fe-fields{grid-template-columns:1fr}
  .fe-full{grid-column:auto}
  .fe-footer{padding-bottom:100px}
  .fe-mobilebar{display:block}
}
