/* ============================================
   DigiSilta Widget Styles — v2
   Bold · Dark · Industrial
   ============================================
   Design reference: Kärkitekniikka, Parker HVAC, Aireco
   Dark-first, orange accent, Poppins headings.
   Tokens wired to Elementor Global Colors (Site Settings).
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ===========================================
   TOKENS
   Globaali tumma/vaalea: body.digisilta-theme--dark | --light (ACF: site_color_scheme)
   =========================================== */
:root {
    --ds-color-primary: #e8742a;
    --ds-color-secondary: #64748b;
    --ds-color-text: #ffffff;
    --ds-color-accent: #2dd4bf;

    --ds-color-primary-dark: #c9601e;
    --ds-color-primary-soft: rgba(232, 116, 42, 0.14);
    --ds-color-primary-a30: rgba(232, 116, 42, 0.32);
    --ds-color-primary-a40: rgba(232, 116, 42, 0.42);
    --ds-color-primary-a50: rgba(232, 116, 42, 0.52);

    --ds-dark: #111320;
    --ds-dark-card: #181b2e;
    --ds-dark-surface: #1e2236;
    --ds-dark-border: rgba(255, 255, 255, 0.06);
    --ds-dark-border-strong: rgba(255, 255, 255, 0.1);

    --ds-text-on-dark: #ffffff;
    --ds-text-muted-on-dark: rgba(255, 255, 255, 0.68);
    --ds-text-subtle-on-dark: rgba(255, 255, 255, 0.42);

    --ds-warm-bg: #f5f0ea;
    --ds-warm-bg-alt: #eee8df;
    --ds-text-on-warm: #1a1d2e;
    --ds-text-muted-on-warm: #525566;

    --ds-page-bg: var(--ds-dark);
    --ds-on-surface: #ffffff;

    --ds-font-heading: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --ds-font-body: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --ds-max-width: 1200px;
    --ds-radius: 10px;
    --ds-radius-lg: 16px;
    --ds-radius-xl: 22px;
    --ds-section-padding: clamp(4.5rem, 10vw, 7rem) 0;

    --ds-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --ds-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
    --ds-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.4);
    --ds-ring: 0 0 0 3px rgba(232, 116, 42, 0.45);
}

/* Tumma teema: yhtenäinen sivun tausta + ei vaaleita “vuoropareja” */
body.digisilta-theme--dark {
    --ds-page-bg: var(--ds-dark);
    --ds-on-surface: #ffffff;
    --ds-warm-bg: var(--ds-dark);
    --ds-warm-bg-alt: var(--ds-dark-card);
}

/* Vaalea teema: koko sivu vaalea, kortit ja osiot vaaleita */
body.digisilta-theme--light {
    --ds-page-bg: #f5f0ea;
    --ds-on-surface: #1a1d2e;
    --ds-dark: #f5f0ea;
    --ds-dark-card: #ffffff;
    --ds-dark-surface: #ebe4d9;
    --ds-dark-border: rgba(26, 29, 46, 0.1);
    --ds-dark-border-strong: rgba(26, 29, 46, 0.16);
    --ds-warm-bg: #f5f0ea;
    --ds-warm-bg-alt: #ebe4d9;
    --ds-text-muted-on-dark: var(--ds-text-muted-on-warm);
    --ds-text-subtle-on-dark: rgba(26, 29, 46, 0.45);
    --ds-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --ds-shadow-md: 0 8px 28px rgba(0, 0, 0, 0.1);
    --ds-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
}

body {
    background-color: var(--ds-page-bg) !important;
    color: var(--ds-on-surface);
    min-height: 100vh;
}

html:has(body.digisilta-theme--dark) {
    background-color: #111320 !important;
}

html:has(body.digisilta-theme--light) {
    background-color: #f5f0ea !important;
}

/* Hello Elementor reset.css: body ja site-main taustat */
body.digisilta-theme--dark #content,
body.digisilta-theme--dark .site-main {
    background-color: transparent !important;
}

body.digisilta-theme--light #content,
body.digisilta-theme--light .site-main {
    background-color: transparent !important;
}

/* ===========================================
   Hello Elementor reset.css overrides
   reset.css ladataan JÄLKEEN widgets.css:n → body-prefiksi + !important
   =========================================== */

/* body bg + text color (#fff / #333) */
body[class*="digisilta-theme--"] {
    background-color: var(--ds-page-bg) !important;
    color: var(--ds-on-surface) !important;
}

/* a { color: #c36 } → teeman primary */
body[class*="digisilta-theme--"] a {
    color: inherit;
}

body[class*="digisilta-theme--"] a:hover {
    color: inherit;
}

/* [type=button],[type=submit],button { border: 1px solid #c36; color: #c36 } */
body[class*="digisilta-theme--"] button,
body[class*="digisilta-theme--"] [type="button"],
body[class*="digisilta-theme--"] [type="submit"],
body[class*="digisilta-theme--"] [type="reset"] {
    background-color: transparent !important;
    border: 1px solid var(--ds-dark-border-strong) !important;
    color: inherit !important;
}

/* button:hover { background-color: #c36; color: #fff } */
body[class*="digisilta-theme--"] button:hover,
body[class*="digisilta-theme--"] [type="button"]:hover,
body[class*="digisilta-theme--"] [type="submit"]:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--ds-dark-border-strong) !important;
    color: inherit !important;
}

/* DS-napit: pakota oikeat värit kaiken yli */
body[class*="digisilta-theme--"] .ds-btn--primary,
body[class*="digisilta-theme--"] .ds-btn--primary[type="submit"] {
    background: var(--ds-color-primary) !important;
    color: #ffffff !important;
    border-color: var(--ds-color-primary) !important;
}

body[class*="digisilta-theme--"] .ds-btn--primary:hover {
    background: var(--ds-color-primary-dark) !important;
    border-color: var(--ds-color-primary-dark) !important;
    color: #ffffff !important;
}

body[class*="digisilta-theme--"] .ds-btn--secondary {
    background: transparent !important;
    color: var(--ds-on-surface) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

body[class*="digisilta-theme--"] .ds-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--ds-on-surface) !important;
    color: var(--ds-on-surface) !important;
}

/* Soittopyyntö submit */
body[class*="digisilta-theme--"] .ds-callreq__submit.ds-btn {
    background: var(--ds-color-primary) !important;
    color: #ffffff !important;
    border-color: var(--ds-color-primary) !important;
}

/* Footer soittopyyntö-nuoli */
body[class*="digisilta-theme--"] .ds-footer__callform-submit {
    background: var(--ds-color-accent) !important;
    color: #ffffff !important;
    border: none !important;
}

/* Floating bubble trigger */
body[class*="digisilta-theme--"] .ds-bubble__trigger {
    background: var(--ds-color-accent) !important;
    color: #ffffff !important;
    border: none !important;
}

/* Floating bubble close */
body[class*="digisilta-theme--"] .ds-bubble__close {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border: none !important;
}

/* Floating bubble action buttons */
body[class*="digisilta-theme--"] .ds-bubble__action {
    border: none !important;
}

/* Input/textarea border (#666 → teeman border) */
body[class*="digisilta-theme--dark"] input[type="text"],
body[class*="digisilta-theme--dark"] input[type="email"],
body[class*="digisilta-theme--dark"] input[type="tel"],
body[class*="digisilta-theme--dark"] input[type="url"],
body[class*="digisilta-theme--dark"] input[type="search"],
body[class*="digisilta-theme--dark"] input[type="number"],
body[class*="digisilta-theme--dark"] textarea,
body[class*="digisilta-theme--dark"] select {
    background: var(--ds-dark-surface) !important;
    border-color: var(--ds-dark-border-strong) !important;
    color: var(--ds-on-surface) !important;
}

/* Headings (#inherit → teeman on-surface) */
body[class*="digisilta-theme--dark"] h1,
body[class*="digisilta-theme--dark"] h2,
body[class*="digisilta-theme--dark"] h3,
body[class*="digisilta-theme--dark"] h4,
body[class*="digisilta-theme--dark"] h5,
body[class*="digisilta-theme--dark"] h6 {
    color: var(--ds-on-surface);
}

/* DigiSilta-widgetit: full-width sisällä Elementor-containerissa */
[class*="elementor-widget-digisilta-"] {
    width: 100%;
}

/* DigiSilta-widgettien omat section-elementit: full-bleed tausta mutta rajoitettu sisältö.
   Widgetit hoitavat oman max-width/paddingin __inner-elementeissään. */
