/* ============================================
   Tomas Andre - Dark Editorial Design
   Cormorant Garamond + DM Sans
   Deep slate backgrounds, gold accent
   ============================================ */

/* --- Animations --- */

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* --- Flash Messages --- */

.flash-message {
    animation: slideInRight 0.4s ease-out;
}

/* --- Scroll Reveal --- */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Frosted Glass Navigation --- */

.nav-glass {
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 164, 78, 0.1);
}

.nav-glass.nav-scrolled {
    background: rgba(10, 15, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #c8a44e;
}

/* --- Dropdown Glass --- */

.dropdown-glass {
    background: rgba(26, 34, 53, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 164, 78, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* --- Hamburger Menu --- */

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #e8edf5;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.hamburger-line:nth-child(1) {
    transform: translateY(-7px);
}

.hamburger-line:nth-child(3) {
    transform: translateY(7px);
}

.menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

/* --- Mobile Menu --- */

.mobile-menu-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(10, 15, 26, 0.98);
}

.mobile-menu-panel.open {
    max-height: 80vh;
    overflow-y: auto;
}

/* --- Hero --- */

.hero-gradient {
    background: radial-gradient(
        ellipse at 30% 50%,
        rgba(200, 164, 78, 0.08) 0%,
        transparent 60%
    ),
    radial-gradient(
        ellipse at 80% 20%,
        rgba(37, 99, 235, 0.05) 0%,
        transparent 50%
    );
}

.hero-photo-frame {
    position: relative;
}

.hero-photo-frame::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(200, 164, 78, 0.4), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-photo-frame img {
    filter: grayscale(15%) contrast(1.05);
}

/* --- Buttons --- */

.btn-primary {
    display: inline-block;
    background: #c8a44e;
    color: #0a0f1a;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #b8943e;
    box-shadow: 0 8px 30px rgba(200, 164, 78, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    color: #e8edf5;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(200, 164, 78, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #c8a44e;
    background: rgba(200, 164, 78, 0.1);
}

/* --- Card Hover --- */

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(200, 164, 78, 0.3);
}

/* --- Accent Line --- */

.accent-line {
    width: 60px;
    height: 3px;
    background-color: #c8a44e;
    border-radius: 2px;
}

/* --- Content Section (fallback page.long) --- */

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.content-section h3,
.content-section strong {
    font-weight: 700;
}

.content-section ul {
    list-style-type: none;
    margin-left: 0;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

/* --- Counter --- */

.stat-number {
    font-variant-numeric: tabular-nums;
}

/* --- Selection Color --- */

::selection {
    background: rgba(200, 164, 78, 0.3);
    color: #e8edf5;
}

/* --- Scrollbar (Webkit) --- */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0f1a;
}

::-webkit-scrollbar-thumb {
    background: #2a3550;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a4a6a;
}

/* --- Article Content Prose --- */

.article-content h1 {
    display: none;
}

.article-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #e8edf5;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #c8a44e;
}

.article-content p {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #94a3b8;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.article-content blockquote {
    border-left: 3px solid #c8a44e;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.article-content blockquote p {
    color: #e8edf5;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.article-content strong {
    color: #e8edf5;
}

.article-content hr {
    border: none;
    border-top: 1px solid #1a2235;
    margin: 2.5rem 0;
}

.article-content a {
    color: #c8a44e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #b8943e;
}

.article-content ul,
.article-content ol {
    color: #94a3b8;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

/* --- Chain Pipeline --- */

.chain-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.chain-step {
    flex: 1;
    min-width: 0;
}

.chain-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.chain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(200, 164, 78, 0.3);
}

.chain-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 0.5rem;
}

.chain-arrow-horizontal {
    display: block;
}

.chain-arrow-vertical {
    display: none;
}

@media (max-width: 767px) {
    .chain-pipeline {
        flex-direction: column;
        gap: 0;
    }

    .chain-step {
        width: 100%;
    }

    .chain-arrow {
        padding: 0.5rem 0;
    }

    .chain-arrow-horizontal {
        display: none;
    }

    .chain-arrow-vertical {
        display: block;
    }
}

/* --- Cinematic Quote --- */

.quote-cinematic-glow {
    background: radial-gradient(
        ellipse at 50% 50%,
        rgba(200, 164, 78, 0.06) 0%,
        transparent 70%
    );
}

.quote-cinematic-mark {
    pointer-events: none;
}

/* --- Insight Cards (gold left border) --- */

.insight-card {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem 0.625rem 0.875rem;
    border-radius: 0.5rem;
    background: rgba(200, 164, 78, 0.06);
    border: 1px solid rgba(200, 164, 78, 0.12);
    border-left: 3px solid #c8a44e;
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}

.insight-card:hover {
    background: rgba(200, 164, 78, 0.12);
    border-color: rgba(200, 164, 78, 0.25);
    border-left-color: #c8a44e;
    transform: translateX(3px);
}

.insight-card-diamond {
    color: #c8a44e;
    font-size: 0.625rem;
    line-height: 1;
    flex-shrink: 0;
}

.insight-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.9375rem;
    color: #94a3b8;
    transition: color 0.25s ease;
}

.insight-card:hover .insight-card-title {
    color: #e8edf5;
}

.insight-card-arrow {
    color: #c8a44e;
    font-size: 0.875rem;
    opacity: 0.5;
    transition: opacity 0.25s ease;
    flex-shrink: 0;
}

.insight-card:hover .insight-card-arrow {
    opacity: 1;
}

/* Compact variant for inside expertise cards */
.insight-card-compact {
    display: flex;
    width: 100%;
    padding: 0.375rem 0;
    background: none;
    border: none;
    border-left: 2px solid rgba(200, 164, 78, 0.3);
    border-radius: 0;
    padding-left: 0.625rem;
}

.insight-card-compact:hover {
    background: none;
    border-color: transparent;
    border-left-color: #c8a44e;
}

/* Keep old classes for any other pages that use them */
.insight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: rgba(200, 164, 78, 0.08);
    border: 1px solid rgba(200, 164, 78, 0.15);
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}

.insight-badge:hover {
    background: rgba(200, 164, 78, 0.15);
    transform: translateX(2px);
}

.insight-diamond {
    color: #c8a44e;
    font-size: 0.5rem;
    line-height: 1;
}

.insight-title {
    font-style: italic;
    font-size: 0.8125rem;
    color: #94a3b8;
    transition: color 0.25s ease;
}

.insight-badge:hover .insight-title {
    color: #c8a44e;
}

.insight-arrow {
    color: #c8a44e;
    font-size: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}

.insight-badge:hover .insight-arrow {
    opacity: 1;
}

.insight-badge-inline {
    display: flex;
    padding: 0.25rem 0;
    background: none;
    border: none;
    border-radius: 0;
}

.insight-badge-inline:hover {
    background: none;
}

/* --- Featured Insight Card --- */

.featured-insight-glow {
    background: radial-gradient(
        ellipse at 50% 80%,
        rgba(200, 164, 78, 0.06) 0%,
        transparent 60%
    );
}

.featured-insight-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.featured-insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 40px rgba(200, 164, 78, 0.08);
    border-color: rgba(200, 164, 78, 0.3);
}

.featured-insight-card:hover svg {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

.featured-insight-card svg {
    transition: transform 0.3s ease;
}

/* --- Pillar System --- */

.pillar-root {
    background: linear-gradient(135deg, rgba(26, 34, 53, 0.9), rgba(26, 34, 53, 1));
}

.pillar-derivative {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pillar-derivative:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(200, 164, 78, 0.2);
}

/* --- Smooth scroll --- */

html {
    scroll-behavior: smooth;
}
