/* ============================================================
   Datum theme — RTL Persian, responsive, no build step (ADR-031)
   Tokens adapted from the Datum demo; no demo assets copied.
   ============================================================ */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700 900;
    font-display: swap;
}

:root {
    --clean: #ECEDEA;
    --card: #F6F6F4;
    --ink: #0E1015;
    --muted: #5A606A;
    --indigo: #3A2EDB;
    --indigo-2: #5A4FF2;
    --pass: #11A566;
    --night: #0B0C11;
    --on-night: #EDEDF2;
    --flag: #E5484D;
    --r: 22px;
    --maxw: 1360px;
    --ease: cubic-bezier(.2, .7, .1, 1);
    --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.dt-body {
    margin: 0;
    background: var(--clean);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.8rem); line-height: 1.1; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.15; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; line-height: 1.35; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--indigo-2); outline-offset: 3px; border-radius: 6px; }
[x-cloak] { display: none !important; }

.dt-wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.dt-body > main { min-height: 50vh; }

.dt-skip {
    position: fixed; inset-block-start: -60px; inset-inline-start: 1rem; z-index: 200;
    background: var(--indigo); color: #fff; padding: .5rem 1rem; border-radius: 10px;
    transition: inset-block-start .2s var(--ease);
}
.dt-skip:focus { inset-block-start: 1rem; }

/* ---------- Buttons / shared ---------- */
.dt-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: .65rem 1.3rem; border-radius: 999px;
    border: 1px solid transparent; font-weight: 700; font-size: .95rem;
    cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.dt-btn:hover { transform: translateY(-2px); }
.dt-btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 24px rgba(58, 46, 219, .25); }
.dt-btn-primary:hover { background: var(--indigo-2); }
.dt-btn-ghost { border-color: rgba(14, 16, 21, .18); background: rgba(255, 255, 255, .55); }
.dt-btn-ghost:hover { background: #fff; }

.dt-eyebrow {
    font-family: var(--mono); font-size: .8rem; letter-spacing: .08em;
    color: var(--indigo); text-transform: uppercase; margin-bottom: 1rem;
}
.dt-lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 62ch; }
.dt-section-title { margin-bottom: 1.2rem; }
.dt-section { padding-block: clamp(4rem, 8vw, 8rem); background: var(--clean); }
.dt-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.dt-chips span {
    padding: .3rem .8rem; border-radius: 999px; background: rgba(58, 46, 219, .09);
    color: var(--indigo); font-size: .82rem; font-weight: 700;
}

/* ---------- Hero slider ---------- */
.dt-slider {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--night); color: #fff;
    min-height: clamp(520px, 78vh, 820px);
    display: flex; align-items: stretch;
}
.dt-slider-viewport { position: relative; flex: 1; min-height: inherit; }

.dt-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
.dt-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

