:root {
  --navy: #052e62;
  --navy-dark: #022650;
  --navy-deep: #012249;
  --green: #8dbf35;
  --green-dark: #78a72b;
  --white: #ffffff;
  --text: #183253;
  --muted: #5f6d7f;
  --border: #e4e9f0;
  --surface: #f7f9fc;
  --shadow-sm: 0 10px 28px rgba(4, 46, 98, .08);
  --shadow-md: 0 18px 45px rgba(4, 46, 98, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
img { max-width: 100%; }

/* Header */
.top-toolbar {
  background: linear-gradient(90deg, var(--navy-dark), var(--navy));
  color: #fff;
  font-size: .78rem;
  padding: .45rem 0;
}
.top-toolbar a { color: rgba(255,255,255,.94); transition: color .2s ease; }
.top-toolbar a:hover { color: #fff; }
.toolbar-divider { width: 1px; height: 16px; background: rgba(255,255,255,.4); }

.main-navbar {
  min-height: 72px;
  box-shadow: 0 1px 0 rgba(4, 42, 88, .08);
  z-index: 1030;
}
.navbar-brand img {
  width: 150px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.main-navbar .nav-link {
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
  padding: 1.15rem .25rem .95rem;
  position: relative;
}
.main-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .45rem;
  width: 0;
  height: 2px;
  border-radius: 10px;
  background: var(--navy);
  transform: translateX(-50%);
  transition: width .25s ease;
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { width: 28px; }

/* Sections */
.section-padding { padding: 4rem 0; }
.section-eyebrow,
.section-subtitle {
  color: var(--green);
  text-transform: uppercase;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
}
.section-eyebrow { margin-bottom: .65rem; }
.section-title {
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.section-text {
  color: #465568;
  line-height: 1.75;
  max-width: 700px;
}

/* About */
.about-section {
  padding-top: 4.2rem;
  padding-bottom: 3.5rem;
}
.about-image-wrap { position: relative; }
.about-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.about-image-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(5,46,98,.94);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
  backdrop-filter: blur(6px);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1.7rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  color: var(--navy);
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.25;
}
.trust-item i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f5fb;
  color: var(--navy);
  font-size: 1.15rem;
}

/* Services */
.services-section { padding-bottom: 4.6rem; }
.services-heading { margin-bottom: 2rem; }
.eyebrow-with-lines {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .85rem;
  margin-bottom: .45rem;
}
.eyebrow-with-lines span {
  width: 30px;
  height: 2px;
  border-radius: 10px;
  background: #b9d887;
}
.service-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 30px 18px 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--green);
  transform: translateX(-50%);
  transition: width .3s ease;
}
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { width: 100%; }
.service-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f6f9fd, #eaf1f9);
  color: var(--navy);
  font-size: 30px;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.05);
  background: var(--navy);
  color: #fff;
}
.service-card h3 {
  color: var(--navy);
  font-size: .98rem;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: .75rem;
}
.service-card p {
  color: #5b6879;
  font-size: .8rem;
  line-height: 1.55;
  margin: 0;
}

