:root {
    --primary:        #4a7c59;
    --primary-dark:   #2a5239;
    --primary-deep:   #1a3528;
    --accent:         #b8791a;
    --accent-light:   #f2e6cc;
    --primary-light:  #e6f0ea;
    --light:          #f4f7f5;
    --dark:           #1c2820;
    --text-muted:     #5c6e63;
    --white:          #ffffff;
    --off-white:      #f0ece4;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
}

/* ── NAV ─────────────────────────────────────────── */
nav {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: clamp(0.7rem, 1.5vh, 1.2rem) clamp(4%, 8vw, 8%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(74,124,89,0.12);
    transition: padding 0.35s ease, box-shadow 0.35s ease;
}
nav.scrolled {
    padding: clamp(0.4rem, 0.8vh, 0.7rem) clamp(4%, 8vw, 8%);
    box-shadow: 0 4px 30px rgba(26,53,40,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}
.logo-monogram {
    width: 40px; height: 40px;
    background: var(--primary-deep);
    color: var(--off-white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name  { font-weight: 600; font-size: 0.95rem; color: var(--primary-deep); }
.logo-title { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.4px; }

.nav-links {
    list-style: none;
    display: flex;
    gap: clamp(1.2rem, 2.5vw, 2.5rem);
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 3px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.3rem;
    border-radius: 50px;
    font-size: 0.85rem !important;
    transition: background 0.3s ease !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }
.nav-cta::after { display: none !important; }

/* ── HERO ────────────────────────────────────────── */
.hero {
    background:
        linear-gradient(to bottom right, rgba(26,53,40,0.82) 0%, rgba(26,53,40,0.65) 100%),
        url('../images/bg_hero_01.jpeg') center center / cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(6rem, 12vh, 10rem) clamp(4%, 8vw, 8%) clamp(4rem, 8vh, 6rem);
    position: relative;
    overflow: hidden;
}

/* ── HERO VISUAL (imagem direita) ────────────────── */
.hero-visual {
    flex-shrink: 0;
    width: clamp(240px, 30vw, 440px);
    position: relative;
    z-index: 1;
}
.hero-visual img {
    width: 100%;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: clamp(320px, 52vw, 750px); height: clamp(320px, 52vw, 750px);
    background: radial-gradient(circle, rgba(74,124,89,0.22) 0%, transparent 68%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -25%; left: -8%;
    width: clamp(220px, 36vw, 520px); height: clamp(220px, 36vw, 520px);
    background: radial-gradient(circle, rgba(184,121,26,0.1) 0%, transparent 68%);
    pointer-events: none;
}

.hero-content {
    max-width: clamp(480px, 65vw, 760px);
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px; height: 2px;
    background: var(--accent);
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5.5vw, 4.4rem);
    font-weight: 900;
    color: var(--off-white);
    line-height: 1.13;
    margin-bottom: 1.5rem;
}
.hero h1 em {
    font-style: italic;
    color: #7fc499;
}
.hero-desc {
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    color: rgba(240,236,228,0.7);
    max-width: min(600px, 90%);
    margin-bottom: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    line-height: 1.8;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 3rem;
}
.badge {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(240,236,228,0.85);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    backdrop-filter: blur(6px);
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.9rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 22px rgba(184,121,26,0.38);
}
.btn-primary:hover {
    background: #9e6816;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184,121,26,0.48);
}
.btn-ghost {
    border: 1.5px solid rgba(255,255,255,0.3);
    color: rgba(240,236,228,0.88);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.65);
    color: var(--off-white);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem; left: 8%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(240,236,228,0.35);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.scroll-line { width: 36px; height: 1px; background: rgba(240,236,228,0.25); }

/* ── STATS BAR ───────────────────────────────────── */
.stats-bar { background: var(--primary); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.stat-item {
    padding: clamp(1.8rem, 3.5vw, 2.8rem) clamp(1rem, 2vw, 2rem);
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3.8rem);
    font-weight: 900;
    color: var(--off-white);
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label {
    font-size: clamp(0.65rem, 0.8vw, 0.78rem);
    color: rgba(240,236,228,0.55);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── SOBRE ───────────────────────────────────────── */
#sobre {
    padding: clamp(4rem, 8vw, 8rem) clamp(4%, 8vw, 8%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}
.label-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.sobre-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-deep);
    line-height: 1.25;
    margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
}
.sobre-text p {
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    font-size: 1rem;
}
.sobre-text strong { color: var(--primary-dark); }

/* ── SOBRE FOTO DE PERFIL ─────────────────────── */
.sobre-right { display: flex; flex-direction: column; gap: 1.5rem; }
.sobre-photo {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(74,124,89,0.15);
    box-shadow: 0 12px 40px rgba(26,53,40,0.12);
}
.sobre-photo img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.sobre-highlights { display: flex; flex-direction: column; gap: 1.25rem; }
.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    background: var(--light);
    border-radius: 14px;
    border-left: 3px solid var(--primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.highlight-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 24px rgba(74,124,89,0.1);
}
.highlight-icon {
    width: 44px; height: 44px;
    background: var(--primary-light);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.highlight-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.2rem;
}
.highlight-text p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ── EXPERTISE ───────────────────────────────────── */
#expertise {
    padding: clamp(4rem, 8vw, 8rem) clamp(4%, 8vw, 8%);
    background: var(--primary-deep);
}
.section-header { text-align: center; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    font-weight: 700;
}
.section-sub {
    font-size: 1rem;
    margin-top: 0.75rem;
    font-weight: 300;
}
#expertise .section-header h2 { color: var(--off-white); }
#expertise .section-sub { color: rgba(240,236,228,0.5); }

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.expertise-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    padding: clamp(1.5rem, 2.5vw, 2.5rem) clamp(1.2rem, 2vw, 2rem);
    border-radius: 18px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.expertise-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.expertise-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.expertise-card:hover::before { transform: scaleX(1); }
.card-icon {
    width: clamp(44px, 4.5vw, 58px); height: clamp(44px, 4.5vw, 58px);
    background: rgba(74,124,89,0.18);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    color: #7fc499;
    margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
}
.expertise-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--off-white);
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.expertise-card p {
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    color: rgba(240,236,228,0.5);
    line-height: 1.75;
}

/* ── PUBLICAÇÕES ─────────────────────────────────── */
#publicacoes {
    padding: clamp(4rem, 8vw, 8rem) clamp(4%, 8vw, 8%);
    background: var(--white);
}
#publicacoes .section-header { text-align: left; }
#publicacoes .section-header h2 { color: var(--primary-deep); }
#publicacoes .section-sub { color: var(--text-muted); }

.pub-grid { display: grid; gap: 1.5rem; max-width: 960px; margin-top: 1rem; }

.pub-card {
    display: grid;
    grid-template-columns: clamp(40px, 4vw, 56px) 1fr;
    gap: clamp(1.2rem, 2vw, 1.75rem);
    padding: clamp(1.5rem, 2.5vw, 2.2rem) clamp(1.2rem, 2vw, 2rem);
    border: 1px solid rgba(74,124,89,0.14);
    border-radius: 18px;
    transition: all 0.3s ease;
    background: var(--white);
}
.pub-card:hover {
    border-color: var(--primary);
    box-shadow: 0 14px 40px rgba(74,124,89,0.11);
    transform: translateY(-4px);
}
.pub-year {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    align-self: center;
    opacity: 0.85;
}
.pub-journal {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}
.pub-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: block;
    margin-bottom: 0.65rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}
