/**
 * MyLabService.com - Health Authority Theme
 * Warm, trustworthy, and educational with a modern wellness aesthetic
 */

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --accent: #f97316;
    --medical-blue: #3b82f6;
    --trust-teal: #0d9488;
    --accent-light: #fb923c;
    --accent-soft: #fff7ed;
    --success: #22c55e;
    --text: #1c1917;
    --text-light: #44403c;
    --text-muted: #78716c;
    --bg: #fafaf9;
    --bg-white: #ffffff;
    --bg-soft: #f5f5f4;
    --border: #d6d3d1;
    --border-light: #e7e5e4;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* Header - warm teal */
.site-header {
    background: var(--bg-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
}

.logo-icon-svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: block;
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text span { color: var(--primary-light); }

.main-nav { display: flex; gap: 2rem; align-items: center; }

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--accent);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* Hero - soft gradient */
.hero {
    padding: 5rem 1.5rem 4rem;
    text-align: left;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border-bottom: 1px solid var(--border-light);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.8px;
    max-width: 760px;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 640px;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.hero-badges span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.cta-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

/* Trust Bar */
.trust-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
}

.trust-bar-content {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.trust-bar-content span {
    font-size: 0.9375rem;
    color: var(--text-light);
}

.trust-bar-content strong {
    color: var(--primary);
    font-weight: 700;
}

/* Sections */
.section { padding: 4rem 0; }
.section-white { background: var(--bg-white); }
.section-soft { background: var(--bg-soft); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Features - card style with icons */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* Category Cards - elevated cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.category-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.category-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.category-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-arrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

/* State Grid */
.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.state-card {
    display: block;
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.state-card:hover {
    border-color: var(--primary-light);
    background: #f0fdfa;
    transform: translateY(-2px);
}

.state-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.state-card span {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 500;
}

/* Service Location Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.service-card {
    display: block;
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    border-color: var(--primary-light);
    background: #f0fdfa;
}

.service-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.service-card span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Content Block */
.content-block {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.content-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.content-block h2:first-child { margin-top: 0; }

.content-block p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.content-block ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-light);
}

.content-block li {
    margin-bottom: 0.5rem;
}

.disclaimer {
    background: var(--accent-soft);
    border: 1px solid #fed7aa;
    padding: 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-top: 2rem;
}

/* Sidebar */
.sidebar-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    margin-bottom: 0.625rem;
}

.sidebar-card a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    display: flex;
    justify-content: space-between;
}

.sidebar-card a:hover {
    color: var(--primary);
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.625rem;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.5rem;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 6rem 1.5rem;
}

.error-page h1 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Grid 4 utility */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.grid-4 .card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.grid-4 .card:hover {
    border-color: var(--primary-light);
    background: #f0fdfa;
    transform: translateY(-2px);
}

.grid-4 .card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.grid-4 .card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.875rem;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Two column layout for keyword pages */
.pt-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.pt-sidebar {
    position: sticky;
    top: 80px;
}

@media (max-width: 900px) {
    .pt-layout {
        grid-template-columns: 1fr;
    }
    .pt-sidebar {
        position: static;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 3.5rem 1rem 3rem; }
    .hero h1 { font-size: 2.125rem; }
    .hero-tagline { font-size: 1.0625rem; }
    .trust-bar-content { gap: 1.5rem; }
    .section-title { font-size: 1.625rem; }
    .content-block { padding: 1.5rem; }
    .header-container { padding: 0 0.5rem; }
    .main-nav { gap: 1rem; }
    .trust-bar-content { gap: 2rem; }
}

/* Authority guide cards */
.guide-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.guide-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.guide-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #f0fdfa;
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Breadcrumb Navigation */
.breadcrumb-bar {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--text-muted);
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 0;
}

.faq-question {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Related links sidebar */
.related-links {
    margin-top: 1rem;
}

.related-links a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9375rem;
}

.related-links a:hover {
    color: var(--primary);
}

.related-links a:last-child {
    border-bottom: none;
}

/* Search / Finder */
.finder-bar {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.finder-bar input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.finder-bar input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.finder-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.finder-result {
    display: block;
    padding: 1rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.15s;
}

.finder-result:hover {
    background: #f0fdfa;
    color: var(--primary);
}

/* Table of contents */
.toc {
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.toc h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li {
    margin-bottom: 0.375rem;
}

.toc a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9375rem;
}

.toc a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Cost badge */
.cost-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1rem 0;
}

/* Quick stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.quick-stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.quick-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
}

.quick-stat span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Guide index cards */
.guide-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.guide-index-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.guide-index-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.guide-index-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.guide-index-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.guide-index-card .meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Test prep checklist */
.checklist {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.checklist li {
    padding: 0.625rem 0 0.625rem 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background: var(--bg-soft);
    font-weight: 700;
    color: var(--primary);
}

.comparison-table tr:hover {
    background: #f0fdfa;
}
