/* ============================================
   CRISTAL INVESTISSEMENT - v1.0.0
   ============================================ */

/* --- Variables --- */
:root {
    --primary:       #1B4F72;
    --primary-dark:  #14395A;
    --accent:        #C49A3C;
    --accent-light:  #D4AE55;
    --dark:          #0B1E30;
    --dark-2:        #112233;
    --light:         #F7F5F1;
    --white:         #FFFFFF;
    --text:          #1E2A3A;
    --text-muted:    #64748B;
    --border:        #E2E8F0;
    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     20px;
    --shadow:        0 4px 24px rgba(15,30,50,0.08);
    --shadow-md:     0 6px 32px rgba(15,30,50,0.11);
    --shadow-lg:     0 12px 48px rgba(15,30,50,0.14);
    --container:     1200px;
    --transition:    0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'DM Serif Display', serif;
    line-height: 1.15;
    color: var(--text);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all var(--transition);
}

.btn-hero {
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
}
.btn-hero:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196,154,60,0.35);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
    padding: 0 32px;
}

.site-header.scrolled {
    background: rgba(11,30,48,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    color: var(--white);
    flex-shrink: 0;
}
.site-logo svg { width: 200px; height: 32px; }

/* Nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-mobile-top { display: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color var(--transition);
    padding: 4px 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.menu-contact {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}
.menu-contact:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    color: var(--white);
    padding: 4px;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-close { display: none; }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Slideshow */
.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: opacity;
}
.hero-slide.active { opacity: 1; }

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(11,30,48,0.75) 0%,
        rgba(11,30,48,0.55) 50%,
        rgba(11,30,48,0.70) 100%
    );
    z-index: 1;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 760px;
    letter-spacing: -0.5px;
}
.hero-title em {
    font-style: italic;
    color: var(--accent-light);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.5);
    animation: bounce 2s infinite;
    transition: opacity 0.4s;
}
.scroll-indicator svg { width: 28px; height: 28px; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 48px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ============================================
   PERSONA
   ============================================ */
.persona-section {
    background: var(--dark);
    padding: 100px 0;
}

.persona-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 64px;
    align-items: start;
}

.persona-photo-wrap {
    flex-shrink: 0;
}

.persona-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 6px rgba(196,154,60,0.15);
}

.persona-content { color: var(--white); }

.persona-header { margin-bottom: 24px; }

.persona-name {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 6px;
}

.persona-title {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.persona-bio {
    font-size: 0.975rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    margin-bottom: 32px;
}
.persona-bio p { margin-bottom: 12px; }
.persona-bio ul { margin: 12px 0 12px 4px; display: flex; flex-direction: column; gap: 8px; }
.persona-bio li { padding-left: 16px; position: relative; }
.persona-bio li::before { content: '-'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.persona-bio strong { color: var(--white); font-weight: 600; }

.persona-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(196,154,60,0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

/* ============================================
   ARTICLES GRID
   ============================================ */
.articles-section {
    background: var(--light);
    padding: 100px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.no-posts {
    color: var(--text-muted);
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 0;
    font-size: 1rem;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-link { display: block; }

.card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .card-img { transform: scale(1.04); }

.card-cat {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

.card-body {
    padding: 20px 22px 22px;
}

.card-title {
    font-size: 1.05rem;
    font-family: 'DM Serif Display', serif;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 12px;
    transition: color var(--transition);
}
.article-card:hover .card-title { color: var(--primary); }

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-meta time::after { content: ' -'; }

/* ============================================
   CATEGORIES
   ============================================ */
.categories-section {
    background: var(--white);
    padding: 100px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cat-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 36px 28px 32px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    border: 1px solid transparent;
}
.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border-color: var(--border);
}

.cat-icon {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27,79,114,0.08);
    border-radius: 16px;
    color: var(--primary);
    transition: background var(--transition), color var(--transition);
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-card:hover .cat-icon { background: var(--primary); color: var(--white); }

.cat-name {
    font-size: 1.15rem;
    font-family: 'DM Serif Display', serif;
    margin-bottom: 10px;
    color: var(--text);
}

.cat-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.cat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition), color var(--transition);
}
.cat-link::after { content: '→'; }
.cat-card:hover .cat-link { gap: 10px; color: var(--accent); }

/* ============================================
   SEO BLOCK (archive)
   ============================================ */
.seo-block {
    background: var(--light);
    padding: 80px 0;
}

.seo-inner {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: center;
}

.seo-text h2 {
    font-size: 1.7rem;
    margin-bottom: 16px;
    color: var(--text);
}
.seo-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}
.seo-text ul {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.seo-text li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    font-size: 0.925rem;
}
.seo-text .arrow {
    color: var(--primary);
    font-family: monospace;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.seo-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.seo-img img:hover { transform: scale(1.02); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-logo svg { width: 200px; height: 32px; }

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-recent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-recent a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
    transition: color var(--transition);
}
.footer-recent a:hover { color: var(--accent); }

.footer-no-posts { font-size: 0.875rem; color: rgba(255,255,255,0.35); }

.footer-bottom {
    text-align: center;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-desc { max-width: 100%; }
    .seo-inner { grid-template-columns: 1fr; }
    .seo-img { order: -1; }
    .seo-img img { max-height: 300px; }
    .hero-stats { gap: 32px; }
}

@media (max-width: 768px) {
    /* Header mobile */
    .site-header { padding: 0 20px; }
    .header-inner { height: 64px; }

    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 28px 40px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 200;
        overflow-y: auto;
    }
    .site-nav.open { transform: translateX(0); }

    /* Disable backdrop-filter on mobile to fix fixed positioning */
    .site-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .nav-mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 20px 0 32px;
    }
    .nav-mobile-logo svg { width: 160px; height: 26px; }
    .nav-close {
        display: flex;
        color: var(--white);
        padding: 4px;
    }
    .nav-close svg { width: 22px; height: 22px; }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        margin-bottom: 32px;
    }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--white) !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links a::after { display: none; }

    .menu-contact {
        padding: 12px 28px;
        font-size: 0.95rem;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    /* Hero mobile */
    .hero-content { padding: 100px 20px 60px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .stat-number { font-size: 2.2rem; }

    /* Persona mobile */
    .persona-section { padding: 64px 0; }
    .persona-inner { grid-template-columns: 1fr; gap: 32px; }
    .persona-photo-wrap { display: flex; justify-content: center; }

    /* Articles mobile */
    .articles-section { padding: 64px 0; }
    .articles-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Categories mobile */
    .categories-section { padding: 64px 0; }
    .categories-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Footer mobile */
    .site-footer { padding: 56px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-desc { max-width: 100%; text-align: center; }
    .footer-col { text-align: center; }
    .footer-links, .footer-recent { align-items: center; }

    /* Section titles */
    .section-title { font-size: 1.7rem; }
    .section-title::after { left: 50%; transform: translateX(-50%); }
    .articles-section .section-title::after,
    .categories-section .section-title::after { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.85rem; }
    .hero-eyebrow { font-size: 0.65rem; }
    .persona-photo { width: 130px; height: 130px; }
    .persona-name { font-size: 1.5rem; }
    .cat-card { padding: 28px 20px 24px; }
}
