/* =========================================================
   QS IT Solutions — Stylesheet
   Donker, premium developer-aesthetic
   ========================================================= */

:root {
    --bg: #08090d;
    --bg-elevated: #0f111a;
    --bg-elevated-2: #151824;

    --text: #f2f3f8;
    --text-muted: #9aa0b4;
    --text-faint: #666c80;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);

    --accent: #5b7cfa;
    --accent-2: #8b5cf6;
    --accent-cyan: #22d3ee;
    --accent-soft: rgba(91, 124, 250, 0.14);
    --accent-rgb: 91, 124, 250;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-md: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --glow: 0 0 0 1px rgba(var(--accent-rgb), 0.25), 0 12px 40px -12px rgba(var(--accent-rgb), 0.35);

    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

    --container-width: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
}
p { margin: 0 0 1em; color: var(--text-muted); }
button { font-family: inherit; cursor: pointer; }

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

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated-2); border: 3px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

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

.section { padding: 110px 0; position: relative; }
.section.tight { padding: 76px 0; }
.section.subtle-bg { background: var(--bg-elevated); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px 2px rgba(var(--accent-rgb), 0.7);
}

.section-head {
    max-width: 620px;
    margin: 0 0 56px;
}
.section-head h2 { font-size: clamp(1.8rem, 2.9vw, 2.4rem); }
.section-head p { font-size: 1.05rem; margin: 0; }

.highlight {
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-cyan), var(--accent));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- Ambient overlays (grain + cursor glow) ---- */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0.045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    height: 480px;
    margin-left: -240px;
    margin-top: -240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), rgba(139, 92, 246, 0.06) 45%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.cursor-glow.active { opacity: 1; }

/* ---- Animations ---- */
@media (prefers-reduced-motion: no-preference) {
    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(18px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes drift {
        0%, 100% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(-24px, 18px) scale(1.06); }
    }
    @keyframes gradientShift {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.55; }
    }

    .highlight { animation: gradientShift 6s ease infinite; }

    .reveal-in {
        opacity: 0;
        animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-delay: calc(var(--d, 0) * 0.1s);
    }

    .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: var(--rd, 0s);
    }
    .reveal.is-visible { opacity: 1; transform: translateY(0); }

    .dash-dot { animation: pulse 2s ease infinite; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal-in, .reveal { opacity: 1; transform: none; }
    .highlight { color: var(--accent); }
}

/* ---- Spotlight (mouse-tracked glow on cards) ---- */
.spotlight { position: relative; }
.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.14), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    will-change: transform;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(var(--accent-rgb), 0.55);
}
.btn-primary:hover { box-shadow: 0 12px 32px -8px rgba(var(--accent-rgb), 0.8); }
.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-outline-inverse {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-outline-inverse:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 13, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { background: rgba(8, 9, 13, 0.92); box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.7); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    transition: padding 0.2s ease;
}
.site-header.scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    color: var(--text);
}
.logo-icon { border-radius: 50%; }
.logo-text strong { font-weight: 800; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); border-color: var(--accent); }
.nav-cta { white-space: nowrap; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero { padding: 96px 0 100px; overflow: hidden; position: relative; }
.hero-glow {
    position: absolute;
    top: -160px;
    right: -100px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), rgba(139, 92, 246, 0.08) 55%, transparent 75%);
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
    animation: drift 16s ease-in-out infinite;
}
#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
    display: block;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-text h1 { font-size: clamp(2.1rem, 3.8vw, 3.15rem); }
.hero-text p { font-size: 1.08rem; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 34px; flex-wrap: wrap; }
.hero-trust {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.hero-trust li { position: relative; padding-left: 16px; }
.hero-trust li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* Hero visual: interactieve investeringscalculator */
.hero-visual { display: flex; justify-content: center; }
.estimator-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, var(--glass-bg-hover), var(--glass-bg));
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), 0 0 60px -20px rgba(var(--accent-rgb), 0.25);
    padding: 28px 26px 26px;
}
.estimator-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.estimator-header h3 { margin: 0; font-size: 1.05rem; }
.estimator-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    padding: 4px 10px;
    border-radius: 999px;
}
.estimator-group { margin-bottom: 20px; }
.estimator-label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    margin-bottom: 10px;
}
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.check-group { display: flex; flex-direction: column; gap: 10px; }
.estimator-check { display: flex; align-items: center; gap: 10px; font-size: 0.87rem; color: var(--text-muted); cursor: pointer; }
.estimator-check input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.estimator-result {
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.estimator-result-label { display: block; font-size: 0.76rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.estimator-result strong {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}
.estimator-note { font-size: 0.78rem; color: var(--text-faint); }
.estimator-cta { width: 100%; margin-top: 18px; }

/* ---- Service list (bento grid) ---- */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.service-item {
    padding: 32px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.service-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--glass-bg-hover);
    box-shadow: var(--glow);
}
.service-item:nth-child(1) { grid-column: span 2; }
.service-icon-box {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}
.service-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-item p { font-size: 0.94rem; margin-bottom: 16px; }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
}
.service-link .icon { width: 15px; height: 15px; transition: transform 0.15s ease; }
.service-item:hover .service-link .icon { transform: translate(2px, -2px); }

/* Project grid (gapped glass cards) */
.project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.project-item {
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.project-item:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--glow); }
.project-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 12px;
}
.project-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.project-item p { font-size: 0.92rem; margin: 0; }

