/* ============================================================
   SOFTWARELAPS — main.css
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
    --primary:     #E05A00;
    --primary-dk:  #B84800;
    --primary-lt:  #FF7A25;
    --secondary:   #1A1A2E;
    --dark:        #0F0F1A;
    --text:        #2D2D3A;
    --muted:       #6B6B80;
    --bg:          #FFFFFF;
    --bg-alt:      #F8F8FC;
    --border:      #E8E8F0;

    --font-head:   'Exo 2', sans-serif;
    --font-body:   'Inter', sans-serif;
    --font-mono:   'JetBrains Mono', monospace;

    --radius:      12px;
    --radius-sm:   8px;
    --shadow:      0 4px 24px rgba(0,0,0,.08);
    --shadow-lg:   0 12px 48px rgba(0,0,0,.14);
    --transition:  .25s cubic-bezier(.4,0,.2,1);
    --header-h:    72px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Layout ───────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

section { padding: 96px 0; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--text); }
.lead { font-size: 1.125rem; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 16px rgba(224,90,0,.35);
}
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(224,90,0,.4); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-white { background: #fff; color: var(--secondary); }
.btn-white:hover { background: var(--bg-alt); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 20px; font-size: .875rem; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h); background: rgba(26,26,46,.85);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
    border-bottom-color: rgba(255,255,255,.08);
    box-shadow: 0 4px 32px rgba(0,0,0,.2);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.logo {
    font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
    color: #fff; letter-spacing: -.5px;
}
.logo span { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 8px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,.75);
    font-size: .9rem; font-weight: 500; transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language switch */
.lang-switch { display: flex; gap: 4px; }
.lang-btn {
    padding: 5px 10px; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600;
    color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2);
    transition: all var(--transition);
}
.lang-btn:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.lang-btn.active { color: #fff; background: var(--primary); border-color: var(--primary); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
    display: block; width: 22px; height: 2px; background: #fff;
    border-radius: 2px; transition: all var(--transition); transform-origin: center;
}
.hamburger span.open:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger span.open:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger span.open:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    background: var(--secondary); color: #fff;
    padding: calc(var(--header-h) + 80px) 0 80px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(224,90,0,.18) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -150px; left: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(224,90,0,.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 999px;
    background: rgba(224,90,0,.15); border: 1px solid rgba(224,90,0,.3);
    color: var(--primary-lt); font-size: .85rem; font-weight: 600;
    margin-bottom: 24px; letter-spacing: .3px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,.7); margin-bottom: 36px; font-size: 1.1rem; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--primary-lt); display: block; }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; display: block; }

/* Mockup stats row (WordPress-style individually bordered boxes) */
.mockup-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; padding: 16px;
    background: rgba(0,0,0,.2);
    border-top: 1px solid rgba(255,255,255,.07);
}
.mockup-stat {
    padding: 16px 12px; text-align: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.03);
}
.mockup-stat .stat-num { font-size: 1.6rem; }
.mockup-stat .stat-label { font-size: .68rem; }

