/* ============================================
   DIÓGENES ADVOCACIA — style.css
   Paleta: preto + dourado premium
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold:        #c9a84c;
    --gold-light:  #e2c77a;
    --gold-dark:   #a07830;
    --bg:          #050505;
    --surface:     #0f0f0f;
    --surface2:    #1a1a1a;
    --border:      rgba(201, 168, 76, 0.15);
    --text:        #f0ebe0;
    --text-muted:  #8a8070;
    --white:       #ffffff;
    --radius:      12px;
    --shadow:      0 20px 60px rgba(0,0,0,0.5);
    --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* === TYPOGRAPHY === */
.section-label {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-label::after {
    content: '';
    flex: 0 0 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
}
.section-title em {
    font-style: italic;
    color: var(--gold);
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header .section-label {
    justify-content: center;
}
.section-header .section-label::after { display: none; }

/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0a0806;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    transition: var(--transition);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.btn-primary.full-width { width: 100%; justify-content: center; }

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo { display: flex; align-items: center; }
.blend-wrapper {
    mix-blend-mode: screen;
}
.nav-logo { display: flex; align-items: center; }
.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: invert(1) hue-rotate(180deg) brightness(1.3);
    transition: var(--transition);
}
.navbar.scrolled .logo-img {
    height: 75px; 
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

.nav-cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0a0806 !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 4px;
    transition: var(--transition);
    margin-left: 8px;
}
.nav-cta:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-photo-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; 
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(5,5,5,0.7) 10%, rgba(5,5,5,0.2) 30%, transparent 45%);
}

.hero-content-bottom {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    z-index: 3;
    padding: 0 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.hero-logo-blend {
    margin-bottom: 8px;
}
.hero-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: invert(1) hue-rotate(180deg) brightness(1.4);
}

.hero-headline {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease 0.4s both;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    max-width: 900px;
}
.hero-headline span {
    color: var(--gold);
}



.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.8s both;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-indicator {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 1; height: 60px; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === SOBRE (Rogério-style banner) === */
.sobre {
    padding: 80px 0;
    background: var(--bg);
    position: relative;
}
.sobre::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.sobre-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, #0e0e0b 0%, #141410 50%, #0a0a08 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    min-height: 520px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.sobre-info {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.oab-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(201,168,76,0.5);
    border-radius: 20px;
    padding: 6px 18px;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    width: fit-content;
}

.sobre-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: 0.03em;
}
.sobre-name em {
    color: var(--gold);
    font-style: normal;
}

.sobre-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
    max-width: 440px;
}

.sobre-destaques {
    display: flex;
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.destaque-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}
.destaque-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.sobre-photo {
    position: relative;
    overflow: hidden;
}
.sobre-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 8%;
    transition: transform 0.6s ease;
}
.sobre-photo:hover img { transform: scale(1.03); }

/* === ÁREAS === */
.areas {
    padding: 120px 0;
    background: var(--bg);
}

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

.area-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.area-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.area-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.area-card:hover::before { opacity: 1; }

.area-card.wide {
    grid-column: span 3;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
}
.area-card.wide .area-content { flex: 1; }
.area-card.wide .area-icon { flex-shrink: 0; font-size: 3rem; margin-top: 4px; }

.area-card.featured {
    border-color: rgba(201, 168, 76, 0.4);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, var(--surface) 100%);
}
.area-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--gold);
    color: #0a0806;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
}

.area-icon { font-size: 2.4rem; }

.area-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}
.area-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.area-tags span {
    font-size: 0.72rem;
    padding: 4px 10px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 20px;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.area-cta {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}
.area-cta:hover { color: var(--gold-light); gap: 8px; }

/* === DIFERENCIAIS === */
.diferenciais {
    padding: 120px 0;
    background: var(--surface);
    position: relative;
}
.diferenciais::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.2;
}

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

.diferencial-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition);
}
.diferencial-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-4px);
    background: rgba(25, 20, 10, 0.8);
}

.dif-icon { font-size: 2.5rem; margin-bottom: 20px; }

.diferencial-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 14px;
    line-height: 1.3;
}
.diferencial-card p {
    font-size: 0.88rem;
    color: rgba(240, 235, 224, 0.65);
    line-height: 1.8;
}

/* === CONTATO === */
.contato {
    padding: 120px 0;
    background: var(--surface);
    position: relative;
}
.contato::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contato-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 40px;
}