[class*="elementor-widget-digisilta-"] > .elementor-widget-container {
    max-width: 1600px;
    margin: 0 auto;
}

/* ===========================================
   SHARED LAYOUT
   =========================================== */
.ds-hero__inner,
.ds-services__inner,
.ds-cta__inner,
.ds-twi__inner,
.ds-testimonials__inner,
.ds-contact__inner,
.ds-faq__inner,
.ds-footer__inner,
.ds-logocloud__inner,
.ds-logocarousel__inner,
.ds-pricing__inner,
.ds-stats__inner,
.ds-process__inner,
.ds-team__inner,
.ds-features__inner,
.ds-promises__inner,
.ds-callreq__inner {
    max-width: var(--ds-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.25rem, 4vw, 2rem);
    padding-right: clamp(1.25rem, 4vw, 2rem);
}

/* ===========================================
   BUTTONS
   =========================================== */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.85rem 2rem;
    border-radius: var(--ds-radius);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: var(--ds-font-body);
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.2;
}

.ds-btn:focus-visible {
    outline: none;
    box-shadow: var(--ds-ring);
}

.ds-btn--primary {
    background: var(--ds-color-primary);
    color: #ffffff;
    border-color: var(--ds-color-primary);
}

.ds-btn--primary:hover {
    background: var(--ds-color-primary-dark);
    border-color: var(--ds-color-primary-dark);
    color: #ffffff;
    box-shadow: 0 6px 24px color-mix(in srgb, var(--ds-color-primary) 40%, transparent);
    transform: translateY(-2px);
}

.ds-btn--primary:active {
    color: #ffffff;
    transform: translateY(0);
}

.ds-btn--secondary {
    background: transparent;
    color: var(--ds-on-surface);
    border-color: rgba(255, 255, 255, 0.5);
}

.ds-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ds-on-surface);
    color: var(--ds-on-surface);
}

.ds-hero .ds-btn--secondary {
    background: transparent;
    color: var(--ds-on-surface);
    border-color: var(--ds-color-primary);
}

.ds-hero .ds-btn--secondary:hover {
    background: var(--ds-color-primary);
    border-color: var(--ds-color-primary);
    color: #ffffff;
}

.ds-btn--header-cta {
    padding: 0.55rem 1.5rem;
    min-height: 44px;
    font-size: 0.8125rem;
    border-radius: var(--ds-radius);
}

/* ===========================================
   HERO — BANNER (full-width background image)
   =========================================== */
.ds-hero {
    position: relative;
    min-height: min(78vh, 960px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--ds-on-surface);
    font-family: var(--ds-font-body);
    isolation: isolate;
    max-width: 1600px;
    margin: 0 auto;
}

.ds-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        170deg,
        rgba(22, 25, 40, 0.4) 0%,
        rgba(22, 25, 40, 0.7) 40%,
        rgba(22, 25, 40, 0.92) 100%
    );
}

.ds-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.ds-hero__content {
    text-align: center;
    padding: var(--ds-section-padding);
    max-width: 48rem;
    margin: 0 auto;
}

.ds-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ds-color-primary);
    margin: 0 0 1.25rem;
}

.ds-hero__heading {
    font-family: var(--ds-font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    text-wrap: balance;
}

.ds-hero__accent {
    color: var(--ds-color-primary);
}

.ds-hero__intro {
    font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
    line-height: 1.7;
    margin: 0 0 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.ds-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ===========================================
   HERO — SPLIT (dark text + image)
   Kärkitekniikka-tyyli: tumma vasen, kuva oikea
   =========================================== */
.ds-hero--split {
    min-height: min(85vh, 960px);
    display: block;
    background: linear-gradient(
        165deg,
        var(--ds-dark) 0%,
        color-mix(in srgb, var(--ds-dark) 92%, #000000) 100%
    );
    color: var(--ds-on-surface);
}

.ds-hero--split .ds-hero__overlay {
    display: none;
}

.ds-hero__split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    min-height: min(85vh, 960px);
    max-width: none;
    margin: 0;
    align-items: stretch;
}

.ds-hero__split-text {
    display: flex;
    align-items: center;
    padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4.5rem);
}

.ds-hero__split-text-inner {
    max-width: 36rem;
}

.ds-hero--split .ds-hero__heading {
    text-align: left;
    text-shadow: none;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.ds-hero--split .ds-hero__eyebrow {
    margin-bottom: 1.25rem;
}

.ds-hero--split .ds-hero__intro {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    color: var(--ds-text-muted-on-dark);
    font-size: clamp(1rem, 1.8vw, 1.125rem);
}

.ds-hero--split .ds-hero__buttons {
    justify-content: flex-start;
}

.ds-hero__split-visual {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}

.ds-hero__split-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

@media (max-width: 900px) {
    .ds-hero__split {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .ds-hero__split-visual {
        order: -1;
        min-height: min(45vh, 400px);
    }
    .ds-hero__split-text {
        padding: clamp(2.5rem, 8vw, 4rem) clamp(1.5rem, 4vw, 2rem);
    }
}

/* ===========================================
   HERO SPLIT (teksti + kuva vierekkäin)
   =========================================== */
.ds-herosplit {
    padding: clamp(4rem, 8vw, 6rem) 0;
    font-family: var(--ds-font-body);
    overflow: hidden;
}

.ds-herosplit__inner {
    max-width: var(--ds-max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (max-width: 860px) {
    .ds-herosplit__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.ds-herosplit__text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ds-herosplit__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ds-color-primary);
}

.ds-herosplit__heading {
    margin: 0 0 1rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ds-on-surface);
}

.ds-herosplit__accent {
    color: var(--ds-color-primary);
}

.ds-herosplit__subtitle {
    margin: 0 0 1.25rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--ds-text-muted-on-dark);
    line-height: 1.4;
}

.ds-herosplit__intro {
    margin: 0 0 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--ds-text-muted-on-dark);
    max-width: 32rem;
}

.ds-herosplit__intro p {
    margin: 0 0 0.75rem;
}

.ds-herosplit__intro p:last-child {
    margin-bottom: 0;
}

.ds-herosplit__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.ds-herosplit__visual {
    position: relative;
    min-height: 400px;
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    align-self: stretch;
}

.ds-herosplit__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 860px) {
    .ds-herosplit__visual {
        order: -1;
    }

    .ds-herosplit__img {
        max-height: 360px;
        object-fit: cover;
    }
}

/* ===========================================
   PROMISES (lupaukset: otsikko + CTA | lista)
   =========================================== */
.ds-promises {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    font-family: var(--ds-font-body);
}

.ds-promises__inner {
    max-width: var(--ds-max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (max-width: 860px) {
    .ds-promises__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.ds-promises__left {
    position: sticky;
    top: 6rem;
}

@media (max-width: 860px) {
    .ds-promises__left {
        position: static;
    }
}

.ds-promises__heading {
    margin: 0 0 1.75rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ds-on-surface);
}

.ds-promises__accent {
    color: var(--ds-color-primary);
}

.ds-promises__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ds-promises__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ds-promises__item-arrow {
    display: flex;
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--ds-color-primary);
}

.ds-promises__item-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ds-promises__item-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ds-on-surface);
}

.ds-promises__item-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--ds-text-muted-on-dark);
}

/* ===========================================
   SERVICES GRID
   =========================================== */
.ds-services {
    padding: var(--ds-section-padding);
    font-family: var(--ds-font-body);
    background: var(--ds-dark);
    color: var(--ds-on-surface);
}

.ds-services__heading {
    font-family: var(--ds-font-heading);
    text-align: center;
    margin: 0 auto 0.625rem;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ds-on-surface);
    max-width: 36rem;
}

.ds-services__sub {
    text-align: center;
    color: var(--ds-text-muted-on-dark);
    margin: 0 auto 3.5rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    max-width: 38rem;
    font-weight: 400;
}

.ds-services__grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

.ds-services__grid--cols-1 { grid-template-columns: 1fr; }
.ds-services__grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-services__grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-services__grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .ds-services__grid--cols-4,
    .ds-services__grid--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .ds-services__grid--cols-1,
    .ds-services__grid--cols-2,
    .ds-services__grid--cols-3,
    .ds-services__grid--cols-4 { grid-template-columns: 1fr; }
}

.ds-services__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.75rem;
    border-radius: var(--ds-radius-lg);
    background: var(--ds-dark-card);
    border: 1px solid var(--ds-dark-border-strong);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

a.ds-services__card:hover {
    border-color: var(--ds-color-primary-a50);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-6px);
}

.ds-services__icon {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    line-height: 1;
}