/* Code mockup */
.code-mockup {
    background: #0d0d1a; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.05);
}
.mockup-bar {
    background: #1a1a2e; padding: 12px 16px; display: flex;
    align-items: center; gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.mockup-file { margin-left: auto; font-family: var(--font-mono); font-size: .75rem; color: rgba(255,255,255,.3); }
.mockup-body { padding: 24px; font-family: var(--font-mono); font-size: .82rem; line-height: 1.8; }
.c-comment { color: #5c6370; }
.c-keyword { color: #c678dd; }
.c-fn { color: #61afef; }
.c-str { color: #98c379; }
.c-num { color: #d19a66; }
.c-type { color: #e5c07b; }

/* ── Page hero (inner pages) ──────────────────────────────── */
.page-hero {
    background: var(--secondary); color: #fff;
    padding: calc(var(--header-h) + 64px) 0 64px;
    text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,.65); max-width: 600px; margin: 0 auto; }

/* ── Section headings ─────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .lead { max-width: 560px; margin: 0 auto; }

/* ── Service cards ────────────────────────────────────────── */
.service-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--primary); transform: scaleX(0); transition: transform var(--transition);
    transform-origin: left;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 52px; height: 52px; border-radius: var(--radius-sm);
    background: rgba(224,90,0,.1); display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--primary);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .9rem; }

/* ── Stats section ────────────────────────────────────────── */
.stats-section { background: var(--secondary); padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-box { text-align: center; padding: 40px 24px; border-right: 1px solid rgba(255,255,255,.08); }
.stat-box:last-child { border-right: none; }
.stat-box .stat-num { font-size: 2.5rem; display: block; }
.stat-box .stat-label { color: rgba(255,255,255,.5); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }

/* ── About split ──────────────────────────────────────────── */
.about-split { background: var(--bg-alt); }
.about-split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual {
    border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(135deg, var(--secondary) 0%, #2d1a4a 100%);
    min-height: 360px; display: flex; align-items: center; justify-content: center;
    position: relative;
}
.about-badge {
    position: absolute; top: 24px; left: 24px; background: var(--primary);
    color: #fff; padding: 8px 16px; border-radius: var(--radius-sm);
    font-family: var(--font-head); font-weight: 700; font-size: .85rem;
}
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--muted); margin-bottom: 32px; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
    background: var(--primary); padding: 80px 0; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 28px; }
.cta-banner .btn-white { margin: 0 auto; }

/* ── Post cards (news) ────────────────────────────────────── */
.post-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-thumb {
    height: 180px; background: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; position: relative;
}
.post-thumb.has-img img { width: 100%; height: 100%; object-fit: cover; }
.post-meta {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 0; font-size: .8rem;
}
.post-cat {
    background: rgba(224,90,0,.1); color: var(--primary);
    padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.post-date { color: var(--muted); }
.post-body { padding: 16px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.post-body h3 { margin-bottom: 8px; font-size: 1.05rem; line-height: 1.35; }
.post-body p { color: var(--muted); font-size: .88rem; flex: 1; }
.post-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
    color: var(--primary); font-weight: 600; font-size: .88rem;
    transition: gap var(--transition);
}
.post-link:hover { gap: 10px; }

/* ── Single post ──────────────────────────────────────────── */
.post-single { max-width: 780px; margin: 0 auto; padding: 64px 24px; }
.post-single-header { margin-bottom: 40px; }
.post-single-header .post-meta { padding: 0; margin-bottom: 20px; }
.post-single-body { font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.post-single-body p { margin-bottom: 20px; }
.post-single-body h2 { margin: 40px 0 16px; }
.post-single-body h3 { margin: 32px 0 12px; }
.post-single-body ul, .post-single-body ol { padding-left: 24px; margin-bottom: 20px; }
.post-single-body li { margin-bottom: 8px; }
.post-single-body blockquote {
    border-left: 4px solid var(--primary); padding: 16px 24px;
    background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0; font-style: italic; color: var(--muted);
}
.back-link {
    display: inline-flex; align-items: center; gap: 8px; color: var(--primary);
    font-weight: 600; font-size: .9rem; margin-bottom: 32px;
    transition: gap var(--transition);
}
.back-link:hover { gap: 12px; }

/* ── Values cards ─────────────────────────────────────────── */
.value-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; text-align: center;
}
.value-icon { font-size: 2rem; margin-bottom: 16px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: .9rem; }

/* ── Process steps ────────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
    text-align: center; padding: 32px 20px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    position: relative;
}
.step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
    margin: 0 auto 16px;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .88rem; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info .lead { margin-bottom: 40px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-item-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm); flex-shrink: 0;
    background: rgba(224,90,0,.1); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item-label { font-weight: 600; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.contact-item-val { font-weight: 500; margin-top: 2px; }
.contact-item-val a { color: var(--text); transition: color var(--transition); }
.contact-item-val a:hover { color: var(--primary); }

/* Map placeholder */
.map-placeholder {
    height: 240px; background: var(--bg-alt); border-radius: var(--radius);
    border: 1px solid var(--border); display: flex; align-items: center;
    justify-content: center; color: var(--muted); margin-top: 32px;
    font-size: .9rem;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* ── Form ─────────────────────────────────────────────────── */
.form-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .85rem; color: var(--text); }
.form-field input,
.form-field textarea,
.form-field select {
    padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: .95rem; color: var(--text);
    background: var(--bg); transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(224,90,0,.12);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.field-error { font-size: .8rem; color: #e53e3e; margin-top: 4px; }
.form-feedback {
    padding: 14px 18px; border-radius: var(--radius-sm);
    font-weight: 500; font-size: .9rem; margin-bottom: 20px; display: none;
}
.form-feedback.success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; display: block; }
.form-feedback.error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; display: block; }

/* ── Alert (flash) ────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 48px 0 0; }
.pagination a, .pagination span {
    padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    font-size: .9rem; transition: all var(--transition);
}
.pagination a:hover { background: var(--bg-alt); }
.pagination .active span { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 80px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; }
.footer-brand .logo-light { color: #fff; margin-bottom: 14px; display: block; font-size: 1.2rem; }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,.5); max-width: 240px; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-btn {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.07); color: rgba(255,255,255,.6);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.social-btn svg { width: 16px; height: 16px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li, .footer-col a { font-size: .88rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-col a:hover { color: var(--primary-lt); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 24px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.35); }
.footer-bottom-inner div { display: flex; gap: 24px; }
.footer-bottom-inner a { color: rgba(255,255,255,.35); transition: color var(--transition); }
.footer-bottom-inner a:hover { color: rgba(255,255,255,.7); }

/* ── Admin ────────────────────────────────────────────────── */
.admin-body { background: #f4f4f8; min-height: 100vh; }
.admin-header {
    background: var(--secondary); padding: 0 32px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
}
.admin-header .logo { font-size: 1.1rem; }
.admin-header nav { display: flex; gap: 4px; }
.admin-header nav a {
    padding: 6px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,.7);
    font-size: .88rem; font-weight: 500; transition: all var(--transition);
}
.admin-header nav a:hover, .admin-header nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.admin-content { padding: 40px 32px; max-width: 1100px; margin: 0 auto; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 12px 16px; font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-alt); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-gray  { background: #f1f5f9; color: #64748b; }
.badge-unread { background: #fef9c3; color: #854d0e; }
.admin-actions { display: flex; gap: 8px; }
.btn-danger { background: #fee2e2; color: #991b1b; font-size: .8rem; padding: 6px 14px; border-radius: var(--radius-sm); font-weight: 600; transition: all var(--transition); }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-secondary { background: var(--bg-alt); color: var(--text); font-size: .8rem; padding: 6px 14px; border-radius: var(--radius-sm); font-weight: 600; transition: all var(--transition); }
.btn-secondary:hover { background: var(--border); }

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.hidden-mobile { }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hamburger { display: flex; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        background: var(--secondary); flex-direction: column; align-items: flex-start;
        padding: 24px; gap: 4px; transform: translateX(-100%);
        transition: transform var(--transition);
    }
    .main-nav.active { transform: translateX(0); }
    .nav-link { font-size: 1.1rem; padding: 12px 16px; width: 100%; }
    .hidden-mobile { display: none; }
    .hero-inner { grid-template-columns: 1fr; }
    .about-split-inner { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 64px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 580px) {
    .hero { padding: calc(var(--header-h) + 48px) 0 48px; }
    .process-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .hero-cta { flex-direction: column; }
    .form-card { padding: 24px; }
}

/* ── Testimonial cards ────────────────────────────────────── */
.testimonial-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; display: flex; flex-direction: column; gap: 20px;
    transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-quote { margin-bottom: 4px; }
.testimonial-content { color: var(--text); font-size: .95rem; line-height: 1.75; flex: 1; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-avatar-placeholder {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-role { font-size: .8rem; margin-top: 2px; }

/* ── Portfolio cards ──────────────────────────────────────── */
.portfolio-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column;
}
.portfolio-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.portfolio-thumb {
    height: 200px; background: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-thumb--placeholder { background: linear-gradient(135deg, var(--secondary), #2d1a4a); }
.portfolio-body { padding: 20px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.portfolio-body h3 { margin-bottom: 8px; font-size: 1.05rem; line-height: 1.3; }
.portfolio-body p { color: var(--muted); font-size: .88rem; flex: 1; }
.portfolio-client { font-size: .8rem; margin-top: 8px; color: var(--muted); }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tech-tag {
    background: rgba(224,90,0,.1); color: var(--primary);
    padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
}

/* ── Cookie consent banner ────────────────────────────────── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
    background: var(--secondary); color: rgba(255,255,255,.85);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px 24px;
}
.cookie-banner-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-banner-inner p { font-size: .88rem; flex: 1; min-width: 260px; margin: 0; color: rgba(255,255,255,.75); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Accessibility toolbar ────────────────────────────────── */
.a11y-toolbar {
    position: fixed; bottom: 80px; right: 20px; z-index: 8990;
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.a11y-toggle {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--secondary); color: rgba(255,255,255,.85);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: all var(--transition);
    border: 1px solid rgba(255,255,255,.1);
}
.a11y-toggle:hover { background: var(--primary); color: #fff; transform: scale(1.05); }
.a11y-panel {
    background: var(--secondary); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius); padding: 16px; min-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.a11y-group { margin-bottom: 14px; }
.a11y-group:last-child { margin-bottom: 0; }
.a11y-label { display: block; color: rgba(255,255,255,.5); font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.a11y-btn-group { display: flex; gap: 6px; }
.a11y-btn {
    flex: 1; padding: 7px 10px;
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm);
    font-size: .85rem; font-weight: 600; cursor: pointer;
    transition: all var(--transition); text-align: center;
}
.a11y-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.a11y-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.a11y-btn--full { width: 100%; }

/* ── High contrast / greyscale modes ─────────────────────── */
.greyscale { filter: grayscale(100%); }
.high-contrast {
    --primary:    #ff8800;
    --text:       #000000;
    --muted:      #333333;
    --bg:         #ffffff;
    --bg-alt:     #f0f0f0;
    --border:     #888888;
    --secondary:  #000000;
}
.high-contrast body { background: #fff; color: #000; }

/* ── Badge yellow ─────────────────────────────────────────── */
.badge-yellow { background: #fef9c3; color: #854d0e; }

/* ── Admin back-link ──────────────────────────────────────── */
.admin-content .back-link { margin-bottom: 0; color: var(--primary); }

/* ── Search page ──────────────────────────────────────────── */
.page-hero input::placeholder { color: rgba(255,255,255,.5); }
