/* ─── AC Electric Services — Shared Styles ─── */

:root {
  --charcoal: #1E2428;
  --graphite: #2D3339;
  --steel: #4A5259;
  --mid: #7A848B;
  --silver: #B8BFC4;
  --border: #E2E5E8;
  --cloud: #F3F4F6;
  --white: #FFFFFF;
  --bg: #FAFBFC;
  --blue: #2563EB;
  --blue-soft: #3B82F6;
  --blue-bg: #EFF6FF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
html { scroll-behavior: smooth; }
h1,h2,h3,h4 {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }

/* ─── HEADER ─── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px; max-width: 1440px; margin: 0 auto; padding: 0 48px;
}
.logo-img { height: 68px; width: auto; }
nav { display: flex; align-items: center; gap: 36px; }
nav a { font-size: 14px; font-weight: 500; color: var(--steel); transition: color 0.2s; }
nav a:hover { color: var(--charcoal); }
nav a.active { color: var(--charcoal); font-weight: 600; }
.hdr-cta {
  display: flex; align-items: center; gap: 8px;
  background: var(--charcoal); color: var(--white);
  padding: 10px 22px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; transition: background 0.2s;
}
.hdr-cta:hover { background: var(--graphite); }
.hdr-cta svg { width: 14px; height: 14px; }
.mobile-menu { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu svg { width: 24px; height: 24px; color: var(--charcoal); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600;
  font-size: 14px; cursor: pointer; border: none; transition: all 0.2s;
}
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--graphite); }
.btn-ghost {
  background: transparent; color: var(--charcoal);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--charcoal); }
.btn-blue {
  background: var(--blue); color: var(--white); border: none;
  border-radius: 8px; padding: 14px 28px; font-weight: 600;
  font-size: 14px; cursor: pointer; transition: background 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-blue:hover { background: var(--blue-soft); }

/* ─── SECTIONS ─── */
section { padding: 100px 0; }
.label {
  font-size: 12px; font-weight: 600; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.label::before {
  content: ''; width: 20px; height: 2px; background: var(--blue);
}
.title { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 16px; }
.desc { color: var(--mid); font-size: 16px; max-width: 500px; line-height: 1.7; }
.sec-head { margin-bottom: 60px; }

/* ─── PAGE HERO (subpages) ─── */
.page-hero {
  padding: 148px 0 72px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 16px;
}
.page-hero .desc {
  max-width: 580px;
  font-size: 17px; line-height: 1.7;
}

/* ─── CREDENTIAL BAR ─── */
.creds { background: var(--charcoal); }
.creds-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1440px; margin: 0 auto;
}
.cred {
  padding: 22px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.cred:last-child { border-right: none; }
.cred-lbl {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--silver); margin-bottom: 3px; font-weight: 500;
}
.cred-val { font-weight: 700; font-size: 14.5px; color: var(--white); }

/* ─── SERVICE CARDS (homepage) ─── */
.services { background: var(--bg); }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.svc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.svc:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-color: var(--silver);
}
.svc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); margin-bottom: 20px;
}
.svc h3 { font-size: 17px; margin-bottom: 8px; font-weight: 600; }
.svc p { color: var(--mid); font-size: 14px; line-height: 1.65; }

/* ─── SERVICE DETAIL SECTIONS (services page) ─── */
.svc-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.svc-detail:last-of-type { border-bottom: none; }
.svc-detail:nth-child(even) { background: var(--white); }
.svc-detail:nth-child(odd) { background: var(--bg); }
.svc-detail-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
  align-items: start;
}
.svc-detail-num {
  font-size: 11px; font-weight: 600; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.svc-detail-num::before {
  content: ''; width: 20px; height: 2px; background: var(--blue);
}
.svc-detail h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}
.svc-detail .svc-lead {
  font-size: 16px; color: var(--mid); line-height: 1.7;
  margin-bottom: 24px;
}
.svc-detail .svc-scope h4 {
  font-size: 13px; font-weight: 600; color: var(--charcoal);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.svc-detail .svc-scope ul {
  list-style: none; padding: 0;
}
.svc-detail .svc-scope li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px; color: var(--steel);
  display: flex; align-items: center; gap: 10px;
}
.svc-detail .svc-scope li:last-child { border-bottom: none; }
.svc-detail .svc-scope li::before {
  content: ''; width: 5px; height: 5px;
  background: var(--blue); border-radius: 50%; flex-shrink: 0;
}

