/* ============================================================
   XHTML-Print — Modern Stylesheet
   ============================================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:        #0D7A7A;
    --primary-dark:   #095959;
    --primary-light:  #E8F5F5;
    --accent:         #4dd9d9;
    --text:           #1a1a2e;
    --text-light:     #4a4a6a;
    --bg:             #f4f6f8;
    --white:          #ffffff;
    --border:         #e0e0e0;
    --shadow:         0 2px 14px rgba(0,0,0,0.07);
    --radius:         8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Navigation ─────────────────────────────────────────── */
header {
    background: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }

/* ── Hero (home page) ────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1a9090 100%);
    color: var(--white);
    text-align: center;
    padding: 88px 24px 100px;
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.hero h1 .accent { color: var(--accent); }

.hero .tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 60px 24px;
}

.page-hero-inner { max-width: 1100px; margin: 0 auto; }

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero p {
    opacity: 0.85;
    max-width: 600px;
    color: var(--white);
    margin: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: #d9f2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.55);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* ── Main / Layout ───────────────────────────────────────── */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px;
    flex: 1;
}

section { margin-bottom: 64px; }

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-light);
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

p { color: var(--text-light); margin-bottom: 16px; }

p:last-child { margin-bottom: 0; }

a { color: var(--primary); }

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.88em;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.11);
}

.card-icon {
    width: 46px;
    height: 46px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.4rem;
}

/* ── Link List ───────────────────────────────────────────── */
.link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.link-list li {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.link-list li:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(13,122,122,0.1);
}

.link-list a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    gap: 14px;
}

.link-list a::before {
    content: '→';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1rem;
}

.link-list a:hover { color: var(--primary); }

.link-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

/* ── Info Box ────────────────────────────────────────────── */
.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 18px 24px;
    margin: 24px 0;
}

.info-box p { color: var(--primary-dark); margin: 0; }

/* ── Quote ───────────────────────────────────────────────── */
.quote {
    text-align: center;
    padding: 52px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 32px 0;
}

.quote blockquote {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-dark);
    font-style: italic;
    margin-bottom: 10px;
}

.quote cite {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: normal;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
    font-size: 0.84rem;
    color: var(--text-light);
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* ── Specs Table ─────────────────────────────────────────── */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
    font-size: 0.9rem;
}

.specs-table th {
    background: var(--primary-dark);
    color: var(--white);
    padding: 13px 20px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.specs-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    vertical-align: top;
}

.specs-table tr:last-child td { border-bottom: none; }
.specs-table tbody tr:hover td { background: var(--primary-light); }

.specs-table a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.specs-table a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
    background: var(--text);
    color: rgba(255,255,255,0.65);
    padding: 48px 24px 24px;
    margin-top: auto;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    display: block;
}

.footer-brand span { color: var(--accent); }

.footer-col p {
    font-size: 0.85rem;
    max-width: 260px;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom p { margin: 0; color: rgba(255,255,255,0.4); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 680px) {
    .nav-links { display: none; }

    .footer-top { flex-direction: column; gap: 28px; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .specs-table { font-size: 0.82rem; }
    .specs-table th,
    .specs-table td { padding: 10px 14px; }
}
