/* =========================================================
   WeDo Electrical — Design System (wd-)
   Shared component styles used across redesigned pages.
   Structural inspiration: emergencyelectricianchristchurch.co.nz
   Brand colours: WeDo red #ff3131 / charcoal #1c1c22 / amber accent #f5a700
   ========================================================= */

/* Hero */
.wd-hero {
    position: relative;
    clear: both;
    background:
        radial-gradient(circle at 88% 18%, rgba(255,49,49,.22), transparent 42%),
        linear-gradient(135deg, #1c1c22 0%, #2b2b35 55%, #232329 100%);
    padding: 110px 0 80px;
    color: #fff;
}
.wd-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    opacity: .5;
    pointer-events: none;
}
.wd-hero .container { position: relative; z-index: 1; }
.wd-hero .wd-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(245,167,0,.14);
    border: 1px solid rgba(245,167,0,.5);
    color: #f5a700;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 22px;
}
.wd-hero h1 {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}
.wd-hero h1 .wd-highlight { color: #f5a700; }
.wd-hero p.wd-sub {
    color: rgba(255,255,255,.75);
    font-size: 17px;
    max-width: 560px;
    margin-bottom: 26px;
}
.wd-trust-list { list-style: none; padding: 0; margin: 0 0 32px; }
.wd-trust-list li {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,.92); font-size: 15px; font-weight: 500;
    padding: 7px 0;
}
.wd-trust-list li i { color: #f5a700; }
.wd-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }
.wd-hero-ctas .btn { font-size: 16px; padding: 14px 30px; }
.wd-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff; font-weight: 600; border-radius: 6px;
    padding: 14px 30px; text-decoration: none; transition: background .2s;
}
.wd-btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

