/* ============================================================
   DNM Solutions — Design System
   Frontend + Admin. No frameworks.
   ============================================================ */

:root {
    --bg: #080808;
    --surface: #111111;
    --surface-2: #171717;
    --surface-3: #1d1d1d;
    --text: #F4F4F0;
    --muted: #999999;
    --muted-2: #6b6b6b;
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .18);
    --accent: #C7F36B;
    --accent-dim: rgba(199, 243, 107, .12);
    --accent-ink: #0b0f02;
    --danger: #ff6b6b;
    --warning: #ffc857;
    --success: #5dd98a;
    --radius: 4px;
    --radius-lg: 10px;
    --container: 1280px;
    --header-h: 72px;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--text); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { padding-left: 1.1em; }
li { margin-bottom: .4em; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.muted { color: var(--muted); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-border { border-top: 1px solid var(--border); }

.section-head { margin-bottom: 56px; }
.section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    max-width: 18ch;
}
.section-head--center { text-align: center; }
.section-head--center .section-title { margin-inline: auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all .22s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #d9ff8a; color: var(--accent-ink); }

.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-3); color: var(--text); border-color: var(--accent); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow .arrow { transition: transform .22s var(--ease); display: inline-block; }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    background: rgba(8, 8, 8, .55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(8, 8, 8, .88);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}
.site-logo {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text);
    display: inline-flex;
    align-items: baseline;
}
.site-logo span { color: var(--accent); font-weight: 600; }
.site-logo:hover { color: var(--text); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.site-nav-link {
    font-size: .95rem;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    padding: 6px 0;
}
.site-nav-link:hover { color: var(--text); }
.site-nav-link.is-active { color: var(--text); }
.site-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent);
}
.site-nav-cta {
    font-size: .95rem;
    font-weight: 600;
    color: var(--accent-ink);
    background: var(--accent);
    padding: 11px 20px;
    border-radius: var(--radius);
    transition: background .2s var(--ease);
}
.site-nav-cta:hover { background: #d9ff8a; color: var(--accent-ink); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 84px) 0 96px;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 72% 30%, rgba(199, 243, 107, .10), transparent 65%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 40%, transparent 100%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 980px; }
.hero-title {
    font-size: clamp(2.7rem, 8vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}
.hero-title .accent-text { color: var(--accent); }
.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--muted);
    letter-spacing: .06em;
}

/* ---------- Trust strip ---------- */
.trust-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px 0;
}
.trust-item .trust-num {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
.trust-item .trust-label { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- About split ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-body p { color: var(--muted); font-size: 1.05rem; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.value-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: .95rem;
    font-weight: 500;
}
.value-chip::before { content: "✓"; color: var(--accent); margin-right: 10px; font-family: var(--font-mono); }

/* ---------- Service rows ---------- */
.service-rows { border-top: 1px solid var(--border); }
.service-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 30px 8px;
    border-bottom: 1px solid var(--border);
    transition: padding .25s var(--ease), background .25s var(--ease);
    position: relative;
}
.service-row:hover { padding-left: 22px; background: var(--surface); }
.service-row:hover .service-row-title { color: var(--accent); }
.service-row-index {
    font-family: var(--font-mono);
    font-size: .9rem;
    color: var(--muted-2);
}
.service-row-title {
    font-size: clamp(1.5rem, 3.4vw, 2.6rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    transition: color .2s var(--ease);
}
.service-row-desc { color: var(--muted); margin-top: 6px; max-width: 52ch; display: none; }
.service-row:hover .service-row-desc { display: block; }
.service-row .arrow { font-size: 1.6rem; transition: transform .25s var(--ease); color: var(--muted); }
.service-row:hover .arrow { transform: translateX(6px); color: var(--accent); }

/* ---------- Project cards ---------- */
.project-card { display: block; margin-bottom: 88px; }
.project-card-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
}
.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.project-card:hover .project-card-media img { transform: scale(1.03); }
.project-card-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,8,8,.55), transparent 55%);
    opacity: .6;
    transition: opacity .3s;
}
.project-card:hover .project-card-media::after { opacity: .85; }
.project-card-body { padding: 20px 4px 0; }
.project-card-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.project-card-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 8px; }
.project-card-desc { color: var(--muted); max-width: 60ch; }
.project-card-links { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }

