/* ===================================
   HOC ADVOGADOS - STYLESHEET
   Agro Glass Premium Design
   =================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-green: #4a7c59;
    --brand-green-light: #6fa67a;
    --brand-green-dark: #2d5a3a;
    --brand-gold: #c9a84c;
    --brand-gold-light: #ddc06b;
    --brand-black: #050505;
    --brand-dark: #0a0a0a;
    --brand-stone: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--brand-black);
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--brand-green);
    color: white;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ====== SCROLL PROGRESS ====== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-gold));
    z-index: 9999;
    width: 0%;
    box-shadow: 0 0 15px rgba(74, 124, 89, 0.6);
}

/* ====== SKIP LINK ====== */
.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 12px 24px;
    background: var(--brand-green);
    color: white;
    z-index: 99999;
    border-radius: 8px;
}

/* ====== GLASS SYSTEM (iOS 26 Style) ====== */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(74, 124, 89, 0.4);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 20px rgba(74, 124, 89, 0.2);
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.glass-heavy {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ====== TEXT SHINE ====== */
.text-shine {
    background: linear-gradient(120deg, var(--brand-green) 0%, var(--brand-gold-light) 25%, var(--brand-green-light) 50%, var(--brand-gold) 75%, var(--brand-green) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* ====== HOVER EFFECTS ====== */
.hover-lift {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(74, 124, 89, 0.1);
}

.hover-glow {
    transition: all 0.4s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(74, 124, 89, 0.25), 0 0 60px rgba(74, 124, 89, 0.1);
}

.hover-scale {
    transition: transform 0.4s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* ====== IMAGE EFFECTS ====== */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.08);
}

.img-hover-color img {
    filter: grayscale(60%) brightness(0.95);
    transition: filter 0.7s ease, transform 0.7s ease;
}

.img-hover-color:hover img {
    filter: grayscale(0%) brightness(1.05);
    transform: scale(1.05);
}

/* ====== BUTTON EFFECTS ====== */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 124, 89, 0.4);
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.ripple:active::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

/* ====== REVEAL ANIMATIONS ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====== GLOW PULSE (WhatsApp) ====== */
.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(37, 211, 102, 0.6), 0 0 50px rgba(37, 211, 102, 0.2);
    }
}

/* ====== PRACTICE AREA CARDS (with BG images) ====== */
.area-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.area-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease, filter 0.6s ease;
    filter: brightness(0.4) saturate(1.2);
}

.area-card:hover .card-bg {
    transform: scale(1.05);
    filter: brightness(0.25) saturate(1.4);
}

.area-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.6) 60%, rgba(10, 10, 10, 0.1) 100%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.area-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(45, 90, 58, 0.85) 0%, rgba(10, 10, 10, 0.8) 65%, rgba(10, 10, 10, 0.4) 100%);
}

.area-card .card-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(5px);
}

.area-card:hover .card-content {
    transform: translateY(0);
}

.area-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.area-card:hover .card-title {
    color: var(--brand-gold-light);
}

.area-card .card-desc {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.95);
    line-height: 1.5;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 0.5rem;
}

.area-card .card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    margin-top: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-gold);
    padding: 4px 14px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    background: rgba(201, 168, 76, 0.06);
    transition: all 0.3s ease;
}

.area-card:hover .card-tag {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.15);
}

/* ====== FAQ ====== */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
    transition: color 0.3s ease;
}

.faq-question h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 400;
    flex: 1;
}