.ds-services__icon svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: currentColor !important;
}

.ds-services__icon i {
    color: inherit !important;
}

.ds-services__title {
    font-family: var(--ds-font-heading);
    margin: 0 0 0.625rem;
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ds-on-surface);
}

.ds-services__desc {
    margin: 0;
    color: var(--ds-text-muted-on-dark);
    font-size: 0.9375rem;
    line-height: 1.7;
    flex: 1;
    font-weight: 400;
}

/* ===========================================
   CTA BANNER
   =========================================== */
.ds-cta {
    padding: var(--ds-section-padding);
    font-family: var(--ds-font-body);
}

.ds-cta__inner {
    text-align: center;
    border-radius: var(--ds-radius-xl);
    padding: clamp(3.5rem, 8vw, 5rem) clamp(2rem, 5vw, 3.5rem);
    max-width: min(56rem, 100%);
    margin-left: auto;
    margin-right: auto;
}

.ds-cta__content {
    margin-bottom: 2rem;
}

.ds-cta__heading {
    font-family: var(--ds-font-heading);
    margin: 0 0 1rem;
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

.ds-cta__text {
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    max-width: 40rem;
    font-weight: 400;
}

/* Primary (orange band) */
.ds-cta--primary .ds-cta__inner {
    background: linear-gradient(135deg, var(--ds-color-primary) 0%, var(--ds-color-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 12px 40px rgba(232, 116, 42, 0.3);
}

.ds-cta--primary .ds-cta__heading,
.ds-cta--primary .ds-cta__text {
    color: #ffffff;
}

.ds-cta--primary .ds-cta__text {
    opacity: 0.92;
}

/* Dark card */
.ds-cta--dark {
    background: var(--ds-dark);
}

.ds-cta--dark .ds-cta__inner {
    background: var(--ds-dark-card);
    color: var(--ds-on-surface);
    border: 1px solid var(--ds-dark-border);
    box-shadow: var(--ds-shadow-lg);
}

.ds-cta--dark .ds-cta__heading,
.ds-cta--dark .ds-cta__text {
    color: var(--ds-on-surface);
}

.ds-cta--dark .ds-cta__text {
    color: var(--ds-text-muted-on-dark);
}

/* Light card */
.ds-cta--light .ds-cta__inner {
    background: var(--ds-warm-bg);
    color: var(--ds-on-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ds-cta--light .ds-cta__heading {
    color: var(--ds-on-surface);
}

.ds-cta--light .ds-cta__text {
    color: var(--ds-text-muted-on-dark);
}

/* CTA button variants */
.ds-cta__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 1rem 2.5rem;
    border-radius: var(--ds-radius);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.ds-cta__action--on-primary {
    background: #ffffff !important;
    color: var(--ds-color-primary) !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.ds-cta__action--on-primary:hover {
    background: #1a1d2e !important;
    color: #ffffff !important;
    border-color: #1a1d2e !important;
    box-shadow: var(--ds-shadow-md);
    transform: translateY(-2px);
}

.ds-cta--dark .ds-cta__action.ds-btn--primary,
.ds-cta--light .ds-cta__action.ds-btn--primary {
    min-height: 56px;
    padding: 1rem 2.5rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    text-transform: uppercase;
}

/* ===========================================
   TEXT + IMAGE
   Kärkitekniikka style: alternating, bold
   =========================================== */
.ds-twi {
    padding: var(--ds-section-padding);
    font-family: var(--ds-font-body);
    background: var(--ds-dark);
    color: var(--ds-on-surface);
}

.ds-twi__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 4.5rem);
    align-items: center;
}

.ds-twi--img-left .ds-twi__content { order: 2; }
.ds-twi--img-left .ds-twi__media { order: 1; }
.ds-twi--img-right .ds-twi__content { order: 1; }
.ds-twi--img-right .ds-twi__media { order: 2; }

.ds-twi__media {
    position: relative;
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
}

.ds-twi__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow-lg);
}

.ds-twi__heading {
    font-family: var(--ds-font-heading);
    margin: 0 0 1.25rem;
    font-size: clamp(1.75rem, 3.2vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ds-on-surface);
}

.ds-twi__body {
    margin-bottom: 2rem;
    color: var(--ds-text-muted-on-dark);
    font-size: 1.0625rem;
    line-height: 1.75;
    font-weight: 400;
}

.ds-twi__body p:first-child { margin-top: 0; }
.ds-twi__body p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .ds-twi__inner { grid-template-columns: 1fr; }
    .ds-twi__media { order: -1 !important; }
}

/* ===========================================
   TESTIMONIALS
   =========================================== */
.ds-testimonials {
    padding: var(--ds-section-padding);
    background: var(--ds-warm-bg);
    color: var(--ds-on-surface);
    font-family: var(--ds-font-body);
}

.ds-testimonials__heading {
    text-align: center;
    font-family: var(--ds-font-heading);
    margin: 0 auto 3rem;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 36rem;
    color: var(--ds-on-surface);
}

.ds-testimonials__list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ds-testimonials__list--slider {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0.25rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.ds-testimonials__list--slider .ds-testimonials__card {
    flex: 0 0 min(360px, 88vw);
    scroll-snap-align: start;
}

.ds-testimonials__card {
    margin: 0;
    padding: 2rem;
    background: #ffffff;
    border-radius: var(--ds-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ds-testimonials__card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.ds-testimonials__card::before {
    content: "\201C";
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 3.5rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--ds-color-primary);
    opacity: 0.18;
    pointer-events: none;
}

.ds-testimonials__quote {
    margin: 0 0 1.5rem;
    font-style: normal;
    color: var(--ds-text-on-warm);
    font-size: 1.0625rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.ds-testimonials__meta {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.ds-testimonials__avatar {
    border-radius: 50%;
    object-fit: cover;
    width: 52px;
    height: 52px;
    border: 3px solid var(--ds-color-primary-a30);
}

.ds-testimonials__name {
    font-style: normal;
    font-weight: 700;
    display: block;
    font-size: 0.9375rem;
    color: var(--ds-text-on-warm);
}

.ds-testimonials__role {
    display: block;
    font-size: 0.8125rem;
    color: var(--ds-text-muted-on-warm);
    margin-top: 0.125rem;
    font-weight: 500;
}

/* ===========================================
   CONTACT SECTION
   =========================================== */
.ds-contact {
    padding: var(--ds-section-padding);
    font-family: var(--ds-font-body);
    background: var(--ds-dark);
    color: var(--ds-on-surface);
}

.ds-contact__heading {
    font-family: var(--ds-font-heading);
    margin: 0 0 0.625rem;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ds-on-surface);
}

.ds-contact__desc {
    color: var(--ds-text-muted-on-dark);
    margin: 0 0 2.5rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 42rem;
    font-weight: 400;
}

.ds-contact__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .ds-contact__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        align-items: start;
    }

    .ds-contact__details {
        grid-column: 1;
        grid-row: 1;
    }

    .ds-contact__map {
        grid-column: 2;
        grid-row: 1 / -1;
    }

    .ds-contact__form {
        grid-column: 1;
        grid-row: 2;
    }
}

.ds-contact__details {
    padding: 2rem;
    background: var(--ds-dark-card);
    border-radius: var(--ds-radius-lg);
    border: 1px solid var(--ds-dark-border);
}

.ds-contact__line {
    margin: 0 0 0.875rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ds-text-muted-on-dark);
}

.ds-contact__line strong {
    color: var(--ds-on-surface);
}

.ds-contact__line:last-child {
    margin-bottom: 0;
}

.ds-contact__link {
    color: var(--ds-color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.ds-contact__link:hover {
    border-bottom-color: var(--ds-color-primary);
}

.ds-contact__social {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.ds-contact__social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ds-on-surface);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ds-dark-border-strong);
    border-radius: var(--ds-radius);
    transition: all 0.2s ease;
}

.ds-contact__social-link:hover {
    border-color: var(--ds-color-primary-a50);
    background: var(--ds-color-primary-soft);
    color: var(--ds-color-primary);
}

.ds-contact__map {
    height: 100%;
}

.ds-contact__map .ds-contact__iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow-md);
}

.ds-contact__form {
    padding: 0.5rem 0;
}

.ds-contact__notice {
    margin: 0 0 1.25rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--ds-radius);
    font-size: 0.9375rem;
    line-height: 1.5;
    font-weight: 500;
}

.ds-contact__notice--success {
    background: rgba(120, 200, 120, 0.12);
    border: 1px solid rgba(120, 200, 120, 0.3);
    color: #a3e6a3;
}

