/* ============================================================
   Professional Electrical Services — modern site
   Palette: deep navy + amber accent, silver shield logo on dark
   ============================================================ */

:root {
  --navy-900: #0e1a2b;
  --navy-800: #14243a;
  --navy-700: #1d3350;
  --amber: #f5a623;
  --amber-dark: #d98e0b;
  --text: #24303e;
  --text-muted: #5b6b7c;
  --bg-light: #f5f7fa;
  --border: #e3e8ee;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(14, 26, 43, 0.08);
  --shadow-lg: 0 10px 34px rgba(14, 26, 43, 0.16);
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: 0.01em;
}

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 10px;
}

.section { padding: 84px 0; }
.section.alt { background: var(--bg-light); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 2.6rem; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 1.06rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--amber); color: var(--navy-900); }
.btn-primary:hover { background: #ffb941; box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

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

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand:hover { text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.brand-name small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 14px;
  border-radius: 6px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); text-decoration: none; }
.nav-links > li > a.active { color: var(--amber); }

.nav-cta { margin-left: 10px; }
.nav-cta a {
  background: var(--amber);
  color: var(--navy-900) !important;
  padding: 10px 22px;
}
.nav-cta a:hover { background: #ffb941; }

/* dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.16s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}
.dropdown-menu a {
  color: var(--navy-800);
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 6px;
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--navy-900); }
.caret { font-size: 0.7em; margin-left: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.7rem;
  cursor: pointer;
  padding: 6px 10px;
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(245, 166, 35, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 96px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3.6rem;
  margin: 14px 0 18px;
}
.hero h1 .accent { color: var(--amber); }

.hero p.lead {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-badge img { height: 130px; margin: 0 auto 16px; }
/* hero slideshow: slides between logo and owner photo on the navy background */
.hero-slides {
  position: relative;
  height: 220px;
  overflow: hidden;
  margin-bottom: 16px;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  margin: 0;
  transform: translateX(110%);
  transition: transform 0.7s ease;
}
.hero-slides img.active { transform: translateX(0); }
.hero-slides img.exit { transform: translateX(-110%); }
.hero-slides img.photo { object-position: center bottom; padding-bottom: 0; }

/* ---------- service areas ---------- */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.area-chips span {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-800);
  box-shadow: var(--shadow);
}
.area-note { color: var(--text-muted); max-width: 860px; }
.area-note strong { color: var(--navy-800); }

.hero-badge .license {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.hero-badge .license strong { color: var(--amber); display: block; font-size: 1.35rem; }

/* subpage hero */
.page-hero { padding: 72px 0; }
.page-hero h1 { font-size: 3rem; }
.page-hero p.lead { margin-bottom: 26px; }
.page-hero .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
.page-hero .hero-media {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.page-hero .hero-media img { margin: 0 auto; max-height: 320px; width: auto; }

/* ---------- trust bar ---------- */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 22px 0; }
.trust-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-800);
}
.trust-item svg { width: 22px; height: 22px; fill: var(--amber-dark); flex-shrink: 0; }
.trust-item img { height: 34px; width: auto; }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 26px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }

.card-media {
  height: 190px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.card-media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }

.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.45rem; margin-bottom: 8px; }
.card-body p { color: var(--text-muted); font-size: 0.98rem; flex: 1; }
.card-link {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-size: 1rem;
}
.card:hover .card-link { text-decoration: underline; }