.contato-canais {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.canal-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(201, 168, 76, 0.04);
    transition: var(--transition);
}
.canal-card:hover {
    border-color: rgba(201, 168, 76, 0.5);
    transform: translateX(4px);
    background: rgba(201, 168, 76, 0.08);
}
.canal-icon { font-size: 1.8rem; }
.canal-card strong { display: block; font-weight: 600; color: var(--gold); font-size: 0.95rem; }
.canal-card span { font-size: 0.85rem; color: var(--text-muted); }

/* === FORM === */
.contato-form-wrap {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}
.contato-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.form-row .form-group { margin-bottom: 0; }

label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

input, select, textarea {
    width: 100%;
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.92rem;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    outline: none;
}
input::placeholder, textarea::placeholder { color: rgba(138, 128, 112, 0.6); }
input:focus, select:focus, textarea:focus {
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(201, 168, 76, 0.06);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}
select option { background: var(--surface2); color: var(--text); }
textarea { resize: vertical; min-height: 100px; }

/* === FOOTER === */
.footer {
    background: #030303;
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 80px;
    width: auto;
    filter: invert(1) hue-rotate(180deg) brightness(1.2);
}
.footer-tagline {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.footer-oab { font-size: 0.8rem; color: var(--gold); opacity: 0.7; }

.footer-links h4, .footer-contato h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-links ul, .footer-contato ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links li a, .footer-contato li a, .footer-contato li {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-links li a:hover, .footer-contato li a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.footer-disclaimer {
    font-size: 0.72rem !important;
    opacity: 0.5;
    max-width: 600px;
    margin: 0 auto;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 58px; height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2.5s ease infinite;
}
.whatsapp-float svg { width: 28px; height: 28px; color: white; }
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 6px 36px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* === FADE-IN ANIMATION === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === GALERIA === */
.galeria {
    overflow: hidden;
    background: var(--bg);
}
.galeria-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 340px;
}
.galeria-item {
    position: relative;
    overflow: hidden;
}
.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
    filter: grayscale(15%);
}
.galeria-item:hover img {
    transform: scale(1.07);
    filter: grayscale(0%);
}
.galeria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(5,5,5,0.6) 100%
    );
    transition: opacity 0.3s;
}
.galeria-item:hover .galeria-overlay {
    background: linear-gradient(
        to bottom,
        rgba(201,168,76,0.08) 0%,
        rgba(5,5,5,0.4) 100%
    );
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .sobre-card { grid-template-columns: 1fr; min-height: auto; }
    .sobre-photo { height: 420px; }
    .sobre-info { padding: 48px 40px; }
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
    .area-card.wide { grid-column: span 2; }
    .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .galeria-strip { grid-template-columns: repeat(2, 1fr); height: 480px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 320px;
        height: 100vh;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 40px;
        border-left: 1px solid var(--border);
        transition: right 0.3s ease;
        gap: 4px;
    }
    .nav-menu.open { right: 0; }
    .nav-link { font-size: 1.1rem; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
    .nav-cta { margin: 16px 0 0; width: 100%; text-align: center; justify-content: center; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .sobre-card { border-radius: 0; }
    .sobre-info { padding: 48px 24px; gap: 16px; }
    .sobre-photo { height: 380px; order: -1; }
    .sobre-destaques { gap: 20px; flex-wrap: wrap; }
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(5,5,5,0.95) 50%, rgba(5,5,5,0.85) 100%);
    }

    .sobre, .areas, .diferenciais, .contato { padding: 80px 0; }
    .sobre-grid { gap: 40px; }

    .areas-grid { grid-template-columns: 1fr; }
    .area-card.wide { grid-column: span 1; flex-direction: column; }

    .diferenciais-grid { grid-template-columns: 1fr; gap: 16px; }
    .contato-grid { grid-template-columns: 1fr; gap: 48px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand { grid-column: span 1; }

    .hero-ctas { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

    .container { padding: 0 20px; }
    .section-title { font-size: 2rem; }
    
    .logo-img { height: 80px; }
    .navbar.scrolled .logo-img { height: 65px; }
    .hero-logo-img { height: 90px; }
    .hero-headline { font-size: 1.2rem; margin-bottom: 24px; letter-spacing: 0.05em; }
    .hero-content-bottom { padding: 0 20px 80px; gap: 12px; }
    .hero-ctas { flex-direction: column; width: 100%; gap: 10px; }
    .hero-ctas a { width: 100%; justify-content: center; }
}
