/* ==========================================================================
   Washek Electric — shared stylesheet
   ========================================================================== */

:root {
  --color-primary: #0088cc;
  --color-primary-dark: #006999;
  --color-text: #232323;
  --color-text-light: #5a5a5a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-border: #e2e6ea;
  --color-dark: #16191c;
  --color-dark-alt: #21252a;
  --color-white: #ffffff;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 6px;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 16px;
}

section {
  padding: 64px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-heading h2 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-heading p {
  color: var(--color-text-light);
}

.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
  background: var(--color-white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.logo img {
  height: 56px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  text-align: right;
  line-height: 1.3;
}

.header-phone small {
  display: block;
  color: var(--color-text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-phone a {
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.05rem;
}

.header-phone a:hover {
  color: var(--color-primary);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-white);
  flex-shrink: 0;
}

.social-icon:hover {
  background: var(--color-primary);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  position: relative;
  transition: 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

/* ==========================================================================
   Hero (home page slideshow)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 18s infinite;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 20, 30, 0.82) 0%, rgba(10, 20, 30, 0.55) 55%, rgba(10, 20, 30, 0.35) 100%);
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  36%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 0;
}

.hero-content .eyebrow {
  color: #7fd4ff;
}

.hero-content h1 {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.hero-content h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #d9edf7;
  margin-bottom: 18px;
}

.hero-content p {
  color: #e7eef2;
  font-size: 1.05rem;
}

/* ==========================================================================
   Page banner (interior pages)
   ========================================================================== */

.page-banner {
  position: relative;
  padding: 90px 0;
  background-image: linear-gradient(rgba(10, 16, 22, 0.72), rgba(10, 16, 22, 0.72)), url("../images/boston-electric-min.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  text-align: center;
}

.page-banner h1 {
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.page-banner p {
  color: #d9edf7;
  margin-top: 10px;
}

/* ==========================================================================
   Home page sections
   ========================================================================== */

.intro-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.brand-strip {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.brand-strip img {
  margin: 0 auto;
  max-height: 120px;
  width: auto;
}

.service-areas {
  text-align: center;
}

.town-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 24px;
}

.town-list li {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

.town-list li:not(:last-child)::after {
  content: "\00B7";
  margin-left: 10px;
  color: var(--color-primary);
}

.cta-band {
  position: relative;
  padding: 70px 0;
  background-image: linear-gradient(rgba(0, 60, 92, 0.86), rgba(0, 60, 92, 0.86)), url("../images/commercial-light-installati-min.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  text-align: center;
}

.cta-band h2 {
  font-size: 2rem;
  text-transform: uppercase;
}

.cta-band p {
  color: #d9edf7;
  font-size: 1.1rem;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ==========================================================================
   Services grid
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.service-card h3 {
  font-size: 1.08rem;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-quote {
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 18px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.testimonial-location {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ==========================================================================
   Contact card
   ========================================================================== */

.contact-wrap {
  display: flex;
  justify-content: center;
}

.contact-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: 780px;
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-photo {
  background: var(--color-bg-alt);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-details {
  padding: 36px 32px;
}

.contact-details h2 {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.contact-role {
  color: var(--color-text-light);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.contact-field {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-field svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-field a,
.contact-field span {
  color: var(--color-text);
  font-weight: 600;
}

.contact-field a:hover {
  color: var(--color-primary);
}

.contact-card .btn-row {
  margin-top: 26px;
}

.contact-card .btn-primary,
.contact-card .btn-secondary {
  color: var(--color-white);
}

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

.btn-secondary:hover {
  background: var(--color-primary-dark);
}

.service-area-note {
  max-width: 780px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-dark);
  color: #b9c2c9;
}

.footer-main {
  padding: 56px 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-main h3 {
  color: var(--color-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-about img {
  height: 44px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-about p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #b9c2c9;
  font-size: 0.92rem;
}

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

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  align-items: flex-start;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact a {
  color: #b9c2c9;
}

.footer-contact a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #b9c2c9;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    display: none;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .main-nav ul li {
    border-top: 1px solid var(--color-border);
  }

  .main-nav a {
    padding: 14px 24px;
  }

  .header-contact {
    gap: 12px;
  }

  .header-phone small {
    display: none;
  }

  .hero {
    min-height: 460px;
    text-align: center;
  }

  .hero-content {
    padding: 40px 0;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .btn-row {
    justify-content: center;
  }

  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-photo {
    height: 260px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: left;
  }
}