.ds-contact__notice--error {
    background: rgba(255, 100, 100, 0.12);
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #fca5a5;
}

.ds-contact__theme-form {
    display: flex;
    flex-direction: column;
    max-width: 32rem;
}

.ds-contact__field {
    margin: 0 0 1.125rem;
}

.ds-contact__field--submit {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.ds-contact__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ds-text-muted-on-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ds-contact__input,
.ds-contact__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ds-on-surface);
    background: var(--ds-dark-surface);
    border: 1px solid var(--ds-dark-border-strong);
    border-radius: var(--ds-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-contact__textarea {
    min-height: 9rem;
    resize: vertical;
}

.ds-contact__input:focus,
.ds-contact__textarea:focus {
    outline: none;
    border-color: var(--ds-color-primary);
    box-shadow: 0 0 0 3px var(--ds-color-primary-a30);
}

.ds-contact__input::placeholder,
.ds-contact__textarea::placeholder {
    color: var(--ds-text-subtle-on-dark);
}

/* ===========================================
   FAQ
   =========================================== */
.ds-faq {
    padding: var(--ds-section-padding);
    font-family: var(--ds-font-body);
    background: var(--ds-warm-bg);
    color: var(--ds-on-surface);
}

.ds-faq__heading {
    font-family: var(--ds-font-heading);
    margin: 0 0 2.5rem;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ds-on-surface);
}

.ds-faq__list {
    max-width: 44rem;
}

.ds-faq__item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--ds-radius);
    margin-bottom: 0.75rem;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ds-faq__item[open] {
    border-color: var(--ds-color-primary-a40);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ds-faq__question {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 1.25rem 3rem 1.25rem 1.25rem;
    list-style: none;
    position: relative;
    color: #1a1d2e !important;
    transition: color 0.15s ease;
}

.ds-faq__question:hover {
    color: var(--ds-color-primary);
}

.ds-faq__question::-webkit-details-marker {
    display: none;
}

.ds-faq__question::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2.5px solid var(--ds-color-primary);
    border-bottom: 2.5px solid var(--ds-color-primary);
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.25s ease;
}

.ds-faq__item[open] .ds-faq__question::after {
    transform: translateY(-20%) rotate(225deg);
}

.ds-faq__answer {
    padding: 0 1.25rem 1.25rem;
    color: #4a4d5e;
    font-size: 0.9375rem;
    line-height: 1.75;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.125rem;
    font-weight: 400;
}

/* ===========================================
   FOOTER (3 palstaa: yhteystiedot | WP-valikko | yritys + some)
   Tausta: Elementor Default Kit (secondary) + varalla tumma.
   =========================================== */
.ds-footer {
    background-color: var(--ds-dark-card);
    color: rgba(255, 255, 255, 0.92);
    padding: 0;
    font-family: var(--ds-font-body);
    border-top: 1px solid var(--ds-dark-border);
}

.ds-footer__main {
    max-width: var(--ds-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem);
}

.ds-footer__grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 960px) {
    .ds-footer__grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr);
        gap: clamp(2rem, 4vw, 3.5rem);
    }
}

.ds-footer__heading {
    margin: 0 0 1.25rem;
    font-family: var(--ds-font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
}

.ds-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.ds-footer a:hover {
    color: var(--ds-color-primary);
}

.ds-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.ds-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.ds-footer__contact-item--multiline .ds-footer__contact-text {
    flex: 1;
}

.ds-footer__contact-icon {
    display: inline-flex;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: rgba(255, 255, 255, 0.75);
}

.ds-footer__contact-icon--top {
    margin-top: 0.2rem;
}

.ds-footer__callform {
    margin-top: 1.5rem;
}

.ds-footer__callform-heading {
    margin: 0 0 0.75rem;
    font-family: var(--ds-font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.ds-footer__callform-fields {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.ds-footer__callform-field {
    flex: 1;
    min-width: 0;
}

.ds-footer__callform-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.ds-footer__callform-label span {
    color: #e53e3e;
}

.ds-footer__callform-input {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    font-family: var(--ds-font-body);
    color: #1a1d2e;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--ds-radius);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-footer__callform-input::placeholder {
    color: #9ca3af;
}

.ds-footer__callform-input:focus {
    border-color: var(--ds-color-accent);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.25);
}

.ds-footer__callform-submit-wrap {
    flex-shrink: 0;
}

.ds-footer__callform-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--ds-color-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--ds-radius);
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.ds-footer__callform-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.ds-footer__callform-submit svg {
    display: block;
}

@media (max-width: 480px) {
    .ds-footer__callform-fields {
        flex-wrap: wrap;
    }

    .ds-footer__callform-field {
        flex: 1 1 100%;
    }

    .ds-footer__callform-submit-wrap {
        flex: 1 1 100%;
    }

    .ds-footer__callform-submit {
        width: 100%;
    }
}

.ds-footer__nav-empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ds-text-muted-on-dark);
    line-height: 1.5;
}

.ds-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ds-footer__menu a {
    font-size: 0.9375rem;
    font-weight: 500;
}

.ds-footer__menu .sub-menu {
    list-style: none;
    margin: 0.4rem 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ds-footer__menu .sub-menu a {
    font-weight: 400;
    font-size: 0.875rem;
    opacity: 0.92;
}

.ds-footer__company-title {
    margin: 0.75rem 0 0.75rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}

.ds-footer__col--company .ds-footer__logo + .ds-footer__company-title {
    margin-top: 1rem;
}

.ds-footer__desc {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 400;
}

.ds-footer__logo {
    display: block;
    max-height: 52px;
    width: auto;
}

.ds-footer__social--icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.ds-footer__social--icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: var(--ds-radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ds-dark-border-strong);
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ds-footer__social--icons a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ds-color-primary);
    color: var(--ds-color-primary);
}

.ds-footer__social--icons svg {
    display: block;
}

