/* ===== All Electrical Solutions, Inc. — Design System ===== */
:root {
  --gold: #c8a24c;
  --gold-deep: #a9842f;
  --gold-soft: #f4ecd8;
  --ink: #16181d;
  --ink-2: #3a3f4a;
  --muted: #6b7280;
  --line: #e8e8ec;
  --bg: #ffffff;
  --bg-alt: #f8f7f4;
  --shadow-sm: 0 1px 2px rgba(16,18,29,.06), 0 1px 3px rgba(16,18,29,.05);
  --shadow-md: 0 10px 30px rgba(16,18,29,.08);
  --shadow-lg: 0 24px 60px rgba(16,18,29,.12);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Manrope", sans-serif; color: var(--ink); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 .8rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn--primary { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1407; box-shadow: 0 8px 20px rgba(200,162,76,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(200,162,76,.45); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }

/* ===== Topbar ===== */
.topbar { background: var(--ink); color: #d8d9de; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: .6rem; height: 38px; }
.topbar__phone { margin-left: auto; color: var(--gold); font-weight: 700; }
.topbar__sep, .topbar__item:nth-child(2) { opacity: .8; }
@media (max-width: 640px){ .topbar__item, .topbar__sep { display:none; } .topbar__phone{ margin: 0 auto; } }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1407; box-shadow: var(--shadow-sm); }
.brand__text em { font-style: normal; color: var(--gold-deep); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--gold-deep); }
.nav__cta { color: #1a1407 !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }

@media (max-width: 900px){
  .nav { position: fixed; inset: 110px 16px auto 16px; flex-direction: column; align-items: stretch; gap: .4rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .25s; }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: .7rem .8rem; border-radius: 10px; }
  .nav a:hover { background: var(--bg-alt); }
  .nav__cta { text-align: center; margin-top: .3rem; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav__toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    /* light wash for legibility (kept from before, slightly lighter so the home shows) */
    linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.70) 42%, rgba(248,247,244,.93) 100%),
    /* electrical-grid overlay: fine gold lines + heavier blueprint lines every 6th */
    repeating-linear-gradient(0deg, rgba(169,132,47,.16) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(169,132,47,.16) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(169,132,47,.10) 0 1.5px, transparent 1.5px 276px),
    repeating-linear-gradient(90deg, rgba(169,132,47,.10) 0 1.5px, transparent 1.5px 276px),
    /* luxury residence */
    url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}
.hero__bg::after { content:""; position:absolute; right:-120px; top:-120px; width:420px; height:420px; border-radius:50%; background: radial-gradient(circle, rgba(200,162,76,.25), transparent 70%); }
.hero__inner { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(60px, 8vw, 100px); max-width: 900px; }
.hero__title { font-size: clamp(2.1rem, 5.4vw, 3.8rem); font-weight: 800; }
.hero__title span { color: var(--gold-deep); }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 620px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding: 0; margin: 0; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.hero__badges li { display: flex; align-items: center; gap: .4rem; }
.hero__badges li:not(:last-child)::after { content:""; }
@media (max-width: 640px){
  .hero .container { padding-left: 28px; padding-right: 28px; }
  .hero__inner { padding: 72px 0 64px; }
  .hero__actions .btn { width: 100%; }
}

/* ===== Trust strip ===== */
.trust { background: var(--ink); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; padding: 34px 24px; text-align: center; }
.trust__item strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.7rem; color: var(--gold); font-weight: 800; }
.trust__item span { font-size: .9rem; color: #c7c9d1; }
@media (max-width: 640px){ .trust__grid { grid-template-columns: repeat(2,1fr); gap: 1.4rem; } }

/* ===== Sections ===== */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(200,162,76,.5); }
.card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--gold-soft); font-size: 1.5rem; margin-bottom: 1rem; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 880px){ .cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .cards { grid-template-columns: 1fr; } }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); border-radius: 50%; font-size: .75rem; font-weight: 800; }
@media (max-width: 820px){ .about__grid { grid-template-columns: 1fr; } .about__media { order: -1; } }

/* ===== Process steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.step__num { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--gold); }
.step h3 { margin: .6rem 0 .4rem; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 880px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery__item img { aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, rgba(16,18,29,.8)); }
@media (max-width: 820px){ .gallery { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .gallery { grid-template-columns: 1fr; } }

/* ===== Reviews ===== */
.reviews__summary { display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: 1rem; font-size: 1.05rem; }
.stars { color: var(--gold); letter-spacing: 2px; }
.reviews__summary strong { font-family: "Manrope", sans-serif; font-size: 1.3rem; color: var(--ink); }
.reviews__summary span { color: var(--muted); font-size: .95rem; }
.reviews__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-bottom: 2.4rem; }
.reviews__loading { grid-column: 1/-1; text-align: center; color: var(--muted); }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .9rem; }
.review__top { display: flex; align-items: center; gap: .8rem; }
.review__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--gold-soft); flex: none; }
.review__avatar--initials { display: grid; place-items: center; font-family: "Manrope", sans-serif; font-weight: 800; font-size: .95rem; color: var(--gold-deep); }
.review__who { display: flex; flex-direction: column; }
.review__name { font-family: "Manrope", sans-serif; font-weight: 700; color: var(--ink); }
.review__date { font-size: .82rem; color: var(--muted); }
.review__stars { color: var(--gold); letter-spacing: 1px; font-size: .95rem; }
.review__text { color: var(--ink-2); margin: 0; }
.review__yelp { margin-top: auto; font-size: .82rem; color: #d32323; font-weight: 700; }
.reviews__cta { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 880px){ .reviews__grid { grid-template-columns: 1fr; } }

/* ===== Service areas ===== */
.areas__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.areas__list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1rem; text-align: center; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); }
@media (max-width: 720px){ .areas__list { grid-template-columns: repeat(2,1fr); } }

/* ===== Contact ===== */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,5vw,64px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; }
.contact__list li { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; gap: .6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact__list span { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--gold-deep); }
.contact__list a { font-weight: 600; color: var(--ink); }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px,3vw,36px); box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,162,76,.15); }
.field textarea { resize: vertical; }
.form__note { grid-column: 1/-1; margin: 0; font-size: .9rem; font-weight: 600; }
.form__note.is-ok { color: #15803d; }
.form__note.is-err { color: #b91c1c; }
@media (max-width: 820px){ .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px){ .contact__form { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #c3c5cd; padding: 60px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand--footer { color: #fff; }
.footer__brand p { margin-top: 1rem; max-width: 320px; font-size: .92rem; }
.footer__col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer__col a, .footer__col span { display: block; color: #c3c5cd; font-size: .92rem; margin-bottom: .55rem; transition: color .2s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.4rem; padding-top: 22px; font-size: .85rem; color: #9aa0ab; }
.footer__credit a { color: #c3c5cd; border-bottom: 1px solid rgba(200,162,76,.5); transition: color .2s, border-color .2s; }
.footer__credit a:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 820px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer__grid { grid-template-columns: 1fr; } }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ * { scroll-behavior: auto; } [data-reveal]{ opacity:1; transform:none; } }
