/* ═══════════════════════════════════════════════════
   SITE.CSS — Global foundation
   Alchemicy Ognia | Dark fire theme
   ═══════════════════════════════════════════════════ */

/* ── Custom properties ── */
:root {
    --color-bg:           #0d0d0d;
    --color-bg-alt:       #141414;
    --color-bg-card:      #1c1c1c;
    --color-fire:         #e8621a;
    --color-fire-light:   #ff8c42;
    --color-fire-dark:    #b84d12;
    --color-ember:        #c41e3a;
    --color-gold:         #d4a853;
    --color-text:         #e8e0d8;
    --color-text-muted:   #9a8f85;
    --color-border:       #2a2520;

    --font-heading: 'Cinzel', Georgia, serif;
    --font-body:    'Raleway', system-ui, sans-serif;

    --container-max: 1200px;
    --container-narrow: 760px;
    --nav-height:    80px;
    --section-pad:   80px;

    --radius:        4px;
    --radius-lg:     8px;
    --transition:    0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    font-size: 16px;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: var(--color-fire); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-fire-light); }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-block: var(--section-pad);
}

.section--dark {
    background-color: var(--color-bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
    color: var(--color-text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-fire);
    margin: 16px auto 0;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-fire);
    border-color: var(--color-fire);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-fire-light);
    border-color: var(--color-fire-light);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-fire);
    color: var(--color-fire);
}
.btn-secondary:hover {
    background: var(--color-fire);
    color: #fff;
}

/* ── Navigation ── */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
    transition: background var(--transition), box-shadow var(--transition);
}

.main-nav.scrolled {
    background: rgba(10, 10, 10, 0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.nav-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--color-text);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 8px;
    margin-inline-start: auto;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-fire); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    margin-inline-start: auto;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Language switcher ── */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.lang-switch .lang-active {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-fire);
}
.lang-switch .lang-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}
.lang-switch .lang-link:hover { color: var(--color-text); }
.lang-switch .lang-divider { color: var(--color-border); }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero--short {
    min-height: 55vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,0.55) 60%,
        rgba(0,0,0,0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px 60px;
    max-width: 900px;
}

.hero-title {
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ── Footer ── */
.main-footer {
    background-color: #080808;
    border-top: 1px solid var(--color-border);
    padding-top: 64px;
    padding-bottom: 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.main-footer h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-fire);
    margin-bottom: 16px;
}

.main-footer ul li { margin-bottom: 8px; }
.main-footer ul a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.main-footer ul a:hover { color: var(--color-text); }

.main-footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}
.social-link:hover {
    color: var(--color-fire);
    border-bottom-color: var(--color-fire);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a05 50%, #0a0a0a 100%);
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.cta-section h2 {
    color: var(--color-text);
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-inline: auto;
    margin-bottom: 32px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    :root {
        --section-pad: 56px;
        --nav-height:  64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        inset: var(--nav-height) 0 0 0;
        background: rgba(10,10,10,0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        margin: 0;
    }

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

    .nav-links a {
        font-size: 1rem;
        padding: 12px 24px;
    }

    /* Hidden on mobile; shown only when the menu overlay is open */
    .lang-switch {
        display: none;
    }

    /* .nav-links and .lang-switch are siblings inside .nav-container */
    .nav-links.nav-open ~ .lang-switch {
        display: flex;
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content { padding-top: calc(var(--nav-height) + 20px); }
}
