/* Dentelo theme - design tokens, reset, typography, layout primitives.
   Colors/fonts read the --theme-* custom properties emitted server-side
   by theme_render_css_vars() (config.inc.php) from the `setting` table,
   so the admin's Theme Customizer stays the single source of truth. */

:root {
    --dt-primary: var(--theme-primary, #0f8a7c);
    --dt-primary-dark: #0b665c;
    --dt-primary-light: #e6f4f2;
    --dt-secondary: var(--theme-secondary, #23272b);
    --dt-ink: var(--theme-text, #33383d);
    --dt-ink-soft: #6b7379;
    --dt-border: #e4e7e8;
    --dt-surface: #ffffff;
    --dt-surface-alt: #f6f8f8;
    --dt-footer-bg: var(--theme-footer-bg, #14181b);
    --dt-topbar-bg: var(--theme-topbar-bg, #101314);
    --dt-radius: var(--theme-radius, 0.75rem);
    --dt-radius-sm: var(--theme-radius-sm, 0.4rem);
    --dt-shadow: var(--theme-shadow, 0 0.5rem 1.5rem rgba(13,13,13,.08));
    --dt-shadow-sm: var(--theme-shadow-sm, 0 0.25rem 0.75rem rgba(13,13,13,.06));
    --dt-heading-font: var(--theme-heading-font, 'Poppins', sans-serif);
    --dt-body-font: var(--theme-body-font, 'Inter', sans-serif);
    --dt-header-h: 84px;
    --dt-topbar-h: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
    font-family: var(--dt-body-font);
    color: var(--dt-ink);
    background: var(--dt-surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--dt-heading-font);
    font-weight: 700;
    color: var(--dt-secondary);
    letter-spacing: -0.01em;
}

a { color: var(--dt-primary); text-decoration: none; }
a:hover { color: var(--dt-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.dt-section { padding: clamp(3rem, 6vw, 6rem) 0; }
.dt-section-alt { background: var(--dt-surface-alt); }

.dt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dt-primary);
    margin-bottom: .75rem;
}
.dt-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--dt-primary);
    display: inline-block;
}

.dt-section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: .5rem;
}
.dt-section-sub {
    color: var(--dt-ink-soft);
    max-width: 640px;
    margin-bottom: 2.5rem;
}
.dt-section-head { margin-bottom: 2rem; }

/* Buttons */
.dt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .95rem;
    padding: .75rem 1.6rem;
    border-radius: var(--theme-button-radius, .5rem);
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.dt-btn:focus-visible { outline: 2px solid var(--dt-primary); outline-offset: 2px; }
.dt-btn-primary { background: var(--dt-primary); color: #fff; }
.dt-btn-primary:hover { background: var(--dt-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--dt-shadow); }
.dt-btn-outline { background: transparent; color: var(--dt-secondary); border-color: rgba(0,0,0,.15); }
.dt-btn-outline:hover { border-color: var(--dt-primary); color: var(--dt-primary); transform: translateY(-2px); }
.dt-btn-light { background: #fff; color: var(--dt-secondary); }
.dt-btn-light:hover { background: var(--dt-primary); color: #fff; transform: translateY(-2px); }
.dt-btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.dt-btn-ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; border-color: #fff; }
.dt-btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.dt-btn-block { width: 100%; }

.dt-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .3rem .65rem;
    border-radius: 50rem;
    background: var(--dt-primary-light);
    color: var(--dt-primary-dark);
}

.dt-breadcrumb-bar {
    background: var(--dt-surface-alt);
    border-bottom: 1px solid var(--dt-border);
    padding: 1rem 0;
}
.dt-breadcrumb-bar a { color: var(--dt-ink-soft); }
.dt-breadcrumb-bar .dt-current { color: var(--dt-secondary); font-weight: 600; }

.dt-page-header {
    position: relative;
    padding: 5rem 0 3.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--dt-secondary), var(--dt-primary-dark));
    overflow: hidden;
}
.dt-page-header h1 { color: #fff; margin-bottom: .5rem; }
.dt-page-header p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto; }
.dt-page-header .dt-crumbs { color: rgba(255,255,255,.65); font-size: .9rem; }
.dt-page-header .dt-crumbs a { color: rgba(255,255,255,.85); }

.dt-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--dt-ink-soft);
}
.dt-empty i { font-size: 2.5rem; color: var(--dt-border); margin-bottom: 1rem; }

.dt-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--dt-surface-alt);
    color: var(--dt-border);
    font-size: 2rem;
}

.visually-hidden-focusable-skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--dt-primary);
    color: #fff;
    padding: .75rem 1.25rem;
    z-index: 2000;
    border-radius: 0 0 .5rem 0;
}
.visually-hidden-focusable-skip:focus { left: 0; }