/* Hero media card (photo + overlapping stat card) */
.wd-hero-media { position: relative; margin-top: 40px; }
.wd-hero-media > img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    border-radius: 16px; display: block;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.wd-hero-card {
    position: relative;
    margin: -60px auto 0;
    width: 92%;
    background: #1c1c22; border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; padding: 24px 26px;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.wd-hero-card h3 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.wd-hero-card > p { color: rgba(255,255,255,.6); font-size: 13.5px; margin-bottom: 16px; }
.wd-hero-card hr { border-color: rgba(255,255,255,.12); margin: 0 0 16px; }
.wd-hero-stats-row { display: flex; justify-content: space-between; margin-bottom: 18px; }
.wd-hero-stats-row > div { text-align: center; }
.wd-hero-stats-row .num { display: block; color: #f5a700; font-size: 19px; font-weight: 700; }
.wd-hero-stats-row .lbl { display: block; color: rgba(255,255,255,.6); font-size: 11px; margin-top: 2px; }
.wd-hero-minicta {
    display: flex; align-items: center; gap: 12px;
    background: rgba(245,167,0,.1); border-radius: 8px;
    padding: 12px 16px; text-decoration: none;
}
.wd-hero-minicta i { color: #f5a700; font-size: 18px; }
.wd-hero-minicta span { display: flex; flex-direction: column; font-size: 12px; color: rgba(255,255,255,.65); }
.wd-hero-minicta span strong { color: #fff; font-size: 16px; font-weight: 700; }

/* Section rhythm */
.wd-section { padding: 70px 0; }
.wd-section.wd-alt { background: #f7f7f7; }
.wd-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.wd-head.wd-head-left { margin-left: 0; text-align: left; }
.wd-head .wd-kicker { color: #ff3131; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; display: block; }
.wd-head h2 { font-size: 30px; font-weight: 700; color: #1c1c22; margin-bottom: 12px; }
.wd-head p { color: #666; font-size: 16px; }

/* Card grid */
.wd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.wd-card {
    background: #fff; border-radius: 14px; padding: 30px 26px;
    border: 1px solid #ececec; box-shadow: 0 4px 16px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s;
}
.wd-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.wd-card .wd-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: rgba(255,49,49,.1); color: #ff3131;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 18px;
}
.wd-card h3 { font-size: 18px; font-weight: 700; color: #1c1c22; margin-bottom: 10px; }
.wd-card p { font-size: 14.5px; color: #666; margin-bottom: 0; }
.wd-card .wd-tag { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: #ff3131; background: rgba(255,49,49,.08); padding: 4px 12px; border-radius: 50px; }
.wd-card a.wd-card-link { color: #ff3131; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }

/* Story / case-study callout */
.wd-story {
    background: #fff; border-left: 4px solid #ff3131; border-radius: 10px;
    padding: 32px 34px; box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.wd-story .wd-story-tag { color: #ff3131; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; display: block; }
.wd-story p { color: #444; font-size: 16px; line-height: 1.85; margin-bottom: 14px; }
.wd-story p:last-child { margin-bottom: 0; }

/* Numbered steps */
.wd-steps { counter-reset: wd-step; }
.wd-step { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid #ececec; }
.wd-step:last-child { border-bottom: none; }
.wd-step .wd-step-num {
    counter-increment: wd-step; flex: none;
    width: 44px; height: 44px; border-radius: 50%;
    background: #ff3131; color: #fff; font-weight: 700; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
}
.wd-step .wd-step-num::before { content: counter(wd-step); }
.wd-step h3 { font-size: 17px; font-weight: 700; color: #1c1c22; margin-bottom: 6px; }
.wd-step p { font-size: 14.5px; color: #666; margin-bottom: 0; }

/* Two-column comparison / segmentation */
.wd-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.wd-compare .wd-card h3 { display: flex; align-items: center; gap: 10px; }

/* Two-column paragraph text block (long-form copy split into two blocks) */
.wd-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.wd-two-col p { color: #444; font-size: 15.5px; line-height: 1.85; margin-bottom: 14px; }
.wd-two-col p:last-child { margin-bottom: 0; }

/* Image + text split (e.g. residential vs commercial segmentation) */
.wd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.wd-split img { width: 100%; border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.wd-split h3 { font-size: 24px; font-weight: 700; color: #1c1c22; margin-bottom: 12px; }
.wd-split p { color: #666; font-size: 15px; margin-bottom: 18px; }

/* Pricing cards */
.wd-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.wd-price-card { background: #fff; border-radius: 14px; padding: 28px 26px; text-align: center; border: 1px solid #ececec; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.wd-price-card.wd-featured { border-color: #ff3131; box-shadow: 0 10px 26px rgba(255,49,49,.12); position: relative; }
.wd-price-card .wd-price-tag { font-size: 26px; font-weight: 700; color: #ff3131; margin: 10px 0 6px; }
.wd-price-card h3 { font-size: 15px; font-weight: 700; color: #1c1c22; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 0; }
.wd-price-card p { font-size: 14px; color: #666; margin-top: 10px; margin-bottom: 0; }

/* FAQ accordion */
.wd-faq details {
    background: #fff; border: 1px solid #ececec; border-radius: 10px;
    padding: 20px 24px; margin-bottom: 14px;
}
.wd-faq details[open] { border-color: #ffcccc; }
.wd-faq summary {
    cursor: pointer; font-weight: 700; font-size: 16.5px; color: #1c1c22;
    list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.wd-faq summary::-webkit-details-marker { display: none; }
.wd-faq summary::after {
    content: '+'; color: #ff3131; font-size: 22px; font-weight: 400; margin-left: 16px; flex: none;
}
.wd-faq details[open] summary::after { content: '\2212'; }
.wd-faq .wd-faq-body { padding-top: 14px; }
.wd-faq .wd-faq-body p { font-size: 14.5px; color: #666; line-height: 1.85; margin-bottom: 12px; }
.wd-faq .wd-faq-body p:last-child { margin-bottom: 0; }

/* Checklist */
.wd-checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; }
.wd-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #444; }
.wd-checklist li i { color: #16a34a; margin-top: 3px; flex: none; }

/* Testimonial */
.wd-testimonial { background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,.05); border: 1px solid #ececec; }
.wd-testimonial .wd-stars { color: #f5a700; font-size: 14px; margin-bottom: 14px; }
.wd-testimonial p { color: #444; font-size: 15.5px; line-height: 1.8; margin-bottom: 18px; }
.wd-testimonial .wd-author { display: flex; align-items: center; gap: 12px; }
.wd-testimonial .wd-author strong { display: block; color: #1c1c22; font-size: 14.5px; }
.wd-testimonial .wd-author span { display: block; color: #888; font-size: 13px; }

/* CTA band */
.wd-ctaband { background: #1c1c22; border-radius: 16px; padding: 46px 40px; text-align: center; }
.wd-ctaband h2 { color: #fff; font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.wd-ctaband p { color: rgba(255,255,255,.75); margin-bottom: 26px; }
.wd-ctaband .wd-hero-ctas { justify-content: center; margin-bottom: 0; }

@media (max-width: 991px) {
    .wd-hero-card { margin-left: 0; margin-right: 0; width: 100%; }
    .wd-split { grid-template-columns: 1fr; gap: 24px; }
    .wd-two-col { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 767px) {
    .wd-hero { padding: 80px 0 56px; }
    .wd-hero h1 { font-size: 30px; }
    .wd-hero p.wd-sub { font-size: 16px; }
    .wd-hero-stats-row { flex-wrap: wrap; gap: 14px; }
    .wd-section { padding: 50px 0; }
    .wd-ctaband { padding: 34px 22px; }
}