.ds-footer__bottom {
    max-width: var(--ds-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem clamp(1.25rem, 4vw, 2rem) 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.ds-footer__copy {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

.ds-footer__credit {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.ds-footer__credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ds-footer__credit a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================================
   HEADER
   Dark/transparent, frosted glass
   =========================================== */
.ds-header {
    font-family: var(--ds-font-body);
    background: rgba(22, 25, 40, 0.88);
    border-bottom: 1px solid var(--ds-dark-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ds-header--sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}

.ds-header__bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 72px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.25rem, 4vw, 2.5rem);
    padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.ds-header__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--ds-on-surface);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ds-header__title {
    font-size: 1.25rem;
    font-family: var(--ds-font-heading);
}

.ds-header__logo {
    max-height: 44px;
    width: auto;
}

.ds-header__toggle {
    display: none !important;
    margin-left: auto;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--ds-radius);
    padding: 0.5rem 0.875rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff !important;
    transition: background 0.2s ease;
}

.ds-header__toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ds-header__nav {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
}

.ds-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.ds-header__menu a {
    text-decoration: none;
    color: var(--ds-text-muted-on-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ds-header__menu a:hover,
.ds-header__menu .current-menu-item > a {
    color: var(--ds-on-surface);
    border-bottom-color: var(--ds-color-primary);
}

/* Desktop dropdown sub-menu */
.ds-header__menu > li {
    position: relative;
}

.ds-header__menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    background: var(--ds-dark-card);
    border: 1px solid var(--ds-dark-border-strong);
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow-md);
    z-index: 100;
}

.ds-header__menu > li:hover > .sub-menu,
.ds-header__menu > li:focus-within > .sub-menu {
    display: block;
}

.ds-header__menu .sub-menu li {
    display: block;
}

.ds-header__menu .sub-menu a {
    display: block;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.875rem;
    border-bottom: none !important;
    white-space: nowrap;
    color: var(--ds-text-muted-on-dark) !important;
}

.ds-header__menu .sub-menu a:hover {
    color: var(--ds-on-surface) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Chevron indicator for parent items */
.ds-header__menu > .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 0.4em;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .ds-header__toggle {
        display: inline-flex !important;
        align-items: center;
    }
    .ds-header__nav {
        display: none;
        width: 100%;
        order: 10;
        flex-basis: 100%;
        margin-left: 0;
        padding: 0.5rem 0 1rem;
        border-top: 1px solid var(--ds-dark-border);
    }
    .ds-header__nav.is-open {
        display: block;
    }
    .ds-header__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .ds-header__menu a {
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--ds-dark-border);
    }
    .ds-header__menu li:last-child a {
        border-bottom: none;
    }
    /* Mobile: sub-menu inline, not absolute */
    .ds-header__menu .sub-menu {
        position: static;
        transform: none;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: 0;
    }
    .ds-header__menu > li:hover > .sub-menu,
    .ds-header__menu > li.is-sub-open > .sub-menu {
        display: block;
    }
    .ds-header__menu .sub-menu a {
        padding: 0.625rem 0 0.625rem 1.25rem !important;
        font-size: 0.875rem;
        opacity: 0.85;
    }
    .ds-btn--header-cta {
        margin-left: auto;
    }
}

/* ===========================================
   LOGO CLOUD (ruudukko)
   =========================================== */
.ds-logocloud {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    font-family: var(--ds-font-body);
    background: var(--ds-warm-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ds-logocloud__heading {
    text-align: center;
    margin: 0 auto 2.5rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ds-text-muted-on-warm);
}

.ds-logocloud__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    align-items: center;
    justify-content: center;
}

.ds-logocloud__item {
    display: flex;
    justify-content: center;
}

.ds-logocloud__link,
.ds-logocloud__static {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.ds-logocloud__link:hover {
    opacity: 1;
}

.ds-logocloud__img {
    max-width: 140px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.ds-logocloud--color-original .ds-logocloud__img {
    filter: none;
    opacity: 1;
}

.ds-logocloud--color-grey .ds-logocloud__img {
    filter: grayscale(100%);
    opacity: 0.55;
}

.ds-logocloud--color-white .ds-logocloud__img {
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.ds-logocloud--color-black .ds-logocloud__img {
    filter: brightness(0);
    opacity: 0.92;
}

.ds-logocloud--color-original .ds-logocloud__link:hover .ds-logocloud__img,
.ds-logocloud--color-original .ds-logocloud__item:hover .ds-logocloud__img {
    opacity: 1;
}

.ds-logocloud--color-grey .ds-logocloud__link:hover .ds-logocloud__img,
.ds-logocloud--color-grey .ds-logocloud__item:hover .ds-logocloud__img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===========================================
   LOGO CAROUSEL (marquee-vieritys)
   =========================================== */
.ds-logocarousel {
    --ds-marquee-duration: 50s;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    font-family: var(--ds-font-body);
    background: var(--ds-warm-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ds-logocarousel__heading {
    text-align: center;
    margin: 0 auto 2.5rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ds-text-muted-on-warm);
}

.ds-logocarousel__viewport {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ds-logocarousel__track {
    display: flex;
    width: max-content;
    animation: ds-logocarousel-marquee var(--ds-marquee-duration, 50s) linear infinite;
    will-change: transform;
}

.ds-logocarousel:hover .ds-logocarousel__track {
    animation-play-state: paused;
}

.ds-logocarousel__strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(2rem, 5vw, 4rem);
    list-style: none;
    padding: 0 clamp(1rem, 3vw, 2rem);
    margin: 0;
}

@keyframes ds-logocarousel-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.ds-logocarousel__item {
    display: flex;
    justify-content: center;
}

.ds-logocarousel__link,
.ds-logocarousel__static {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.ds-logocarousel__link:hover {
    opacity: 1;
}

.ds-logocarousel__img {
    max-width: 140px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.ds-logocarousel--color-original .ds-logocarousel__img {
    filter: none;
    opacity: 1;
}

.ds-logocarousel--color-grey .ds-logocarousel__img {
    filter: grayscale(100%);
    opacity: 0.55;
}

.ds-logocarousel--color-white .ds-logocarousel__img {
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.ds-logocarousel--color-black .ds-logocarousel__img {
    filter: brightness(0);
    opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
    .ds-logocarousel .ds-logocarousel__viewport {
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .ds-logocarousel .ds-logocarousel__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        row-gap: 1.5rem;
    }

    .ds-logocarousel .ds-logocarousel__strip {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    .ds-logocarousel .ds-logocarousel__strip[aria-hidden="true"] {
        display: none;
    }
}

/* ===========================================
   CALL REQUEST (Soittopyyntö)
   Taustaväri: Elementor Style (oletus Kit primary). Yhteystiedot: ACF Options.
   =========================================== */
.ds-callreq {
    --ds-callreq-pad-x: clamp(1.25rem, 4vw, 2rem);
    padding: clamp(2.25rem, 5vw, 3.25rem) var(--ds-callreq-pad-x);
    font-family: var(--ds-font-body);
    background-color: var(--ds-dark-surface) !important;
    color: #ffffff;
}

.ds-callreq__inner {
    max-width: var(--ds-max-width);
    margin-left: auto;
    margin-right: auto;
}

.ds-callreq__heading {
    text-align: center;
    margin: 0 0 1.25rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: inherit;
}

.ds-callreq__contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem 2.5rem;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.ds-callreq__contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ds-callreq__icon {
    display: inline-flex;
    color: currentColor;
    opacity: 0.9;
    flex-shrink: 0;
}

.ds-callreq__contact-link,
.ds-callreq__contact-text {
    color: inherit;
    text-decoration: none;
}

.ds-callreq__contact-link:hover {
    text-decoration: underline;
}

.ds-callreq__form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.ds-callreq__input {
    flex: 1 1 12rem;
    min-height: 52px;
    padding: 0.65rem 1rem;
    border-radius: var(--ds-radius);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #ffffff;
    color: #1a1d2e;
    font: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.ds-callreq__input::placeholder {
    color: rgba(26, 29, 46, 0.45);
}

.ds-callreq__input:focus {
    outline: none;
    border-color: var(--ds-color-primary);
    box-shadow: 0 0 0 3px var(--ds-color-primary-a30);
}

.ds-callreq__submit {
    flex: 0 0 auto;
    min-width: 8rem;
}

@media (max-width: 600px) {
    .ds-callreq__form {
        flex-direction: column;
    }

    .ds-callreq__submit {
        width: 100%;
    }
}

.ds-callreq__feedback {
    text-align: center;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--ds-radius);
    font-weight: 600;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.ds-callreq__feedback--success {
    background: rgba(80, 200, 120, 0.2);
    color: #b6f5c8;
}

.ds-callreq__feedback--error {
    background: rgba(255, 100, 100, 0.15);
    color: #fecaca;
}

.ds-callreq .ds-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* ===========================================
   PRICING TABLE
   =========================================== */
.ds-pricing {
    padding: var(--ds-section-padding);
    font-family: var(--ds-font-body);
    background: var(--ds-dark);
    color: var(--ds-on-surface);
}

.ds-pricing__heading {
    text-align: center;
    font-family: var(--ds-font-heading);
    margin: 0 auto 3.5rem;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ds-on-surface);
}

.ds-pricing__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.ds-pricing__card {
    border: 1px solid var(--ds-dark-border);
    border-radius: var(--ds-radius-lg);
    padding: 2.5rem 2rem;
    background: var(--ds-dark-card);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ds-pricing__card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.ds-pricing__card--highlight {
    border-color: var(--ds-color-primary);
    box-shadow: 0 0 0 1px var(--ds-color-primary), 0 16px 48px color-mix(in srgb, var(--ds-color-primary) 25%, transparent);
    transform: scale(1.03);
    z-index: 1;
}

.ds-pricing__name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ds-text-muted-on-dark);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
}

.ds-pricing__price {
    margin: 0;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--ds-on-surface);
}

.ds-pricing__suffix {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ds-text-subtle-on-dark);
    margin-left: 0.25rem;
}

.ds-pricing__features {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ds-text-muted-on-dark);
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
}

.ds-pricing__features li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.625rem;
}

.ds-pricing__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ds-color-primary);
}

.ds-pricing__btn {
    align-self: stretch;
    text-align: center;
}

@media (max-width: 768px) {
    .ds-pricing__card--highlight {
        transform: none;
    }
}

/* ===========================================
   HERO MOBILE
   =========================================== */
@media (max-width: 768px) {
    .ds-hero:not(.ds-hero--split) {
        min-height: auto;
        padding: 0;
    }
    .ds-hero:not(.ds-hero--split) .ds-hero__content {
        padding: 4rem 1.25rem;
    }
    .ds-hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .ds-hero--split .ds-hero__buttons {
        align-items: stretch;
    }
    .ds-hero__buttons .ds-btn {
        width: 100%;
    }
}

/* ===========================================
   STATS COUNTER
   =========================================== */
.ds-stats {
    padding: var(--ds-section-padding);
    font-family: var(--ds-font-body);
}

.ds-stats--dark {
    background: var(--ds-dark);
    color: var(--ds-on-surface);
}

.ds-stats--light {
    background: var(--ds-warm-bg);
    color: var(--ds-on-surface);
}

.ds-stats__heading {
    text-align: center;
    font-family: var(--ds-font-heading);
    margin: 0 auto 3.5rem;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ds-stats--dark .ds-stats__heading,
.ds-stats--light .ds-stats__heading {
    color: var(--ds-text-muted-on-dark);
}

.ds-stats__grid {
    display: grid;
    gap: 2rem;
    text-align: center;
}

.ds-stats__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ds-stats__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ds-stats__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .ds-stats__grid--cols-3,
    .ds-stats__grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .ds-stats__grid--cols-2,
    .ds-stats__grid--cols-3,
    .ds-stats__grid--cols-4 { grid-template-columns: 1fr; }
}

.ds-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    border-radius: var(--ds-radius-lg);
    transition: transform 0.3s ease;
}

.ds-stats--dark .ds-stats__item {
    background: var(--ds-dark-card);
    border: 1px solid var(--ds-dark-border);
}

.ds-stats--light .ds-stats__item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ds-stats__icon {
    font-size: 1.5rem;
    color: var(--ds-color-primary);
    margin-bottom: 0.5rem;
}

.ds-stats__number {
    font-family: var(--ds-font-heading);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ds-color-primary);
}