.project-feature {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 110px;
}
.project-feature:nth-child(even) .project-feature-media { order: 2; }
.project-feature-media {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
}
.project-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-feature:hover .project-feature-media img { transform: scale(1.03); }
.project-feature-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.project-feature-desc { color: var(--muted); margin-bottom: 20px; }

/* ---------- Process ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.process-step {
    border-top: 2px solid var(--border-strong);
    padding-top: 18px;
    transition: border-color .25s var(--ease);
}
.process-step:hover { border-color: var(--accent); }
.process-num { font-family: var(--font-mono); color: var(--accent); font-size: .9rem; margin-bottom: 8px; }
.process-title { font-size: 1.15rem; margin-bottom: 8px; }
.process-text { color: var(--muted); font-size: .92rem; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.why-item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.why-item-icon { color: var(--accent); margin-bottom: 14px; }
.why-item-title { font-size: 1.1rem; margin-bottom: 6px; }
.why-item-text { color: var(--muted); font-size: .95rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.team-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.team-photo {
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo .placeholder {
    font-family: var(--font-mono);
    color: var(--muted-2);
    font-size: 2rem;
}
.team-body { padding: 20px; }
.team-name { font-size: 1.1rem; margin-bottom: 2px; }
.team-role { color: var(--accent); font-size: .9rem; margin-bottom: 10px; }
.team-bio { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.team-socials { display: flex; gap: 14px; }
.team-socials a { color: var(--muted); font-size: .85rem; }
.team-socials a:hover { color: var(--accent); }

/* ---------- Testimonials ---------- */
.testimonial-block { max-width: 900px; margin: 0 auto; }
.testimonial-mark {
    font-family: var(--font-mono);
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}
.testimonial-quote {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin-bottom: 28px;
}
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
    overflow: hidden;
    flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 650; }
.testimonial-role { color: var(--muted); font-size: .92rem; }
.testimonial-rating { color: var(--accent); margin-bottom: 12px; letter-spacing: 3px; }

.testimonials-slider { display: grid; gap: 32px; }
.testimonial-item {
    border-top: 1px solid var(--border-strong);
    padding-top: 28px;
}

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.blog-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body { padding: 22px; }
.blog-card-meta {
    display: flex;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: .76rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
}
.blog-card-meta .tag { color: var(--accent); }
.blog-card-title { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.25; }
.blog-card-excerpt { color: var(--muted); font-size: .94rem; }

.blog-feature {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}
.blog-feature-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
}
.blog-feature-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA block ---------- */
.cta-block {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 60% 100% at 85% 20%, rgba(199, 243, 107, .14), transparent 60%),
        var(--surface);
    padding: 72px 56px;
    text-align: center;
    overflow: hidden;
}
.cta-title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.cta-sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field-label { display: block; font-size: .9rem; font-weight: 550; margin-bottom: 8px; }
.field-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color .2s var(--ease);
}
.field-input:focus { outline: none; border-color: var(--accent); }
textarea.field-input { resize: vertical; min-height: 120px; }
select.field-input { appearance: none; }
.field-hint { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.field-error { color: var(--danger); font-size: .85rem; margin-top: 6px; }
.form-error-box, .alert-error { color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 6px;
    background: none;
    border: 0;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.accordion-btn .icon {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--accent);
    transition: transform .25s var(--ease);
}
.accordion-item[open] .accordion-btn .icon { transform: rotate(45deg); }
.accordion-panel { padding: 0 6px 22px; color: var(--muted); max-width: 72ch; }

.project-hero-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 21 / 9;
    background: var(--surface-2);
    box-shadow: var(--shadow);
}
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tags ---------- */
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .76rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 4px 10px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    padding: calc(var(--header-h) + 72px) 0 56px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(ellipse 60% 90% at 80% 0%, rgba(199, 243, 107, .07), transparent 60%);
}
.page-hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 16px; }
.page-hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* ---------- Detail page prose ---------- */
.prose { max-width: 76ch; }
.prose p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.2em; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; margin-bottom: .6em; }
.prose ul { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }

