/* ── Crow Dark Theme ──
   Matches the visualization dashboard aesthetic:
   dark backgrounds, gold accents, monospace + serif mix */

:root {
    --bg: #1a1a1f;
    --surface: #24242b;
    --surface2: #2e2e37;
    --border: #3a3a44;
    --text: #e8e6e1;
    --text-dim: #9a988f;
    --accent: #e8c97e;
    --accent-hover: #d4b56a;
    --secondary: #3498db;
    --green: #2ecc71;
    --red: #e74c3c;
    --orange: #e67e22;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Typography ── */
body {
    font-family: 'Courier Prime', 'Courier New', monospace;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'IM Fell English', Georgia, serif;
    font-weight: normal;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

strong {
    color: var(--text);
    font-weight: 700;
}

/* ── Layout ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ── */
.main-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 1.3rem;
    color: var(--accent) !important;
    text-decoration: none !important;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dim);
    transition: transform 0.2s;
}

/* ── Hero ── */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.hero-sub {
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
}

.hero-sub strong {
    color: var(--text);
}

.hero-compact {
    padding: 48px 0 32px;
}

.hero-compact h1 {
    font-size: 2.2rem;
}

.hero-prose {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: left;
}

.hero-prose p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-accent {
    background: var(--accent);
    color: var(--bg) !important;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--bg) !important;
}

.btn-secondary {
    background: var(--secondary);
    color: white !important;
}

.btn-secondary:hover {
    background: #2980b9;
    color: white !important;
}

.btn-outline {
    background: transparent;
    color: var(--accent) !important;
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg) !important;
}

/* ── Sections ── */
.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--surface);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 48px;
}

/* ── Cards ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    overflow: hidden;
    position: relative;
}

.section-alt .card {
    background: var(--surface2);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--red));
}

.card h3 {
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Team ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.team-photo {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 2px solid var(--border);
    transition: border-color 0.3s;
}

.team-photo:hover {
    border-color: var(--accent);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.team-member h3 a {
    color: var(--text) !important;
    text-decoration: none;
}

.team-member h3 a:hover {
    color: var(--accent) !important;
}

.team-member p {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 360px;
    margin: 0 auto;
}

.team-member p strong {
    color: var(--accent);
}

/* ── Project Cards ── */
.project-card {
    display: flex;
    gap: 24px;
    background: linear-gradient(135deg, var(--surface), var(--surface2));
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    text-decoration: none !important;
    color: var(--text) !important;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.project-card img {
    width: 280px;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
}

.project-info {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
    font-family: 'Courier Prime', monospace;
}

.project-info h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Package Cards ── */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.package-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.package-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.package-card h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 1.3rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 4px;
}

.package-meta {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 12px;
    font-family: 'Courier Prime', monospace;
}

.package-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.package-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.package-links a {
    font-size: 0.8rem;
    color: var(--accent) !important;
    text-decoration: none !important;
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 4px;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.package-links a:hover {
    background: var(--accent);
    color: var(--bg) !important;
    border-color: var(--accent);
}

/* ── Blog Cards ── */
.blog-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 16px;
    text-decoration: none !important;
    transition: border-color 0.2s, transform 0.2s;
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.blog-card-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.blog-card h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.blog-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ── Article meta ── */
.article-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-family: 'Courier Prime', monospace;
}

/* ── Content body (articles and pages) ── */
.content-body {
    max-width: 800px;
}

.content-body h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 48px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.content-body h3 {
    font-size: 1.15rem;
    color: var(--accent);
    margin: 32px 0 12px;
}

.content-body p {
    margin-bottom: 16px;
    color: var(--text-dim);
}

.content-body em {
    font-family: 'IM Fell English', Georgia, serif;
    color: var(--text);
}

.content-body ul, .content-body ol {
    margin: 0 0 16px 24px;
    color: var(--text-dim);
}

.content-body li {
    margin-bottom: 6px;
}

.content-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

.content-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--surface);
    border-radius: 0 4px 4px 0;
}

.content-body code {
    background: var(--surface2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.content-body pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
}

/* ── Bio sections ── */
.bio-section {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin: 24px 0;
}

.bio-section .team-photo {
    flex-shrink: 0;
    margin: 0;
}

.bio-text {
    flex: 1;
}

.bio-text p {
    color: var(--text-dim);
    margin-bottom: 12px;
}

.bio-text ul {
    color: var(--text-dim);
    margin: 0 0 12px 24px;
}

.bio-text li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .bio-section {
        flex-direction: column;
        align-items: center;
    }
}

/* ── About intro ── */
.about-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.about-intro em {
    font-family: 'IM Fell English', Georgia, serif;
    color: var(--accent);
    font-size: 0.95rem;
}

/* ── Contact grid ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.greek-placeholder {
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ── Footer ── */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 48px 0 32px;
    margin-top: 0;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
    opacity: 0.8;
}

footer p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-note {
    margin-top: 12px;
    font-size: 0.75rem !important;
    color: #666 !important;
}

.footer-note a {
    color: #888;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-compact h1 {
        font-size: 1.6rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
    }

    .nav-links.open {
        display: flex;
    }

    .project-card {
        flex-direction: column;
    }

    .project-card img {
        width: 100%;
        height: 200px;
    }

    .project-info {
        padding: 20px;
    }

    .card-grid,
    .team-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

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

/* ── What We Do ── */
.what-we-do {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.what-we-do p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ── Section intro ── */
.section-intro {
    text-align: center;
    color: var(--text-dim);
    max-width: 720px;
    margin: -24px auto 40px;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Partner logos ── */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 120px;
}

.partner-logo img {
    height: 36px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1.0;
}

.partner-text-logo {
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 1rem;
    color: var(--text-dim);
    opacity: 0.7;
    transition: color 0.3s ease, opacity 0.3s ease;
    text-align: center;
    line-height: 1.2;
    height: 36px;
    display: flex;
    align-items: center;
}

.partner-logo:hover .partner-text-logo {
    color: var(--accent);
    opacity: 1.0;
}

.partner-desc {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.3;
    font-family: 'Courier Prime', monospace;
}

/* ── Projects page ── */
.projects-intro {
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.project-card-vertical {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--surface), var(--surface2));
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--text) !important;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.project-card-vertical:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.project-card-vertical img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-body {
    padding: 20px;
}

.project-card-body .project-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
    font-family: 'Courier Prime', monospace;
}

.project-card-body h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 8px;
}

.project-card-body p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.6;
}
