:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --text-dark: #0f172a;
    --text-gray: #475569;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; }
header { display: flex; align-items: center; padding: 16px max(8%, calc((100% - 1240px) / 2)); width: 100%; background: #ffffff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #f1f5f9; gap: 20px; }
.logo { font-size: 24px; font-weight: 800; color: var(--text-dark); text-decoration: none; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-img { width: auto; display: block; }
.logo-icon { color: var(--primary); }

/* Primary nav — Templates + Pricing next to logo */
.nav-primary { display: flex; gap: 4px; align-items: center; margin-left: 24px; flex-shrink: 0; }

/* Right-side wrapper (auth + lang) */
.nav-links { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.nav-lang-group { display: flex; gap: 4px; align-items: center; margin-left: 12px; border-left: 1px solid #e2e8f0; padding-left: 16px; }

/* Mobile-only: hides the primary nav clone in the drawer */
.nav-mobile-primary { display: none; }

.nav-link, .lang-switch { color: var(--text-dark); text-decoration: none; font-weight: 600; transition: color 0.2s; background: none; border: none; cursor: pointer; font-size: 15px; font-family: inherit; padding: 6px 10px; border-radius: 8px; }
.lang-switch { background: #f1f5f9; padding: 5px 10px; border-radius: 8px; font-size: 13px; text-transform: uppercase; }
.nav-link:hover, .lang-switch:hover { color: var(--primary); background: #f0f9ff; }
.lang-switch:hover { background: #e0f2fe; }
.btn-outline { border: 2px solid var(--text-dark); padding: 9px 20px; border-radius: 50px; font-weight: 600; text-decoration: none; color: var(--text-dark); transition: all 0.2s; background: transparent; cursor: pointer; font-size: 14px; }
.btn-outline:hover { background: var(--text-dark); color: white; }
.btn-login { background: var(--primary); color: white; padding: 9px 20px; border-radius: 50px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.btn-login:hover { background: var(--primary-hover); }

/* ── Hamburger / mobile nav ──────────────────────────────────────────────── */
.nav-hamburger { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; margin-left: auto; }
.nav-hamburger span { display: block; height: 2px; background: var(--text-dark); border-radius: 2px; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 99; }
.nav-overlay.show { display: block; }
.nav-close { display: none; }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-hamburger span { transition: transform 0.25s ease, opacity 0.25s ease; }

@media(max-width: 768px) {
    header { padding: 12px 5%; }
    .logo-img { height: 50px; }
    .nav-primary { display: none; } /* hidden on mobile — shown inside drawer */
    .nav-hamburger { display: flex; margin-left: auto; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; right: 0;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 72px 24px 32px;
        gap: 4px;
        box-shadow: -4px 0 30px rgba(0,0,0,0.15);
        z-index: 100;
        overflow-y: auto;
        margin-left: 0;
    }
    .nav-links.open { display: flex; }
    .nav-mobile-primary { display: flex; flex-direction: column; width: 100%; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 6px; gap: 0; }
    .nav-mobile-primary .nav-link { font-size: 17px; padding: 10px 0; width: 100%; }
    .nav-links .nav-link { font-size: 17px; padding: 10px 0; width: 100%; border-bottom: 1px solid #f1f5f9; border-radius: 0; }
    .nav-lang-group { flex-direction: row; gap: 6px; padding-top: 10px; margin-left: 0; border-left: none; padding-left: 0; }
    .nav-links .btn-login { width: 100%; text-align: center; margin-top: 8px; justify-content: center; }
    .nav-links .btn-outline { width: 100%; text-align: center; margin-top: 4px; }
    .nav-close { display: flex; align-items: center; justify-content: center; position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; background: #f1f5f9; border: none; border-radius: 50%; font-size: 22px; cursor: pointer; color: var(--text-dark); line-height: 1; }
}
footer a:hover { color: #38bdf8 !important; }
.seo-section { background: #f8fafc; border-top: 1px solid #e2e8f0; padding: 60px 8%; }
.seo-inner { max-width: 860px; margin: 0 auto; }
.seo-inner h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.seo-inner p { font-size: 16px; color: var(--text-gray); line-height: 1.75; margin-bottom: 12px; }
.seo-inner a { color: var(--primary); text-decoration: none; font-weight: 600; }
.seo-inner a:hover { text-decoration: underline; }
@media(max-width: 640px) { .seo-section { padding: 40px 6%; } .seo-inner h2 { font-size: 18px; } }