.meta-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}
.meta-panel dt { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.meta-panel dd { margin: 0 0 16px; font-size: .95rem; }
.meta-panel .meta-panel-actions { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }

.feature-list li { margin-bottom: 12px; }
.feature-list li::marker { color: var(--accent); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-grid .gallery-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
}
.gallery-grid .gallery-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 20px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .5; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 10px; margin-top: 48px; align-items: center; }
.pagination a, .pagination span, .pagination button {
    min-width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0 14px;
    font-size: .92rem;
    background: none;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-sans);
}
.pagination a:hover, .pagination button:hover { border-color: var(--accent); }
.pagination .current, .pagination button.current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.filter-row { margin-bottom: 8px; }
.filter-row .pagination { margin-top: 0; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.contact-info-item .label { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; color: var(--muted-2); width: 96px; flex-shrink: 0; }
.contact-info-item .value { font-size: 1rem; }
.contact-socials { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 72px 0 0; margin-top: 40px; background: var(--surface); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
}
.footer-text { color: var(--muted); margin-top: 18px; max-width: 34ch; font-size: .95rem; }
.footer-heading {
    font-family: var(--font-mono);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted-2);
    margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: .95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    color: var(--muted-2);
    font-size: .85rem;
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px; }
.notfound-code { font-family: var(--font-mono); font-size: clamp(6rem, 20vw, 12rem); line-height: 1; color: var(--accent); letter-spacing: -0.05em; }
.notfound-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 12px; }
.notfound-sub { color: var(--muted); margin-bottom: 32px; }

/* ---------- Animations ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: 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;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .process-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .meta-panel { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        background: rgba(8, 8, 8, .98);
        border-bottom: 1px solid var(--border);
        padding: 18px 24px 24px;
        transform: translateY(-16px);
        opacity: 0;
        visibility: hidden;
        transition: transform .28s var(--ease), opacity .28s var(--ease), visibility .28s;
    }
    .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .site-nav-link { font-size: 1.15rem; padding: 10px 0; width: 100%; }
    .site-nav-cta { margin-top: 12px; width: 100%; justify-content: center; }
    .nav-toggle { display: flex; }

    .about-split { grid-template-columns: 1fr; gap: 36px; }
    .project-feature { grid-template-columns: 1fr; gap: 28px; }
    .project-feature:nth-child(even) .project-feature-media { order: 0; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .why-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .blog-feature { grid-template-columns: 1fr; gap: 24px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .section-sm { padding: 44px 0; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .blog-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta-block { padding: 48px 24px; }
    .hero { padding-top: calc(var(--header-h) + 56px); }
    .hero-meta { gap: 14px 22px; }
    .service-row { grid-template-columns: 40px 1fr auto; padding: 22px 0; }
}

/* ============================================================
   Admin
   ============================================================ */
.admin-body { background: #0d0d0d; }
.admin-body .container { max-width: none; }

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-brand { font-weight: 700; font-size: 1.05rem; padding: 4px 10px 22px; display: block; }
.admin-brand span { color: var(--accent); }

.admin-nav { flex: 1; }
.admin-nav-label {
    font-family: var(--font-mono);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted-2);
    margin: 18px 10px 8px;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: .92rem;
    margin-bottom: 2px;
}
.admin-nav-link:hover { color: var(--text); background: var(--surface-2); }
.admin-nav-link.is-active { color: var(--text); background: var(--surface-2); }
.admin-nav-link.is-active::before { content: ""; width: 3px; height: 16px; background: var(--accent); border-radius: 2px; margin-left: -10px; }
.admin-nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: .7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}
.admin-back { margin-top: 20px; padding: 8px 10px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--border); }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-page-title { font-size: 1.15rem; margin: 0; flex: 1; }
.admin-user { display: flex; align-items: center; gap: 12px; }
.admin-user-name { color: var(--muted); font-size: .9rem; }

.admin-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 40px; height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 10px;
}
.admin-menu-toggle span { height: 2px; background: var(--text); }

.admin-content { padding: 28px; max-width: 1200px; }

