/* ==========================================================================
   TAUKEMAS – design system
   ========================================================================== */
:root {
    --bg: #0a0907;
    --bg-2: #100d09;
    --surface: #16120c;
    --surface-2: #1d1810;
    --line: rgba(212, 175, 55, 0.18);
    --gold: #d4af37;
    --gold-light: #f6e27a;
    --gold-dark: #8a6a12;
    --gold-grad: linear-gradient(135deg, #fbeaa0 0%, #d4af37 45%, #9a7414 100%);
    --text: #f3ead7;
    --muted: #a99f89;
    --radius: 18px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --font-body: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: "Playfair Display", "Noto Sans SC", Georgia, serif;
    --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; color: var(--muted); }
blockquote { margin: 0; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 48px); }
.center { text-align: center; }
.mt { margin-top: 1.6em; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 30px; border-radius: 999px; border: 1px solid transparent;
    font: 600 .82rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
    cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); color: #1a1405; box-shadow: 0 8px 24px rgba(212, 175, 55, .28); }
.btn-gold:hover { box-shadow: 0 12px 32px rgba(212, 175, 55, .45); }
.btn-ghost { border-color: var(--gold); color: var(--gold-light); background: transparent; }
.btn-ghost:hover { background: rgba(212, 175, 55, .12); }
.btn-dark { background: #0a0907; color: var(--gold-light); }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 10px 20px; font-size: .72rem; }
.text-link { color: var(--gold); font-weight: 500; font-size: .9rem; }
.text-link:hover { color: var(--gold-light); }

.eyebrow {
    display: inline-block; margin-bottom: 1rem;
    font: 600 .78rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase;
    color: var(--gold);
}
.eyebrow::before { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 14px; }
.lead { font-size: 1.15rem; max-width: 640px; color: #d2c8b0; }
.pill {
    display: inline-block; padding: 8px 18px; margin-bottom: 1.6rem; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(212, 175, 55, .08);
    color: var(--gold-light); font-size: .82rem; letter-spacing: .08em;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
    transition: background .35s, backdrop-filter .35s, box-shadow .35s, height .35s;
}
.site-header.scrolled {
    background: rgba(10, 9, 7, .82); backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 1px 0 var(--line); height: 68px;
}
.site-header .container { width: min(1360px, 100% - 32px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 1; }
.brand-logo { height: 50px; width: auto; object-fit: contain; transition: transform .3s ease, filter .3s ease; }
.brand:hover .brand-logo { transform: scale(1.03); filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.45)); }
.site-header.scrolled .brand-logo { height: 44px; }
.footer-logo { height: 64px; margin-bottom: 8px; }

.main-nav { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 24px); }
.main-nav > a { position: relative; font-size: .86rem; font-weight: 500; letter-spacing: .03em; color: #e0d6bd; padding: 6px 0; white-space: nowrap; flex-shrink: 0; transition: color .25s; }
.main-nav > a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: width .3s; }
.main-nav > a:hover, .main-nav > a.active { color: var(--gold-light); }
.main-nav > a:hover::after, .main-nav > a.active::after { width: 100%; }
.nav-tools { display: flex; align-items: center; gap: 12px; margin-left: 4px; flex-shrink: 0; }

