:root {
  --color-bg: #f4f1ea;
  --color-surface: rgba(255, 255, 255, 0.76);
  --color-surface-strong: #ffffff;
  --color-panel-dark: #122033;
  --color-panel-dark-soft: #1b2d45;
  --color-text: #162130;
  --color-text-soft: #536173;
  --color-line: rgba(22, 33, 48, 0.12);
  --color-accent: #f28c28;
  --color-accent-deep: #d56e13;
  --color-accent-soft: rgba(242, 140, 40, 0.12);
  --shadow-soft: 0 18px 44px rgba(17, 31, 46, 0.1);
  --shadow-strong: 0 28px 70px rgba(10, 22, 38, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --width-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(242, 140, 40, 0.16), transparent 30%),
    linear-gradient(180deg, #fbf8f2 0%, var(--color-bg) 38%, #efe7db 100%);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

.container { width: min(calc(100% - 1.5rem), var(--width-max)); margin: 0 auto; }

.topbar {
  background: #0e1a2a;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.topbar-row,
.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-row { padding: 0.65rem 0; flex-wrap: wrap; }
.topbar p { margin: 0; }
.topbar a { color: #fff; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  background: rgba(251, 248, 242, 0.82);
}

.header-row { padding: 0.9rem 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Fraunces", serif;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.8rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #13263c, #243c59);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-soft);
}

.nav-toggle,
.slider-arrow {
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.25rem 0 0.75rem;
}

.site-nav.open { display: flex; }
.site-nav a { font-weight: 700; }
.header-cta { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.button:hover,
.button:focus-visible,
.slider-arrow:hover,
.slider-arrow:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--color-accent), #ffab4d);
  color: #101820;
  box-shadow: 0 18px 32px rgba(242, 140, 40, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, var(--color-accent-deep), var(--color-accent));
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--color-line);
}

.button-full { width: 100%; }

.panel,
.hero-panel,
.trust-item,
.service-card,
.feature-card,
.project-card,
.testimonial-card,
.contact-panel,
.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 2rem 0 1.2rem;
}

.hero-shell {
  display: grid;
  gap: 1.25rem;
}

.hero-grid,
.metric-grid,
.trust-strip-grid,
.service-grid,
.standards-grid,
.feature-stack,
.project-grid,
.contact-grid,
.contact-panels,
.field-row {
  display: grid;
  gap: 1rem;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.eyebrow,
.section-label,
.project-tag,
.panel-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 33, 48, 0.08);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.eyebrow-muted {
  background: var(--color-accent-soft);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  margin-bottom: 1rem;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p { margin: 0 0 1rem; }

.hero-lead,
.section-heading p,
.project-copy p,
.feature-card p,
.contact-copy p,
.trust-item p,
.metric-grid p,
.testimonial-card p {
  color: var(--color-text-soft);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-grid {
  align-items: stretch;
}

.hero-panel,
.hero-image-card,
.contact-form {
  border-radius: var(--radius-xl);
}

.hero-panel {
  padding: 1.2rem;
}

.hero-panel-tall {
  background:
    linear-gradient(135deg, rgba(242, 140, 40, 0.12), rgba(255, 255, 255, 0.96)),
    var(--color-surface-strong);
}

.metric-grid strong {
  display: block;
  font-size: 1.6rem;
  margin: 0.25rem 0;
}

.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.area-pills span {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 33, 48, 0.08);
  font-weight: 700;
}

.check-list,
.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li,
.mini-list li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.7rem;
}

.check-list li::before,
.mini-list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 0 5px rgba(242, 140, 40, 0.16);
}

.hero-image-card {
  position: relative;
  overflow: hidden;
  min-height: 25rem;
  box-shadow: var(--shadow-strong);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 18rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(12, 23, 37, 0.84);
  color: rgba(255, 255, 255, 0.92);
}

.hero-image-badge p,
.section-heading-light p {
  color: rgba(255, 255, 255, 0.74);
}

