/*
Theme Name: SDZ Animated Electrical
Theme URI: https://www.sdzelectrical.co.nz/
Author: SDZ Electrical
Description: Animated WordPress theme for SDZ Electrical with services, partners, contact pages, and a scheduled SEO blog.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: sdz-animated
*/

:root {
  --sdz-ink: #0f172a;
  --sdz-ink-2: #1e293b;
  --sdz-text: #334155;
  --sdz-muted: #64748b;
  --sdz-line: #dbe3ee;
  --sdz-panel: #ffffff;
  --sdz-warm: #eab308;
  --sdz-warm-2: #ca8a04;
  --sdz-teal: #0f766e;
  --sdz-sky: #0ea5e9;
  --sdz-red: #be123c;
  --sdz-bg: #f7fafc;
  --sdz-radius: 8px;
  --sdz-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sdz-bg);
  color: var(--sdz-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--sdz-teal);
}

.sdz-wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.sdz-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 4px solid var(--sdz-warm);
  backdrop-filter: blur(18px);
  animation: sdz-slide-down 0.6s ease both;
}

.sdz-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.sdz-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.sdz-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--sdz-radius);
  background: linear-gradient(135deg, var(--sdz-warm), #fef08a);
  color: var(--sdz-ink);
  font-weight: 900;
  box-shadow: 0 0 28px rgba(234, 179, 8, 0.36);
}

.sdz-brand span:last-child {
  color: var(--sdz-warm);
}

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

.sdz-nav li,
.sdz-footer-links li {
  list-style: none;
}

.sdz-nav a {
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: var(--sdz-radius);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.sdz-nav a:hover,
.sdz-nav .current-menu-item > a,
.sdz-nav .current_page_item > a {
  background: rgba(234, 179, 8, 0.12);
  color: #fde047;
}

.sdz-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--sdz-radius);
  background: transparent;
  color: #ffffff;
  font-weight: 900;
}

.sdz-hero {
 <style>
  .hero-container {
    background: #121212;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    border-bottom: 2px solid #00F2FF;
  }
  .hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #00F2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #00F2FF;
    color: #00F2FF;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 5px;
  }
  .cta-button:hover {
    background: #00F2FF;
    color: #000;
    box-shadow: 0 0 20px #00F2FF;
  }
</style>

<div class="hero-container">
  <h1 class="hero-title">Powering Your Future with Precision</h1>
  <p>Professional Electrical Services for Modern Demands.</p>
  <br>
  <a href="/contact" class="cta-button">GET A QUOTE</a>
</div>
}

.sdz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.66) 52%, rgba(15, 23, 42, 0.28)),
    var(--sdz-hero-image, url("https://www.sdzelectrical.co.nz/wp-content/uploads/2026/06/pexels-eric-mufasa-578798-6349405-scaled.jpg")) center / cover;
}

.sdz-hero::after {
  content: "";
  position: absolute;
  inset: -70% -40% auto -40%;
  height: 100%;
  background-image:
    linear-gradient(rgba(234, 179, 8, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(620px) rotateX(62deg);
  animation: sdz-grid 14s linear infinite;
  opacity: 0.65;
}

.sdz-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 110px 0 92px;
  animation: sdz-fade-up 0.85s ease 0.12s both;
}

.sdz-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(234, 179, 8, 0.34);
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.14);
  color: #fde047;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sdz-hero h1,
.sdz-page-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.55rem, 5vw, 5rem);
  line-height: 1;
}

.sdz-hero p {
  max-width: 660px;
  margin: 24px 0 34px;
  color: #dbeafe;
  font-size: 1.15rem;
}

.sdz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sdz-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--sdz-radius);
  background: var(--sdz-warm);
  color: var(--sdz-ink);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 12px 28px rgba(234, 179, 8, 0.28);
}

.sdz-button:hover {
  transform: translateY(-3px);
  background: #facc15;
  color: var(--sdz-ink);
  box-shadow: 0 18px 38px rgba(234, 179, 8, 0.34);
}

.sdz-button.is-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.sdz-trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -48px;
  animation: sdz-fade-up 0.75s ease 0.32s both;
}

.sdz-trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: var(--sdz-radius);
  background: #ffffff;
  box-shadow: var(--sdz-shadow);
}

.sdz-trust-item {
  padding: 22px;
  border-right: 1px solid var(--sdz-line);
  color: var(--sdz-ink);
  font-weight: 800;
}

.sdz-trust-item:last-child {
  border-right: 0;
}

.sdz-section {
  padding: 86px 0;
}

.sdz-section.is-muted {
  background: #eef5f9;
}

.sdz-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.sdz-section-head h2,
.sdz-page-content h2,
.sdz-entry h1,
.sdz-entry h2 {
  margin: 0;
  color: var(--sdz-ink);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.08;
}

.sdz-section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--sdz-muted);
}

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

.sdz-card,
.sdz-post-card,
.sdz-contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sdz-line);
  border-radius: var(--sdz-radius);
  background: var(--sdz-panel);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sdz-card {
  padding: 28px;
}

.sdz-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sdz-warm), var(--sdz-teal), var(--sdz-sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.sdz-card:hover,
.sdz-post-card:hover,
.sdz-contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, 0.38);
  box-shadow: var(--sdz-shadow);
}

.sdz-card:hover::before {
  transform: scaleX(1);
}