.ds-stats__label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ds-stats--dark .ds-stats__label { color: var(--ds-text-muted-on-dark); }
.ds-stats--light .ds-stats__label { color: var(--ds-text-muted-on-warm); }

/* ===========================================
   PROCESS STEPS
   =========================================== */
.ds-process {
    padding: var(--ds-section-padding);
    font-family: var(--ds-font-body);
    background: var(--ds-warm-bg);
    color: var(--ds-on-surface);
}

.ds-process__heading {
    font-family: var(--ds-font-heading);
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--ds-on-surface);
}

.ds-process__desc,
.ds-process__description {
    text-align: center;
    color: var(--ds-text-muted-on-dark);
    margin: 0 auto 3rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 40rem;
}

.ds-process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
}

.ds-process__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border-radius: var(--ds-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ds-process__step-number {
    font-family: var(--ds-font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ds-color-primary);
    background: rgba(232, 116, 42, 0.1);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.ds-process__step-icon {
    font-size: 1.5rem;
    color: var(--ds-color-primary);
    margin-bottom: 0.5rem;
}

.ds-process__step-title {
    font-family: var(--ds-font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
    color: #1a1d2e !important;
}

.ds-process__step-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #525566 !important;
    margin: 0;
}

/* ===========================================
   FEATURES LIST
   =========================================== */
.ds-features {
    padding: var(--ds-section-padding);
    font-family: var(--ds-font-body);
    background: var(--ds-dark);
    color: var(--ds-on-surface);
}

.ds-features__heading {
    font-family: var(--ds-font-heading);
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ds-on-surface);
}

.ds-features__desc {
    color: var(--ds-text-muted-on-dark);
    margin: 0 0 3rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 42rem;
}

.ds-features__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem 3.5rem;
}

.ds-features__group-title {
    font-family: var(--ds-font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 0 1.5rem;
    padding-left: 1.25rem;
    position: relative;
    color: var(--ds-on-surface);
}

.ds-features__group-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ds-color-primary);
}

.ds-features__group-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ds-features__item {
    position: relative;
    padding: 0.75rem 0 0.75rem 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ds-text-muted-on-dark);
    border-bottom: 1px solid var(--ds-dark-border);
}

.ds-features__item:last-child {
    border-bottom: none;
}

.ds-features__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 6px;
    height: 2px;
    border-radius: 1px;
    background: var(--ds-color-primary);
}

/* ===========================================
   GALLERY
   =========================================== */
.ds-gallery {
    padding: var(--ds-section-padding);
    font-family: var(--ds-font-body);
    background: var(--ds-dark);
    color: var(--ds-on-surface);
}

.ds-gallery__heading {
    font-family: var(--ds-font-heading);
    text-align: center;
    margin: 0 auto 1rem;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ds-gallery__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.ds-gallery__filter-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ds-dark-border-strong);
    color: var(--ds-text-muted-on-dark);
    padding: 0.5rem 1.25rem;
    border-radius: var(--ds-radius);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-gallery__filter-btn:hover,
.ds-gallery__filter-btn.is-active {
    background: var(--ds-color-primary);
    border-color: var(--ds-color-primary);
    color: var(--ds-on-surface);
}

.ds-gallery__grid {
    display: grid;
    gap: 1rem;
}

.ds-gallery__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ds-gallery__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ds-gallery__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .ds-gallery__grid--cols-3,
    .ds-gallery__grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .ds-gallery__grid--cols-2,
    .ds-gallery__grid--cols-3,
    .ds-gallery__grid--cols-4 { grid-template-columns: 1fr; }
}

.ds-gallery__item {
    overflow: hidden;
    border-radius: var(--ds-radius-lg);
    position: relative;
    aspect-ratio: 4 / 3;
    transition: opacity 0.3s ease;
}

.ds-gallery__item.is-hidden {
    display: none;
}

.ds-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
}

.ds-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ds-gallery__item:hover .ds-gallery__img {
    transform: scale(1.06);
}

.ds-gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--ds-on-surface);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ds-gallery__item:hover .ds-gallery__caption {
    opacity: 1;
}

/* Gallery lightbox overlay */
.ds-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ds-lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.ds-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--ds-radius);
}

.ds-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--ds-on-surface);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.ds-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===========================================
   TEAM
   =========================================== */
.ds-team {
    padding: var(--ds-section-padding);
    font-family: var(--ds-font-body);
    background: var(--ds-dark);
    color: var(--ds-on-surface);
}

.ds-team__heading {
    font-family: var(--ds-font-heading);
    text-align: center;
    margin: 0 auto 3.5rem;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ds-team__grid {
    display: grid;
    gap: 1.5rem;
}

.ds-team__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ds-team__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ds-team__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .ds-team__grid--cols-3,
    .ds-team__grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .ds-team__grid--cols-2,
    .ds-team__grid--cols-3,
    .ds-team__grid--cols-4 { grid-template-columns: 1fr; }
}

.ds-team__card {
    background: var(--ds-dark-card);
    border: 1px solid var(--ds-dark-border);
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ds-team__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.ds-team__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.ds-team__info {
    padding: 1.5rem;
}

.ds-team__name {
    font-family: var(--ds-font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 0 0.25rem;
    color: var(--ds-on-surface);
}

.ds-team__title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ds-color-primary);
    margin: 0 0 0.75rem;
}

.ds-team__bio {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ds-text-muted-on-dark);
    margin: 0 0 1rem;
}

.ds-team__links {
    display: flex;
    gap: 0.75rem;
}

.ds-team__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ds-text-muted-on-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ds-team__links a:hover {
    color: var(--ds-color-primary);
}

.ds-team__links svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ===========================================
   HERO + FORM
   =========================================== */
.ds-heroform {
    position: relative;
    min-height: min(80vh, 900px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--ds-on-surface);
    font-family: var(--ds-font-body);
    isolation: isolate;
}

.ds-heroform__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(22, 25, 40, 0.6) 0%,
        rgba(22, 25, 40, 0.85) 40%,
        rgba(22, 25, 40, 0.95) 100%
    );
    pointer-events: none;
}

.ds-heroform__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--ds-max-width);
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2rem);
}

.ds-heroform__text {
    max-width: 36rem;
}

.ds-heroform__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ds-color-primary);
    margin: 0 0 1.25rem;
}

.ds-heroform__heading {
    font-family: var(--ds-font-heading);
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
}

.ds-heroform__accent {
    color: var(--ds-color-primary);
}

.ds-heroform__intro {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.7;
    color: var(--ds-text-muted-on-dark);
    margin: 0 0 2rem;
}

.ds-heroform__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ds-color-primary);
    text-decoration: none;
    border: 2px solid var(--ds-color-primary);
    border-radius: var(--ds-radius);
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
}

.ds-heroform__phone:hover {
    background: var(--ds-color-primary);
    color: var(--ds-on-surface);
}

.ds-heroform__form-wrap {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ds-radius-lg);
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.ds-heroform__form-title {
    font-family: var(--ds-font-heading);
    font-weight: 700;
    font-size: 1.375rem;
    margin: 0 0 1.5rem;
    color: var(--ds-on-surface);
}

.ds-heroform__form {
    display: flex;
    flex-direction: column;
}

.ds-heroform__field {
    margin: 0 0 1rem;
}

