/* DS Electrical Contractors — Custom Stylesheet */
/* Inter: single family, 400/500/700/800 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── CSS Custom Properties ─── */
:root {
  --bg: #F5F7FA;
  --bg-alt: #E8ECF1;
  --bg-card: #FFFFFF;
  --bg-dark: #1C2A3A;
  --text: #1C2A3A;
  --text-muted: #4A5A6A;
  --text-faint: #6B7B8D;
  --primary: #2B4C6F;
  --primary-rgb: 43, 76, 111;
  --primary-light: #3E6690;
  --accent: #D4880A;
  --accent-rgb: 212, 136, 10;
  --accent-light: #E8A832;
  --border: #D0D8E1;
  --border-light: #E8ECF1;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html.dark {
  --bg: #1A2332;
  --bg-alt: #222E3E;
  --bg-card: #2E3C4E;
  --bg-dark: #0F1822;
  --text: #E0E5EC;
  --text-muted: #94A3B3;
  --text-faint: #6B7B8D;
  --primary: #4A7AB0;
  --primary-rgb: 74, 122, 176;
  --primary-light: #6A9FD5;
  --accent: #E8A832;
  --accent-rgb: 232, 168, 50;
  --accent-light: #F0C060;
  --border: #2E3C4E;
  --border-light: #222E3E;
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2.25rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Typography ─── */
h1 {
  font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
h3 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
.overline {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

/* ─── Navigation ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: none;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background 0.2s;
}
.nav-phone-btn:hover { background: var(--accent-light); }
.nav-phone-btn svg { width: 1rem; height: 1rem; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
@media (min-width: 768px) {
  .hamburger { display: none; }
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--bg-dark);
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu .nav-phone-btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
}

/* ─── Credential Strip ─── */
.credential-strip {
  position: sticky;
  top: 4rem;
  z-index: 99;
  background: var(--bg-card);
  border-top: 3px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
html.dark .credential-strip {
  background: var(--bg-card);
}
.credential-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.625rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.credential-strip-inner span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.credential-strip-inner svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.credential-divider {
  width: 1px;
  height: 1rem;
  background: var(--border);
}
@media (max-width: 640px) {
  .credential-strip-inner { gap: 0.75rem; font-size: 0.75rem; }
  .credential-divider { display: none; }
}

/* ─── Hero ─── */
.hero {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/9679179/pexels-photo-9679179.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
  opacity: 0.08;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0 5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    padding: 6rem 0 7rem;
  }
}
.hero-content .overline {
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-content p {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: 2px solid var(--accent);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-accent:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: #fff; }

/* Stat Blocks */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.stat-block {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: 0 0.375rem 0.375rem 0;
}
.stat-block:nth-child(2) { margin-left: 1.5rem; }
.stat-block:nth-child(3) { margin-left: 3rem; }
@media (max-width: 767px) {
  .stat-block:nth-child(2) { margin-left: 0.75rem; }
  .stat-block:nth-child(3) { margin-left: 1.5rem; }
}
.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* ─── Sections ─── */
.section { padding: 5rem 0; }
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-alt { background: var(--bg-alt); }
.section-light { background: var(--bg); }

.section .overline {
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-dark .overline { color: var(--accent-light); }

/* ─── Services Cards ─── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: box-shadow 0.2s;
}
html.dark .service-card { border-color: var(--border); }
.service-card:hover {
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.08);
}
.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}
html.dark .service-card h3 { color: var(--primary-light); }
.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.service-card-link:hover { gap: 0.625rem; }
.service-card-link svg { width: 1rem; height: 1rem; }

/* ─── Project Capability ─── */
.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .capability-grid { grid-template-columns: 1fr 1fr; }
}
.capability-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.capability-list li {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
  border-radius: 0 0.25rem 0.25rem 0;
}
.capability-img {
  border-radius: 0.5rem;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ─── Stats + Testimonials ─── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.stats-row .stat-item {
  text-align: center;
}
.stats-row .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
html.dark .stats-row .stat-value { color: var(--primary-light); }
.stats-row .stat-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
  font-weight: 500;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: 0.5rem;
}
html.dark .testimonial { border-color: var(--border); }
.testimonial blockquote {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-style: normal;
  color: var(--text);
}

/* ─── About ─── */
.about-content {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.about-content .btn-accent { margin-top: 0.5rem; }

/* ─── Service Area ─── */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .area-grid { grid-template-columns: 1fr 1fr; }
}
.area-cities {
  list-style: none;
  columns: 2;
  column-gap: 1.5rem;
}
.area-cities li {
  padding: 0.375rem 0;
  font-weight: 500;
  color: var(--text);
  break-inside: avoid;
}
.area-cities li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.area-description {
  color: var(--text-muted);
}

/* ─── Contact CTA / Contact Section ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-info-block p {
  margin-bottom: 0.75rem;
}
.contact-info-block a {
  font-weight: 600;
  transition: color 0.2s;
}
.section-dark .contact-info-block a:hover { color: var(--accent-light); }
.section-light .contact-info-block a:hover,
.section-alt .contact-info-block a:hover { color: var(--accent); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.contact-detail svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--accent);
}
.section-dark .contact-detail svg { color: var(--accent-light); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.section-dark .form-field label { color: rgba(255,255,255,0.7); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.2s;
}
.section-dark .form-field input,
.section-dark .form-field select,
.section-dark .form-field textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.form-field textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-submit {
  margin-top: 0.5rem;
}
.form-success {
  text-align: center;
  padding: 2rem 1rem;
}
.form-success h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.form-error {
  font-size: 0.8125rem;
  color: #dc2626;
  font-weight: 500;
  display: none;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.footer-brand .nav-logo { margin-bottom: 0.5rem; }
.footer-brand p {
  font-size: 0.8125rem;
  max-width: 280px;
  color: rgba(255,255,255,0.5);
}
.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.375rem;
  padding: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.theme-toggle svg { width: 1.125rem; height: 1.125rem; }

/* ─── Disclaimer Bar ─── */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.45);
}
.disclaimer-bar a {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  transition: color 0.2s;
}
.disclaimer-bar a:hover { color: var(--accent); }

/* ─── Interior Pages ─── */
.page-header {
  background: var(--bg-dark);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.page-header .overline {
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.page-header h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.page-body {
  padding: 3.5rem 0 4rem;
}
.page-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.page-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.page-body p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 720px;
}
.page-body ul, .page-body ol {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 720px;
  padding-left: 1.5rem;
}
.page-body li { margin-bottom: 0.5rem; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}
.value-card {
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: 0 0.375rem 0.375rem 0;
}
html.dark .value-card { background: var(--bg-alt); }
.value-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
html.dark .value-card h3 { color: var(--primary-light); }
.value-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* FAQ Accordion */
.faq-list {
  max-width: 720px;
  margin-top: 2rem;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
html.dark .faq-item { border-color: var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-faint);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  counter-reset: step;
}
@media (min-width: 640px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  counter-increment: step;
  position: relative;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
}
html.dark .process-step { border-color: var(--border); }
.process-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}
.process-step h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}
.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── Service detail page CTA banner ─── */
.cta-banner {
  background: var(--bg-dark);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 0.75rem; }
.cta-banner p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-inline: auto;
}

/* ─── Image in service pages ─── */
.service-hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

/* ─── Utility ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.hidden { display: none !important; }