/* Testimonials */
.testimonials-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}
.testimonials-section::before,
.testimonials-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.testimonials-section::before {
  width: 260px;
  height: 260px;
  left: -140px;
  top: -120px;
  background: radial-gradient(circle, rgba(5,46,98,.08), rgba(5,46,98,0) 70%);
}
.testimonials-section::after {
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(141,191,53,.16), rgba(141,191,53,0) 70%);
}
.section-subtitle {
  display: inline-block;
  margin-bottom: 10px;
  color: #e86b28;
  letter-spacing: .14em;
}
.section-description {
  max-width: 680px;
  margin: 0 auto;
  color: #677385;
  font-size: .92rem;
  line-height: 1.65;
}
.testimonial-card {
  position: relative;
  z-index: 1;
  padding: 34px 30px 28px;
  overflow: hidden;
  border: 1px solid rgba(5,46,98,.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.quote-icon {
  position: absolute;
  top: -2px;
  left: 18px;
  color: #edf2f8;
  font-family: Georgia, serif;
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1;
}
.testimonial-rating {
  position: relative;
  margin-bottom: 18px;
  color: #ffb000;
  font-size: 1rem;
  letter-spacing: 2px;
}
.testimonial-text {
  position: relative;
  margin-bottom: 18px;
  color: #2f3946;
  font-size: .92rem;
  line-height: 1.75;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  padding-top: 14px;
  border-top: 1px solid #e8edf3;
}
.testimonial-author strong { color: var(--navy); font-size: .92rem; }
.testimonial-author span { margin-top: 4px; color: #7a8593; font-size: .8rem; }

/* CTA strip */
.cta-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, var(--navy-deep), #08427f);
  color: #fff;
  padding: 2.7rem 0;
}
.cta-strip::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(141,191,53,.13);
}
.cta-strip .container { position: relative; z-index: 1; }
.cta-strip h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.cta-strip p { margin: 0; color: rgba(255,255,255,.82); font-size: .92rem; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 46px;
  padding: .72rem 1.25rem;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: .86rem;
  transition: .25s ease;
}
.cta-btn:hover { background: var(--green); border-color: var(--green); color: var(--navy-deep); transform: translateY(-2px); }

/* Footer */
.site-footer {
  border-top: 3px solid var(--green);
  background: linear-gradient(135deg, var(--navy) 0%, #063a77 100%);
  color: #fff;
}
.footer-main { padding: 3.2rem 0 2.5rem; }
.footer-logo {
  width: 145px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}
.footer-intro {
  color: rgba(255,255,255,.84);
  line-height: 1.65;
  max-width: 250px;
  margin: 0;
  font-size: .86rem;
}
.site-footer h3 {
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { color: rgba(255,255,255,.84); margin-bottom: .58rem; font-size: .82rem; }
.site-footer a { color: rgba(255,255,255,.9); transition: color .2s ease; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-list li::before { content: "•"; margin-right: .55rem; color: #b7dc74; }
.contact-list li { display: flex; align-items: flex-start; gap: .72rem; }
.contact-list i { width: 18px; margin-top: .18rem; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  text-align: center;
  padding: .9rem 0;
  color: rgba(255,255,255,.78);
  font-size: .76rem;
}

/* Contact page styles retained */
.contact-hero {
  background: linear-gradient(rgba(3,47,98,.93), rgba(3,47,98,.93)), url('../images/electrician-hero.jpg') center/cover;
  color: #fff;
  padding: 5rem 0;
}
.contact-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; margin-bottom: 1rem; }
.contact-hero p { font-size: 1.02rem; line-height: 1.6; }
.contact-title { color: var(--navy); font-weight: 800; font-size: 1.5rem; margin-bottom: 1.5rem; }
.contact-form .form-control,
.contact-form .form-select {
  min-height: 50px;
  border-color: #dbe2ea;
  border-radius: 8px;
  padding: .75rem .95rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: #9ab5d3;
  box-shadow: 0 0 0 .2rem rgba(5,46,98,.08);
}
.contact-form textarea.form-control { min-height: 150px; }
.contact-info-panel { border-left: 1px solid #e2e7ed; padding-left: 2.4rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; color: var(--navy); margin-bottom: 1.35rem; font-size: 1rem; }
.contact-info-item i { font-size: 1.35rem; width: 26px; }
.contact-info-item a { color: var(--navy); }
.contact-side-image { margin-top: 1.3rem; border-radius: 12px; width: 100%; max-height: 260px; object-fit: cover; box-shadow: var(--shadow-sm); }

@media (max-width: 991.98px) {
  .main-navbar .nav-link { padding: .75rem 0; }
  .main-navbar .nav-link::after { left: 0; transform: none; bottom: .4rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-panel { border-left: 0; padding-left: calc(var(--bs-gutter-x) * .5); }
  .cta-strip { text-align: center; }
  .cta-strip .cta-actions { margin-top: 1.35rem; }
}

@media (max-width: 575.98px) {
  .top-toolbar .container { justify-content: center; font-size: .7rem; }
  .navbar-brand img { width: 118px; height: 46px; }
  .section-padding { padding: 3.2rem 0; }
  .about-section { padding-top: 3.2rem; padding-bottom: 2.7rem; }
  .section-title { font-size: 1.9rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1rem .7rem; }
  .trust-item { font-size: .68rem; }
  .service-card { max-width: 360px; margin: 0 auto; }
  .testimonials-section { padding-top: 3.3rem !important; padding-bottom: 3.3rem !important; }
  .testimonial-card { padding: 30px 24px 26px; }
}
