@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #18181B;
    /* Zinc Dark */
    --accent: #C5A059;
    /* Gold/Bronze */
    --accent-hover: #D4AF37;
    --background: #FFFFFF;
    --section-bg: #F9FAFB;
    --text-muted: #71717A;
    --border: #E4E4E7;
    --transition: all 0.3s linear;
}

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

body, html {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
}

h1,
h2,
h3,
.brand {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

header .container {
    max-width: 1400px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.navbar-logo {
    height: 80px;
    /* Adjusted to look good in the navbar */
    width: auto;
    display: block;
    flex-shrink: 0;
}

.footer-logo {
    height: 150px;
    /* Slightly larger in footer */
    width: auto;
    margin-bottom: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    color: white;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0px 9px 30px 0px rgba(37, 211, 102, 0.28);
    background-image: linear-gradient(45deg, #25D366, #0A8B58, #25D366, #0A8B58);
    background-size: 400% 200%;
    animation: brilho 2s cubic-bezier(0.2, 0.5, 0.9, 0.6) 2s infinite;
    transition: all .8s;
    flex-shrink: 0;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border: 0px solid #808080;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    transition: 0.3s;
    pointer-events: none;
    z-index: -1;
}

.btn:hover {
    transition: 1s 0.3s;
    box-shadow: 0px 0px 100px 10px rgba(37, 211, 102, 0.44); /* Brilho de aura verde no hover */
    transform: translateY(-2px);
}

.btn:hover::before {
    width: 100%;
    height: 100%;
}

@keyframes brilho {
    0% { background-position: 0 0; }  
    100% { background-position: 100% 0; }
}

.btn i, .btn svg {
    transition: 0.5s !important;
    margin-right: 8px; /* space between icon and text */
}

.btn:hover i, .btn:hover svg {
    transform-origin: center;
    animation: seta 1s infinite;
}

@keyframes seta {
    0%, 100% {
        transform: translate(0px, 0px);
    }
    50% {
        transform: translate(10px, -10px);
    }
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    min-height: 90vh;
    /* Restore to a substantial height */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to right, #ffffff 40%, rgba(255, 255, 255, 0.4) 70%, rgba(255, 255, 255, 0) 100%), url('assets/hero_bg.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    opacity: 1;
    transform: none;
    animation: fadeIn 1s forwards 0.2s;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.15rem;
    color: #3F3F46;
    /* Darker, more vivid grey for readability */
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.trust-signals {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.signal {
    display: flex;
    flex-direction: column;
}

.signal-value {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.signal-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.hero-image {
    position: relative;
    opacity: 1;
    animation: fadeIn 1.5s forwards 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: 40px;
    /* More rounded premium look */
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15);
    /* Stronger premium shadow */
    width: 100%;
    max-width: 500px;
    /* Adjusted size */
    height: auto;
    object-fit: cover;
    z-index: 2;
    position: relative;
    border: 8px solid rgba(255, 255, 255, 0.2);
    /* Glass-like border */
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 20px;
    z-index: 1;
}

/* Services */
.section-padding {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-header p {
    color: #4B5563;
    /* More vivid grey */
    font-size: 1.05rem;
    line-height: 1.7;
}

#servicos .container {
    max-width: 1600px;
    /* Ultra-wide for stretching cards to the sides */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: white;
    border: 1px solid rgba(110, 89, 48, 0.1);
    /* Using NSC gold tint for border */
    border-radius: 24px;
    padding: 48px 32px;
    /* Increased vertical padding to stretch cards */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
    height: 100%;
    min-height: 280px;
    /* Ensured they stretch vertically even with less text */
}

/* Finkler-style top bar reveal */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4A3337, var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    box-shadow: 0 8px 32px rgba(74, 51, 55, 0.12);
    transform: translateY(-4px);
    border-color: rgba(74, 51, 55, 0.25);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: rgba(74, 51, 55, 0.06);
    /* Light tint by default */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A3337;
    font-size: 1.5rem;
    transition: all 0.35s;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: #4A3337;
    color: var(--accent);
    /* Gold icon on dark background on hover */
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 700;
    /* Increased weight */
    color: var(--primary);
    line-height: 1.2;
}

.service-card p {
    font-size: 0.95rem;
    /* Slightly larger */
    color: #3F3F46;
    /* Darker grey than text-muted */
    line-height: 1.7;
    font-weight: 500;
    /* Much more weight as requested */
}

.about {
    background: #6D5938;
    color: white;
    overflow: hidden;
}

.about-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .about-grid {
        flex-direction: column;
    }
    
    .about-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.about-image {
    flex: 1;
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4/5;
    /* Better for professional portraits */
    border-radius: 20px;
    overflow: hidden;
}

.aboutSwiper {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.aboutSwiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.aboutSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    /* Fine-tuned to show head and shoulders */
    display: block;
}

/* Custom Swiper Pagination */
.aboutSwiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.aboutSwiper .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

.about-content {
    flex: 1;
    color: white;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: white;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.about .badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.feature-item i {
    color: #D4AF37;
    /* Lighter gold for contrast on dark brown */
}

/* Differentials */
#diferenciais {
    padding: 5rem 0;
    /* Reduced padding */
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.diff-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
    cursor: default;
}

.diff-icon {
    width: 80px;
    height: 80px;
    background: rgba(197, 160, 89, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--accent);
    font-size: 2rem;
    transition: all 0.4s ease;
}

.diff-item:hover .diff-icon {
    background: #4A3337;
    color: white;
}

.diff-item h3 {
    margin-bottom: 1rem;
    transition: color 0.4s ease;
    font-size: 1.5rem;
}

.diff-item:hover h3 {
    color: #4A3337;
}

.diff-item p {
    color: var(--text-muted);
    font-size: 0.97rem;
}


/* Final CTA */
.final-cta {
    background-image: linear-gradient(rgba(109, 89, 56, 0.85), rgba(9, 9, 11, 0.95)), url('https://portifoliolp.megaadvocacia.com/wp-content/uploads/2026/01/Design-sem-nome-3.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn-white {
    background: white;
    color: #6D5938;
}

.btn-white:hover {
    background: #f4f4f4;
    color: #4A3337;
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    background: #09090B;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand .brand {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #ffffff;
    margin-bottom: 2rem;
}

.footer-links h4 {
    font-family: 'Cinzel', serif;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--accent);
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #ffffff;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #ffffff;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.wh-tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-float:hover .wh-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #6D5938; /* dark brown to fit aesthetic */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(109, 89, 56, 0.4);
    z-index: 1000;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.light-mode {
    background: white;
    color: #6D5938;
}

.back-to-top.light-mode:hover {
    background: #f4f4f4;
    color: #4A3337;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4);
}

.back-to-top:hover {
    background: #4A3337;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .trust-signals {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 350px;
        /* Responsive height for mobile */
        margin-bottom: 2rem;
    }

    .differentials-grid {
        grid-template-columns: 1fr;
    }

    /* Efeitos de hover permanentes para touch (mobile e tablet) */
    .service-card {
        box-shadow: 0 8px 32px rgba(74, 51, 55, 0.12);
        border-color: rgba(74, 51, 55, 0.25);
    }

    .service-card::before {
        transform: scaleX(1);
    }

    .service-card .service-icon {
        background: #4A3337;
        color: var(--accent);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .btn {
        max-width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .nav-content .btn {
        display: none;
    }

    .nav-content {
        justify-content: center;
    }

    .hero {
        padding-top: 8rem;
        /* Adicionado fundo esbranquiçado no mobile para a foto não ofuscar o texto escuro */
        background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('assets/hero_bg.png');
    }
    
    .hero-image {
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        width: 80%;
        max-width: 400px;
    }

    .hero-image::after {
        width: 80%;
        max-width: 400px;
        left: 50%;
        right: auto;
        top: -15px; /* Manter acima da imagem */
        transform: translateX(calc(-50% + 15px)); /* Deslocar levemente pra direita sem usar o bugado 'right' */
    }

    .hero h1 {
        font-size: 1.75rem; /* Reduzido levemente para evitar estouro da palavra extensa */
        word-break: break-word; /* Forçar quebra segura se for estreito demais */
    }
    
    .trust-signals {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

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

    .footer-logo {
        margin: 0 auto 1.5rem auto;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .final-cta h2 {
        font-size: 2rem;
    }
}