/*
 * ms-wds-single.css
 * Single template styles for web-digital-services CPT
 * Design: polished / service-landing-page — distinct from repair and services CPT templates
 * Palette: navy #0E3441 dominant, cyan #00B4D8 accent, white content areas
 * Built: 2026-04-01
 */

/* ── Reset & base ──────────────────────────────────────────────────────────── */
.wds-single { font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif; color: #1a2332; }
.wds-single *, .wds-single *::before, .wds-single *::after { box-sizing: border-box; }
.wds-s-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.wds-s-hero {
    background: #0E3441;
    border-top: 4px solid #00B4D8;
    padding: 52px 0 0;
    overflow: hidden;
    position: relative;
}
.wds-s-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 90% 50%, rgba(0,180,216,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.wds-s-breadcrumb {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: rgba(255,255,255,0.55);
    margin-bottom: 28px; flex-wrap: wrap;
}
.wds-s-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color .15s; }
.wds-s-breadcrumb a:hover { color: #00B4D8; }
.wds-s-breadcrumb span[aria-hidden] { color: rgba(255,255,255,0.3); }

.wds-s-hero-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: flex-end;
}
.wds-s-hero-text { padding-bottom: 52px; }

/* Pill badge */
.wds-s-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,180,216,0.15);
    border: 1px solid rgba(0,180,216,0.3);
    color: #00B4D8;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 50px;
    margin-bottom: 20px;
}
.wds-s-pill-icon { display: flex; align-items: center; }
.wds-s-pill-icon svg { width: 14px; height: 14px; }

/* H1 */
.wds-s-h1 {
    font-size: clamp(28px, 3.8vw, 48px) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.12;
    margin: 0 0 18px !important;
    letter-spacing: -0.02em;
    font-family: 'Arial Black', 'Gill Sans', sans-serif;
}

/* Lead paragraph from meta description */
.wds-s-lead {
    font-size: 17px;
    color: rgba(255,255,255,0.82) !important;
    line-height: 1.75;
    margin: 0 0 32px;
    max-width: 560px;
}

/* Hero action buttons */
.wds-s-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.wds-s-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: #00B4D8; color: #fff !important;
    font-size: 15px; font-weight: 700;
    padding: 13px 26px; border-radius: 10px;
    text-decoration: none !important;
    transition: background .18s, transform .15s;
    white-space: nowrap;
}
.wds-s-btn-primary:hover { background: #009AB8; transform: translateY(-1px); }
.wds-s-btn-primary svg { flex-shrink: 0; }

.wds-s-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #fff !important;
    font-size: 15px; font-weight: 600;
    padding: 12px 22px; border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.28);
    text-decoration: none !important;
    transition: border-color .18s;
    white-space: nowrap;
}
.wds-s-btn-secondary:hover { border-color: rgba(255,255,255,0.65); }

