/* Shared styles for blog/post pages — mirrors the design tokens from index.php */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold:        #fde486;
    --gold-dark:   #e6c44a;
    --gold-light:  #fef7e0;
    --brown:       #241808;
    --brown-light: #4a3520;
    --brown-mid:   #6b4f35;
    --text:        #1a1207;
    --bg:          #fdfbf5;
    --bg-alt:      #f8f0dc;
    --neutral:     #8c7a62;
    --white:       #ffffff;
}

html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { max-width: 100vw; }
body {
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-weight: 400;
}
h1, h2, h3, h4 { font-family: 'Outfit', system-ui, sans-serif; line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* TOPBAR */
.topbar { background: var(--brown); border-bottom: 1px solid rgba(253,228,134,0.08); font-size: 0.74rem; color: rgba(255,255,255,0.75); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar-left { display: flex; align-items: center; gap: 24px; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 13px; height: 13px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.topbar-item a { color: rgba(255,255,255,0.75); transition: color 0.3s; }
.topbar-item a:hover { color: var(--gold); }
.topbar-socials { display: flex; align-items: center; gap: 12px; }
.topbar-socials a { display: flex; align-items: center; opacity: 0.5; transition: opacity 0.3s; }
.topbar-socials a:hover { opacity: 1; }
.topbar-socials svg { width: 15px; height: 15px; fill: var(--gold); }
.topbar-right { display: flex; align-items: center; }
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch a { padding: 3px 8px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.5px; border-radius: 3px; transition: all 0.3s; text-transform: uppercase; color: rgba(253,228,134,0.75); }
.lang-switch a.active { background: var(--gold); color: var(--brown); }
.lang-switch a:not(.active):hover { color: var(--gold); }

/* NAVIGATION */
.navbar { position: fixed; top: 36px; left: 0; right: 0; z-index: 1000; background: rgba(36,24,8,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(253,228,134,0.15); transition: all 0.3s ease; }
.navbar.scrolled { top: 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 40px; width: auto; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text span:first-child { font-size: 1rem; font-weight: 700; color: var(--gold); letter-spacing: 2px; }
.nav-logo-text span:last-child { font-size: 0.6rem; color: rgba(253,228,134,0.85); letter-spacing: 3px; text-transform: uppercase; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 0.76rem; font-weight: 500; color: rgba(253,228,134,0.7); letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--gold) !important; color: var(--brown) !important; padding: 8px 18px; border-radius: 6px; font-weight: 600 !important; font-size: 0.72rem !important; transition: all 0.3s !important; }
.nav-cta:hover { background: var(--gold-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold); transition: all 0.3s; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--brown-mid); margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--brown); margin-bottom: 20px; }
.section-desc { font-size: 1.05rem; color: var(--neutral); line-height: 1.8; }
.gold-line { width: 60px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); margin: 20px auto 0; border-radius: 2px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 8px; font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s; letter-spacing: 0.5px; }
.btn-primary { background: var(--gold); color: var(--brown); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(253,228,134,0.25); }
.btn-outline { background: transparent; color: var(--brown); border: 1px solid rgba(36,24,8,0.2); }
.btn-outline:hover { border-color: var(--brown); background: rgba(36,24,8,0.04); }

/* FOOTER */
.footer { background: var(--brown); color: rgba(255,255,255,0.6); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.9rem; margin-top: 16px; line-height: 1.7; }
.footer h4 { color: var(--gold); font-size: 0.85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(253,228,134,0.1); padding-top: 24px; display: flex; justify-content: space-between; font-size: 0.8rem; }

/* Inner page hero (compact) */
.page-hero { background: var(--brown); color: var(--white); padding: 160px 0 80px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(ellipse at 15% 50%, rgba(253,228,134,0.06) 0%, transparent 55%), radial-gradient(ellipse at 85% 30%, rgba(253,228,134,0.04) 0%, transparent 50%); }
.page-hero .container { position: relative; z-index: 1; text-align: center; }
.page-hero .crumbs { font-size: 0.8rem; color: rgba(253,228,134,0.85); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.page-hero .crumbs a { color: rgba(253,228,134,0.85); }
.page-hero .crumbs a:hover { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; color: var(--white); margin-bottom: 14px; letter-spacing: 1.5px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.7); max-width: 640px; margin: 0 auto; }

/* Obfuscated email — visible "[at]" is hidden by CSS so JS-disabled users still read it as user@domain */
.obf-email { unicode-bidi: embed; }
.obf-at { font-size: 0; line-height: 0; }
.obf-at::before { content: '@'; font-size: 1rem; line-height: inherit; }
.obf-email-link { color: inherit; text-decoration: none; }

/* DECORATIVE OBJECTS (linguistic theme) */
.section-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.section-decor.dark  { color: var(--gold); }
.section-decor.light { color: var(--brown); }
.section-decor .decor-icon {
    position: absolute;
    stroke-linecap: round; stroke-linejoin: round;
    transform: rotate(var(--rot, 0deg));
    animation: decorFloat 9s ease-in-out infinite;
}
.section-decor.dark  .decor-icon { opacity: 0.11; filter: drop-shadow(0 3px 10px rgba(253,228,134,0.07)); }
.section-decor.light .decor-icon { opacity: 0.07; }

@keyframes decorFloat {
    0%, 100% { transform: translateY(0)     rotate(var(--rot, 0deg)); }
    50%      { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
}

/* Position helpers (percentages, so they adapt to section height) */
.section-decor .pos-tl    { top: 8%;  left: 3%; }
.section-decor .pos-tc    { top: 6%;  left: 50%; transform: translateX(-50%) rotate(var(--rot, 0deg)); }
.section-decor .pos-tr    { top: 8%;  right: 3%; }
.section-decor .pos-lm    { top: 45%; left: 2%; }
.section-decor .pos-rm    { top: 45%; right: 2%; }
.section-decor .pos-bl    { bottom: 8%; left: 3%; }
.section-decor .pos-bc    { bottom: 6%; left: 50%; transform: translateX(-50%) rotate(var(--rot, 0deg)); }
.section-decor .pos-br    { bottom: 8%; right: 3%; }
.section-decor .pos-tl-2  { top: 18%; left: 14%; }
.section-decor .pos-tr-2  { top: 18%; right: 14%; }
.section-decor .pos-bl-2  { bottom: 18%; left: 14%; }
.section-decor .pos-br-2  { bottom: 18%; right: 14%; }

/* On mobile, hide every other decoration so the layout still breathes */
@media (max-width: 900px) {
    .section-decor .decor-icon:nth-child(odd) { display: none; }
    .section-decor .decor-icon { width: 44px !important; }
}

/* MOBILE */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: 100px; left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; padding: 24px; display: none; }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 14px 0; font-size: 1rem; color: var(--brown) !important; }
    .nav-links a::after { display: none; }
    .nav-links .nav-cta { margin-top: 8px; text-align: center; border-radius: 8px; padding: 14px; color: var(--brown) !important; background: var(--gold) !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar-left .topbar-item:not(:first-child):not(.topbar-socials) { display: none; }
}
