/**
 * PrinterGeeks — global stylesheet.
 * Modern, responsive design with light/dark theme support.
 */

/* ---------- Design tokens ---------- */
:root {
    --brand: #0b5ed7;
    --brand-600: #0a53c2;
    --brand-700: #0847a3;
    --brand-050: #eaf1fe;
    --accent: #14b8a6;
    --ink: #0f172a;
    --body: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-alt: #f6f9fe;
    --card: #ffffff;
    --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
    --shadow-lg: 0 20px 50px rgba(11,94,215,.18);
    --radius: 14px;
    --radius-lg: 22px;
    --maxw: 1160px;
    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    --display: 'Sora', var(--font);
}

[data-theme="dark"] {
    --brand: #4d8bf0;
    --brand-600: #3f7de6;
    --brand-700: #6ba0f5;
    --brand-050: #16233b;
    --ink: #f1f5f9;
    --body: #cbd5e1;
    --muted: #94a3b8;
    --line: #263449;
    --bg: #0b1220;
    --bg-alt: #0f1a2e;
    --card: #121f36;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.2; font-weight: 700; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
    padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-family: var(--font); font-weight: 600; font-size: .98rem;
    padding: .72em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(11,94,215,.28); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-050); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #eef4ff; }
.btn-lg { padding: .9em 1.8em; font-size: 1.05rem; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: .85rem; }
[data-theme="dark"] .topbar { background: #060b16; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; gap: 12px; }
.topbar-item { display: inline-flex; align-items: center; gap: .4em; color: #cbd5e1; }
.topbar-item:hover { color: #fff; text-decoration: none; }
.topbar .icon { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { border-radius: 9px; }
.brand-name { letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a { color: var(--body); font-weight: 500; padding: 8px 14px; border-radius: 8px; }
.site-nav > a:hover { color: var(--ink); background: var(--bg-alt); text-decoration: none; }
.site-nav > a.active { color: var(--brand); }
.nav-cta { margin-left: 8px; color: #fff; }
.nav-cta:hover { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.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 { padding: 72px 0 40px; background:
    radial-gradient(900px 500px at 85% -10%, var(--brand-050), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .82rem;
    text-transform: uppercase; letter-spacing: .08em; color: var(--brand); background: var(--brand-050);
    padding: 6px 14px; border-radius: 999px; }
.eyebrow .icon { color: #f59e0b; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.03em; margin: 20px 0 16px; font-weight: 800; }
.grad { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 24px; }
.center-actions { justify-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-badges li { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; color: var(--body); font-size: .95rem; }
.hero-badges .icon { color: var(--accent); }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Stats ---------- */
.stats { padding: 20px 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stats-inline { padding: 10px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 18px; text-align: center; box-shadow: var(--shadow); }
.stat-num { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--brand); }
.stat-label { color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.02em; margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards grid ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card, .value-card, .testimonial {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.service-card:hover, .value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
    border-radius: 14px; background: var(--brand-050); color: var(--brand); margin-bottom: 18px; }
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3, .value-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p, .value-card p { color: var(--muted); font-size: .97rem; }
.link-arrow { display: inline-block; margin-top: 16px; font-weight: 600; }
.link-arrow:hover { text-decoration: none; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 20px; letter-spacing: -.02em; }
.feature-list { display: grid; gap: 18px; margin-bottom: 28px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 12px; background: var(--brand-050); color: var(--brand); }
.feature-list strong { color: var(--ink); display: block; margin-bottom: 2px; }
.feature-list p { color: var(--muted); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; text-align: center; box-shadow: var(--shadow); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-bottom: 16px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; gap: 14px; }
.stars { display: inline-flex; color: #f59e0b; gap: 2px; }
.stars .icon { width: 18px; height: 18px; }
.testimonial p { color: var(--body); font-style: italic; }
.testimonial footer { display: flex; flex-direction: column; margin-top: auto; }
.testimonial footer strong { color: var(--ink); }
.testimonial footer span { color: var(--muted); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); font-family: var(--display); padding: 18px 30px 18px 0; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { color: var(--muted); padding-bottom: 20px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 54px 0 40px; background:
    radial-gradient(700px 300px at 80% -40%, var(--brand-050), transparent 65%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.breadcrumb span { margin: 0 6px; }

/* ---------- Service rows ---------- */
.service-rows { display: grid; gap: 60px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.service-row.reverse .service-row-media { order: 2; }
.service-row-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.service-row-copy h2 { font-size: 1.7rem; margin: 14px 0 12px; }
.service-row-copy > p { color: var(--muted); margin-bottom: 18px; }
.check-list { display: grid; gap: 10px; margin-bottom: 24px; }
.check-list li { display: flex; align-items: center; gap: 10px; color: var(--body); }
.check-list .icon { color: var(--accent); }

/* ---------- Brand pills ---------- */
.brand-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 20px; }
.brand-pills li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.fineprint { color: var(--muted); font-size: .85rem; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand), #1b3fa0); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.8rem; margin-bottom: 6px; }
.cta-band p { color: #dbe6ff; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.contact-info h2 { margin-bottom: 22px; }
.contact-list { display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a, .contact-list span { color: var(--muted); }
.contact-form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-group label { font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .92rem; }
.req { color: #e11d48; }
.form-group input, .form-group textarea {
    font-family: var(--font); font-size: 1rem; color: var(--ink); background: var(--bg);
    border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-050); }
.form-group textarea { resize: vertical; }
.field-error { color: #e11d48; font-size: .85rem; margin-top: 6px; }
.form-note { color: var(--muted); font-size: .85rem; margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; font-size: .95rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
[data-theme="dark"] .alert-success { background: #06281f; color: #6ee7b7; border-color: #135e4a; }
[data-theme="dark"] .alert-error { background: #2a1214; color: #fca5a5; border-color: #7f2226; }
.alert .icon { flex: none; margin-top: 2px; }

/* ---------- Legal pages ---------- */
.legal-updated { color: var(--muted); font-size: .95rem; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
.legal-toc { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.legal-toc h2 { font-size: 1rem; margin-bottom: 12px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 8px; }
.legal-toc li { counter-increment: toc; font-size: .9rem; }
.legal-toc a { color: var(--muted); }
.legal-toc a:hover { color: var(--brand); }
.legal-content { max-width: 760px; }
.legal-content .legal-intro { font-size: 1.1rem; color: var(--body); margin-bottom: 30px; }
.legal-content section { margin-bottom: 30px; scroll-margin-top: 90px; }
.legal-content h2 { font-size: 1.4rem; margin-bottom: 12px; }
.legal-content p { margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; display: grid; gap: 6px; }
.legal-content ul li { color: var(--body); }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .92rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal-table th { background: var(--bg-alt); color: var(--ink); }
.legal-contact-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.legal-contact-box h2 { font-size: 1.2rem; }

/* ---------- Error page ---------- */
.error-page { padding: 90px 0; }
.error-code { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem);
    line-height: 1; background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { margin: 8px 0 12px; }
.error-page p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; }
[data-theme="dark"] .site-footer { background: #060b16; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 58px 20px 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-about { color: #94a3b8; font-size: .95rem; margin-bottom: 16px; max-width: 34ch; }
.footer-contact a { color: #cbd5e1; display: inline-flex; align-items: center; gap: .4em; line-height: 2; }
.footer-contact a:hover { color: #fff; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #94a3b8; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { padding: 22px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #94a3b8; }
.footer-disclaimer { max-width: 60ch; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; bottom: 24px; right: 24px; display: grid; gap: 10px; z-index: 300; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: toast-in .25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .hero-inner, .split { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
    .split-media { order: -1; }
    .service-row, .service-row.reverse { grid-template-columns: 1fr; gap: 26px; }
    .service-row.reverse .service-row-media { order: -1; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 0 0 0 auto; width: min(78vw, 300px); background: var(--bg);
        flex-direction: column; align-items: stretch; gap: 4px; padding: 90px 22px 30px;
        box-shadow: -10px 0 40px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .3s ease; border-left: 1px solid var(--line);
    }
    .site-nav.open { transform: none; }
    .site-nav > a { padding: 12px 14px; }
    .nav-cta { margin: 10px 0 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .cta-band-inner { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .topbar-item.topbar-hours { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