/* Backdrop gradients per tone — visible while the image loads or when no image. */
.dt-slide::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(140deg, #0B0C11 0%, #171a2b 55%, #0B0C11 100%);
}
.dt-slide--teal::before { background: linear-gradient(140deg, #06201F 0%, #0d3b3a 55%, #07100f 100%); }
.dt-slide--warm::before { background: linear-gradient(140deg, #1F1410 0%, #43301f 55%, #120c08 100%); }
.dt-slide--slate::before { background: linear-gradient(140deg, #10141C 0%, #26303f 55%, #0b0e14 100%); }

.dt-slide-img {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    transform: scale(1.06);
    will-change: transform;
}
/* Ken Burns only on the active slide — a slow, one-shot push-in. */
.dt-slide.is-active .dt-slide-img { animation: dt-kenburns 12s var(--ease) forwards; }
@keyframes dt-kenburns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
}

.dt-slide-scrim {
    position: absolute; inset: 0; z-index: 2;
    /* Logical directions so the scrim always darkens the side the text sits on,
       in both RTL and LTR (physical left/right would flip wrongly). */
    background:
        linear-gradient(to inline-end, rgba(6, 8, 14, .88) 0%, rgba(6, 8, 14, .62) 42%, rgba(6, 8, 14, .18) 72%, rgba(6, 8, 14, .35) 100%);
}

.dt-slide-body { position: relative; z-index: 3; width: 100%; }
.dt-slide-inner { display: flex; flex-direction: column; max-width: 640px; }
.dt-slide--center .dt-slide-inner { max-width: 780px; margin-inline: auto; text-align: center; align-items: center; }

.dt-slide-kicker {
    font-family: var(--mono); font-size: .82rem; letter-spacing: .14em;
    color: #b9b2ff; text-transform: uppercase; margin: 0 0 1rem;
    display: inline-flex; align-items: center; gap: .6rem;
}
.dt-slide-kicker::before {
    content: ''; display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: .8;
}
.dt-slide--center .dt-slide-kicker::before { display: none; }

.dt-slide-title {
    color: #fff; font-size: clamp(2rem, 4.6vw, 4.1rem); line-height: 1.12;
    letter-spacing: -.03em; margin: 0 0 1.1rem; text-wrap: balance;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.dt-slide-text {
    color: rgba(255, 255, 255, .84); font-size: clamp(1rem, 1.5vw, 1.18rem);
    max-width: 54ch; margin: 0 0 2rem; line-height: 1.85;
}
.dt-slide-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.dt-btn-lg { min-height: 54px; padding: .8rem 1.7rem; font-size: 1rem; }
.dt-btn-outline-inverse {
    border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
}
.dt-btn-outline-inverse:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* Staggered entrance for the active slide's text. */
.dt-slide.is-active .dt-slide-kicker,
.dt-slide.is-active .dt-slide-title,
.dt-slide.is-active .dt-slide-text,
.dt-slide.is-active .dt-slide-actions {
    animation: dt-slide-in .8s var(--ease) backwards;
}
.dt-slide.is-active .dt-slide-kicker { animation-delay: .1s; }
.dt-slide.is-active .dt-slide-title  { animation-delay: .2s; }
.dt-slide.is-active .dt-slide-text   { animation-delay: .32s; }
.dt-slide.is-active .dt-slide-actions { animation-delay: .44s; }
@keyframes dt-slide-in {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

/* Controls */
.dt-slider-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    z-index: 5; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(11, 12, 17, .35); backdrop-filter: blur(10px);
    color: #fff; font-size: 1.15rem; line-height: 1;
    transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.dt-slider-nav:hover { background: var(--indigo); border-color: var(--indigo); transform: translateY(-50%) scale(1.06); }
.dt-slider-prev { inset-inline-end: 1.5rem; }
.dt-slider-next { inset-inline-start: 1.5rem; }

.dt-slider-dots {
    position: absolute; inset-block-end: 2rem; inset-inline-start: 0; z-index: 5;
    width: 100%; display: flex; justify-content: center; gap: .55rem;
}
.dt-slider-dots button {
    position: relative; width: 44px; height: 4px; padding: 0; border: 0; cursor: pointer;
    border-radius: 999px; background: rgba(255, 255, 255, .3); overflow: hidden;
    transition: width .3s var(--ease), background .3s var(--ease);
}
.dt-slider-dots button.is-on { width: 76px; background: rgba(255, 255, 255, .35); }
.dt-slider-dots-fill {
    position: absolute; inset: 0; transform-origin: right center; transform: scaleX(0);
    background: #fff; border-radius: inherit;
}
/* RTL: the fill grows from the inline-start (right) edge. */
:where([dir="rtl"]) .dt-slider-dots-fill { transform-origin: right center; }
.dt-slider-dots button.is-on .dt-slider-dots-fill { animation: dt-dot-fill linear forwards; }
@keyframes dt-dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Nav ---------- */
.dt-nav {
    position: sticky; inset-block-start: 0; z-index: 100;
    background: rgba(236, 237, 234, .88); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(14, 16, 21, .08);
}
.dt-nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.dt-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 900; font-size: 1.1rem; white-space: nowrap; }
.dt-brand-logo { width: auto; height: 40px; max-width: 160px; object-fit: contain; }
.dt-brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--indigo); position: relative; }
.dt-brand-mark::after {
    content: ''; position: absolute; inset: 6px; border: 2px solid #fff; border-radius: 3px;
}
.dt-nav-links { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.dt-nav-links a { padding: .45rem .7rem; border-radius: 9px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.dt-nav-links a:hover { background: #fff; color: var(--ink); }
.dt-nav-cta { display: flex; gap: .5rem; }
.dt-nav-cta .dt-btn { min-height: 38px; padding: .4rem .9rem; font-size: .82rem; }
.dt-burger { display: none; width: 42px; height: 42px; border: 1px solid rgba(14, 16, 21, .15); border-radius: 10px; background: #fff; }
.dt-burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }
.dt-menu { display: none; }

/* ---------- Story / hero ---------- */
.dt-story {
    position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 9rem);
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(58, 46, 219, .16), transparent 60%),
        var(--clean);
}
.dt-story::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
    background-image: linear-gradient(rgba(14,16,21,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(14,16,21,.06) 1px, transparent 1px);
    background-size: 48px 48px;
}
.dt-story-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.dt-story-copy { position: relative; z-index: 1; }
.dt-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.dt-hint { margin-top: 2rem; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.dt-stage-card {
    background: var(--night); color: var(--on-night); border-radius: var(--r);
    padding: clamp(1.5rem, 3vw, 2.5rem); min-height: 430px;
    box-shadow: 0 30px 80px rgba(11, 12, 17, .28); display: flex; flex-direction: column;
}
.dt-stage-head {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: .8rem; color: #9aa0ad; padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 1.5rem;
}
.dt-stage { display: none; flex: 1; }
.dt-stage.is-on { display: block; animation: dt-in .45s var(--ease); }
@keyframes dt-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dt-stage-num { font-family: var(--mono); color: #8f87ff; font-size: 1rem; }
.dt-stage h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin: .4rem 0 1rem; }
.dt-stage p { color: #b9bfca; }
.dt-stage .dt-chips span { background: rgba(138, 128, 255, .16); color: #c8c3ff; }
.dt-rail { display: flex; gap: .5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.dt-rail button {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
    background: transparent; color: #c8c3ff; font-family: var(--mono); cursor: pointer;
}
.dt-rail button.is-on { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* ---------- Proof ---------- */
.dt-proof { padding-block: 3rem; background: #fff; border-block: 1px solid rgba(14,16,21,.07); }
.dt-proof .dt-section-title { font-size: clamp(1.2rem, 2vw, 1.8rem); max-width: 60ch; }
.dt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-block: 2rem; }
.dt-stat { display: flex; flex-direction: column; gap: .25rem; }
.dt-stat strong { font-family: var(--mono); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--indigo); }
.dt-stat span { color: var(--muted); font-size: .9rem; }
.dt-stats-compact { margin-top: 1.5rem; }
.dt-marquee { overflow: hidden; position: relative; padding-block: .8rem; }
.dt-marquee-track { display: flex; gap: 3rem; width: max-content; animation: dt-marquee 24s linear infinite; }
.dt-marquee-track span { font-family: var(--mono); font-size: .85rem; color: var(--muted); white-space: nowrap; }
@keyframes dt-marquee { to { transform: translateX(50%); } }

/* ---------- Services ---------- */
.dt-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.dt-seg { display: flex; flex-wrap: wrap; gap: .35rem; background: #fff; border-radius: 999px; padding: .35rem; border: 1px solid rgba(14,16,21,.08); }
.dt-seg button { border: 0; background: transparent; color: var(--muted); padding: .5rem .9rem; border-radius: 999px; cursor: pointer; font-size: .85rem; }
.dt-seg button.is-on { background: var(--indigo); color: #fff; }
.dt-service-list { border-top: 1px solid rgba(14,16,21,.12); }
.dt-service { border-bottom: 1px solid rgba(14,16,21,.12); }
.dt-service summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem .25rem; cursor: pointer; font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.4rem); list-style: none; }
.dt-service summary::-webkit-details-marker { display: none; }
.dt-service-plus { color: var(--indigo); font-size: 1.6rem; line-height: 1; transition: transform .2s var(--ease); }
.dt-service[open] .dt-service-plus { transform: rotate(45deg); }
.dt-service-body { padding: 0 .25rem 1.5rem; color: var(--muted); max-width: 80ch; }

/* ---------- Fixes / cards ---------- */
.dt-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.dt-card { background: var(--card); border: 1px solid rgba(14,16,21,.07); border-radius: var(--r); padding: 1.7rem; }
.dt-card-num { font-family: var(--mono); color: var(--indigo); font-size: .85rem; }
.dt-card h3 { margin-block: 1rem .6rem; }
.dt-card p { color: var(--muted); font-size: .94rem; }

/* ---------- Quality (dark) ---------- */
.dt-night { background: var(--night); color: var(--on-night); }
.dt-night .dt-eyebrow { color: #9c94ff; }
.dt-night .dt-lead { color: #a9afbb; }
.dt-quality-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); margin-top: 2.5rem; }
.dt-record { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.2rem; }
.dt-record h3 { color: var(--on-night); }
.dt-record p { color: #a9afbb; margin: 0; }
.dt-stamp {
    display: inline-flex; border: 3px double var(--pass); color: var(--pass);
    padding: .35rem 1rem; border-radius: 8px; transform: rotate(-6deg); font-family: var(--mono); margin-top: 1.5rem;
}
.dt-checks { list-style: none; margin: 0; padding: 0; }
.dt-checks li { padding: .9rem 0 .9rem 2rem; border-bottom: 1px solid rgba(255,255,255,.1); color: #d7dae0; position: relative; }
.dt-checks li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--pass); font-family: var(--mono); }

/* ---------- Capabilities ---------- */
.dt-tabs { display: flex; gap: .5rem; margin-block: 1.5rem 1rem; flex-wrap: wrap; }
.dt-tabs button { border: 1px solid rgba(14,16,21,.12); background: #fff; color: var(--muted); border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; }
.dt-tabs button.is-on { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.dt-tab-panel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.dt-tab-panel li { background: var(--card); padding: 1.2rem 1.4rem; border-radius: 14px; font-weight: 600; }

/* ---------- Facility ---------- */
.dt-facility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.dt-point-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.dt-point-list li { padding: .55rem 0 .55rem 1.8rem; position: relative; color: var(--muted); }
.dt-point-list li::before { content: '—'; position: absolute; inset-inline-start: 0; color: var(--indigo); }
.dt-placeholder {
    border-radius: var(--r); min-height: 260px;
    background: repeating-linear-gradient(135deg, #d9dbe6 0 12px, #e4e5ed 12px 24px);
    display: grid; place-items: center; color: var(--indigo); font-family: var(--mono); font-size: 1.4rem;
    border: 1px solid rgba(14,16,21,.1);
}
.dt-placeholder-wide { min-height: 320px; }

/* ---------- Work ---------- */
.dt-work-grid .dt-card { position: relative; overflow: hidden; }
.dt-placeholder-case { min-height: 180px; margin-bottom: 1.2rem; }
.dt-placeholder-case span { background: rgba(255,255,255,.85); padding: .3rem .8rem; border-radius: 999px; }
.dt-redact { display: block; width: 46%; height: 9px; background: var(--ink); opacity: .75; margin-top: 1rem; border-radius: 3px; }

/* ---------- FAQ ---------- */
.dt-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); }
.dt-faq-item { border-bottom: 1px solid rgba(14,16,21,.12); padding-block: 1.1rem; }
.dt-faq-item summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.dt-faq-item summary::-webkit-details-marker { display: none; }
.dt-faq-item p { color: var(--muted); padding-top: .8rem; margin: 0; }

/* ---------- Contact ---------- */
.dt-contact { background: #fff; border-top: 1px solid rgba(14,16,21,.07); }
.dt-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.dt-contact-details { display: grid; gap: .65rem; margin-top: 1.5rem; color: var(--muted); }
.dt-contact-details p { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.dt-contact-details p > span { font-weight: 700; color: var(--ink); }
.dt-contact-details a { color: var(--indigo); }
.dt-form { display: grid; gap: 1rem; background: var(--card); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.5rem); }
.dt-form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 700; }
.dt-form input, .dt-form textarea {
    width: 100%; padding: .75rem 1rem; border-radius: 12px; border: 1px solid rgba(14,16,21,.15);
    background: #fff; color: var(--ink); font-weight: 400;
}
.dt-form-note { font-size: .8rem; color: var(--muted); margin: 0; }
.dt-form-status { font-size: .9rem; font-weight: 700; color: #176b45; background: #eaf8f0; border-radius: 12px; padding: .75rem 1rem; margin: 0; }
.dt-form-error { font-size: .8rem; font-weight: 500; color: #b42318; margin: 0; }

/* ---------- Footer ---------- */
.dt-foot { background: var(--night); color: var(--on-night); padding-block: 2.5rem; }
.dt-foot-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.dt-foot p { color: #a9afbb; font-size: .9rem; margin-top: .5rem; }
.dt-foot-meta { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: #a9afbb; }
.dt-foot-address { white-space: pre-line; }
.dt-foot-meta a:hover { color: #fff; }

/* ---------- Article / module compatibility ---------- */
.dt-article { padding-block: clamp(3rem, 6vw, 6rem); max-width: 900px; }
.dt-article-head { margin-bottom: 2rem; }
.dt-article-body { background: #fff; border-radius: var(--r); padding: clamp(1.5rem, 4vw, 3rem); }
.dt-article-body img { border-radius: 14px; margin-block: 1rem; }
.dt-article-body pre { direction: ltr; text-align: left; background: var(--night); color: var(--on-night); padding: 1rem; border-radius: 12px; overflow-x: auto; }
.dt-article-body ul, .dt-article-body ol { padding-inline-start: 1.5rem; }
.dt-article-body blockquote { border-inline-start: 4px solid var(--indigo); background: rgba(58,46,219,.07); padding: 1rem 1.2rem; border-radius: 12px; }

/* Themes/default class compatibility so Blog/Gallery remain readable. */
.dt-body .cms-section { margin-bottom: 2.5rem; }
.dt-body .cms-section-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.dt-body .cms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.dt-body .cms-card { background: #fff; border: 1px solid rgba(14,16,21,.08); border-radius: var(--r); padding: 1.25rem; }
.dt-body .cms-card-title { font-size: 1.15rem; margin: .5rem 0; }
.dt-body .cms-card-title a:hover { color: var(--indigo); }
.dt-body .cms-card-meta, .dt-body .cms-card-text, .dt-body .cms-empty { color: var(--muted); font-size: .9rem; }
.dt-body .cms-thumb, .dt-body .cms-card-cover { border-radius: 14px; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(58,46,219,.12), var(--card)); display: grid; place-items: center; color: var(--indigo); font-size: 2rem; object-fit: cover; }
.dt-body .cms-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.dt-body .cms-gallery-item { border-radius: var(--r); overflow: hidden; background: #fff; }
.dt-body .cms-pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.dt-body .cms-pagination a, .dt-body .cms-pagination span { padding: .4rem .8rem; border-radius: 9px; background: #fff; border: 1px solid rgba(14,16,21,.1); }
.dt-body .cms-article-content h2, .dt-body .cms-article-content h3 { margin-top: 1.4em; }
.dt-body .cms-breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }
.dt-body .cms-chip { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: rgba(58,46,219,.1); color: var(--indigo); }

/* ---------- Error ---------- */
.dt-error { text-align: center; padding-block: clamp(4rem, 10vw, 9rem); }
.dt-error-code { display: block; font-family: var(--mono); font-size: clamp(4rem, 12vw, 8rem); color: var(--indigo); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .dt-nav-links { display: none; }
    .dt-burger { display: block; margin-inline-start: auto; }
    .dt-nav-cta { display: none; }
    .dt-menu {
        display: block; position: absolute; inset-block-start: 100%; inset-inline: 0;
        background: var(--clean); border-bottom: 1px solid rgba(14,16,21,.1);
        padding: 1rem 1.25rem 1.5rem; box-shadow: 0 20px 40px rgba(11,12,17,.12);
    }
    .dt-menu a { display: block; padding: .75rem .25rem; border-bottom: 1px solid rgba(14,16,21,.07); font-weight: 700; }
    .dt-menu .dt-btn { margin-top: 1rem; border-bottom: 0; }
}

@media (max-width: 900px) {
    .dt-story-grid, .dt-quality-grid, .dt-facility-grid, .dt-faq-grid, .dt-contact-grid { grid-template-columns: 1fr; }
    .dt-sec-head { flex-direction: column; align-items: flex-start; }
    .dt-stage-card { min-height: 360px; }

    /* Slider: shorter canvas, softer scrim, controls pulled inwards. */
    .dt-slider { min-height: clamp(440px, 62vh, 600px); }
    .dt-slide-inner { max-width: 100%; }
    .dt-slide-scrim {
        background: linear-gradient(180deg, rgba(6, 8, 14, .55) 0%, rgba(6, 8, 14, .72) 45%, rgba(6, 8, 14, .92) 100%);
    }
    .dt-slide { align-items: flex-end; padding-block-end: 5.5rem; }
    .dt-slide-title { font-size: clamp(1.7rem, 5.6vw, 2.6rem); }
    .dt-slider-nav { width: 44px; height: 44px; font-size: 1rem; }
    .dt-slider-prev { inset-inline-end: .75rem; }
    .dt-slider-next { inset-inline-start: .75rem; }
}

@media (max-width: 640px) {
    .dt-wrap { width: min(100% - 1.5rem, var(--maxw)); }
    body.dt-body { font-size: 15px; }
    .dt-seg { border-radius: 14px; }
    .dt-seg button { font-size: .78rem; padding: .4rem .65rem; }
    .dt-card-grid, .dt-stats { grid-template-columns: 1fr; }
    .dt-foot-inner { flex-direction: column; }
    .dt-rail button { width: 34px; height: 34px; }

    /* Slider on phones: text-first, no decorative arrows (dots stay), 16px+ type. */
    .dt-slider { min-height: 78svh; }
    .dt-slide { padding-block-end: 4.5rem; }
    .dt-slide-kicker { font-size: .74rem; letter-spacing: .1em; margin-bottom: .7rem; }
    .dt-slide-title { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.22; margin-bottom: .75rem; }
    .dt-slide-text { font-size: .95rem; margin-bottom: 1.4rem; }
    .dt-slide-actions { width: 100%; }
    .dt-slide-actions .dt-btn { flex: 1 1 100%; min-height: 50px; }
    .dt-slider-nav { display: none; }
    .dt-slider-dots { inset-block-end: 1.15rem; gap: .4rem; }
    .dt-slider-dots button { width: 26px; height: 3px; }
    .dt-slider-dots button.is-on { width: 46px; }
    /* The image should not fight the text on a small screen. */
    .dt-slide-img { object-position: center 30%; }
}

/* Very small / landscape phones */
@media (max-width: 400px), (max-height: 480px) {
    .dt-slider { min-height: 100svh; }
    .dt-slide-text { display: none; }
}

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