/* icon cards (services) */
.icon-card { padding: 30px; text-align: left; }
.icon-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgba(245, 166, 35, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-card .icon svg { width: 28px; height: 28px; fill: var(--amber-dark); }

/* ---------- why licensed ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.feature-list { list-style: none; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list .check {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-top: 3px;
}
.feature-list h4 { font-size: 1.25rem; margin-bottom: 4px; }
.feature-list p { color: var(--text-muted); font-size: 0.97rem; }

.cred-panel {
  background: var(--navy-900);
  border-radius: var(--radius);
  color: var(--white);
  padding: 40px 36px;
  position: sticky;
  top: 100px;
}
.cred-panel h3 { color: var(--white); font-size: 1.7rem; margin-bottom: 20px; }
.cred-logos { display: flex; gap: 22px; align-items: center; margin: 22px 0; flex-wrap: wrap; }
.cred-logos img { height: 52px; width: auto; background: var(--white); border-radius: 8px; padding: 8px; }
.cred-panel .license-line {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 20px;
  padding-top: 18px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.cred-panel .license-line strong { color: var(--amber); font-size: 1.25rem; display: block; }

/* ---------- owner strip ---------- */
.owner-strip { background: var(--bg-light); }
.owner-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}
.owner-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.owner-photo img { object-fit: cover; object-position: right; height: 300px; width: 100%; }
.owner-grid blockquote {
  font-size: 1.15rem;
  color: var(--text);
  border-left: 4px solid var(--amber);
  padding-left: 22px;
  margin-bottom: 18px;
}
.owner-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy-900); }
.owner-name span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.92rem; color: var(--text-muted); }

/* ---------- testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.testimonial .stars { color: var(--amber); font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 14px; }
.testimonial p { color: var(--text); font-size: 0.98rem; flex: 1; }
.testimonial .who {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-800);
}

/* ---------- product detail pages ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.prose h2 { font-size: 2rem; margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; color: var(--text); }
.prose ul { margin: 0 0 16px 22px; color: var(--text); }
.prose li { margin-bottom: 7px; }

.spec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.spec-card .spec-media {
  background: var(--bg-light);
  padding: 26px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.spec-card .spec-media img { max-height: 240px; width: auto; }
.spec-card .spec-body { padding: 28px; }
.spec-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.spec-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--amber-dark);
  margin-bottom: 16px;
}
.spec-card ul { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.spec-card ul li { padding-left: 26px; position: relative; font-size: 0.95rem; color: var(--text); }
.spec-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--amber-dark);
  font-weight: 700;
}
.spec-card .btn { width: 100%; text-align: center; }

.included-strip { background: var(--navy-900); color: var(--white); }
.included-strip h2 { color: var(--white); }
.included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.included-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
}
.included-item h4 { color: var(--amber); font-size: 1.2rem; margin-bottom: 6px; }
.included-item p { color: rgba(255, 255, 255, 0.8); font-size: 0.93rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--amber) 0%, #ffc35c 100%);
  padding: 60px 0;
}
.cta-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 2.3rem; }
.cta-band p { color: var(--navy-800); }
.cta-band .btn { background: var(--navy-900); color: var(--white); }
.cta-band .btn:hover { background: var(--navy-700); }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--navy-800);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-light);
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--white);
}
.form-note { font-size: 0.88rem; color: var(--text-muted); margin-top: 12px; }
#form-status { font-size: 0.9rem; margin-top: 14px; min-height: 1.4em; }
#form-status.form-success { color: #1a6e2e; font-weight: 500; }
#form-status.form-error { color: #b91c1c; }

.contact-info { display: grid; gap: 20px; }
.info-tile {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.info-tile .icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(245, 166, 35, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-tile .icon svg { width: 24px; height: 24px; fill: var(--amber-dark); }
.info-tile h4 { font-size: 1.15rem; margin-bottom: 2px; }
.info-tile p { color: var(--text-muted); font-size: 0.96rem; }

.map-embed {
  border: 0;
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.75); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: rgba(255, 255, 255, 0.75); }
.footer-grid a:hover { color: var(--amber); text-decoration: none; }
.footer-brand img { height: 84px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.93rem; max-width: 280px; }
.footer-cert { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.footer-cert img { height: 44px; background: var(--white); border-radius: 6px; padding: 6px; }
.footer-contact li { font-size: 0.95rem; }
.footer-contact strong { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-bottom .esa { color: var(--amber); font-weight: 600; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 2.7rem; }
  .hero-grid, .page-hero .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-badge { max-width: 380px; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .cred-panel, .spec-card { position: static; }
  .owner-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 22px;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 10px; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--navy-800);
    margin: 4px 0 8px;
    display: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { color: rgba(255, 255, 255, 0.85); }
  .dropdown-menu a:hover { background: var(--navy-700); color: var(--white); }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta a { text-align: center; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 2.2rem; }
  .section-head h2 { font-size: 2rem; }
  .card-grid.cols-4, .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { justify-content: flex-start; }
}
