/* Matches jeremiahn.github.io/nelsoncomputers. ponytail: system font instead of Google-hosted Inter
   so these pages make no third-party requests; on Apple devices SF renders almost identically. */
:root {
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f7;
    --text-main: #1d1d1f;
    --text-secondary: #6e6e73; /* darker than the site's #86868b so body text passes WCAG AA */
    --accent-blue: #0071e3;
    --accent-hover: #0077ed;
    --nav-bg: rgba(255, 255, 255, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: var(--accent-blue); }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 4px; }

/* --- NAVIGATION --- */
header {
    position: fixed; top: 0; width: 100%; height: 48px; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
nav {
    max-width: 980px; height: 100%; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { font-weight: 600; font-size: 14px; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.nav-logo img { height: 22px; width: 22px; border-radius: 5px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-main); opacity: 0.8; font-size: 13px; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; color: var(--accent-blue); text-decoration: none; }

/* --- HERO --- */
.hero { padding: 120px 20px 60px; text-align: center; }
.hero img { width: 160px; height: 160px; border-radius: 36px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.hero h1 { font-size: 56px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.1; margin-bottom: 10px; }
.hero h2 { font-size: 28px; font-weight: 400; color: var(--text-secondary); line-height: 1.3; margin-bottom: 30px; }
.hero .note { font-size: 14px; color: var(--text-secondary); }
.cta-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 17px; }

/* --- CARD GRID --- */
.section-grid { padding: 80px 20px; background-color: var(--bg-secondary); }
.section-grid > h2 { text-align: center; font-size: 40px; font-weight: 700; margin-bottom: 40px; }
.grid-container {
    max-width: 980px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.card {
    background: white; padding: 40px; border-radius: 18px; text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: scale(1.02); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); }
.card h3 { font-size: 24px; font-weight: 600; line-height: 1.2; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 17px; line-height: 1.4; }

/* --- TEXT SECTIONS (privacy policy) --- */
.text-section { max-width: 800px; margin: 80px auto; padding: 0 20px; }
.text-section h2 { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 50px 0 15px; }
.text-section h2:first-child { margin-top: 0; }
.text-section p { font-size: 19px; color: var(--text-secondary); margin-bottom: 20px; }

/* --- CONTACT --- */
.contact-section { background-color: var(--bg-secondary); padding: 80px 20px; text-align: center; }
.contact-container { max-width: 600px; margin: 0 auto; }
.contact-container h2 { font-size: 40px; margin-bottom: 20px; }
.contact-container p { font-size: 17px; }
.contact-container .note { font-size: 14px; color: var(--text-secondary); margin-top: 24px; }
.btn {
    display: inline-block; margin-top: 20px; padding: 12px 30px; border-radius: 980px;
    background-color: var(--accent-blue); color: white; font-size: 17px; font-weight: 500;
    transition: background 0.2s;
}
.btn:hover { background-color: var(--accent-hover); text-decoration: none; }

/* --- FOOTER --- */
footer {
    background-color: var(--bg-secondary); padding: 40px 20px;
    border-top: 1px solid #d2d2d7; font-size: 12px; color: var(--text-secondary);
}
.footer-content { max-width: 980px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; }

@media (max-width: 768px) {
    .nav-links { gap: 20px; }
    .hero { padding: 90px 20px 40px; }
    .hero img { width: 120px; height: 120px; border-radius: 27px; }
    .hero h1 { font-size: 40px; }
    .hero h2 { font-size: 20px; }
    .section-grid, .contact-section { padding: 60px 20px; }
    .section-grid > h2, .contact-container h2 { font-size: 32px; }
    .card { padding: 30px 24px; }
    .text-section { margin: 60px auto; }
    .text-section h2 { font-size: 26px; }
    .text-section p { font-size: 17px; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, .card:hover { transition: none; transform: none; }
}
