/**
 * EstudioClinicos.com - Professional Clinical Theme
 * Navy and teal, medical authority aesthetic
 */

:root {
    --primary: #0f172a;
    --primary-dark: #020617;
    --primary-light: #1e293b;
    --accent: #0d9488;
    --accent-light: #14b8a6;
    --accent-soft: #f0fdfa;
    --success: #10b981;
    --text: #0f172a;
    --text-light: #334155;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --bg-soft: #f1f5f9;
    --border: #cbd5e1;
    --border-light: #e2e8f0;
    --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: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* { 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 */
.site-header {
    background: var(--primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.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: var(--accent);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

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

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

.nav-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-link:hover { color: white; }

.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 */
.hero {
    padding: 5rem 1.5rem 4rem;
    text-align: left;
    background: var(--primary);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.8px;
    max-width: 760px;
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    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: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.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;
}

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

/* 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: left;
    max-width: 700px;
    margin-bottom: 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 */
.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-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    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(--accent);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-soft);
    color: var(--accent);
    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 */
.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(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.category-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 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.15s;
    box-shadow: var(--shadow-sm);
}

.state-card:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.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(--accent);
    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(--accent);
    background: var(--accent-soft);
}

.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 #ccfbf1;
    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(--accent);
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    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.65);
    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.08);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    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(--accent);
    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.15s;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.grid-4 .card:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.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: left;
}

.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;
}

/* Two column layout */
.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: 2rem; }
    .hero-tagline { font-size: 1.0625rem; }
    .trust-bar-content { gap: 2rem; }
    .section-title { font-size: 1.625rem; }
    .content-block { padding: 1.5rem; }
    .header-container { padding: 0 0.5rem; }
    .main-nav { gap: 1rem; }
}

/* Breadcrumb */
.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(--accent);
    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(--accent);
}

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

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