/* =====================================================
   AHILEJ.RS – Modern Mythology Theme
   ===================================================== */

:root {
    --gold:      #c9a84c;
    --gold-lt:   #e8c96b;
    --dark:      #0d0c0a;
    --dark-2:    #151310;
    --dark-3:    #1e1b16;
    --dark-4:    #2a2520;
    --text:      #e8e0d0;
    --text-muted:#a09880;
    --border:    rgba(201,168,76,0.18);
    --radius:    6px;
    --max-w:     1120px;
    --font-head: 'Cinzel', serif;
    --font-body: 'Lora', serif;
    --font-ui:   'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-lt); }

/* ── Layout ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,12,10,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--text) !important;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.logo-icon { color: var(--gold); font-size: 1.1rem; }
.logo-text span { color: var(--gold); }

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-family: var(--font-ui);
    font-size: .9rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.main-nav a { color: var(--text-muted); }
.main-nav a:hover,
.main-nav a.active { color: var(--gold); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(13,12,10,.96) 40%, rgba(30,27,22,.7) 100%),
        radial-gradient(ellipse at 70% 50%, rgba(201,168,76,.12) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.4rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 2.2rem;
    line-height: 1.9;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: all .25s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark);
}
.btn-primary:hover {
    background: var(--gold-lt);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,168,76,.35);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    margin-left: 1rem;
}
.btn-outline:hover {
    background: rgba(201,168,76,.1);
    color: var(--gold-lt);
    transform: translateY(-2px);
}

.hero-deco {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(14rem, 22vw, 26rem);
    opacity: .04;
    font-family: var(--font-head);
    pointer-events: none;
    user-select: none;
    color: var(--gold);
    white-space: nowrap;
}

/* ── Sections ── */
section { padding: 5rem 0; }

.section-label {
    font-family: var(--font-ui);
    font-size: .75rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .8rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* ── Divider ── */
.gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 1.2rem 0 2rem;
}

/* ── Feature Cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    transition: border-color .25s, transform .25s;
}
.feature-card:hover {
    border-color: rgba(201,168,76,.4);
    transform: translateY(-4px);
}
.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: .6rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.75;
}

/* ── Quote ── */
.quote-section {
    background: var(--dark-3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 4.5rem 0;
}

blockquote {
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: var(--gold);
    font-style: italic;
    max-width: 780px;
    margin: 0 auto 1rem;
    line-height: 1.55;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-style: normal;
    font-family: var(--font-ui);
}

/* ── Blog Cards ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    margin-top: 2.5rem;
}

.blog-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, border-color .25s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201,168,76,.4);
}

.blog-card-thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--dark-4), var(--dark-3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid var(--border);
}

.blog-card-body {
    padding: 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-family: var(--font-ui);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .6rem;
}

.blog-card h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: .7rem;
    line-height: 1.35;
}

.blog-card p {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.72;
    flex: 1;
    margin-bottom: 1.2rem;
}

.read-more {
    font-family: var(--font-ui);
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: auto;
}
.read-more::after { content: ' →'; }
.read-more:hover { color: var(--gold-lt); }

/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin-top: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.85rem;
    top: .4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--dark);
    box-shadow: 0 0 0 3px rgba(201,168,76,.25);
}
.timeline-item h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: .4rem;
}
.timeline-item p {
    color: var(--text-muted);
    font-size: .97rem;
    line-height: 1.78;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
    background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
    border-bottom: 1px solid var(--border);
    padding: 5rem 0 4rem;
    text-align: center;
}
.page-hero .section-label { justify-content: center; display: block; }
.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.page-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ── Prose (blog post) ── */
.prose-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-family: var(--font-ui);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.post-meta span { color: var(--gold); }

.prose h2 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    color: var(--text);
    margin: 2.5rem 0 .9rem;
}
.prose h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--gold);
    margin: 2rem 0 .7rem;
}
.prose p { color: var(--text-muted); margin-bottom: 1.2rem; line-height: 1.9; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol {
    margin: 1rem 0 1.4rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.85;
}
.prose li { margin-bottom: .3rem; }
.prose blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: left;
    font-family: var(--font-body);
}
.prose blockquote cite {
    font-size: .8rem;
}

/* ── Info Box ── */
.info-box {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin: 2rem 0;
    font-size: .97rem;
    color: var(--text-muted);
}
.info-box strong { color: var(--gold); }

/* ── Post Nav ── */
.post-nav {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
    margin: 3rem 0;
}
.cta-banner h2 {
    font-family: var(--font-head);
    font-size: 1.7rem;
    color: var(--text);
    margin-bottom: .8rem;
}
.cta-banner p {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

/* ── Facts Grid ── */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin: 2.5rem 0;
}
.fact-item {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem;
    text-align: center;
}
.fact-item .fact-num {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--gold);
    display: block;
    margin-bottom: .3rem;
}
.fact-item p {
    font-family: var(--font-ui);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Footer ── */
.site-footer {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--gold);
    font-family: var(--font-ui);
    font-size: .88rem;
    border: 1px solid var(--border);
    padding: .5rem .9rem;
    border-radius: var(--radius);
    transition: all .2s;
    margin-top: .3rem;
}
.footer-email:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,.08);
    color: var(--gold-lt);
}
.email-icon { font-style: normal; }

.footer-brand p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-top: .9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-seo h4 {
    font-family: var(--font-head);
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
    color: var(--text-muted);
    font-size: .9rem;
}
.footer-links a:hover { color: var(--gold); }

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.tag-cloud a {
    background: var(--dark-4);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: .75rem;
    padding: .3rem .7rem;
    border-radius: 20px;
    letter-spacing: .04em;
    transition: all .2s;
}
.tag-cloud a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: .82rem;
    letter-spacing: .04em;
}

/* ── 404 ── */
.not-found {
    text-align: center;
    padding: 8rem 1.5rem;
}
.not-found h1 {
    font-family: var(--font-head);
    font-size: 8rem;
    color: var(--gold);
    opacity: .3;
    line-height: 1;
}
.not-found h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--text);
    margin: .5rem 0 1rem;
}

/* ── Responsive ── */
@media (max-width: 1050px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--dark-2);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 1.2rem;
    }

    .hero { min-height: 85vh; }
    .hero-deco { display: none; }
    .btn-outline { margin-left: 0; margin-top: .7rem; }
    .hero .buttons { display: flex; flex-direction: column; align-items: flex-start; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    .blog-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}
