/* ============================================================
   SOLARWORKS DESIGN SYSTEM
   Palette:  #171717 charcoal (base) · #FFFFFF · #D92D20 red (accent, used sparingly)
             #F5F5F3 warm paper (section alt) · #E8E8E5 hairline · #F2A93B sun-amber (glow only)
   Type:     "Big Shoulders Display" — headlines, condensed/industrial, panel-grid feel
             "Inter" — body, UI, labels
   Layout:   Left-aligned, asymmetric grid, generous negative space, diagonal panel-cut
             motif recurring as a section divider (pulled from the logo geometry).
   ============================================================ */

:root {
    --charcoal: #171717;
    --charcoal-soft: #232323;
    --white: #ffffff;
    --paper: #f5f5f3;
    --hairline: #e2e1dd;
    --red: #d92d20;
    --red-deep: #a8221a;
    --amber: #f2a93b;
    --ink-muted: #6b6b68;

    --font-display: 'Big Shoulders Display', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container: 1180px;
    --gutter: clamp(20px, 5vw, 64px);
    --radius: 2px;
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.98;
    margin: 0;
    letter-spacing: 0.2px;
}

p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 46ch; }

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

section { padding: clamp(64px, 10vw, 132px) 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark p, .section-dark .lede { color: #cfcfcc; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 15px 28px;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-deep); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: var(--white); color: var(--charcoal); }
.btn-block { width: 100%; justify-content: center; }

/* --- Header / Nav --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--hairline);
}
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
    position: relative;
    padding: 4px 0;
}
.nav-links a.is-active { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-size: 0.9rem; font-weight: 600; text-decoration: none; display: none; }
.menu-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    content: ''; display: block; width: 22px; height: 2px; background: var(--charcoal);
    position: relative; transition: 0.2s;
}
.menu-toggle span::before { position: absolute; top: -7px; width: 22px; height: 2px; background: var(--charcoal); }
.menu-toggle span::after { position: absolute; top: 7px; width: 22px; height: 2px; background: var(--charcoal); }

@media (min-width: 900px) {
    .nav-phone { display: inline-flex; }
}
@media (max-width: 899px) {
    .nav-links {
        position: fixed; inset: 76px 0 0 0; background: var(--white);
        flex-direction: column; align-items: flex-start; padding: 32px var(--gutter);
        gap: 22px; transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: 0.2s ease;
    }
    .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { font-size: 1.3rem; }
    .menu-toggle { display: flex; }
}

/* --- Diagonal panel-cut divider (logo motif) --- */
.panel-divider {
    height: 46px;
    width: 100%;
    display: block;
}
.panel-divider--to-charcoal { background: linear-gradient(180deg, transparent 49%, var(--charcoal) 50%); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--charcoal);
    color: var(--white);
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.35) 48%, rgba(10,10,10,0.55) 100%);
}
.hero-inner {
    position: relative; z-index: 2;
    padding-bottom: clamp(48px, 8vw, 96px);
    width: 100%;
}
.hero-eyebrow {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; letter-spacing: 0.06em; font-weight: 600; color: var(--amber);
    margin-bottom: 22px;
}
.hero-eyebrow .dash { width: 26px; height: 2px; background: var(--red); }
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    max-width: 14ch;
    color: var(--white);
}
.hero .lede { color: #e7e7e4; margin-top: 20px; font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-dots { position: absolute; z-index: 3; bottom: 28px; right: var(--gutter); display: flex; gap: 8px; }
.hero-dots button {
    width: 26px; height: 3px; background: rgba(255,255,255,0.35); border: none; cursor: pointer; padding: 0;
}
.hero-dots button.is-active { background: var(--red); }

/* --- Trust strip --- */
.trust-strip { border-bottom: 1px solid var(--hairline); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { flex-shrink: 0; width: 26px; height: 26px; stroke: var(--red); }
.trust-item span { font-size: 0.92rem; font-weight: 600; }
@media (max-width: 720px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Section heading pattern --- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 16ch; }
.section-head .lede { margin: 0; }
@media (max-width: 780px) {
    .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* --- Problem / Solution --- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.problem-list { list-style: none; margin: 24px 0 0; padding: 0; }
.problem-list li {
    display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hairline);
    font-size: 1.02rem;
}
.problem-list li:first-child { padding-top: 0; }
.problem-list .mark { color: var(--red); font-weight: 700; font-family: var(--font-display); }
.solution-card {
    background: var(--charcoal); color: var(--white); padding: 44px;
    border-left: 4px solid var(--red);
}
.solution-card .brand-word { font-family: var(--font-display); font-size: 2rem; }
@media (max-width: 860px) {
    .problem-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* --- System explainer --- */
.flow-rail {
    display: flex; align-items: stretch; gap: 0; overflow-x: auto; margin-top: 48px;
    scrollbar-width: none;
}
.flow-rail::-webkit-scrollbar { display: none; }
.flow-step {
    flex: 1 0 220px;
    border: 1px solid var(--hairline);
    border-left: none;
    padding: 28px 24px;
    cursor: pointer;
    background: var(--white);
    transition: background 0.2s ease;
    position: relative;
}
.flow-step:first-child { border-left: 1px solid var(--hairline); }
.flow-step:hover, .flow-step.is-active { background: var(--paper); }
.flow-step.is-active { box-shadow: inset 0 4px 0 var(--red); }
.flow-step .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--red); }
.flow-step h4 { font-size: 1.05rem; margin: 10px 0 8px; }
.flow-step p { font-size: 0.9rem; color: var(--ink-muted); margin: 0; }
.flow-arrow { display: flex; align-items: center; padding: 0 6px; color: var(--hairline); }
@media (max-width: 720px) {
    .flow-arrow { display: none; }
    .flow-step { flex: 1 0 78%; border-left: 1px solid var(--hairline); }
}

/* --- Solutions pathways --- */
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--hairline); }
.path-card {
    background: var(--white); padding: 34px 26px; min-height: 260px;
    display: flex; flex-direction: column; justify-content: flex-end;
    cursor: pointer; transition: 0.25s ease;
    text-decoration: none; color: var(--charcoal);
}
.path-card:hover { background: var(--charcoal); color: var(--white); }
.path-card:hover p { color: #d8d8d5; }
.path-card h4 { font-size: 1.3rem; margin-bottom: 10px; }
.path-card p { font-size: 0.92rem; margin: 0; }
@media (max-width: 900px) { .path-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .path-grid { grid-template-columns: 1fr; } }

/* --- Package cards --- */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.package-card {
    border: 1px solid var(--hairline);
    padding: 32px 28px;
    display: flex; flex-direction: column;
    position: relative;
    background: var(--white);
}
.package-card.is-featured { border-color: var(--charcoal); border-width: 2px; }
.package-card .flag {
    position: absolute; top: -1px; right: -1px;
    background: var(--red); color: var(--white);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 6px 12px;
}
.package-card .kva-tag { font-size: 0.85rem; color: var(--ink-muted); font-weight: 600; }
.package-card h3 { font-size: 2.2rem; margin: 4px 0 20px; }
.package-spec-list { list-style: none; margin: 0 0 24px; padding: 0; flex-grow: 1; }
.package-spec-list li {
    display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hairline);
    font-size: 0.9rem;
}
.package-spec-list li:first-child { border-top: none; }
.package-price { font-family: var(--font-display); font-size: 2.4rem; margin-bottom: 18px; }
.package-price small { font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-muted); font-weight: 500; }
@media (max-width: 980px) { .package-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .package-grid { grid-template-columns: 1fr; } }