/* ---- Process (connected timeline) ---- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.process-step { padding: 0 24px 0 0; position: relative; }
.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19px;
    left: calc(38px + 12px);
    right: 12px;
    height: 1px;
    background: var(--border);
}
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.process-step h3 { font-size: 1.02rem; }
.process-step p { font-size: 0.92rem; }

/* ---- CTA banner ---- */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(139, 92, 246, 0.08));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-banner h2 { font-size: 1.7rem; margin-bottom: 8px; color: #fff; }
.cta-banner p { margin: 0; color: var(--text-muted); }

/* ---- Page hero (inner pages) ---- */
.page-hero {
    padding: 76px 0 56px;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(circle at 15% 0%, rgba(var(--accent-rgb), 0.14), transparent 55%);
}
.page-hero h1 { font-size: clamp(1.9rem, 3.3vw, 2.5rem); max-width: 720px; }
.page-hero p { font-size: 1.02rem; max-width: 600px; margin: 0; }

/* ---- 404-pagina ---- */
.not-found { padding: 140px 0; }
.not-found-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.not-found-inner h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.not-found-inner .hero-actions { justify-content: center; margin-top: 26px; }

/* ---- Service detail sections ---- */
.service-detail-grid {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 40px;
    align-items: start;
}
.service-detail-grid.reverse { grid-template-columns: 1fr 96px; }
.service-detail-grid.reverse .service-icon-large { order: 2; }
.service-icon-large {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.check-list { margin-top: 20px; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 0.95rem;
}
.check-list li .icon { color: var(--accent); margin-top: 2px; }

/* ---- About page ---- */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 56px;
    align-items: center;
}
.fact-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
}
.fact-panel-item {
    padding: 26px 24px;
    border-bottom: 1px solid var(--border);
}
.fact-panel-item:last-child { border-bottom: none; }
.fact-panel-item h3 { font-size: 1rem; margin-bottom: 6px; color: var(--accent); }
.fact-panel-item p { font-size: 0.9rem; margin: 0; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.value-item {
    padding: 30px 26px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.value-item:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--glow); }
.value-item .service-icon-box { margin-bottom: 16px; }
.value-item h3 { font-size: 1rem; }
.value-item p { font-size: 0.9rem; margin: 0; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.team-member {
    text-align: center;
    padding: 36px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.team-member:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--glow); }
.team-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    background: var(--accent-soft);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    color: var(--accent);
}
.team-role { color: var(--accent); font-weight: 600; font-size: 0.86rem; margin-bottom: 10px; }
.team-member p:last-child { font-size: 0.92rem; margin: 0; }

/* ---- Contact page ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
}
.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.contact-details .icon { color: var(--accent); margin-top: 2px; }
.contact-details-text { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }

.contact-form-wrap {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group select option { background: var(--bg-elevated); color: var(--text); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.char-counter { display: block; margin-top: 6px; font-size: 0.76rem; color: var(--text-faint); text-align: right; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.9rem; border: 1px solid; }
.alert-success { background: rgba(52, 211, 153, 0.1); color: #4ade80; border-color: rgba(52, 211, 153, 0.3); }
.alert-error { background: rgba(248, 113, 113, 0.1); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
.alert-error ul { margin-top: 8px; padding-left: 20px; list-style: disc; }

.map-embed {
    height: 360px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--glass-bg);
}
.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    filter: invert(92%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
.map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.map-footer .icon { color: var(--accent); vertical-align: -3px; }
.map-directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
}

/* ---- Legal pages ---- */
.legal-content h2 { margin-top: 2em; font-size: 1.25rem; }
.legal-content { max-width: 760px; }

/* ---- Footer ---- */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding-top: 64px; color: var(--text-muted); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-col h4 { font-size: 0.92rem; margin-bottom: 16px; color: var(--text); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-about p { max-width: 320px; margin-top: 16px; font-size: 0.9rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; margin-bottom: 12px; color: var(--text-muted); }
.footer-contact .icon { color: var(--text-muted); margin-top: 2px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text-muted);
    transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.socials a .icon { width: 16px; height: 16px; }
.socials a:hover { border-color: var(--accent); color: #fff; box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.4); }

.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
}
.footer-bottom-inner a:hover { color: #fff; }

/* ---- Back to top ---- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.15s ease;
    z-index: 90;
}
.back-to-top:hover { box-shadow: 0 12px 32px -8px rgba(var(--accent-rgb), 0.8); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.icon-rotate-up { transform: rotate(-90deg); width: 18px; height: 18px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .service-list { grid-template-columns: repeat(2, 1fr); }
    .service-item:nth-child(1) { grid-column: span 2; }
    .project-list, .values-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .process-step:nth-child(2)::after { display: none; }
    .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; }
    .fact-panel { max-width: 420px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .main-nav {
        position: fixed;
        top: 69px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 20px;
        transform: translateY(-140%);
        transition: transform 0.25s ease;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { display: block; padding: 12px 0; }
    .nav-toggle { display: flex; }
    .nav-cta { align-self: flex-start; }

    .service-list, .project-list, .values-grid { grid-template-columns: 1fr; }
    .service-item:nth-child(1) { grid-column: span 1; }
    .process-grid { grid-template-columns: 1fr; }
    .process-step::after { display: none; }
    .service-detail-grid,
    .service-detail-grid.reverse { grid-template-columns: 1fr; text-align: left; }
    .service-detail-grid.reverse .service-icon-large { order: -1; }
    .form-row { grid-template-columns: 1fr; }
    .cta-banner-inner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .cursor-glow, .grain-overlay { display: none; }
}

@media (hover: none) {
    .cursor-glow { display: none; }
}
