/*
Theme Name:  German Market Entry
Theme URI:   https://german-market-entry.com
Description: Custom theme for german-market-entry.com — B2B market intelligence for exporters entering Germany. Part of the ii-scope ecosystem.
Version:     1.0.0
Author:      Axel Pawlowsky / ii-scope Ltd
Author URI:  https://ii-scope.com
Text Domain: gme
*/

/* ── RESET ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TOKENS ───────────────────────────────────────────────────────────────── */
:root {
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --white:     #F8FAFC;

    --teal:      #1D9E75;
    --teal-dark: #0F6E56;
    --teal-light:#E1F5EE;
    --teal-dim:  rgba(29,158,117,0.1);

    --blue:      #3B82F6;
    --blue-light:#60A5FA;
    --gold:      #FBBF24;
    --red:       #F87171;

    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --section-padding: 80px;
    --radius:    12px;
    --radius-lg: 16px;
}

/* ── BASE ─────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--slate-900);
    color: var(--white);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; padding-top: 72px; } /* nav height offset */

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--white);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--slate-300); }
p + p { margin-top: 1rem; }

strong { color: var(--white); font-weight: 600; }
em { font-style: italic; color: var(--teal); }

/* ── LAYOUT ───────────────────────────────────────────────────────────────── */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: 760px; }
.container--mid    { max-width: 960px; }

/* ── NAVIGATION ───────────────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: 72px;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.site-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.site-logo span { color: var(--teal); }
.site-logo .cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: var(--teal);
    margin-left: 2px;
    animation: blink-cursor 1.1s step-start infinite;
}
@keyframes blink-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    color: var(--slate-400);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .current-menu-item a { color: var(--white); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--teal-dark);
    color: var(--teal-light) !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--teal) !important; color: #fff !important; }

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--slate-400);
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: var(--slate-900);
        border-bottom: 1px solid var(--slate-700);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        align-items: flex-start;
    }
    .nav-links.is-open { display: flex; }
}

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    line-height: 1;
}
.btn--primary {
    background: var(--teal-dark);
    color: var(--teal-light);
}
.btn--primary:hover { background: var(--teal); color: #fff; transform: translateY(-1px); }

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--slate-600);
}
.btn--outline:hover { border-color: var(--slate-400); transform: translateY(-1px); }

.btn--ghost {
    background: transparent;
    color: var(--slate-400);
    padding: 13px 20px;
}
.btn--ghost:hover { color: var(--white); }

/* ── SECTION UTILITIES ────────────────────────────────────────────────────── */
.section { padding: var(--section-padding) 24px; }
.section--dark  { background: var(--slate-900); }
.section--mid   { background: var(--slate-800); }
.section--navy  { background: #0a0f1e; }
.section--deep  { background: #06090f; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    display: block;
    margin-bottom: 12px;
}
.eyebrow--gold  { color: var(--gold); }
.eyebrow--muted { color: var(--slate-500); }

/* ── CARDS ────────────────────────────────────────────────────────────────── */
.card {
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}
.card--featured {
    border-color: rgba(29,158,117,0.35);
    background: linear-gradient(180deg, rgba(29,158,117,0.06) 0%, var(--slate-800) 60%);
}

/* ── BLOG ─────────────────────────────────────────────────────────────────── */

/* Post grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.post-card {
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
}
.post-card:hover { border-color: var(--slate-500); transform: translateY(-3px); }

.post-card__meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.post-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.35;
}
.post-card:hover .post-card__title { color: var(--teal); }
.post-card__excerpt {
    font-size: 14px;
    color: var(--slate-400);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}
.post-card__read-more {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal);
    letter-spacing: 0.05em;
}

/* Single post */
.post-header {
    padding: 80px 24px 48px;
    text-align: center;
    border-bottom: 1px solid var(--slate-700);
    margin-bottom: 0;
}
.post-header .post-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-500);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.post-header .post-meta span { color: var(--teal); }
.post-header h1 { max-width: 760px; margin: 0 auto 20px; }
.post-header .post-lead {
    font-size: 1.125rem;
    color: var(--slate-400);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.75;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}
.post-content h2 { margin: 48px 0 16px; font-size: 1.5rem; }
.post-content h3 { margin: 32px 0 12px; font-size: 1.2rem; }
.post-content p  { margin-bottom: 20px; color: var(--slate-300); line-height: 1.85; font-size: 1.0625rem; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; color: var(--slate-300); }
.post-content li { margin-bottom: 8px; line-height: 1.7; }
.post-content blockquote {
    border-left: 3px solid var(--teal);
    padding: 8px 0 8px 24px;
    margin: 28px 0;
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--slate-300);
}
.post-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--white); }
.post-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--slate-800);
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--gold);
}
.post-content hr { border: none; border-top: 1px solid var(--slate-700); margin: 40px 0; }
.post-content img { border-radius: var(--radius); margin: 28px 0; }
.post-content .wp-caption-text,
.post-content figcaption {
    font-size: 13px;
    color: var(--slate-500);
    text-align: center;
    margin-top: -16px;
    margin-bottom: 28px;
}

/* Post navigation */
.post-nav {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid var(--slate-700);
    padding-top: 40px;
}
.post-nav a {
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 14px;
    color: var(--slate-300);
    transition: border-color 0.2s;
}
.post-nav a:hover { border-color: var(--slate-500); color: var(--white); }
.post-nav .nav-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    display: block;
    margin-bottom: 6px;
}
.post-nav--next { text-align: right; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--slate-900);
    border-top: 1px solid var(--slate-700);
    padding: 48px 24px 32px;
}
.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--slate-700);
    margin-bottom: 32px;
}
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand .site-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--slate-500); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--slate-400); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--slate-600); }
.footer-bottom a { color: var(--slate-500); }
.footer-bottom a:hover { color: var(--slate-300); }

/* ── UTILITIES ────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-teal   { color: var(--teal); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--slate-400); }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }

/* ── WP ALIGNMENT CLASSES ─────────────────────────────────────────────────── */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 24px auto; display: block; }
.alignwide  { max-width: 100%; }
.wp-block-image { margin: 28px 0; }