.ds-heroform__label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ds-text-muted-on-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ds-heroform__input,
.ds-heroform__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ds-on-surface);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--ds-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-heroform__textarea {
    min-height: 7rem;
    resize: vertical;
}

.ds-heroform__input:focus,
.ds-heroform__textarea:focus {
    outline: none;
    border-color: var(--ds-color-primary);
    box-shadow: 0 0 0 3px var(--ds-color-primary-a30);
}

.ds-heroform__input::placeholder,
.ds-heroform__textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ds-heroform__notice {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--ds-radius);
    font-size: 0.9375rem;
    font-weight: 500;
}

.ds-heroform__notice--success {
    background: rgba(120, 200, 120, 0.12);
    border: 1px solid rgba(120, 200, 120, 0.3);
    color: #a3e6a3;
}

.ds-heroform__notice--error {
    background: rgba(255, 100, 100, 0.12);
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #fca5a5;
}

@media (max-width: 900px) {
    .ds-heroform__inner {
        grid-template-columns: 1fr;
    }
    .ds-heroform__form-wrap {
        order: -1;
    }
}

/* ===========================================
   SITE COLOR THEME — vaalea: hero, lomake, header/footer
   (body-luokka: digisilta-theme--light, ACF site_color_scheme)
   =========================================== */
body.digisilta-theme--light .ds-hero__overlay {
    background: linear-gradient(
        170deg,
        rgba(245, 240, 234, 0.82) 0%,
        rgba(245, 240, 234, 0.9) 45%,
        rgba(235, 228, 217, 0.94) 100%
    );
}

body.digisilta-theme--light .ds-hero__intro {
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-hero .ds-btn--secondary {
    color: var(--ds-on-surface);
}

body.digisilta-theme--light .ds-heroform__label {
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-heroform__input,
body.digisilta-theme--light .ds-heroform__textarea {
    background: #ffffff;
    border: 1px solid rgba(26, 29, 46, 0.12);
    color: var(--ds-text-on-warm);
}

body.digisilta-theme--light .ds-heroform__input::placeholder,
body.digisilta-theme--light .ds-heroform__textarea::placeholder {
    color: rgba(26, 29, 46, 0.45);
}

body.digisilta-theme--light .ds-header {
    background: rgba(255, 255, 255, 0.94);
}

body.digisilta-theme--light .ds-header__toggle {
    background: rgba(26, 29, 46, 0.05);
    border-color: var(--ds-dark-border-strong);
}

body.digisilta-theme--light .ds-header__toggle:hover {
    background: rgba(26, 29, 46, 0.08);
}

body.digisilta-theme--light .ds-header__menu a {
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-header__menu .sub-menu {
    background: #ffffff;
    border-color: rgba(26, 29, 46, 0.1);
}

body.digisilta-theme--light .ds-header__menu .sub-menu a:hover {
    background: rgba(26, 29, 46, 0.04);
}

body.digisilta-theme--light .ds-footer {
    background: color-mix(in srgb, var(--ds-warm-bg-alt) 88%, #ffffff);
    color: var(--ds-text-on-warm);
    border-top-color: var(--ds-dark-border);
}

body.digisilta-theme--light .ds-footer__heading,
body.digisilta-theme--light .ds-footer__company-title {
    color: var(--ds-text-on-warm);
}

body.digisilta-theme--light .ds-footer__contact-item {
    color: var(--ds-text-on-warm);
}

body.digisilta-theme--light .ds-footer__contact-icon {
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-footer__desc,
body.digisilta-theme--light .ds-footer__copy,
body.digisilta-theme--light .ds-footer__credit {
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-footer__nav-empty {
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-footer__bottom {
    border-top-color: rgba(26, 29, 46, 0.1);
}

body.digisilta-theme--light .ds-footer__social--icons a {
    background: #ffffff;
    color: var(--ds-text-on-warm);
    border-color: var(--ds-dark-border-strong);
}

body.digisilta-theme--light .ds-footer__social--icons a:hover {
    background: var(--ds-color-primary-soft);
    border-color: var(--ds-color-primary-a30);
    color: var(--ds-color-primary);
}

body.digisilta-theme--light .ds-footer__callform-heading {
    color: var(--ds-text-on-warm);
}

body.digisilta-theme--light .ds-footer__callform-label {
    color: var(--ds-text-on-warm);
}

body.digisilta-theme--light .ds-footer__callform-input {
    border-color: rgba(26, 29, 46, 0.15);
}

/* ===========================================
   ARCHIVE / BLOG LISTING
   =========================================== */
.ds-archive {
    font-family: var(--ds-font-body);
}

.ds-archive__hero {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.ds-archive__hero-inner {
    max-width: var(--ds-max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.ds-archive__heading {
    margin: 0;
    font-family: var(--ds-font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ds-on-surface);
}

.ds-archive__desc {
    margin: 0.75rem auto 0;
    max-width: 38rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ds-text-muted-on-dark);
}

.ds-archive__main {
    max-width: var(--ds-max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
}

.ds-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
}

@media (max-width: 960px) {
    .ds-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .ds-archive__grid {
        grid-template-columns: 1fr;
    }
}

.ds-archive__card {
    display: flex;
    flex-direction: column;
    background: var(--ds-dark-card);
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--ds-dark-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ds-archive__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ds-shadow-md);
    border-color: var(--ds-color-primary-a30);
}

.ds-archive__card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ds-dark-surface);
}

.ds-archive__card-thumb--empty {
    background: var(--ds-dark-surface);
}

.ds-archive__card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ds-archive__card:hover .ds-archive__card-img {
    transform: scale(1.04);
}

.ds-archive__card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ds-archive__card-cat {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ds-color-primary);
}

.ds-archive__card-title {
    margin: 0 0 0.5rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--ds-on-surface);
}

.ds-archive__card-excerpt {
    margin: 0 0 auto;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--ds-text-muted-on-dark);
    padding-bottom: 0.75rem;
}

.ds-archive__card-date {
    font-size: 0.75rem;
    color: var(--ds-text-subtle-on-dark);
}

.ds-archive__empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--ds-text-muted-on-dark);
    font-size: 1rem;
}

.ds-archive__pagination {
    margin-top: 3rem;
    text-align: center;
}

.ds-archive__pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 0.375rem;
}

.ds-archive__pagination .page-numbers li {
    display: inline-flex;
}

.ds-archive__pagination .page-numbers a,
.ds-archive__pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--ds-radius);
    color: var(--ds-on-surface);
    background: var(--ds-dark-card);
    border: 1px solid var(--ds-dark-border);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ds-archive__pagination .page-numbers a:hover {
    background: var(--ds-color-primary-soft);
    border-color: var(--ds-color-primary-a30);
    color: var(--ds-color-primary);
}

.ds-archive__pagination .page-numbers .current {
    background: var(--ds-color-primary);
    border-color: var(--ds-color-primary);
    color: #ffffff;
}

/* ===========================================
   SINGLE POST
   =========================================== */
.ds-single {
    font-family: var(--ds-font-body);
}

.ds-single__hero {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
}

.ds-single__hero-inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.ds-single__cats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ds-single__cats a {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ds-color-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.ds-single__cats a:hover {
    opacity: 0.75;
}

.ds-single__title {
    margin: 0 0 1.25rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ds-on-surface);
}

.ds-single__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--ds-text-muted-on-dark);
}

.ds-single__meta a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.ds-single__meta a:hover {
    color: var(--ds-color-primary);
}

.ds-single__meta-sep {
    opacity: 0.5;
}

.ds-single__thumb-wrap {
    max-width: 52rem;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.ds-single__thumb-inner {
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    background: var(--ds-dark-surface);
    aspect-ratio: 16 / 9;
}

.ds-single__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ds-single__body-wrap {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(2rem, 4vw, 3rem);
}

.ds-single__share {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ds-single__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--ds-radius);
    background: var(--ds-dark-card);
    border: 1px solid var(--ds-dark-border);
    color: var(--ds-text-muted-on-dark);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ds-single__share-btn:hover {
    background: var(--ds-color-primary-soft);
    border-color: var(--ds-color-primary-a30);
    color: var(--ds-color-primary);
}

.ds-single__share-btn svg {
    display: block;
}

.ds-single__content {
    font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
    line-height: 1.8;
    color: var(--ds-text-muted-on-dark);
}

.ds-single__content h2 {
    margin: 2.5rem 0 1rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ds-on-surface);
}

.ds-single__content h3 {
    margin: 2rem 0 0.75rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 700;
    color: var(--ds-on-surface);
}