.trust-strip {
  padding: 0.75rem 0 0;
}

.trust-item,
.service-card,
.project-card,
.testimonial-card,
.contact-panel {
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}

.section {
  padding: 4.5rem 0 0;
}

.section-alt {
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 2rem 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.16));
  z-index: -1;
}

.section-dark {
  padding-bottom: 4rem;
}

.section-dark .container {
  padding: 2rem 1rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(242, 140, 40, 0.18), transparent 35%),
    linear-gradient(135deg, var(--color-panel-dark), var(--color-panel-dark-soft));
  box-shadow: var(--shadow-strong);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.split-heading {
  display: grid;
  gap: 1rem;
}

.section-heading-light {
  color: #fff;
}

.section-label-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.service-index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-accent-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
}

.project-card {
  overflow: hidden;
  padding: 0;
}

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

.project-copy {
  padding: 1.1rem 1.1rem 1.25rem;
}

.testimonial-slider { position: relative; }
.testimonial-card { display: none; color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.08); }
.testimonial-card.active { display: block; }

.slider-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.slider-dots { display: flex; gap: 0.45rem; }
.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
}
.slider-dots button.active { background: #fff; }

.contact-form {
  padding: 1.25rem;
}

label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  background: #fff;
  color: var(--color-text);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note { color: var(--color-text-soft); font-size: 0.94rem; }
.form-message.success { color: #2d8f58; }
.form-message.error { color: #bd5c29; }

.site-footer {
  padding: 3rem 0;
  color: var(--color-text-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .header-cta { display: inline-flex; }

  .hero-grid {
    grid-template-columns: 0.85fr 0.85fr 1.1fr;
  }

  .metric-grid,
  .trust-strip-grid,
  .service-grid,
  .project-grid,
  .contact-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .standards-grid,
  .contact-grid,
  .split-heading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .feature-stack,
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel-tall {
    grid-row: span 2;
  }
}


.back-presgro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.back-presgro:hover,
.back-presgro:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 820px) {
  .back-presgro {
    order: 3;
    width: 100%;
    margin-top: 0.75rem;
  }
}

/* Individual niche polish: precise, technical electrical styling. */
body.theme-electrician {
  background:
    linear-gradient(90deg, rgba(241, 190, 62, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #f7f8f6 0%, #e9ece7 100%);
  background-size: 36px 36px, auto;
}

.theme-electrician .topbar,
.theme-electrician .site-header,
.theme-electrician .section-dark {
  background: #171d22;
  color: #f8f5e8;
}

.theme-electrician .brand-mark,
.theme-electrician .button-primary,
.theme-electrician .mobile-contact-bar a:first-child {
  background: #f1be3e;
  color: #171d22;
}

.theme-electrician .hero {
  background:
    linear-gradient(110deg, #171d22 0%, #22313a 58%, rgba(34, 49, 58, 0.86) 100%),
    repeating-linear-gradient(135deg, transparent 0 20px, rgba(241, 190, 62, 0.08) 20px 22px);
  color: #f8f5e8;
}

.theme-electrician .hero-panel,
.theme-electrician .panel,
.theme-electrician .metric,
.theme-electrician .service-card,
.theme-electrician .project-card,
.theme-electrician .contact-form,
.theme-electrician .contact-panel {
  border-radius: 4px;
  border-color: rgba(23, 29, 34, 0.14);
  box-shadow: 0 16px 34px rgba(23, 29, 34, 0.1);
}

.theme-electrician .hero-panel-tall,
.theme-electrician .service-card {
  border-top: 5px solid #f1be3e;
}

.theme-electrician .project-card img {
  filter: saturate(0.9) contrast(1.08);
}

.theme-electrician .section-label,
.theme-electrician .project-tag {
  color: #a66f00;
}

.theme-electrician .section-dark .section-label,
.theme-electrician .section-dark h2 {
  color: #f8f5e8;
}
