/**
 * Single Service Area page styles.
 *
 * Everything scoped under .cw-single-area / .cw-sx-* so it can't leak into the rest of the theme.
 * Reuses the same palette as the archive.
 */

.cw-single-area {
    --cw-ink:        #0b1220;
    --cw-ink-2:      #1f2937;
    --cw-muted:      #4b5563;
    --cw-muted-2:    #6b7280;
    --cw-line:       #e5e7eb;
    --cw-bg-soft:    #f3f4f6;
    --cw-bg-card:    #f8fafc;
    --cw-yellow:     #f5b400;
    --cw-yellow-2:   #d99e00;
    --cw-dark:       #0b1220;
    --cw-dark-2:     #1e2a3b;

    color: var(--cw-ink);
    font-family: inherit;
}

.cw-single-area * { box-sizing: border-box; }

.cw-sx-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

.cw-sx-section-head {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 800px;
}

.cw-sx-h2 {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--cw-ink);
}

.cw-sx-h2--light { color: #ffffff; }

.cw-sx-sub {
    margin: 0;
    color: var(--cw-muted);
    font-size: 15px;
    line-height: 1.6;
}

.cw-sx-sub--light { color: rgba(255,255,255,0.78); }

.cw-sx-card {
    background: #ffffff;
    border: 1px solid var(--cw-line);
    border-radius: 12px;
    padding: 28px;
}

/* Yellow icon tile used across multiple sections */
.cw-sx-icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--cw-yellow);
    color: #ffffff;
    border-radius: 10px;
    margin-bottom: 16px;
}

/* ───────── Buttons ───────── */
.cw-sx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.cw-sx-btn--lg { padding: 14px 26px; font-size: 16px; }
.cw-sx-btn--yellow { background: var(--cw-yellow); color: var(--cw-ink); }
.cw-sx-btn--yellow:hover { background: var(--cw-yellow-2); color: var(--cw-ink); }
.cw-sx-btn--white { background: #ffffff; color: var(--cw-ink); }
.cw-sx-btn--white:hover { background: #f3f4f6; color: var(--cw-ink); }
.cw-sx-btn--outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.4);
}
.cw-sx-btn--outline:hover { background: rgba(255,255,255,0.08); color: #ffffff; }

/* ───────── HERO ───────── */
.cw-sx-hero {
    position: relative;
    color: #ffffff;
    padding: 88px 0 64px;
    background: var(--cw-hero-img, none) center/cover no-repeat, #000;
    overflow: hidden;
}

.cw-sx-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 60%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.cw-sx-hero__inner {
    position: relative;
    z-index: 1;
}

.cw-sx-hero__pretitle {
    margin: 0 0 12px;
    color: var(--cw-yellow);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cw-sx-hero__heading {
    font-size: 48px;
    line-height: 1.08;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px;
    max-width: 760px;
}

.cw-sx-hero__body {
    max-width: 700px;
    margin: 0 0 28px;
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.6;
}

.cw-sx-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cw-sx-hero__stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 720px;
}

.cw-sx-hero__stats li {
    background: var(--cw-yellow);
    color: var(--cw-ink);
    padding: 14px 18px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cw-sx-hero__stat-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.cw-sx-hero__stat-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(11,18,32,0.78);
    margin-top: 2px;
}

/* ───────── PAIN POINTS ───────── */
.cw-sx-pain { background: #ffffff; padding: 88px 0; }

.cw-sx-pain__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.cw-sx-pain__card .cw-sx-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--cw-ink);
    line-height: 1.3;
}

.cw-sx-pain__card .cw-sx-card__body {
    margin: 0;
    color: var(--cw-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ───────── SERVICES GRID ───────── */
.cw-sx-services { background: var(--cw-bg-soft); padding: 88px 0; }

.cw-sx-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.cw-sx-services__card .cw-sx-card__title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--cw-ink);
    line-height: 1.25;
}

.cw-sx-services__card .cw-sx-card__body {
    margin: 0 0 14px;
    color: var(--cw-muted);
    font-size: 14px;
    line-height: 1.5;
}

.cw-sx-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cw-sx-bullets li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--cw-ink-2);
}

.cw-sx-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--cw-yellow);
    border-radius: 50%;
}

.cw-sx-bullets li + li { margin-top: 6px; }

/* ───────── INDUSTRIES ───────── */
.cw-sx-industries { background: #ffffff; padding: 88px 0; }

.cw-sx-industries__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.cw-sx-industry {
    background: var(--cw-bg-card);
    border: 1px solid var(--cw-line);
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
}

.cw-sx-industry .cw-sx-icon-tile { margin: 0 auto 14px; }

.cw-sx-industry__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--cw-ink);
}

.cw-sx-industry__desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--cw-muted);
}

/* ───────── PROOF / TRUST ───────── */
.cw-sx-proof {
    background: var(--cw-dark);
    color: #ffffff;
    padding: 88px 0;
}

.cw-sx-proof__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cw-sx-testimonial {
    background: var(--cw-dark-2);
    border-radius: 12px;
    padding: 24px;
    color: rgba(255,255,255,0.92);
}

.cw-sx-testimonial__stars {
    display: inline-flex;
    gap: 2px;
    color: var(--cw-yellow);
    margin-bottom: 14px;
}

