/* DHG Electrical Services — shared styles
   Based on the approved mockup (Direction 1, "polished original").
   Design unchanged; extracted to a shared sheet for a multi-page site. */

:root{
  --accent:#EF4B3F; --accent-dark:#D63A2F; --ink:#1A1A1A; --grey:#5B5B5B;
  --band:#F6F6F4; --line:#E8E8E5;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;color:var(--ink);background:#fff;line-height:1.6}
h1,h2,h3{font-family:'Archivo',sans-serif;line-height:1.15}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.btn{display:inline-block;padding:14px 28px;border-radius:6px;font-weight:700;font-size:14px;letter-spacing:.06em;text-transform:uppercase;transition:.2s}
.btn-accent{background:var(--accent);color:#fff}
.btn-accent:hover{background:var(--accent-dark)}
.btn-ghost{border:2px solid #fff;color:#fff}
.btn-ghost:hover{background:#fff;color:var(--ink)}
.btn-dark{border:2px solid var(--ink);color:var(--ink)}
.btn-dark:hover{background:var(--ink);color:#fff}
.kicker{color:var(--accent);font-weight:700;letter-spacing:.18em;text-transform:uppercase;font-size:13px;margin-bottom:12px}
.h2{font-size:clamp(28px,4vw,40px);font-weight:800;margin-bottom:14px}
.lead{color:var(--grey);max-width:640px;margin:0 auto 40px;font-size:17px}
section{padding:84px 0}

/* announcement */
.announce{background:var(--ink);color:#fff;font-size:13.5px;padding:9px 0}
.announce .wrap{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap}
.announce a{background:var(--accent);color:#fff;font-weight:700;font-size:11.5px;letter-spacing:.08em;padding:6px 14px;border-radius:4px}
.stars{color:#F5B301;letter-spacing:2px}

/* header */
header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.nav{display:flex;align-items:center;justify-content:space-between;height:76px}
.logo{display:flex;align-items:center;gap:10px}
.logo svg{height:38px;width:auto}
.logo img{height:42px;width:auto;display:block}
.logo .lname{font-family:'Archivo';font-weight:900;font-size:30px;letter-spacing:-.02em}
.logo .ltag{font-family:'Archivo';font-weight:700;font-size:10.5px;letter-spacing:.14em;color:var(--ink);line-height:1.25}
nav ul{display:flex;gap:26px;list-style:none;align-items:center}
nav a{font-size:13.5px;font-weight:600;letter-spacing:.05em;padding:6px 0;border-bottom:3px solid transparent}
nav a:hover,nav a.on{border-color:var(--accent)}
.phone{font-weight:700;color:var(--accent);font-size:15px}
.navtoggle{display:none;background:none;border:0;cursor:pointer;font-size:26px;color:var(--ink)}

/* hero */
.hero{position:relative;min-height:620px;display:flex;align-items:center;
  background:
    linear-gradient(100deg,rgba(10,10,10,.82) 0%,rgba(10,10,10,.52) 55%,rgba(239,75,63,.22) 100%),
    url('images/hero-team-ute.png'),
    #191919;
  background-size:cover;background-position:center;background-repeat:no-repeat;
  color:#fff;padding:80px 0}
.hero h1{font-size:clamp(36px,5.4vw,58px);font-weight:900;max-width:640px;margin-bottom:18px}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero p{max-width:520px;font-size:18px;color:#E8E8E8;margin-bottom:32px}
.hero .ctas{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:28px}
.hero .trust{font-size:13px;color:#CFCFCF;letter-spacing:.03em}
.hero .trust b{color:#fff}
.photo-note{position:absolute;right:28px;bottom:24px;border:1.5px dashed rgba(255,255,255,.45);color:rgba(255,255,255,.75);font-size:12px;letter-spacing:.05em;padding:8px 14px;border-radius:6px;background:rgba(0,0,0,.25)}

/* page banner (inner pages) */
.banner{background:linear-gradient(100deg,#161616,#242424 60%,#2E1B18);color:#fff;padding:70px 0;text-align:center}
.banner h1{font-size:clamp(30px,4.5vw,46px);font-weight:900}
.banner p{color:#D8D8D8;margin-top:10px;font-size:17px}

/* services */
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px}
.tile{background:#fff;border:1px solid var(--line);border-radius:10px;padding:30px 28px;transition:.2s;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.tile:hover{box-shadow:0 10px 28px rgba(0,0,0,.09);transform:translateY(-3px)}
.tile .ic{width:46px;height:46px;border-radius:9px;background:#FDEDEB;display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.tile .ic svg{width:24px;height:24px;stroke:var(--accent)}
.tile h3{font-size:19px;font-weight:800;margin-bottom:8px}
.tile p{font-size:14.5px;color:var(--grey)}
.tile a.more{display:inline-block;margin-top:14px;color:var(--accent);font-weight:700;font-size:13px;letter-spacing:.05em}

/* why */
.why{background:var(--ink);color:#fff}
.why .h2{color:#fff}
.whygrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:28px;margin-top:44px}
.why .item{border-top:3px solid var(--accent);padding-top:18px}
.why .item h3{font-size:17px;margin-bottom:6px}
.why .item p{color:#B9B9B9;font-size:14px}

/* reviews */
.rev{background:var(--band)}
.gbadge{display:inline-flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:40px;padding:9px 20px;font-size:14px;font-weight:600;margin-bottom:36px}
.revgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px;text-align:left}
.rcard{background:#fff;border:1px solid var(--line);border-radius:10px;padding:28px}
.rcard p{font-size:14.5px;color:#333;margin:10px 0 16px}
.rcard .who{font-weight:700;font-size:14px}
.rcard .src{color:var(--grey);font-size:12.5px}
.seeall{display:inline-block;margin-top:34px;font-weight:700;color:var(--accent);font-size:14px;letter-spacing:.04em}

/* projects */
.projgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:26px;margin-bottom:40px;text-align:left}
.pcard{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.ph{height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:repeating-linear-gradient(115deg,#ECECE9 0 40px,#E6E6E2 40px 80px);color:#8A8A85;font-size:13px;letter-spacing:.04em;text-align:center;padding:0 20px}
.ph svg{width:34px;height:34px;stroke:#A9A9A4}
.pcard .pb{padding:24px 26px}
.pcard .yr{color:var(--accent);font-weight:700;font-size:12.5px;letter-spacing:.1em}
.pcard h3{font-size:20px;margin:6px 0 8px}
.pcard p{font-size:14.5px;color:var(--grey)}

/* stats */
.stats{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:56px 0}
.statgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:24px;text-align:center}
.stat b{display:block;font-family:'Archivo';font-size:38px;font-weight:900;color:var(--accent)}
.stat span{color:var(--grey);font-size:14px;font-weight:600;letter-spacing:.04em}

/* cta */
.cta{background:linear-gradient(100deg,#161616,#242424 60%,#2E1B18);color:#fff;text-align:center}
.cta h2{font-size:clamp(28px,4vw,40px);font-weight:900;margin-bottom:12px}
.cta p{color:#D8D8D8;margin-bottom:30px;max-width:620px;margin-left:auto;margin-right:auto}
.cta .ctas{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* generic page content */
.prose{max-width:760px;margin:0 auto}
.prose h2{font-size:26px;font-weight:800;margin:34px 0 12px}
.prose h3{font-size:19px;font-weight:800;margin:26px 0 8px}
.prose p{margin-bottom:14px;color:#333}
.prose ul{margin:0 0 16px 20px;color:#333}
.prose ol{margin:0 0 16px 22px;color:#333}
.prose ol ol{margin:8px 0 8px 4px;list-style:lower-alpha}
.prose ol li{margin-bottom:10px}
.about-photo{float:right;width:340px;max-width:44%;margin:4px 0 20px 30px;border-radius:12px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.12)}
.about-photo img{width:100%;display:block}
.about-photo figcaption{font-size:12px;color:var(--grey);padding:9px 12px;text-align:center;line-height:1.4}
@media(max-width:600px){.about-photo{float:none;width:100%;max-width:100%;margin:0 auto 24px}}
.prose li{margin-bottom:7px}
.note{background:#FFF7E6;border:1px solid #F1D48A;border-radius:8px;padding:14px 18px;font-size:13.5px;color:#7A5B12;margin:18px 0}

/* service-page checklist + feature grid */
.checks{list-style:none;margin:26px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px 34px;text-align:left}
.checks li{position:relative;padding-left:32px;color:#333;font-size:15.5px;line-height:1.5}
.checks li::before{content:"✓";position:absolute;left:0;top:1px;width:20px;height:20px;background:var(--accent);color:#fff;border-radius:50%;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.feat{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:28px;margin-top:40px;text-align:left}
.feat .item{border-top:3px solid var(--accent);padding-top:18px}
.feat .item h3{font-size:17px;font-weight:800;margin-bottom:6px;font-family:'Archivo',sans-serif}
.feat .item p{color:var(--grey);font-size:14px}

/* on-site quote form */
.qform{max-width:640px;margin:0 auto;text-align:left}
.qform .row{margin-bottom:16px}
.qform label{display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:var(--ink)}
.qform input,.qform textarea{width:100%;padding:13px 15px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:15px;color:var(--ink);background:#fff}
.qform input:focus,.qform textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(239,75,63,.13)}
.qform textarea{min-height:120px;resize:vertical}
.qform button{cursor:pointer;font-family:inherit}
.qform .hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.qform .files{font-size:13px;color:var(--grey);margin-top:10px}
.qform .submit-row{margin-top:24px}
.btn-accent-outline{background:#fff;border:2px solid var(--accent);color:var(--accent)}
.btn-accent-outline:hover{background:var(--accent);color:#fff}
#submitBtn{border:0}
.formmsg{max-width:640px;margin:20px auto 0;text-align:center;padding:28px;border-radius:12px}
.formmsg.ok{background:#EAF7EE;border:1px solid #B7E3C4;color:#1B6B34}
.formmsg.err{background:#FDECEA;border:1px solid #F5C2BC;color:#B02A1B}

/* embedded booking form */
.embed-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 12px 34px rgba(0,0,0,.07);background:#fff}
.embed-card iframe{display:block;width:100%;height:1080px;border:0}
@media(max-width:640px){.embed-card iframe{height:1320px}}

/* footer */
footer{background:#111;color:#C9C9C9;padding:64px 0 0;font-size:14px}
.fgrid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:44px}
footer h4{color:#fff;font-family:'Archivo';font-size:13px;letter-spacing:.14em;margin-bottom:16px}
footer li{list-style:none;margin-bottom:9px}
footer a:hover{color:#fff}
.fcontact b{color:var(--accent);font-size:17px}
.fbottom{border-top:1px solid #2A2A2A;padding:20px 0;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:12.5px;color:#8E8E8E}
.badges{display:flex;gap:18px;flex-wrap:wrap;font-weight:600;color:#B5B5B5}

@media(max-width:900px){
  .fgrid{grid-template-columns:1fr 1fr}
  nav ul{display:none;position:absolute;top:76px;left:0;right:0;flex-direction:column;background:#fff;border-bottom:1px solid var(--line);padding:12px 24px;gap:0}
  nav ul.open{display:flex}
  nav ul li{width:100%;border-bottom:1px solid var(--line)}
  nav ul li:last-child{border-bottom:0}
  nav a{display:block;padding:12px 0;border-bottom:0}
  .navtoggle{display:block}
  header .wrap.nav{position:relative}
}
@media(max-width:520px){
  .fgrid{grid-template-columns:1fr}
  section{padding:60px 0}
}

/* ===== Chat assistant widget ===== */
.dhgc-launch{position:fixed;right:20px;bottom:20px;z-index:9998;display:flex;align-items:center;gap:10px;background:var(--accent);color:#fff;border:0;border-radius:50px;padding:13px 20px 13px 16px;font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;box-shadow:0 6px 22px rgba(0,0,0,.22);transition:background .15s,transform .15s}
.dhgc-launch:hover{background:var(--accent-dark);transform:translateY(-1px)}
.dhgc-launch svg{width:22px;height:22px;flex:none}
.dhgc-launch .dhgc-dot{position:absolute;top:-3px;right:-3px;width:14px;height:14px;background:#22c55e;border:2px solid #fff;border-radius:50%}
.dhgc-hide{display:none!important}
.dhgc-panel{position:fixed;right:20px;bottom:20px;z-index:9999;width:380px;max-width:calc(100vw - 40px);height:600px;max-height:calc(100vh - 40px);background:#fff;border-radius:16px;box-shadow:0 12px 48px rgba(0,0,0,.28);display:flex;flex-direction:column;overflow:hidden;font-size:15px}
.dhgc-head{background:var(--accent);color:#fff;padding:16px 18px;display:flex;align-items:center;gap:12px}
.dhgc-head .dhgc-av{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;flex:none}
.dhgc-head .dhgc-av svg{width:20px;height:20px}
.dhgc-head h4{margin:0;font-size:15px;font-weight:800;line-height:1.2}
.dhgc-head p{margin:2px 0 0;font-size:12px;opacity:.9;font-weight:500}
.dhgc-head .dhgc-x{margin-left:auto;background:0;border:0;color:#fff;font-size:22px;cursor:pointer;line-height:1;padding:4px;opacity:.9}
.dhgc-head .dhgc-x:hover{opacity:1}
.dhgc-body{flex:1;overflow-y:auto;padding:18px;background:var(--band);display:flex;flex-direction:column;gap:12px}
.dhgc-msg{max-width:82%;padding:10px 14px;border-radius:14px;line-height:1.5;word-wrap:break-word}
.dhgc-msg.bot{background:#fff;color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:4px;align-self:flex-start}
.dhgc-msg.user{background:var(--accent);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
.dhgc-msg a{color:inherit;font-weight:700;text-decoration:underline}
.dhgc-msg.bot a{color:var(--accent-dark)}
.dhgc-typing{align-self:flex-start;background:#fff;border:1px solid var(--line);border-radius:14px;border-bottom-left-radius:4px;padding:12px 16px;display:flex;gap:4px}
.dhgc-typing span{width:7px;height:7px;background:#bbb;border-radius:50%;animation:dhgc-bounce 1.2s infinite}
.dhgc-typing span:nth-child(2){animation-delay:.2s}
.dhgc-typing span:nth-child(3){animation-delay:.4s}
@keyframes dhgc-bounce{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}
.dhgc-foot{border-top:1px solid var(--line);padding:12px;background:#fff;display:flex;gap:8px;align-items:flex-end}
.dhgc-foot textarea{flex:1;resize:none;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-family:inherit;font-size:15px;max-height:96px;line-height:1.4;outline:none}
.dhgc-foot textarea:focus{border-color:var(--accent)}
.dhgc-foot button{background:var(--accent);color:#fff;border:0;border-radius:10px;width:42px;height:42px;flex:none;cursor:pointer;display:flex;align-items:center;justify-content:center}
.dhgc-foot button:hover{background:var(--accent-dark)}
.dhgc-foot button:disabled{opacity:.5;cursor:default}
.dhgc-foot button svg{width:20px;height:20px}
.dhgc-note{text-align:center;font-size:11px;color:var(--grey);padding:0 12px 10px;background:#fff}
.dhgc-note a{color:var(--grey)}
@media(max-width:520px){
  .dhgc-panel{right:0;bottom:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
  .dhgc-launch{right:16px;bottom:16px}
}