.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-card:hover { border-color: var(--accent); }
.stat-num { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: .9rem; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.admin-grid.two-col { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.admin-card-title { font-size: 1.05rem; margin-bottom: 18px; }
.admin-subtitle {
    font-size: .82rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted-2);
    margin: 28px 0 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.admin-hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { border-bottom: 1px solid var(--border); }
.recent-list li:last-child { border-bottom: 0; }
.recent-list a { display: flex; align-items: center; gap: 12px; padding: 12px 2px; }
.recent-list strong { min-width: 140px; }
.recent-list .muted { flex: 1; }

.table-card { padding: 0; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted-2);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-table .text-right { text-align: right; }
.admin-table .td-quote { max-width: 320px; color: var(--muted); }
.admin-table tr.is-selected td { background: var(--accent-dim); }

.badge {
    display: inline-block;
    font-size: .76rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    font-family: var(--font-sans);
}
.badge-published, .badge-read, .badge-replied { background: rgba(93, 217, 138, .12); color: var(--success); border-color: rgba(93, 217, 138, .35); }
.badge-draft, .badge-new, .badge-spam { background: rgba(255, 255, 255, .06); color: var(--muted); border-color: var(--border); }
.badge-featured { background: rgba(199, 243, 107, .12); color: var(--accent); border-color: rgba(199, 243, 107, .35); }
.badge-closed { background: rgba(255, 200, 87, .1); color: var(--warning); border-color: rgba(255, 200, 87, .3); }

.inline-form { display: inline-flex; align-items: center; gap: 8px; }
.btn-link { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 0; }
.btn-link:hover { color: var(--accent); }

.alert {
    padding: 13px 18px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: .92rem;
    border: 1px solid;
}
.alert-success { background: rgba(93, 217, 138, .1); color: var(--success); border-color: rgba(93, 217, 138, .3); }
.alert-error { background: rgba(255, 107, 107, .1); color: var(--danger); border-color: rgba(255, 107, 107, .3); }

.empty-state { color: var(--muted); padding: 24px 0; text-align: center; }
.empty-state a { color: var(--accent); }

.form-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.faq-row {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
    background: var(--surface-2);
}
.faq-row-actions { display: flex; gap: 8px; }

.gallery-upload { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; background: var(--surface-2); }
.gallery-item img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; margin-bottom: 8px; width: 100%; }
.gallery-item .field-input { font-size: .85rem; padding: 8px 10px; }
.gallery-item .field-row { gap: 6px; margin-bottom: 0; }

.message-detail .message-body { white-space: pre-wrap; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.message-detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.message-meta { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin: 12px 0; }
.message-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.message-actions .inline-form select { width: auto; }

.filter-tabs { justify-content: flex-start; }
.filter-tab {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .85rem;
    color: var(--muted);
}
.filter-tab:hover { color: var(--text); border-color: var(--border-strong); }
.filter-tab.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

.homepage-section { padding: 0; }
.homepage-details summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; flex-wrap: wrap; }
.homepage-details summary::-webkit-details-marker { display: none; }
.homepage-details summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 1.4rem; }
.homepage-details[open] summary::after { content: "–"; }
.homepage-summary-info { display: flex; align-items: center; gap: 14px; }
.homepage-form { padding: 0 22px 22px; border-top: 1px solid var(--border); }
.checkbox-inline { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* Login */
.admin-body.login-page { }
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(199, 243, 107, .08), transparent 60%),
        var(--bg);
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.login-brand { font-weight: 700; letter-spacing: .02em; margin-bottom: 26px; }
.login-brand span { color: var(--accent); }
.login-title { font-size: 1.6rem; margin-bottom: 6px; }
.login-sub { color: var(--muted); margin-bottom: 24px; }

/* ---------- Responsive admin ---------- */
@media (max-width: 960px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-grid, .admin-grid.two-col { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed;
        z-index: 200;
        left: 0; top: 0; bottom: 0;
        transform: translateX(-100%);
        transition: transform .28s var(--ease);
    }
    .admin-sidebar.is-open { transform: none; }
    .admin-menu-toggle { display: flex; }
    .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-content { padding: 18px; }
    .admin-topbar { padding: 0 16px; }
    .admin-user-name { display: none; }
}
