/* Risk Runners Dental Captive - Professional Stylesheet */
/* Mobile-First, Responsive Design */

:root {
    --primary-color: #1B2A4A;
    --secondary-color: #2A9D8F;
    --accent-color: #E76F51;
    --success-color: #27AE60;
    --text-color: #333;
    --light-bg: #F0F4F8;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --slate: #64748B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==================== TOP BRAND BAR ==================== */
.brand-bar {
    background-color: #0F1A2E;
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    width: 100%;
}

.brand-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-bar a {
    color: #87CEEB;
    text-decoration: none;
    transition: color 0.3s;
}

.brand-bar a:hover {
    color: #ADD8E6;
    text-decoration: underline;
}

.brand-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.brand-links a:hover {
    color: var(--secondary-color);
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo {
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.logo h1 a {
    color: var(--white);
    text-decoration: none;
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.9;
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    display: block;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255,255,255,0.15);
}

/* ==================== HAMBURGER MENU ==================== */
/* Removed — nav links always visible, wrapping on small screens */

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 1.5rem;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.lead {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* ==================== BUTTONS ==================== */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    white-space: nowrap;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: #D4533B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

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

/* Secondary button on light backgrounds */
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ==================== SECTIONS ==================== */
.overview {
    padding: 3rem 1.5rem;
    width: 100%;
    overflow-x: hidden;
}

section {
    padding: 3rem 1.5rem;
    width: 100%;
    overflow-x: hidden;
}

section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.section-intro {
    text-align: center;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #666;
    line-height: 1.7;
}

/* ==================== GRID LAYOUTS ==================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== METRICS ==================== */
.key-metrics {
    background-color: var(--light-bg);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.metric {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.metric-value {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
}

/* ==================== RISK CARDS ==================== */
.risk-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}

.risk-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.risk-card ul {
    list-style-position: inside;
    margin-bottom: 1rem;
    padding-left: 0;
}

.risk-card li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

.risk-stat {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2.5rem 1.5rem 1rem;
    margin-top: 3rem;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

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

.footer-bottom p {
    margin: 0.5rem 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Tablets and larger */
@media (min-width: 600px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 900px) {
    nav {
        flex-wrap: nowrap;
    }

    .nav-links {
        flex-wrap: nowrap;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }

    section {
        padding: 4rem 2rem;
    }

    .hero {
        padding: 4rem 2rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .logo h1 {
        font-size: 1.8rem;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

/* ==================== MOBILE SPECIFIC ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.25rem;
    }

    .nav-links a {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Override inline grid layouts */
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="padding: 40px"] {
        padding: 20px !important;
    }

    [style*="gap: 40px"] {
        gap: 20px !important;
    }

    [style*="gap: 30px"] {
        gap: 15px !important;
    }

    [style*="font-size: 80px"] {
        font-size: 48px !important;
    }
}

@media (max-width: 599px) {
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.75rem 15px;
        gap: 0.5rem;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    .brand-bar {
        padding: 6px 0;
        font-size: 0.75rem;
    }

    .brand-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .brand-links {
        gap: 0.75rem;
        justify-content: center;
    }

    nav {
        padding: 0.75rem 15px;
        gap: 0.75rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .card {
        padding: 1.25rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    footer {
        padding: 2rem 1rem 1rem;
        margin-top: 2rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .disclaimer {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}

/* ==================== UTILITY ==================== */
img {
    max-width: 100%;
    height: auto;
}

* {
    max-width: 100vw;
}

section, .container, main, header, footer, nav {
    overflow-x: hidden;
}