.ds-single__content h4 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ds-on-surface);
}

.ds-single__content p {
    margin: 0 0 1.25rem;
}

.ds-single__content a {
    color: var(--ds-color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.ds-single__content a:hover {
    opacity: 0.8;
}

.ds-single__content ul,
.ds-single__content ol {
    padding-left: 1.5rem;
    margin: 0 0 1.25rem;
}

.ds-single__content li {
    margin-bottom: 0.375rem;
}

.ds-single__content blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--ds-color-primary);
    background: var(--ds-dark-card);
    border-radius: 0 var(--ds-radius) var(--ds-radius) 0;
    font-style: italic;
    color: var(--ds-text-muted-on-dark);
}

.ds-single__content blockquote p:last-child {
    margin-bottom: 0;
}

.ds-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ds-radius);
    margin: 1rem 0;
}

.ds-single__content figure {
    margin: 1.5rem 0;
}

.ds-single__content figcaption {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--ds-text-subtle-on-dark);
    text-align: center;
}

.ds-single__content pre {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--ds-dark-card);
    border: 1px solid var(--ds-dark-border);
    border-radius: var(--ds-radius);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

.ds-single__content code {
    font-size: 0.875em;
    background: var(--ds-dark-card);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

.ds-single__content pre code {
    background: transparent;
    padding: 0;
}

.ds-single__content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ds-single__content th,
.ds-single__content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--ds-dark-border-strong);
    text-align: left;
}

.ds-single__content th {
    background: var(--ds-dark-card);
    font-weight: 700;
    color: var(--ds-on-surface);
}

.ds-single__content hr {
    border: none;
    border-top: 1px solid var(--ds-dark-border-strong);
    margin: 2rem 0;
}

.ds-single__tags {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem) 1.5rem;
}

.ds-single__tags-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ds-single__tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ds-text-muted-on-dark);
    background: var(--ds-dark-card);
    border: 1px solid var(--ds-dark-border);
    border-radius: 100px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ds-single__tag:hover {
    border-color: var(--ds-color-primary-a30);
    color: var(--ds-color-primary);
}

.ds-single__postnav {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(2rem, 4vw, 3rem);
}

.ds-single__postnav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid var(--ds-dark-border-strong);
    padding-top: 1.5rem;
}

@media (max-width: 580px) {
    .ds-single__postnav-inner {
        grid-template-columns: 1fr;
    }
}

.ds-single__postnav-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--ds-on-surface);
    transition: color 0.2s ease;
}

.ds-single__postnav-link:hover {
    color: var(--ds-color-primary);
}

.ds-single__postnav-link--next {
    text-align: right;
}

.ds-single__postnav-dir {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ds-text-subtle-on-dark);
}

.ds-single__postnav-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
}

.ds-single__related {
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-top: 1px solid var(--ds-dark-border);
}

.ds-single__related-inner {
    max-width: var(--ds-max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.ds-single__related-heading {
    margin: 0 0 2rem;
    font-family: var(--ds-font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--ds-on-surface);
}

/* ===========================================
   LIGHT THEME — BLOG / ARCHIVE / SINGLE
   =========================================== */
body.digisilta-theme--light .ds-archive__card {
    background: #ffffff;
    border-color: rgba(26, 29, 46, 0.08);
}

body.digisilta-theme--light .ds-archive__card:hover {
    border-color: var(--ds-color-primary-a30);
}

body.digisilta-theme--light .ds-archive__card-thumb--empty {
    background: #ebe4d9;
}

body.digisilta-theme--light .ds-archive__card-excerpt {
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-archive__card-date {
    color: rgba(26, 29, 46, 0.5);
}

body.digisilta-theme--light .ds-archive__pagination .page-numbers a,
body.digisilta-theme--light .ds-archive__pagination .page-numbers span {
    background: #ffffff;
    border-color: rgba(26, 29, 46, 0.1);
    color: var(--ds-text-on-warm);
}

body.digisilta-theme--light .ds-archive__pagination .page-numbers .current {
    background: var(--ds-color-primary);
    border-color: var(--ds-color-primary);
    color: #ffffff;
}

body.digisilta-theme--light .ds-single__content {
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-single__content h2,
body.digisilta-theme--light .ds-single__content h3,
body.digisilta-theme--light .ds-single__content h4 {
    color: var(--ds-text-on-warm);
}

body.digisilta-theme--light .ds-single__content blockquote {
    background: #ffffff;
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-single__content pre {
    background: #ffffff;
    border-color: rgba(26, 29, 46, 0.1);
}

body.digisilta-theme--light .ds-single__content code {
    background: rgba(26, 29, 46, 0.06);
}

body.digisilta-theme--light .ds-single__content pre code {
    background: transparent;
}

body.digisilta-theme--light .ds-single__content th {
    background: rgba(26, 29, 46, 0.04);
}

body.digisilta-theme--light .ds-single__share-btn {
    background: #ffffff;
    border-color: rgba(26, 29, 46, 0.1);
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-single__tag {
    background: #ffffff;
    border-color: rgba(26, 29, 46, 0.1);
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-single__thumb-inner {
    background: #ebe4d9;
}

body.digisilta-theme--light .ds-single__postnav-inner {
    border-top-color: rgba(26, 29, 46, 0.1);
}

body.digisilta-theme--light .ds-single__related {
    border-top-color: rgba(26, 29, 46, 0.08);
}

/* ===========================================
   FLOATING BUBBLE (kelluva yhteystietokortti)
   =========================================== */
.ds-bubble {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    font-family: var(--ds-font-body);
}

.ds-bubble__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--ds-color-accent);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    margin-left: auto;
}

.ds-bubble__trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

.ds-bubble.is-open .ds-bubble__trigger {
    transform: scale(0.92);
}

.ds-bubble__trigger-icon {
    display: block;
}

.ds-bubble__dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid var(--ds-color-accent);
    animation: ds-bubble-pulse 2s ease-in-out infinite;
}

@keyframes ds-bubble-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.ds-bubble__card {
    position: absolute;
    bottom: calc(100% + 0.75rem);
    right: 0;
    width: 340px;
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    background: var(--ds-dark-card);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ds-bubble.is-open .ds-bubble__card {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ds-bubble__card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.ds-bubble__card-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--ds-radius);
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.ds-bubble__card-info {
    flex: 1;
    min-width: 0;
}

.ds-bubble__card-title {
    display: block;
    font-family: var(--ds-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.ds-bubble__card-subtitle {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-top: 0.1rem;
}

.ds-bubble__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.ds-bubble__close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.ds-bubble__card-body {
    padding: 0 1rem 1rem;
}

.ds-bubble__msg {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--ds-radius-lg);
    padding: 1rem 1.125rem;
}

.ds-bubble__msg-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.ds-bubble__msg-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.ds-bubble__card-footer {
    padding: 0.75rem 1.25rem 1.25rem;
    text-align: center;
}

.ds-bubble__cta-label {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.ds-bubble__actions {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
}

.ds-bubble__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ds-color-accent);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.ds-bubble__action:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.ds-bubble__action--whatsapp {
    background: #25d366;
}

.ds-bubble__action--whatsapp:hover {
    background: #20bd5a;
}

.ds-bubble__action svg {
    display: block;
}

@media (max-width: 480px) {
    .ds-bubble {
        bottom: 1rem;
        right: 1rem;
    }

    .ds-bubble__card {
        width: calc(100vw - 2rem);
        right: 0;
    }

    .ds-bubble__trigger {
        width: 50px;
        height: 50px;
    }
}

/* --- Light theme --- */
body.digisilta-theme--light .ds-bubble__card {
    background: #ffffff;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

body.digisilta-theme--light .ds-bubble__card-title {
    color: var(--ds-text-on-warm);
}

body.digisilta-theme--light .ds-bubble__card-subtitle {
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-bubble__close {
    background: rgba(26, 29, 46, 0.06);
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-bubble__close:hover {
    background: rgba(26, 29, 46, 0.12);
    color: var(--ds-text-on-warm);
}

body.digisilta-theme--light .ds-bubble__msg {
    background: #f0fdf4;
}

body.digisilta-theme--light .ds-bubble__msg-name {
    color: var(--ds-text-on-warm);
}

body.digisilta-theme--light .ds-bubble__msg-text {
    color: var(--ds-text-muted-on-warm);
}

body.digisilta-theme--light .ds-bubble__cta-label {
    color: var(--ds-text-on-warm);
}

body.digisilta-theme--light .ds-bubble__dot {
    border-color: var(--ds-color-accent);
}

/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