/* ─── AUDIENCE ─── */
.audience { background: var(--white); padding: 80px 0; }
.aud-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.aud-chip {
  padding: 12px 20px; border-radius: 100px;
  background: var(--cloud); font-size: 14px; font-weight: 500;
}

/* ─── PROJECTS ─── */
.projects { background: var(--charcoal); color: var(--white); }
.projects .title { color: var(--white); }
.projects .desc { color: var(--silver); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj {
  background: var(--graphite); border-radius: 12px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s;
}
.proj:hover { border-color: rgba(255,255,255,0.15); }
.proj-img {
  height: 180px;
  background: linear-gradient(135deg, #3a4349 0%, var(--graphite) 100%);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--silver); font-weight: 500;
}
.proj-body { padding: 24px; }
.proj-tag {
  font-size: 11px; font-weight: 600; color: var(--blue-soft);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.proj h3 { font-size: 17px; margin-bottom: 6px; }
.proj p { color: var(--silver); font-size: 13.5px; }
.reviews {
  margin-top: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 28px 32px;
  background: var(--graphite); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.reviews h3 { font-size: 19px; margin-bottom: 4px; }
.reviews p { color: var(--silver); font-size: 14px; }

/* ─── CONTACT ─── */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-left .desc { margin-bottom: 32px; }
.phone-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; background: var(--cloud);
  border-radius: 10px; border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.phone-card:hover { border-color: var(--blue); }
.phone-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--charcoal); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.phone-icon svg { width: 20px; height: 20px; color: var(--white); }
.phone-sub { font-size: 12px; color: var(--mid); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.phone-num { font-weight: 700; font-size: 18px; font-family: 'Instrument Sans'; }

/* ─── CONTACT PAGE EXTRAS ─── */
.info-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.info-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px; background: var(--cloud);
  border-radius: 10px; border: 1px solid var(--border);
}
.info-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--charcoal); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon svg { width: 18px; height: 18px; color: var(--white); }
.info-title { font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 2px; }
.info-text { font-size: 14px; color: var(--mid); line-height: 1.5; }

/* ─── FORM ─── */
form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  font-size: 11.5px; font-weight: 600; color: var(--mid);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px; display: block;
}
input, select, textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14px;
  background: var(--bg); outline: none; transition: border-color 0.2s;
}
textarea { resize: vertical; min-height: 100px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.form-btn {
  background: var(--charcoal); color: var(--white);
  border: none; padding: 14px 28px; border-radius: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  align-self: flex-start; transition: background 0.2s;
}
.form-btn:hover { background: var(--graphite); }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--charcoal); color: var(--white);
  padding: 72px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(24px, 3vw, 32px); color: var(--white);
}
.cta-inner p { color: var(--silver); font-size: 15px; margin-top: 8px; max-width: 480px; }

/* ─── FOOTER ─── */
footer {
  background: var(--charcoal); color: var(--silver);
  padding: 44px 0;
}
.foot {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px;
}
.foot-logo { height: 52px; width: auto; filter: brightness(0) invert(1); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: 13px; color: var(--silver); }
.foot-links a:hover { color: var(--white); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .wrap, .hdr { padding: 0 32px; }
}
@media (max-width: 860px) {
  .page-hero { padding: 120px 0 56px; }
  .svc-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .reviews { flex-direction: column; text-align: center; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .btn-blue { align-self: center; }
  .creds-inner { grid-template-columns: 1fr 1fr; }
  .cred:nth-child(2) { border-right: none; }
  nav { display: none; }
  .mobile-menu { display: block; }
  .hdr { height: 68px; }
  .logo-img { height: 52px; }
}
@media (max-width: 480px) {
  .wrap, .hdr { padding: 0 20px; }
  .page-hero { padding: 100px 0 48px; }
  .creds-inner { grid-template-columns: 1fr; }
  .cred { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .cred:last-child { border-bottom: none; }
  .foot { flex-direction: column; text-align: center; }
}