.pub-title:hover { color: var(--primary); }
.pub-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    line-height: 1.7;
}
.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s ease;
}
.pub-link:hover { gap: 0.8rem; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
    background: var(--primary-deep);
    padding: clamp(4rem, 7vw, 6rem) clamp(4%, 8vw, 8%) clamp(2rem, 3.5vw, 3rem);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(3rem, 5vw, 5rem);
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: clamp(2rem, 3vw, 3rem);
}
.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: var(--off-white);
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.footer-brand .subtitle {
    color: rgba(240,236,228,0.45);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}
.footer-brand > p {
    color: rgba(240,236,228,0.5);
    font-size: 0.9rem;
    max-width: 400px;
    line-height: 1.75;
    margin-bottom: 2rem;
}
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(240,236,228,0.65);
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}
.footer-contact h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: rgba(240,236,228,0.6);
    font-size: 0.9rem;
}
.contact-item i { color: var(--primary); width: 16px; text-align: center; }
.contact-item a { color: inherit; text-decoration: none; transition: color 0.2s; }
.contact-item a:hover { color: var(--accent-light); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(240,236,228,0.25); }

/* ── ANIMATIONS ──────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.pub-loading {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.pub-spinner {
    width: 22px; height: 22px;
    border: 2px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}
.filter-btn {
    background: transparent;
    border: 1.5px solid rgba(74,124,89,0.25);
    color: var(--text-muted);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pub-card { display: none; }
.pub-card.visible { display: grid; }

.pub-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.9rem;
}
.pub-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.pub-error {
    color: var(--text-muted);
    padding: 2rem 0;
    font-size: 0.95rem;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
    #sobre { grid-template-columns: 1fr; gap: 3rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .stat-item:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
    nav { padding: 1rem 5%; }
    .nav-links { display: none; }
    .hero { padding: 7rem 5% 4rem; min-height: auto; flex-direction: column; }
    .hero-visual { display: none; }
    #sobre, #expertise, #publicacoes { padding: 4rem 5%; }
    footer { padding: 3.5rem 5% 2rem; }
    .pub-card { grid-template-columns: 1fr; }
    .pub-year { writing-mode: horizontal-tb; transform: none; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
