:root {
  --ink: #17202a;
  --muted: #657384;
  --line: #dde5ed;
  --soft: #f6f8fb;
  --white: #ffffff;
  --amber: #f5b335;
  --amber-dark: #9c6100;
  --green: #188b57;
  --blue: #2d6cdf;
  --charcoal: #101820;
  --shadow: 0 18px 45px rgba(16, 24, 32, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  display: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  align-content: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  color: var(--charcoal);
  background: var(--white);
  box-shadow: inset 0 0 0 4px #fff4d9;
  line-height: 1;
  text-align: center;
  flex: 0 0 54px;
}

.brand-mark span:first-child {
  font-size: 0.72rem;
  font-weight: 900;
}

.brand-mark span:last-child {
  margin-top: 2px;
  font-size: 0.43rem;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav a:hover,
.contact-stack a:hover,
.service-card a:hover {
  color: var(--blue);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 8px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(42px, 6vw, 88px) clamp(18px, 4vw, 56px) 44px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.94), rgba(16, 24, 32, 0.78) 58%, rgba(16, 24, 32, 0.38)),
    url("assets/electrician-on-site.JPG") center / cover;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.hero-intro {
  max-width: 720px;
  margin-bottom: 28px;
  color: #dbe4ec;
  font-size: clamp(1.04rem, 1.5vw, 1.25rem);
}

.hero-actions,
.trust-strip,
.review-actions,
.contact-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: var(--charcoal);
  background: var(--amber);
}

.btn-secondary {
  color: var(--white);
  background: var(--green);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
}

.trust-strip {
  margin-top: 26px;
  color: #edf3f7;
  font-weight: 700;
}

.google-review-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #ffe5ab;
  font-weight: 800;
}

.trust-strip span,
.proof-band div,
.contact-stack a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-panel {
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.response-box {
  display: grid;
  gap: 4px;
  padding: 22px;
}

.response-box strong {
  font-size: 1.24rem;
}

.response-box span {
  color: var(--muted);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.proof-band div {
  align-items: flex-start;
  flex-direction: column;
  min-height: 124px;
  padding: 24px clamp(18px, 3vw, 34px);
  background: var(--white);
}

.proof-band strong {
  font-size: 1.05rem;
}

.proof-band span,
.intro-copy,
.service-card p,
.business-profile p,
.quote-section p,
.footer p,
.faq-list p {
  color: var(--muted);
}

.business-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 58px) clamp(18px, 4vw, 56px);
  background: #fff8ea;
  border-bottom: 1px solid var(--line);
}

.business-profile h2 {
  margin-bottom: 10px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-stats span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 14px;
  border: 1px solid #efd58f;
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.profile-stats svg {
  color: var(--amber-dark);
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 760px;
}

.quote-section,
.why-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.services,
.reviews,
.faqs {
  background: var(--soft);
}

.service-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.service-card,
.review-grid figure,
.quote-form,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  display: grid;
  align-content: start;
  min-height: 240px;
  padding: 24px;
}

.service-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
  color: var(--amber-dark);
}

.service-card a {
  align-self: end;
  margin-top: 18px;
  color: var(--charcoal);
  font-weight: 800;
}

.why-section {
  background: var(--charcoal);
  color: var(--white);
}

.why-section img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
}

.why-section h2 {
  max-width: 760px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #dbe4ec;
  font-weight: 650;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
}

.check-list svg {
  color: var(--amber);
}

.review-grid figure {
  margin: 0;
  padding: 24px;
}

.review-actions {
  margin-top: 20px;
}

.gallery {
  background: var(--white);
}

.signup-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 6vw, 72px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--charcoal);
}

.signup-section h2 {
  max-width: 820px;
}

.signup-section p:not(.eyebrow) {
  max-width: 760px;
  color: #dbe4ec;
}

.signup-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.signup-form label {
  color: var(--white);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.photo-grid figure {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  margin: 0;
  border-radius: 8px;
  background: var(--charcoal);
}

.photo-grid img,
.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.photo-large {
  grid-row: span 2;
}

.photo-large img {
  min-height: 496px;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  color: #dbe4ec;
  background: linear-gradient(135deg, #24313d, #435765);
  text-align: center;
  font-weight: 800;
}

.photo-placeholder svg {
  width: 34px;
  height: 34px;
  color: var(--amber);
}

.photo-grid figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(16, 24, 32, 0.82);
}

blockquote {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

figcaption {
  color: var(--muted);
  font-weight: 800;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 920px;
  margin-top: 30px;
}

.area-list span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 800;
}

.quote-section {
  background: #fff8ea;
}

.contact-stack {
  align-items: flex-start;
  flex-direction: column;
  margin-top: 24px;
  color: var(--charcoal);
  font-weight: 800;
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-weight: 800;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-top: 30px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  color: var(--charcoal);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 14px 0 0;
}

.footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 32px clamp(18px, 4vw, 56px) 92px;
  color: var(--white);
  background: var(--charcoal);
}

.footer strong {
  font-size: 1.2rem;
}

.footer p {
  margin: 6px 0 0;
  color: #dbe4ec;
}

.footer .footer-legal {
  margin-top: 14px;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: #dbe4ec;
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--amber);
}

.admin-entry {
  bottom: 8px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.68rem;
  position: absolute;
  right: 10px;
  text-decoration: none;
}

.admin-entry:hover {
  color: rgba(255, 255, 255, 0.72);
}

.legal-page {
  min-height: 100vh;
  padding: clamp(42px, 7vw, 82px) clamp(18px, 4vw, 56px);
  background: var(--soft);
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-content h1 {
  color: var(--charcoal);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.legal-content h2 {
  margin-top: 30px;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 20px;
}

.legal-back {
  margin-top: 30px;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(16, 24, 32, 0.96);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: #dbe4ec;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.mobile-cta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 25;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 8px;
  color: var(--white);
  background: var(--charcoal);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.mobile-cta a:last-child {
  background: var(--green);
}

.success-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.94), rgba(16, 24, 32, 0.7)),
    url("assets/electrician-on-site.JPG") center / cover;
}

.success-card {
  max-width: 760px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.86);
  box-shadow: var(--shadow);
}

.success-card p:not(.eyebrow) {
  color: #dbe4ec;
  font-size: 1.12rem;
}

.success-note {
  margin-bottom: 26px;
}

svg {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero,
  .quote-section,
  .why-section,
  .business-profile,
  .signup-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 34px;
  }

  .proof-band,
  .profile-stats,
  .service-grid,
  .review-grid,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-large {
    grid-row: auto;
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .brand-mark span:first-child {
    font-size: 0.62rem;
  }

  .brand-mark span:last-child {
    font-size: 0.36rem;
  }

  .header-call {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .proof-band,
  .service-grid,
  .review-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-large {
    grid-column: auto;
  }

  .photo-large img {
    min-height: 300px;
  }

  .proof-band div {
    min-height: auto;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 96px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 76px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mobile-cta {
    display: grid;
  }
}
