/* ── appchen — Dark Mode Only ─────────────────────────── */

:root {
    --bg-primary: #111827;
    --bg-secondary: #1e293b;
    --bg-nav: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #16a34a;
    --accent-dark: #15803d;
    --border-color: #334155;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --max-width: 1000px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover { opacity: 0.8; }

h1, h2, h3 { line-height: 1.25; }
p { color: var(--text-secondary); }

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

main { flex: 1; }

.icon { flex-shrink: 0; vertical-align: middle; }

/* ── Header ────────────────────────────────────────── */

.site-header {
    background-color: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

/* ── Hero ──────────────────────────────────────────── */

.hero {
    padding: 5rem 0 3.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    max-width: 720px;
    margin: 0 auto 1.25rem;
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ── Services ──────────────────────────────────────── */

.services { padding: 2.5rem 0 3.5rem; }

.services h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.service-card {
    width: calc(25% - 0.9375rem);
    min-width: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-wrap: break-word;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(22, 163, 74, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.95rem;
    flex: 1;
}

.visit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* ── About ─────────────────────────────────────────── */

.about {
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--border-color);
}

.about .container { max-width: 720px; }

.about h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* ── Legal / error pages ───────────────────────────── */

.legal, .error-page {
    padding: 3rem 0 4rem;
    max-width: 640px;
    margin: 0 auto;
}

.legal h1, .error-page h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.legal-list { list-style: none; margin: 1rem 0; }
.legal-list li { margin-bottom: 0.4rem; }
.legal-address, .legal-extra { margin-bottom: 1rem; }

.error-page { text-align: center; }
.error-page h1 { font-size: 3rem; }
.error-page p { margin-bottom: 1.5rem; }

/* ── Footer ────────────────────────────────────────── */

.site-footer {
    background-color: var(--bg-nav);
    border-top: 1px solid var(--border-color);
    padding: 1.75rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-footer .disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.footer-social a:hover { color: var(--accent); opacity: 1; }

.footer-links { margin-bottom: 1rem; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }
.footer-links .sep { color: var(--text-muted); margin: 0 0.5rem; }

.footer-legal { color: var(--text-muted); font-size: 0.78rem; margin: 0; }
.footer-legal a { color: var(--text-secondary); cursor: pointer; }
.footer-legal a:hover { color: var(--text-primary); }
.js-mail { cursor: pointer; }

/* ── Mobile ────────────────────────────────────────── */

@media (max-width: 640px) {
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .service-card { width: calc(50% - 0.625rem); }
}
