/* ============================================
   AUDIO NOVEL — Design System / Componentes Reutilizáveis
   ============================================ */

:root {
    --color-navy: #0a1f44;
    --color-blue: #0056d2;
    --color-blue-light: #4b8bf5;
    --color-gold: #c9a227;
    --color-gold-light: #e0bd4e;
    --color-cream: #faf8f4;
    --color-white: #ffffff;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-card: #ffffff;
    --color-card-alt: #f8fafc;
    --color-hero-bg: #f0f4fa;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 4px rgba(10, 31, 68, 0.04);
    --shadow-md: 0 2px 8px rgba(10, 31, 68, 0.06);
    --shadow-lg: 0 4px 16px rgba(10, 31, 68, 0.08);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-blue); text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1002;
    padding: 1rem 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 42px; width: auto; }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--color-blue); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--color-blue);
    border-radius: var(--radius-md);
    transition: width 0.25s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-links a.active { color: var(--color-blue); }
.nav-links a.active::after { width: 100%; }

/* Dropdown menu */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1003;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.88rem;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover { background: var(--color-card-alt); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    line-height: 1.3;
}

.btn-primary {
    background: var(--color-blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 86, 210, 0.28);
}

.btn-primary:hover {
    background: var(--color-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 86, 210, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-blue);
    border: 1.5px solid var(--color-blue);
}

.btn-outline:hover {
    background: var(--color-blue);
    color: #fff;
}

.btn-gold {
    background: var(--color-gold);
    color: var(--color-navy);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
}

.btn-gold:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
}

.btn-small { padding: 8px 16px; font-size: 0.85rem; }

/* ============================================
   TIPOGRAFIA
   ============================================ */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

.section-kicker {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-blue);
    margin-bottom: 0.75rem;
    text-align: center;
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 1.6rem;
    color: var(--color-blue);
    margin-bottom: 1rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 86, 210, 0.06);
    border-radius: var(--radius-md);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-link {
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Service card variant */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--color-blue);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before { opacity: 1; }

/* Article card */
.article-card {
    padding: 0;
    overflow: hidden;
}

.article-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--color-hero-bg);
}

.article-card-body { padding: 1.5rem; }

.article-card-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.article-card-category {
    color: var(--color-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

/* ============================================
   SEÇÕES
   ============================================ */
section {
    padding: 80px 0;
    position: relative;
}

section.alt { background: var(--color-card-alt); }
section.dark { background: var(--color-navy); color: #fff; }
section.dark .section-title,
section.dark .section-kicker,
section.dark h3,
section.dark h4 { color: #fff; }
section.dark .section-subtitle { color: rgba(255, 255, 255, 0.75); }
section.dark .card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
section.dark .card p { color: rgba(255, 255, 255, 0.7); }
section.dark .card-icon { background: rgba(255, 255, 255, 0.08); color: var(--color-gold-light); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
    background: var(--color-hero-bg);
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text { max-width: 560px; }

.hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-blue);
    background: rgba(0, 86, 210, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--color-navy);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-blue); }
.breadcrumb .sep { color: var(--color-border); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

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

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-brand img { height: 42px; width: auto; margin-bottom: 1rem; }

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 0.35rem 0;
    transition: var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.social-links { display: flex; gap: 1rem; }
.social-links a {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover { background: var(--color-blue); transform: translateY(-2px); }

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: var(--color-hero-bg);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header .section-title { text-align: center; }
.page-header .section-subtitle { margin-bottom: 0; }

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--color-border); }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
}

.faq-question .icon { transition: transform 0.25s ease; color: var(--color-text-muted); font-size: 0.8rem; }

.faq-item.open .icon { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header { padding: 0.75rem 0; }
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 80vw; max-width: 320px;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active { transform: translateX(0); }
    .nav-links a { padding: 1rem 0; width: 100%; border-bottom: 1px solid var(--color-border); }
    .nav-links a::after { display: none; }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        min-width: auto;
    }

    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }

    .page-header { padding: 110px 0 40px; }
    section { padding: 50px 0; }
    .cards-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }
    .btn { padding: 12px 20px; font-size: 0.9rem; }
    .container { padding: 0 16px; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-900 { max-width: 900px; margin-left: auto; margin-right: auto; }