.sdz-card-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: var(--sdz-radius);
  background: #fef9c3;
  color: var(--sdz-warm-2);
  font-size: 1rem;
  font-weight: 900;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.sdz-card:hover .sdz-card-mark {
  transform: rotate(4deg) scale(1.08);
  background: var(--sdz-warm);
  color: var(--sdz-ink);
}

.sdz-card h3,
.sdz-post-card h3,
.sdz-contact-card h3 {
  margin: 0 0 10px;
  color: var(--sdz-ink);
  font-size: 1.25rem;
  line-height: 1.2;
}

.sdz-card p,
.sdz-post-card p,
.sdz-contact-card p {
  margin: 0;
  color: var(--sdz-muted);
}

.sdz-service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sdz-service-pill {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--sdz-line);
  border-radius: var(--sdz-radius);
  background: #ffffff;
  color: var(--sdz-ink);
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  animation: sdz-float 4.5s ease-in-out infinite;
}

.sdz-service-pill:nth-child(2) {
  animation-delay: 0.45s;
}

.sdz-service-pill:nth-child(3) {
  animation-delay: 0.9s;
}

.sdz-service-pill:nth-child(4) {
  animation-delay: 1.35s;
}

.sdz-partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sdz-partner {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--sdz-radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 900;
  text-align: center;
}

.sdz-dark-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sdz-ink), #12343f);
  color: #ffffff;
}

.sdz-dark-band .sdz-section-head h2,
.sdz-dark-band .sdz-section-head p {
  color: #ffffff;
}

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

.sdz-post-grid.is-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sdz-post-card a {
  display: block;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.sdz-post-meta {
  display: block;
  margin-bottom: 12px;
  color: var(--sdz-teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sdz-post-meta.is-electrical {
  color: var(--sdz-warm-2);
}

.sdz-post-meta.is-security {
  color: var(--sdz-red);
}

.sdz-post-meta.is-data {
  color: var(--sdz-sky);
}

.sdz-page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72)),
    var(--sdz-page-image, url("https://www.sdzelectrical.co.nz/wp-content/uploads/2026/06/pexels-paolobici-37330874-scaled.jpg")) center / cover;
}

.sdz-page-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 1.08rem;
}

.sdz-page-content,
.sdz-entry {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.sdz-wide-content {
  width: min(1180px, calc(100% - 40px));
}

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

.sdz-contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.sdz-contact-stack {
  display: grid;
  gap: 16px;
}

.sdz-contact-card {
  padding: 24px;
}

.sdz-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--sdz-line);
  border-radius: var(--sdz-radius);
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.sdz-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--sdz-ink);
  font-weight: 800;
}

.sdz-field input,
.sdz-field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--sdz-radius);
  background: #f8fafc;
  color: var(--sdz-ink);
  font: inherit;
  padding: 12px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.sdz-field input:focus,
.sdz-field textarea:focus {
  outline: 0;
  border-color: var(--sdz-warm);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.14);
}

.sdz-alert {
  padding: 12px 14px;
  border-radius: var(--sdz-radius);
  background: #ecfdf5;
  color: #065f46;
  font-weight: 800;
}

.sdz-site-footer {
  background: var(--sdz-ink);
  color: #94a3b8;
  padding: 42px 0;
}

.sdz-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sdz-footer-inner strong {
  color: #ffffff;
}

.sdz-footer-links {
  display: flex;
  gap: 14px;
}

.sdz-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

@keyframes sdz-slide-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sdz-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sdz-grid {
  from {
    transform: perspective(620px) rotateX(62deg) translateY(0);
  }
  to {
    transform: perspective(620px) rotateX(62deg) translateY(38px);
  }
}

@keyframes sdz-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .sdz-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .sdz-header-inner {
    min-height: 68px;
  }

  .sdz-nav {
    position: absolute;
    inset: 72px 20px auto 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--sdz-radius);
    background: #111827;
  }

  .sdz-nav.is-open {
    display: flex;
  }

  .sdz-hero {
    min-height: 620px;
  }

  .sdz-hero::before {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.76)),
      var(--sdz-hero-image, url("https://www.sdzelectrical.co.nz/wp-content/uploads/2026/06/pexels-eric-mufasa-578798-6349405-scaled.jpg")) center / cover;
  }

  .sdz-trust-inner,
  .sdz-grid,
  .sdz-post-grid,
  .sdz-contact-layout {
    grid-template-columns: 1fr;
  }

  .sdz-trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--sdz-line);
  }

  .sdz-trust-item:last-child {
    border-bottom: 0;
  }

  .sdz-section-head {
    display: block;
  }

  .sdz-section-head p {
    margin-top: 12px;
  }

  .sdz-service-list,
  .sdz-partners {
    grid-template-columns: repeat(2, 1fr);
  }

  .sdz-footer-inner {
    display: block;
  }

  .sdz-footer-links {
    margin-top: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .sdz-wrap,
  .sdz-page-content,
  .sdz-entry,
  .sdz-wide-content,
  .sdz-contact-layout {
    width: min(100% - 28px, 1180px);
  }

  .sdz-brand {
    font-size: 1.04rem;
  }

  .sdz-hero-content {
    padding: 82px 0 76px;
  }

  .sdz-service-list,
  .sdz-partners {
    grid-template-columns: 1fr;
  }
}