.faq-question:hover h3 {
    color: var(--brand-green-light);
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(74, 124, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: var(--brand-green-light);
    font-size: 1rem;
}

.faq-item.active .faq-icon {
    background: var(--brand-green);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-answer p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
    padding-top: 1rem;
    border-left: 2px solid rgba(74, 124, 89, 0.3);
    padding-left: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ====== CITIES MARQUEE ====== */
.cities-marquee {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marqueeScroll 40s linear infinite;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.city-item {
    font-family: 'Playfair Display', serif;
    font-size: 0.9375rem;
    color: #64748b;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.city-item .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-green);
    box-shadow: 0 0 6px rgba(74, 124, 89, 0.5);
}

/* ====== FORM ====== */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brand-green-light);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.4s ease;
    outline: none;
    backdrop-filter: blur(8px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #475569;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15), 0 0 20px rgba(74, 124, 89, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--brand-green);
    color: white;
    border: none;
    border-radius: 100px;
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background: var(--brand-green-light);
    box-shadow: 0 0 40px rgba(74, 124, 89, 0.4);
    transform: translateY(-2px);
}

/* ====== RISK CARDS ====== */
.risk-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.risk-card:hover {
    background: linear-gradient(145deg, rgba(220, 38, 38, 0.12) 0%, rgba(220, 38, 38, 0.04) 100%);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.25), inset 0 0 20px rgba(220, 38, 38, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.risk-card .risk-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: rgba(220, 38, 38, 0.3);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: all 0.4s ease;
}

.risk-card:hover .risk-number {
    color: rgba(220, 38, 38, 0.9);
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

.risk-card .risk-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
}

.risk-card .risk-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.7;
    font-weight: 300;
}

/* ====== ERROR LIST ====== */
.error-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.error-list li .error-x {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ====== METHODOLOGY STEPS ====== */
.method-step {
    position: relative;
    padding-left: 4rem;
    padding-bottom: 2.5rem;
}

.method-step::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2.5rem;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(74, 124, 89, 0.3), transparent);
}

.method-step:last-child::before {
    display: none;
}

.method-step .step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(74, 124, 89, 0.1);
    border: 1px solid rgba(74, 124, 89, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--brand-green-light);
    transition: all 0.3s ease;
}

.method-step:hover .step-number {
    background: var(--brand-green);
    color: white;
    border-color: var(--brand-green);
    box-shadow: 0 0 20px rgba(74, 124, 89, 0.3);
}

.method-step .step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
}

.method-step .step-desc {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.7;
    font-weight: 300;
}

/* ====== LOADING ====== */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes fadeOutLoading {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}

#loading-screen {
    animation: fadeOutLoading 0.5s ease-out 2s forwards;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ====== PARTNER CARDS ====== */
.partner-card {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(74, 124, 89, 0.1);
}

.partner-card:hover .partner-img {
    filter: grayscale(0%) brightness(1.05) contrast(1.05);
}

.partner-card .partner-img {
    filter: grayscale(20%) brightness(0.95) contrast(1.05);
    transition: all 0.7s ease;
    image-rendering: auto;
    -webkit-image-rendering: auto;
}

.partner-card:hover .partner-info {
    background: rgba(74, 124, 89, 0.1);
    border-top-color: rgba(74, 124, 89, 0.3);
}

.partner-card .partner-info {
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
}

/* ====== BLOG ====== */
.blog-marquee {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marqueeBlog 50s linear infinite;
}

.blog-marquee:hover {
    animation-play-state: paused;
}

@keyframes marqueeBlog {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

.blog-card {
    width: 320px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: all 0.5s ease;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    background: rgba(74, 124, 89, 0.08);
    border-color: rgba(74, 124, 89, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(74, 124, 89, 0.1);
}

.blog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: grayscale(40%) brightness(0.85);
    transition: all 0.6s ease;
}

.blog-card:hover .blog-card-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: #e2e8f0;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
}

.blog-card:hover .blog-card-title {
    color: var(--brand-green-light);
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 1.25rem;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-read-more {
    color: var(--brand-gold-light);
    gap: 0.75rem;
}

/* ====== LGPD ====== */
.lgpd-note {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 1rem;
    text-align: center;
    line-height: 1.5;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .area-card {
        min-height: 280px;
    }

    .method-step {
        padding-left: 3rem;
    }

    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}