/* Hero image — flush to bottom of hero */
.wds-s-hero-img {
    align-self: flex-end;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.3);
    aspect-ratio: 4/3;
}
.wds-s-hero-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    border-radius: 14px 14px 0 0;
}
.wds-s-hero-img--placeholder {
    background: linear-gradient(145deg, #1a4a5c 0%, #0a2530 100%);
    display: flex; align-items: center; justify-content: center;
    min-height: 260px;
}
.wds-s-hero-icon { color: rgba(0,180,216,0.5); }
.wds-s-hero-icon svg { width: 80px; height: 80px; }

/* ── Body (content + sidebar) ───────────────────────────────────────────────── */
.wds-s-body { background: #f0f4f6; padding: 56px 0 64px; }
.wds-s-body-inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
}

/* Article content */
.wds-s-article {
    background: #fff;
    border-radius: 14px;
    padding: 40px 44px;
    box-shadow: 0 2px 16px rgba(14,52,65,0.06);
    min-width: 0;
}
.wds-s-article h2 {
    font-size: clamp(20px, 2.2vw, 26px) !important;
    font-weight: 800 !important;
    color: #0E3441 !important;
    margin: 0 0 14px !important;
    line-height: 1.25;
    font-family: 'Arial Black', sans-serif;
}
.wds-s-article h2:not(:first-child) { margin-top: 36px !important; padding-top: 28px; border-top: 1px solid #e8edf0; }
.wds-s-article h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0E3441 !important;
    margin: 24px 0 10px !important;
}
.wds-s-article p {
    font-size: 16px !important;
    color: #374151 !important;
    line-height: 1.8 !important;
    margin: 0 0 18px !important;
}
.wds-s-article ul, .wds-s-article ol {
    padding-left: 22px;
    margin: 0 0 18px !important;
}
.wds-s-article li {
    font-size: 16px !important;
    color: #374151 !important;
    line-height: 1.7 !important;
    margin-bottom: 7px;
}
.wds-s-article a { color: #00B4D8; }
.wds-s-article strong { color: #0E3441; }

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.wds-s-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }

/* Contact / quote card */
.wds-s-contact-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(14,52,65,0.10);
}
.wds-s-contact-card-header {
    background: #0E3441;
    padding: 20px 22px;
    display: flex; align-items: flex-start; gap: 14px;
}
.wds-s-contact-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: rgba(0,180,216,0.18);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #00B4D8;
}
.wds-s-contact-icon svg { width: 20px; height: 20px; }
.wds-s-contact-card-header h3 {
    margin: 0 0 3px !important;
    font-size: 15px !important; font-weight: 700 !important;
    color: #fff !important; line-height: 1.3 !important;
}
.wds-s-contact-card-header p {
    margin: 0 !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.65) !important;
}
.wds-s-contact-card-body { padding: 20px 22px; }
.wds-s-contact-intro {
    font-size: 14px !important; color: #4b5563 !important;
    line-height: 1.6 !important; margin: 0 0 16px !important;
}
.wds-s-card-btn {
    display: block; text-align: center;
    background: #00B4D8; color: #fff !important;
    font-size: 15px; font-weight: 700;
    padding: 12px 16px; border-radius: 10px;
    text-decoration: none !important;
    transition: background .18s;
}
.wds-s-card-btn:hover { background: #009AB8; }
.wds-s-card-or {
    text-align: center;
    font-size: 13px !important; color: #6b7280 !important;
    margin: 10px 0 0 !important;
}
.wds-s-card-or a { color: #00B4D8 !important; font-weight: 700; text-decoration: none !important; }
.wds-s-contact-card-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid #f0f4f6;
    display: flex; flex-direction: column; gap: 9px;
}
.wds-s-trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #374151; font-weight: 600;
}
.wds-s-trust-item svg { color: #00B4D8; flex-shrink: 0; }

/* Other services list */
.wds-s-other-services {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 12px rgba(14,52,65,0.06);
}
.wds-s-other-services h4 {
    font-size: 13px !important; font-weight: 700 !important;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: #0E3441 !important; margin: 0 0 14px !important;
}
.wds-s-other-services ul { list-style: none; margin: 0 !important; padding: 0 !important; }
.wds-s-other-services li { border-bottom: 1px solid #f0f4f6; }
.wds-s-other-services li:last-child { border-bottom: none; }
.wds-s-other-services li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0;
    font-size: 14px; color: #1a2332 !important;
    text-decoration: none !important; font-weight: 600;
    transition: color .15s;
}
.wds-s-other-services li a:hover { color: #00B4D8 !important; }
.wds-s-other-icon { width: 28px; height: 28px; flex-shrink: 0; color: #00B4D8; display: flex; align-items: center; justify-content: center; }
.wds-s-other-icon svg { width: 16px; height: 16px; }
.wds-s-all-link {
    display: block; text-align: center;
    font-size: 13px; font-weight: 700; color: #00B4D8 !important;
    text-decoration: none !important;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid #f0f4f6;
}
.wds-s-all-link:hover { text-decoration: underline !important; }

/* ── Related services strip ──────────────────────────────────────────────────── */
.wds-s-related { background: #fff; padding: 64px 0; }
.wds-s-section-label {
    font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #00B4D8;
    margin: 0 0 8px;
}
.wds-s-section-title {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 800; color: #0E3441;
    margin: 0 0 40px;
    font-family: 'Arial Black', sans-serif;
}
.wds-s-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}
.wds-s-related-card {
    border: 1.5px solid #d1d5db;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    display: flex; flex-direction: column;
    transition: border-color .2s, box-shadow .2s, transform .18s;
    background: #fff;
}
.wds-s-related-card:hover {
    border-color: #00B4D8;
    box-shadow: 0 6px 28px rgba(0,180,216,0.13);
    transform: translateY(-3px);
}
.wds-s-related-img {
    width: 100%; aspect-ratio: 16/9;
    background-size: cover; background-position: center;
}
.wds-s-related-img--placeholder {
    background: linear-gradient(135deg, #e0f7fc 0%, #0E3441 100%);
    display: flex; align-items: center; justify-content: center;
}
.wds-s-related-img--placeholder span { color: rgba(255,255,255,0.5); }
.wds-s-related-img--placeholder svg { width: 40px; height: 40px; }
.wds-s-related-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.wds-s-related-type {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #00B4D8;
}
.wds-s-related-type svg { width: 12px; height: 12px; }
.wds-s-related-body h3 {
    font-size: 16px !important; font-weight: 700 !important;
    color: #0E3441 !important; margin: 0 !important; line-height: 1.35;
}
.wds-s-related-link { font-size: 13px; font-weight: 700; color: #00B4D8; margin-top: auto; }
.wds-s-related-footer { text-align: center; }
.wds-s-btn-outline {
    display: inline-flex; align-items: center;
    background: #fff; color: #0E3441 !important;
    border: 2px solid #0E3441;
    font-size: 15px; font-weight: 700;
    padding: 12px 28px; border-radius: 10px;
    text-decoration: none !important;
    transition: background .18s;
}
.wds-s-btn-outline:hover { background: #f0f4f6; }

/* ── CTA Banner ──────────────────────────────────────────────────────────────── */
.wds-s-cta {
    background: #0E3441;
    border-top: 1px solid rgba(0,180,216,0.2);
    padding: 60px 0;
}
.wds-s-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.wds-s-cta-text { flex: 1; min-width: 260px; }
.wds-s-cta-text h2 {
    font-size: clamp(22px, 2.5vw, 32px) !important;
    font-weight: 800 !important; color: #fff !important;
    margin: 0 0 10px !important;
    font-family: 'Arial Black', sans-serif;
}
.wds-s-cta-text p {
    font-size: 16px !important;
    color: rgba(255,255,255,0.75) !important;
    line-height: 1.7 !important; margin: 0 !important;
    max-width: 520px;
}
.wds-s-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.wds-s-btn-secondary--light {
    border-color: rgba(255,255,255,0.28);
    color: #fff !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .wds-s-hero-inner { grid-template-columns: 1fr 340px; gap: 36px; }
}
@media (max-width: 860px) {
    .wds-s-hero-inner { grid-template-columns: 1fr; }
    .wds-s-hero-text  { padding-bottom: 32px; }
    .wds-s-hero-img   { display: none; }
    .wds-s-body-inner { grid-template-columns: 1fr; }
    .wds-s-sidebar    { position: static; }
    .wds-s-related-grid { grid-template-columns: 1fr 1fr; }
    .wds-s-cta-inner  { flex-direction: column; text-align: center; }
    .wds-s-cta-actions { justify-content: center; }
}
@media (max-width: 560px) {
    .wds-s-article { padding: 28px 20px; }
    .wds-s-related-grid { grid-template-columns: 1fr; }
    .wds-s-hero-actions { flex-direction: column; }
    .wds-s-btn-primary, .wds-s-btn-secondary { justify-content: center; }
}