/* --- Why us --- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.why-item { border-top: 3px solid var(--red); padding-top: 18px; }
.why-item h4 { font-size: 1.15rem; margin-bottom: 8px; }
.why-item p { font-size: 0.95rem; color: var(--ink-muted); margin: 0; }
@media (max-width: 780px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* --- Nationwide banner --- */
.nationwide {
    background: var(--charcoal); color: var(--white);
    display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px;
}
.nationwide h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--white); }
.nationwide .zw-shape svg { width: 100%; max-width: 340px; fill: var(--red); opacity: 0.9; }
@media (max-width: 820px) { .nationwide { grid-template-columns: 1fr; text-align: left; } }

/* --- Finder tool --- */
.finder-shell {
    border: 1px solid var(--hairline);
    background: var(--white);
}
.finder-progress { display: flex; height: 4px; background: var(--hairline); }
.finder-progress span { flex: 1; }
.finder-progress span.is-done { background: var(--red); }
.finder-body { padding: clamp(28px, 5vw, 56px); }
.finder-step { display: none; }
.finder-step.is-active { display: block; }
.finder-question { font-size: 1.5rem; font-family: var(--font-display); margin-bottom: 24px; }
.finder-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.finder-option {
    border: 1.5px solid var(--hairline); padding: 18px 16px; cursor: pointer;
    text-align: left; background: var(--white); font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
    transition: 0.15s ease;
}
.finder-option:hover { border-color: var(--charcoal); }
.finder-option.is-selected { border-color: var(--red); background: #fdf1f0; }
.finder-appliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.finder-appliance {
    display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--hairline);
    padding: 12px 14px; cursor: pointer; font-size: 0.9rem;
}
.finder-appliance input { accent-color: var(--red); width: 16px; height: 16px; }
.finder-appliance.is-checked { border-color: var(--red); background: #fdf1f0; }
.finder-nav { display: flex; justify-content: space-between; margin-top: 32px; }
.finder-result { text-align: left; }
.finder-result .result-kva { font-family: var(--font-display); font-size: 3.2rem; color: var(--red); margin: 6px 0 4px; }
.finder-disclaimer { font-size: 0.82rem; color: var(--ink-muted); margin-top: 18px; }
.finder-spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--hairline); font-size: 0.92rem; }

