:root {
    --primary: #2F4F4F;
    --accent-orange: #CC5500;
    --accent-sage: #8F9779;
    --neutral-gray: #D3D3D3;
    --white: #FFFFFF;
    --dark: #1a1a1a;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--neutral-gray);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; border-bottom: 2px solid var(--accent-sage); padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; color: var(--primary); font-weight: 700; }

.container { max-width: 1200px; }

header { background-color: var(--primary); transition: all 0.3s; }
.navbar-brand { font-weight: 700; letter-spacing: 2px; }

.hero-section {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 56px;
}

.hero-content {
    background: rgba(47, 79, 79, 0.85);
    padding: 3rem;
    max-width: 900px;
    border-radius: 4px;
}

.hero-content h1 { color: var(--white); border: none; }

.section-padding { padding: 80px 0; }
.bg-primary-block { background-color: var(--primary); color: var(--white); }
.bg-white-block { background-color: var(--white); }

.img-fluid-custom {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    box-shadow: 20px 20px 0px var(--accent-sage);
}

.joint-diagram {
    width: 100%;
    height: 300px;
    border: 2px solid var(--primary);
    position: relative;
    background: #f9f9f9;
    margin: 2rem 0;
}

.joint-bone {
    width: 40px;
    height: 150px;
    background: var(--neutral-gray);
    border: 2px solid var(--primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.bone-top { top: 10px; border-radius: 20px 20px 0 0; }
.bone-bottom { bottom: 10px; border-radius: 0 0 20px 20px; }

.joint-capsule {
    width: 80px;
    height: 80px;
    border: 4px dashed var(--accent-orange);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.info-card {
    background: var(--white);
    padding: 2rem;
    height: 100%;
    border-top: 5px solid var(--accent-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.info-card:hover { transform: translateY(-10px); }

.css-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-sage);
    margin-bottom: 1rem;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.glossary-rail {
    background: #e9ecef;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-sage);
}

.glossary-item b { color: var(--accent-orange); display: block; }

.call-out-box {
    background: var(--primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 0 50px 0 50px;
    margin: 1rem 0;
}

.btn-accent {
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-accent:hover { background-color: #a34400; color: var(--white); }

.footer { background-color: var(--primary); color: var(--white); }
.footer h5 { color: var(--accent-sage); margin-bottom: 1.5rem; }
.footer a { color: var(--neutral-gray); }
.footer-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 2rem 0; }
.legal-disclaimer { font-size: 0.85rem; opacity: 0.8; }

.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    color: var(--white);
    padding: 1rem 0;
    z-index: 9999;
    display: none;
}

.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
}

.matrix-cell {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--primary);
    width: 50%;
}

.matrix-header {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 1rem;
    font-weight: 700;
}

.dossier-panel {
    background: var(--white);
    border: 1px solid #ccc;
    margin-bottom: 2rem;
    overflow: hidden;
}

.dossier-img { height: 300px; object-fit: cover; width: 100%; }
.dossier-content { padding: 2rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero-content { padding: 1.5rem; }
}