.cw-sx-testimonial__quote {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.86);
}

.cw-sx-testimonial__attr {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cw-sx-testimonial__attr strong { color: #ffffff; font-weight: 700; }

.cw-sx-proof__certs {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}

.cw-sx-proof__certs-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #ffffff;
}

.cw-sx-proof__certs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    color: rgba(255,255,255,0.82);
    font-size: 14px;
}

.cw-sx-proof__certs-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cw-sx-proof__certs-icon {
    color: var(--cw-yellow);
    display: inline-flex;
    align-items: center;
}

/* ───────── FAQ ───────── */
.cw-sx-faq { background: var(--cw-bg-soft); padding: 88px 0; }

.cw-sx-faq__list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The .cw-faq-item / .cw-faq-question / .cw-faq-answer base styles come from faq.css.
   Tweak them lightly here so the accordion matches this section's design. */
.cw-sx-faq .cw-faq-item {
    background: #ffffff;
    border: 1px solid var(--cw-line);
    border-radius: 10px;
    overflow: hidden;
}

.cw-sx-faq .cw-faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 18px 56px 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cw-ink);
    position: relative;
    cursor: pointer;
}

.cw-sx-faq .cw-faq-question::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--cw-muted-2);
    line-height: 1;
}

.cw-sx-faq .cw-faq-question[aria-expanded="true"]::after {
    content: "–";
    color: var(--cw-yellow);
}

.cw-sx-faq .cw-faq-answer {
    padding: 0 22px 18px;
    color: var(--cw-muted);
    font-size: 14px;
    line-height: 1.6;
}

.cw-sx-faq .cw-faq-answer p { margin: 0 0 8px; }

/* ───────── NEARBY ───────── */
.cw-sx-nearby { background: #ffffff; padding: 88px 0; }

.cw-sx-nearby__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cw-sx-nearby__card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
    background: var(--cw-bg-card);
    border: 1px solid var(--cw-line);
    border-radius: 12px;
    color: var(--cw-ink);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cw-sx-nearby__card:hover {
    border-color: var(--cw-ink);
    box-shadow: 0 10px 22px -16px rgba(15,23,42,0.18);
    transform: translateY(-1px);
}

.cw-sx-nearby__icon {
    color: var(--cw-yellow);
    flex-shrink: 0;
    margin-top: 3px;
}

.cw-sx-nearby__card > div { flex: 1 1 auto; min-width: 0; }

.cw-sx-nearby__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--cw-ink);
}

.cw-sx-nearby__sub {
    margin: 0 0 8px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--cw-muted);
}

.cw-sx-nearby__distance {
    margin: 0;
    font-size: 12.5px;
    color: var(--cw-muted-2);
}

.cw-sx-nearby__arrow {
    color: var(--cw-muted-2);
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.cw-sx-nearby__card:hover .cw-sx-nearby__arrow {
    color: var(--cw-ink);
    transform: translateX(2px);
}

.cw-sx-nearby__viewall {
    text-align: center;
    margin: 36px 0 0;
}

.cw-sx-nearby__viewall a {
    color: var(--cw-yellow-2);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.cw-sx-nearby__viewall a:hover { color: var(--cw-ink); }

/* ───────── FINAL CTA ───────── */
.cw-sx-cta {
    background: var(--cw-dark);
    color: #ffffff;
    padding: 80px 0;
}

.cw-sx-cta__inner { text-align: center; }

.cw-sx-cta__heading {
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 16px;
    color: #ffffff;
}

.cw-sx-cta__sub {
    margin: 0 auto 32px;
    max-width: 720px;
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    line-height: 1.6;
}

.cw-sx-cta__buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cw-sx-cta__stats {
    list-style: none;
    padding: 32px 0 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 64px;
    border-top: 1px solid rgba(255,255,255,0.12);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.cw-sx-cta__stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cw-sx-cta__stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--cw-yellow);
    line-height: 1.1;
}

.cw-sx-cta__stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    margin-top: 6px;
}

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
    .cw-sx-services__grid,
    .cw-sx-proof__grid,
    .cw-sx-nearby__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cw-sx-industries__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .cw-sx-hero { padding: 64px 0 48px; }
    .cw-sx-hero__heading { font-size: 36px; }
    .cw-sx-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
    .cw-sx-pain__grid { grid-template-columns: 1fr; }
    .cw-sx-services__grid, .cw-sx-proof__grid, .cw-sx-nearby__grid { grid-template-columns: 1fr; }
    .cw-sx-industries__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cw-sx-cta__heading { font-size: 28px; }
    .cw-sx-cta__stats { gap: 36px; }
    .cw-sx-cta__stat-value { font-size: 26px; }
    .cw-sx-h2 { font-size: 26px; }
    .cw-sx-pain, .cw-sx-services, .cw-sx-industries, .cw-sx-proof, .cw-sx-faq, .cw-sx-nearby, .cw-sx-cta { padding: 64px 0; }
}

@media (max-width: 520px) {
    .cw-sx-container { padding: 0 20px; }
    .cw-sx-hero__heading { font-size: 30px; }
    .cw-sx-hero__stats { grid-template-columns: 1fr; }
    .cw-sx-industries__grid { grid-template-columns: 1fr; }
}