/* --- Testimonials --- */
.testimonial-rail { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.testimonial-rail::-webkit-scrollbar { display: none; }
.testimonial-card {
    flex: 0 0 min(420px, 82vw); background: var(--white); border: 1px solid var(--hairline);
    padding: 32px 28px; border-top: 3px solid var(--red);
}
.testimonial-quote { font-size: 1.1rem; line-height: 1.5; margin-bottom: 18px; }
.testimonial-meta { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--ink-muted); }
.testimonial-meta strong { color: var(--charcoal); font-size: 0.92rem; }

/* --- Projects gallery --- */
.project-rail { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.project-rail::-webkit-scrollbar { display: none; }
.project-card { flex: 0 0 min(360px, 84vw); background: var(--white); border: 1px solid var(--hairline); }
.project-card img { width: 100%; height: 220px; object-fit: cover; background: var(--paper); }
.project-body { padding: 22px 22px 26px; }
.project-tag { font-size: 0.78rem; font-weight: 700; color: var(--red); letter-spacing: 0.03em; margin-bottom: 8px; }
.project-body h4 { font-size: 1.15rem; margin-bottom: 6px; }
.project-meta { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 10px; }

/* --- About page --- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.value-item { border-top: 3px solid var(--red); padding-top: 16px; }
.value-item h4 { font-size: 1.1rem; margin-bottom: 8px; }
.value-item p { font-size: 0.95rem; color: var(--ink-muted); margin: 0; }
@media (max-width: 640px) { .value-grid { grid-template-columns: 1fr; } }

.solution-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-top: 1px solid var(--hairline); }
.solution-detail:first-of-type { border-top: none; }
.solution-detail:nth-of-type(even) .solution-media { order: 2; }
.solution-media { background: var(--paper); border: 1px solid var(--hairline); min-height: 320px; display: flex; align-items: center; justify-content: center; color: var(--ink-muted); font-size: 0.85rem; }
.solution-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
@media (max-width: 860px) {
    .solution-detail { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
    .solution-detail:nth-of-type(even) .solution-media { order: 0; }
}

/* --- FAQ --- */
.faq-item { border-top: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 0; font-size: 1.05rem; font-weight: 600; font-family: var(--font-body);
    color: var(--charcoal);
}
.faq-q .plus { font-size: 1.4rem; color: var(--red); transition: transform 0.2s; flex-shrink: 0; margin-left: 20px; }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 22px; color: var(--ink-muted); }

/* --- Final CTA --- */
.final-cta { background: var(--charcoal); color: var(--white); text-align: left; position: relative; overflow: hidden; }
.final-cta::before {
    content: ''; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%;
    background: radial-gradient(circle, rgba(217,45,32,0.25) 0%, transparent 70%);
}
.final-cta h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--white); max-width: 18ch; position: relative; }
.final-cta .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; position: relative; }

/* --- Footer --- */
.site-footer { background: var(--charcoal); color: #a8a8a5; padding: 56px 0 28px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid img { height: 30px; margin-bottom: 14px; }
.footer-grid h5 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: #a8a8a5; }
.footer-bottom { border-top: 1px solid #333; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- WhatsApp float --- */
.wa-float {
    position: fixed; bottom: 22px; right: 22px; z-index: 200;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25); text-decoration: none;
}
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* --- Forms --- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--hairline);
    font-family: var(--font-body); font-size: 0.95rem; border-radius: var(--radius); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--red);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.eyebrow-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: var(--red); margin-bottom: 14px; }
.eyebrow-tag .dash { width: 20px; height: 2px; background: var(--red); }
