/*
 * Kinlytix — Genealogy Research & DNA Collaboration Platform
 *
 * Copyright (c) 2026 Z-Factor PM, LLC. All rights reserved.
 * Unauthorized copying of this file is strictly prohibited.
 *
 * @author     Suzanne St. John <support@zfactorpm.com>
 * @copyright  2026 Z-Factor PM, LLC
 * @license    Proprietary — All Rights Reserved
 */

:root {
    --teal: #2a8a8a;
    --teal-dark: #1d6b6b;
    --teal-light: #3aafaf;
    --grid-line: rgba(160, 195, 210, 0.25);
    --grid-line-major: rgba(120, 170, 195, 0.35);
    --ink: #1a2a30;
    --muted: #3a5a65;
    --paper: #f4f7f9;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Rajdhani', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        linear-gradient(var(--grid-line-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-major) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(42, 138, 138, 0.12);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.logo img {
    display: block;
    height: 144px;
    width: auto;
    max-width: min(100%, 660px);
    object-fit: contain;
}

.site-nav {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--teal-dark);
    outline: none;
}

.hero {
    max-width: 52rem;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--teal-dark);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.hero .lead {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 500;
    color: var(--muted);
    max-width: 38rem;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--teal-dark);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.hero-cta:hover {
    background: var(--teal);
    color: var(--white);
}

.section {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.section-alt {
    background: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(42, 138, 138, 0.1);
    border-bottom: 1px solid rgba(42, 138, 138, 0.1);
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section > p.intro {
    text-align: center;
    color: var(--muted);
    max-width: 40rem;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.service-card {
    background: var(--white);
    border: 1px solid rgba(42, 138, 138, 0.15);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    border-left: 4px solid var(--teal);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--muted);
    font-size: 1.02rem;
}

.about-content {
    max-width: 40rem;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
}

.about-content p + p {
    margin-top: 1rem;
}

.contact-block {
    text-align: center;
}

.contact-block p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.contact-block a.email {
    font-family: 'Space Mono', Consolas, monospace;
    font-size: 1rem;
    font-weight: 700;
}

.site-footer {
    margin-top: auto;
    text-align: center;
    padding: 1.75rem 2rem;
    font-size: 0.85rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(42, 138, 138, 0.12);
}

.site-footer nav {
    margin-bottom: 0.5rem;
}

.site-footer nav a {
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.legal-page {
    max-width: 40rem;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    flex: 1;
}

.legal-page h1 {
    font-size: 1.75rem;
    color: var(--teal-dark);
    margin-bottom: 0.5rem;
}

.legal-page .updated {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.15rem;
    color: var(--teal-dark);
    margin: 1.75rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
    color: var(--muted);
    margin-bottom: 1rem;
}

.legal-page ul {
    margin: 0 0 1rem 1.25rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}
