:root {
    --primary-color: #0A1F3B;
    --secondary-color: #4A6B8D;
    --accent-color: #8FAEC2;
    --background-color: #F5F5F5;
    --text-color: #333333;
    --text-muted: #666;
    --white-color: #FFFFFF;
    --border-color: #E0E0E0;
    --hero-overlay-color: rgba(10, 31, 59, 0.7);

    --font-family: 'Lato', sans-serif;
    --spacing-unit: 8px;
    --border-radius: 4px;
    --transition-speed: 300ms;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--secondary-color); }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    background-color: var(--white-color);
    padding: calc(var(--spacing-unit) * 2) 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-speed);
}
.main-header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
}
.nav-link {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    position: relative;
    padding: calc(var(--spacing-unit)) 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease-in-out;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    text-decoration: none;
}

.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: var(--spacing-unit);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    color: var(--text-color);
    white-space: nowrap;
    border-radius: var(--border-radius);
    text-decoration: none;
}
.dropdown-menu li a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.menu-toggle { display: none; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-align: center;
    filter: grayscale(0.8) sepia(0.1) contrast(0.9);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--hero-overlay-color);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    color: var(--white-color);
    max-width: 1000px;
    margin: 0 auto;
}

/* --- COMMON SECTION STYLES --- */
section {
    padding: calc(var(--spacing-unit) * 10) 0;
}
.intro-section {
    background-color: var(--white-color);
    text-align: center;
}
.intro-section h2 {
    margin-bottom: calc(var(--spacing-unit) * 3);
}
.intro-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}
.overview-section, .analysis-links-section, .contact-section {
    background-color: var(--background-color);
}
.content-section, .article-section {
    background-color: var(--white-color);
}

/* --- INDEX PAGE SECTIONS --- */
.overview-section .container {
    text-align: center;
}
.overview-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 6);
}
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    text-align: left;
}
.overview-item {
    background: var(--white-color);
    padding: calc(var(--spacing-unit) * 4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}
.overview-item svg {
    width: 40px;
    height: 40px;
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.overview-item h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-unit);
}
.analysis-links-section {
  background-color: var(--white-color);
}
.analysis-links-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}
.analysis-card {
    border: 1px solid var(--border-color);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.analysis-card h3 {
    margin-top: 0;
}
.analysis-card p {
    flex-grow: 1;
    color: var(--text-muted);
}
.text-link {
    font-weight: 700;
    color: var(--secondary-color);
}
.text-link:hover {
    color: var(--primary-color);
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    margin-bottom: calc(var(--spacing-unit) * 4);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: var(--primary-color);
}
.breadcrumbs span {
    color: var(--text-color);
}

/* --- ARTICLE & CONTENT PAGES --- */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
}
.content-main p, .article-section p {
    margin-bottom: 2em;
}
.sidebar-widget {
    background-color: var(--background-color);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
}
.sidebar-widget h4 { margin-top: 0; }
.sidebar-widget ul li {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
}
.sidebar-widget ul li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
}
.sidebar-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-section .container {
    max-width: 850px;
}
.article-section .article-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    border-left: 3px solid var(--accent-color);
    padding-left: calc(var(--spacing-unit) * 3);
}
.article-image {
    margin: calc(var(--spacing-unit) * 4) 0;
}
.article-image img {
    border-radius: var(--border-radius);
}
.article-image figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--spacing-unit);
}
.article-section blockquote {
    margin: calc(var(--spacing-unit) * 4) 0;
    padding: calc(var(--spacing-unit) * 3);
    background-color: var(--background-color);
    border-left: 4px solid var(--secondary-color);
    font-style: italic;
    font-size: 1.1rem;
}
.legal-content ul {
    list-style: disc;
    padding-left: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.legal-content ul li {
    margin-bottom: var(--spacing-unit);
}
.legal-content h2 {
    margin-top: calc(var(--spacing-unit) * 5);
}
.legal-content h2:first-of-type {
    margin-top: 0;
}

/* --- SCHEMA --- */
.schema-container {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    padding: calc(var(--spacing-unit) * 4);
    margin: calc(var(--spacing-unit) * 5) 0;
    border-radius: var(--border-radius);
}
.schema {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: monospace;
    text-align: center;
}
.schema-level {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    position: relative;
}
.schema-box {
    background-color: var(--white-color);
    border: 2px solid var(--secondary-color);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    min-width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.schema-box small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8em;
}
.schema-arrow {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: var(--spacing-unit) 0;
}
.schema-side-box {
    position: absolute;
    left: 105%;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    padding: var(--spacing-unit) * 2;
    border: 1px dashed var(--accent-color);
    background: #fff;
    border-radius: var(--border-radius);
}
.schema-side-box h4 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: var(--spacing-unit);
}
.schema-side-box span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.schema-caption {
    margin-top: calc(var(--spacing-unit) * 3);
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
}
.contact-info h2 {
    margin-top: 0;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}
