:root {
    --primary-color: #1A237E; /* Dark Blue */
    --secondary-color: #212121; /* Dark Grey */
    --accent-color: #4FC3F7; /* Light Blue */
    --bg-light: #FAFAFA;
    --bg-dark: #1F2937;
    --text-light: #FFFFFF;
    --text-dark: #212121;
    --text-muted: #6B7280;
    --border-color: #E0E0E0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;
    --container-width: 1200px;
    --header-height: 80px;
}

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

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

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

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--text-light);
}

p {
    margin-bottom: 1.5rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}
ul li, ol li {
    margin-bottom: 0.75rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.logo:hover {
    color: var(--secondary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary-color);
    padding: 10px 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-links a.active {
    color: var(--primary-color);
}


/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown .arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}
.dropdown:hover .arrow-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 220px;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    margin-bottom: 0;
}
.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    white-space: nowrap;
    width: 100%;
}
.dropdown-menu a::after {
    display: none;
}
.dropdown-menu a:hover, .dropdown-menu a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
}


/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- SECTIONS --- */
.section-light {
    background-color: var(--bg-light);
    padding: clamp(60px, 8vw, 100px) 0;
}
.section-dark {
    background-color: var(--bg-dark);
    padding: clamp(60px, 8vw, 100px) 0;
    color: var(--text-light);
}
.section-dark p {
    color: var(--text-muted);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    text-align: center;
    margin-bottom: 3rem;
}
.section-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 4rem;
}
.section-dark .section-intro {
    color: #9ca3af;
}
.text-center { text-align: center; }
.text-white { color: var(--text-light) !important; }
.text-white h2 { color: var(--text-light) !important; }
.text-white p { color: #d1d5db !important; }

/* --- HERO --- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 50, 0.6);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-family: var(--font-body);
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
}

.hero-small {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}
.page-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--text-light);
}
.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-top: -1rem;
    margin-bottom: 0;
}

/* --- BUTTONS & LINKS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}
.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}
.text-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
}
.section-dark .text-link {
    color: var(--accent-color);
}
.section-dark .text-link:hover {
    color: var(--text-light);
}

/* --- FEATURES --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.feature-card-text h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* --- CONTENT SECTIONS --- */
.content-section {
    max-width: 960px;
}
.about-summary {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}
.about-summary img {
    border-radius: 12px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.content-grid.reverse {
    grid-template-columns: 1fr 1fr;
}
.content-grid.reverse .content-text {
    order: 2;
}
.content-grid.reverse .content-image {
    order: 1;
}
.content-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- PUBLICATIONS --- */
.publications-list {
    display: grid;
    gap: 2rem;
}
.publication-item {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.publication-item h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* --- PRINCIPLES (ABOUT) --- */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.principle-card {
    padding: 2rem;
}
.principle-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.principle-icon svg {
    width: 30px;
    height: 30px;
    color: var(--accent-color);
}
.principle-card h3 {
    color: var(--text-light);
    font-size: 1.3rem;
}


/* --- ARTICLE PAGES --- */
.article-hero { background-color: var(--secondary-color); text-align: left; padding: 40px 0; }
.breadcrumb {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: #9ca3af;
}
.breadcrumb a:hover {
    color: white;
}
.breadcrumb li::after {
    content: '/';
    margin-left: 8px;
    color: #6B7280;
}
.breadcrumb li:last-child::after {
    display: none;
}
.article-content-section {
    padding: clamp(40px, 6vw, 80px) 0;
}
.article-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 4rem;
}
.article-body h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.article-body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-image { margin: 2rem 0; }
.article-image img { border-radius: 8px; }
.article-image figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}
.article-cta { margin-top: 3rem; }
.article-sidebar {
    padding-top: 1rem;
}
.article-sidebar h3 { font-size: 1.3rem; }
.article-sidebar ul { list-style: none; padding: 0; }
.article-sidebar li { border-bottom: 1px solid var(--border-color); }
.article-sidebar a { display: block; padding: 12px 0; }

/* --- SERVICES/SEGMENTS --- */
.services-section .section-title { margin-bottom: 4rem; }
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.service-content {
    padding: 2rem;
}
.service-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.diagram-placeholder {
    background: #fff;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    font-family: var(--font-heading);
    color: var(--text-muted);
}
.diagram-placeholder strong {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* --- CTA SECTION --- */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

.section-image {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: clamp(60px, 10vw, 120px) 0;
}
.section-image .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 20, 50, 0.7);
}
.section-image .container {
    position: relative;
    z-index: 1;
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
}
.contact-form .form-disclaimer {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.contact-info h3 { font-size: 1.5rem; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}
.contact-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 5px;
    color: var(--primary-color);
}
.contact-item h4 { margin-bottom: 0.25rem; }
.contact-item p, .contact-item a { margin-bottom: 0; }
.map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: -1px; /* Overlap footer slightly */
}
.map-container iframe {
    width: 100%; height: 100%; border: none;
}

/* --- LEGAL PAGE --- */
.legal-section {
    max-width: 900px;
    margin: 0 auto;
}
.legal-section h2 { margin-top: 3rem; font-size: 2rem; }
.legal-section h3 { margin-top: 2rem; font-size: 1.5rem; }

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


/* --- FOOTER --- */
.main-footer {
    background-color: var(--secondary-color);
    color: #d1d5db;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-column h4 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column li {
    margin-bottom: 1rem;
}
.footer-column a {
    color: #9ca3af;
}
.footer-column a:hover {
    color: var(--text-light);
}
.footer-bottom {
    border-top: 1px solid #374151;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* --- COOKIE BANNER --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(31, 41, 55, 0.95);
    color: white;
    padding: 20px;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
#cookie-banner p {
    margin-bottom: 0;
    flex-grow: 1;
}
#cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 15px;
}
#cookie-banner .btn-primary { background-color: var(--accent-color); color: var(--secondary-color); }
#cookie-banner .btn-primary:hover { background-color: white; }
#cookie-banner .btn-secondary { color: white; border-color: #6B7280; }
#cookie-banner .btn-secondary:hover { background: #4B5563; border-color: #4B5563; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .content-grid.reverse .content-text, .content-grid.reverse .content-image { order: 0; }
    .about-summary { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        gap: 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 15px; text-align: center; }
    .nav-links a::after { display: none; }
    .nav-links a.active { background-color: var(--bg-light); }
    
    .dropdown {
        text-align: center;
    }
    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        background-color: var(--bg-light);
        min-width: 100%;
        padding: 0;
    }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.open .dropdown-menu { display: block; }
    .dropdown a .arrow-down {float: right;}


    .hamburger { display: block; }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .contact-grid { grid-template-columns: 1fr; }
    .article-container { grid-template-columns: 1fr; }
    .article-sidebar { grid-area: auto; padding-top: 3rem; border-top: 1px solid var(--border-color); }
    
    .service-card { flex-direction: column; }

    .cookie-content { flex-direction: column; text-align: center; }
}