.lang-switch { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
    background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line);
    border-radius: 999px; font: 500 .8rem var(--font-body); cursor: pointer; transition: border-color .25s;
}
.lang-btn:hover { border-color: var(--gold); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 160px; padding: 6px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .25s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: .88rem; }
.lang-menu a:hover, .lang-menu a.current { background: rgba(212, 175, 55, .12); color: var(--gold-light); }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--gold); margin: 5px auto; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 80px; }
.hero-bg { position: absolute; inset: -6% 0; background-size: cover; background-position: center right; transform: translate3d(0, var(--py, 0px), 0); animation: slowZoom 24s ease-in-out infinite alternate; will-change: transform; }
.hero-overlay { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(10, 9, 7, .96) 0%, rgba(10, 9, 7, .78) 42%, rgba(10, 9, 7, .15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; background: linear-gradient(180deg, #fff6d6, #d4af37 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 3.2rem; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); max-width: 640px; }
.hero-stats dt { font: 600 2rem var(--font-head); color: var(--gold-light); }
.hero-stats dd { margin: 0; font-size: .82rem; color: var(--muted); max-width: 150px; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid var(--gold); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
@keyframes slowZoom { from { scale: 1; } to { scale: 1.1; } }

.page-hero {
    position: relative; padding: calc(var(--header-h) + 90px) 0 80px; overflow: hidden;
    background: radial-gradient(900px 400px at 85% 0%, rgba(212, 175, 55, .20), transparent 70%), linear-gradient(180deg, #14100a, var(--bg));
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { background: linear-gradient(180deg, #fff6d6, #d4af37 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero.article-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero.error-hero { min-height: 80vh; display: flex; align-items: center; }
.page-hero.error-hero .lead { margin-inline: auto; margin-bottom: 2rem; }
.back-link { display: inline-block; margin-bottom: 1.4rem; color: var(--gold); font-size: .9rem; }
.back-link:hover { color: var(--gold-light); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--surface)); border-block: 1px solid rgba(212, 175, 55, .08); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head .sub { margin-top: -.2em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse .split-media { order: 0; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.split-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; opacity: .5; }
.media-badge {
    position: absolute; right: -14px; bottom: 34px; padding: 18px 24px; border-radius: 16px;
    background: var(--gold-grad); color: #1a1405; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); text-align: center;
}
.media-badge strong { display: block; font: 700 2rem var(--font-head); line-height: 1; }
.media-badge span { font-size: .72rem; letter-spacing: .06em; font-weight: 600; }
.quote { font: italic 500 1.35rem/1.6 var(--font-head); color: var(--gold-light); border-left: 2px solid var(--gold); padding-left: 22px; margin: 0 0 1.4rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 26px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.feature-card, .value-card, .purity-card, .team-card, .info-card {
    position: relative; padding: 36px 30px; border-radius: var(--radius);
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); transition: transform .35s, border-color .35s, box-shadow .35s;
}
.feature-card:hover, .value-card:hover, .purity-card:hover, .team-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(212, 175, 55, .2); }
.feature-num { display: block; font: 700 2.6rem var(--font-head); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .85; margin-bottom: 12px; }
.feature-card p, .value-card p, .purity-card p { margin: 0; font-size: .95rem; }
.value-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 18px; font-size: 1.3rem; color: #1a1405; background: var(--gold-grad); }
.purity-num { display: block; font: 700 3.6rem/1 var(--font-head); margin-bottom: 14px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.team-card { text-align: center; }
.avatar { width: 110px; height: 110px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; font: 600 2rem var(--font-head); color: #1a1405; background: var(--gold-grad); box-shadow: 0 0 0 6px rgba(212, 175, 55, .15); }
.team-card h3 { margin-bottom: .2em; }
.team-card p { margin: 0; color: var(--gold); font-size: .9rem; letter-spacing: .06em; }

.news-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s, border-color .35s, box-shadow .35s; }
.news-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow); }
.news-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.news-card:hover .news-thumb img { transform: scale(1.08); }
.news-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 a:hover { color: var(--gold-light); }
.news-body p { font-size: .94rem; flex: 1; }

/* ---------- Timeline & history ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 90px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.timeline-item { position: relative; padding-top: 44px; text-align: center; }
.timeline-dot { position: absolute; left: 50%; top: 0; width: 19px; height: 19px; margin-left: -9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(212, 175, 55, .15), 0 0 18px rgba(212, 175, 55, .6); }
.timeline-item h3 { color: var(--gold-light); font-size: 1.6rem; }
.timeline-item p { max-width: 320px; margin-inline: auto; }

.history-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.history-card img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.history-text { padding: 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.history-text blockquote { font: italic 500 1.3rem/1.6 var(--font-head); color: var(--gold-light); margin-bottom: 1.2rem; }

/* ---------- Join CTA ---------- */
.join-cta { background: var(--gold-grad); color: #1a1405; padding: 64px 0; }
.join-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.join-cta h2 { margin-bottom: .2em; color: #1a1405; }
.join-cta p { margin: 0; color: rgba(26, 20, 5, .8); max-width: 640px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.info-card { padding: 28px; }
.info-card h3 { color: var(--gold); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--font-body); }
.info-card p { color: var(--text); }
.info-card a:not(.btn) { color: var(--gold-light); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 280px; filter: grayscale(.6) invert(.92) contrast(.9) hue-rotate(180deg); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.contact-form-card { padding: 44px; border-radius: 24px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.field input, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, .25);
    background: rgba(0, 0, 0, .35); color: var(--text); font: 400 1rem var(--font-body); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .15); }
.field textarea { resize: vertical; }
.field-error { display: block; margin-top: 6px; color: #ff8a80; font-size: .82rem; }
.alert-success { margin-bottom: 24px; padding: 16px 20px; border-radius: 12px; background: rgba(76, 175, 80, .12); border: 1px solid rgba(76, 175, 80, .45); color: #b9f0bb; }

/* ---------- Article / legal ---------- */
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 40px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.prose p { font-size: 1.08rem; line-height: 1.85; color: #cfc5ad; }

/* ---------- Footer ---------- */
.site-footer { background: #060504; border-top: 1px solid var(--line); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.4fr; gap: 50px; padding-bottom: 60px; }
.site-footer h3 { font: 600 .8rem var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2em; }
.site-footer li { margin-bottom: .6em; }
.site-footer a { color: var(--muted); transition: color .25s; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer p { font-size: .92rem; }
.company { margin-top: 18px; font-size: .8rem !important; letter-spacing: .06em; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: all .3s; }
.socials a:hover { background: var(--gold); color: #000; border-color: var(--gold); transform: translateY(-3px); }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid rgba(212, 175, 55, .1); }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-legal li { margin: 0; font-size: .82rem; }
.footer-legal p { margin: 0; font-size: .8rem; }

/* ---------- Reveal animation (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.d1 { transition-delay: .12s; }
.js .reveal.d2 { transition-delay: .24s; }
.js .reveal.d3 { transition-delay: .36s; }
.js .reveal.d4 { transition-delay: .48s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-bg, .scroll-hint span { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
    .card-grid.four { grid-template-columns: repeat(2, 1fr); }
    .card-grid.three { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 56px; }
    .history-card, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); flex-direction: column; align-items: flex-start; gap: 6px;
        padding: 100px 32px 32px; background: rgba(10, 9, 7, .97); backdrop-filter: blur(20px); border-left: 1px solid var(--line);
        transform: translateX(100%); transition: transform .4s cubic-bezier(.2, .7, .2, 1);
    }
    .main-nav.open { transform: none; }
    .main-nav > a { font-size: 1.1rem; padding: 12px 0; }
    .nav-tools { margin: 20px 0 0; flex-direction: column; align-items: flex-start; }
    .lang-menu { right: auto; left: 0; }
    .nav-toggle { position: relative; z-index: 2; }
}
@media (max-width: 680px) {
    .section { padding: 80px 0; }
    .card-grid.two, .card-grid.three, .card-grid.four, .field-row { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; gap: 40px; }
    .timeline::before { display: none; }
    .hero-stats { gap: 28px; }
    .history-text, .contact-form-card { padding: 30px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .media-badge { right: 8px; }
    .split-media::before { display: none; }
    .footer-legal { flex-direction: column; align-items: flex-start; }
}