.info-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    margin-top: 5px;
}
.info-item strong {
    display: block;
    margin-bottom: calc(var(--spacing-unit) / 2);
}
.info-item a, .info-item address {
    font-style: normal;
}
.contact-form-container {
    background-color: var(--white-color);
    padding: calc(var(--spacing-unit) * 4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.form-warning {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
}
.form-warning h3 {
    color: #92400e;
    font-size: 1.1rem;
    margin-top: 0;
}
.form-group {
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}
.form-group label {
    display: block;
    margin-bottom: var(--spacing-unit);
    font-weight: 700;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(74, 107, 141, 0.2);
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 4);
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    text-decoration: none;
}
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}
.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
}
.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--background-color);
    border-color: var(--secondary-color);
    text-decoration: none;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: calc(var(--spacing-unit) * 8) 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    padding-bottom: calc(var(--spacing-unit) * 6);
}
.footer-col h4 {
    color: var(--white-color);
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.footer-col p, .footer-col address {
    font-size: 0.95rem;
    font-style: normal;
    line-height: 1.6;
}
.footer-col a {
    color: rgba(255, 255, 255, 0.8);
}
.footer-col a:hover {
    color: var(--white-color);
}
.footer-links li {
    margin-bottom: var(--spacing-unit);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: calc(var(--spacing-unit) * 3) 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- THANK YOU PAGE --- */
.thank-you-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--white-color);
}
.thank-you-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: white;
}
.thank-you-icon svg {
    width: 40px;
    height: 40px;
}
.thank-you-section h1 {
    color: var(--primary-color);
}
.thank-you-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 30px;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 31, 59, 0.95);
    color: var(--white-color);
    padding: calc(var(--spacing-unit) * 3) 0;
    z-index: 9999;
    display: none;
    align-items: center;
    backdrop-filter: blur(5px);
}
.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
}
.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}
.cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}
.cookie-banner a:hover {
    color: var(--white-color);
}
.cookie-buttons {
    display: flex;
    gap: var(--spacing-unit) * 2;
    flex-shrink: 0;
}

/* --- BACK TO TOP BUTTON --- */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
    z-index: 999;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background-color: var(--primary-color);
}
#back-to-top svg {
    width: 24px;
    height: 24px;
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .schema-side-box {
        position: static;
        transform: none;
        width: 100%;
        margin-top: var(--spacing-unit) * 2;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .main-header .container {
        position: relative;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: var(--spacing-unit);
    }
    .main-nav.active .nav-links {
        display: flex;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-link {
        display: block;
        padding: calc(var(--spacing-unit) * 2);
        text-align: center;
    }
    .nav-link::after { display: none; }
    .nav-link:hover {
        background-color: var(--background-color);
        border-radius: var(--border-radius);
    }
    .dropdown > .nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: var(--background-color);
    }
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
    .dropdown-menu li a {
        text-align: center;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 24px;
        position: relative;
    }
    .menu-toggle span {
        display: block;
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 3px;
        transition: all var(--transition-speed);
    }
    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 10px; }
    .menu-toggle span:nth-child(3) { top: 20px; }
    .main-nav.active .menu-toggle span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .main-nav.active .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .main-nav.active .menu-toggle span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    section {
        padding: calc(var(--spacing-unit) * 8) 0;
    }
    .hero {
        height: 60vh;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner p {
        margin-bottom: var(--spacing-unit) * 2;
    }
}