@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0a1628;
    --navy-light: #132040;
    --off-white: #f5f0eb;
    --teal: #2dd4bf;
    --coral: #f97066;
    --text-dark: #1a2332;
    --text-muted: #5a6577;
    --border: #e2ddd8;
    --card-bg: #ffffff;
    --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
    --shadow-hover: 0 8px 40px rgba(10, 22, 40, 0.14);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Serif 4', serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.site-logo:hover {
    color: var(--teal);
}

.main-nav {
    font-family: 'DM Sans', sans-serif;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-list > li > a,
.dropdown-toggle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.nav-list > li > a:hover,
.dropdown-toggle:hover {
    color: var(--teal);
}

.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width var(--transition);
}

.nav-list > li > a:hover::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -12px;
    background: var(--navy-light);
    border: 1px solid rgba(45, 212, 191, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 260px;
    list-style: none;
    margin-top: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.open {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.dropdown-menu li a:hover {
    background: rgba(45, 212, 191, 0.1);
    color: var(--teal);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    background: none;
    border: none;
}

.burger-line {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-content h1,
.hero h1 {
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-content p,
.hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    max-width: 600px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--navy-light);
}

.card-body {
    padding: 24px;
}

.card-category {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
    margin-bottom: 10px;
    display: inline-block;
}

.card-body h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.card-body h3 a:hover {
    color: var(--teal);
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
}

.split-section {
    padding: 80px 0;
}

.split-section h2 {
    margin-bottom: 20px;
}

.split-section p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-card .stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--teal);
    display: block;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.article-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 24px;
}

.article-header {
    margin-bottom: 32px;
}

.article-header h1 {
    margin-bottom: 12px;
}

.article-meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.article-hero {
    margin-bottom: 32px;
}

.article-hero img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
}

.article-hero figcaption,
.article-image figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-body h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: #5eead4;
}

.article-image {
    margin: 32px 0;
}

.article-image img {
    border-radius: var(--radius);
    width: 100%;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.article-table thead {
    background: var(--navy);
    color: #fff;
}

.article-table th,
.article-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.article-table tbody tr:hover {
    background: rgba(45, 212, 191, 0.05);
}

.contact-form-section {
    background: var(--card-bg);
    padding: 60px 24px;
    margin-top: 40px;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-container h2 {
    margin-bottom: 24px;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--off-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .error-msg {
    color: var(--coral);
    font-size: 0.82rem;
    margin-top: 6px;
    display: none;
}

.contact-form .error-msg.visible {
    display: block;
}

.contact-form input.invalid {
    border-color: var(--coral);
}

.form-submit,
.btn {
    font-family: 'DM Sans', sans-serif;
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    background: var(--teal);
    color: var(--navy);
}

.form-submit:hover,
.btn:hover {
    background: #5eead4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.3);
}

.btn-primary {
    background: var(--teal);
    color: var(--navy);
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--teal);
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
}

.read-more:hover {
    color: #5eead4;
}

.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    color: #ffffff;
    margin-bottom: 12px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
}

.page-content {
    padding: 60px 0;
}

.content-narrow {
    max-width: 760px;
    margin: 0 auto;
}

.content-narrow h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.content-narrow p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-narrow a {
    color: var(--teal);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form-wrapper h2,
.contact-details h2 {
    margin-bottom: 24px;
}

.contact-info-block {
    margin-bottom: 24px;
}

.contact-info-block h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.contact-info-block p,
.contact-info-block address {
    font-style: normal;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-info-block a {
    color: var(--teal);
}

.contact-map {
    margin-top: 24px;
}

.contact-map h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.contact-map iframe {
    border-radius: var(--radius);
}

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: 'DM Sans', sans-serif;
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.footer-address {
    font-style: normal;
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-address a {
    color: var(--teal);
}

.footer-address a:hover {
    text-decoration: underline;
}

.footer-links h4,
.footer-articles h4 {
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul,
.footer-articles ul {
    list-style: none;
}

.footer-links ul li,
.footer-articles ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-articles ul li a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links ul li a:hover,
.footer-articles ul li a:hover {
    color: var(--teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.84rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 20px 24px;
    z-index: 9999;
    border-top: 1px solid rgba(45, 212, 191, 0.2);
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-inner p {
    font-size: 0.9rem;
    flex: 1;
}

.cookie-inner p a {
    color: var(--teal);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-accept,
.cookie-reject {
    font-family: 'DM Sans', sans-serif;
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all var(--transition);
}

.cookie-accept {
    background: var(--teal);
    color: var(--navy);
}

.cookie-accept:hover {
    background: #5eead4;
}

.cookie-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-reject:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--teal);
    color: var(--navy);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 900;
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(45, 212, 191, 0.4);
}

.policy-content h2 {
    margin-top: 36px;
    margin-bottom: 14px;
}

.policy-content h3 {
    margin-top: 24px;
    margin-bottom: 10px;
}

.policy-content p {
    margin-bottom: 14px;
    line-height: 1.8;
}

.policy-content ul,
.policy-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.policy-content li {
    margin-bottom: 6px;
}

.policy-content a {
    color: var(--teal);
}

@media (max-width: 900px) {
    .burger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy);
        padding: 80px 32px 40px;
        transition: right var(--transition);
        z-index: 1000;
        border-left: 1px solid rgba(45, 212, 191, 0.15);
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .nav-list > li > a,
    .dropdown-toggle {
        font-size: 1.1rem;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 8px 0 0 16px;
        margin-top: 8px;
        min-width: auto;
    }

    .split-section .split-grid,
    .split-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 400px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }

    section {
        padding: 50px 0;
    }

    .article-content {
        padding: 40px 16px;
    }
}
