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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url('public/lovable-uploads/bgword.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    height: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    height: 100%;
    width: 100%;
    grid-template-rows: 1fr auto;
}

.hero-text {
    text-align: center;
    color: white;
    padding: 2rem 0;
    align-self: center;
}

.logo-img {
    height: 6rem;
    width: auto;
    margin: 0 auto 2rem;
}

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

.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-whatsapp {
    display: inline-block;
    background: #E8C547;
    color: #333333;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    background: #d4b33f;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    align-self: center;
}

.hero-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    object-position: center;
}

/* SEÇÃO DEPOIMENTOS */
.testimonials {
    position: relative;
    overflow: hidden;
    background: #f3f3f3;
    padding: 5rem 1rem;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2.75rem;
    color: #394459;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.section__subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 400;
}

.testimonials-badge-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 700px;
}

.rating-badge {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    flex-shrink: 0;
}

.section__description {
    font-size: 1rem;
    color: #666;
    text-align: left;
    margin: 0;
    line-height: 1.5;
}

.testimonials__slider {
    padding-bottom: 3.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section__cta {
    text-align: center;
    margin-top: 3rem;
}

/* CARD DO DEPOIMENTO */
.testimonial-card {
    padding: 1.25rem;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* HEADER DO CARD */
.testimonial-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

/* ESTRELAS */
.testimonial-card__stars {
    font-size: 16px;
    color: #fbbc04;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #4285f4;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    margin-left: 4px;
}

/* LOGO GOOGLE */
.google-logo {
    width: 60px;
    height: 20px;
    flex-shrink: 0;
}

/* TEXTO DO DEPOIMENTO */
.testimonial-card__quote {
    position: relative;
    flex: 1;
    overflow: visible;
}

.testimonial-card__quote::before {
    display: none;
}

.testimonial-card__text {
    font-size: 15px;
    font-style: normal;
    color: #5f6368;
    line-height: 1.6;
    max-height: 96px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.testimonial-card__text.expanded {
    max-height: 500px;
}

.testimonial-card__text.has-overflow:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

/* BOTÃO VER MAIS */
.testimonial-expand-btn {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1a73e8;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.testimonial-expand-btn:hover {
    text-decoration: underline;
}

/* AUTOR/FOOTER */
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-top: auto;
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    background: #e8eaed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__avatar svg,
.testimonial-card__avatar i {
    width: 20px;
    height: 20px;
    color: #5f6368;
}

.testimonial-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-card__name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.testimonial-card__time {
    font-size: 12px;
    color: #70757a;
}

/* SWIPER PAGINATION */
.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #E8C547;
    transform: scale(1.2);
}
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #394459;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: #394459;
    color: white;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Lawyer Bios */
.lawyer-bios {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
}

.lawyer-bio {
    margin-bottom: 5rem;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.bio-text h3 {
    font-size: 2rem;
    color: #394459;
    margin-bottom: 1rem;
    font-weight: bold;
}

.bio-divider {
    width: 80px;
    height: 4px;
    background: #E8C547;
    border-radius: 2px;
    margin-bottom: 1rem;
}

.bio-specialty {
    color: #E8C547;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.bio-description {
    color: #666;
    line-height: 1.8;
}

.bio-description p {
    margin-bottom: 1rem;
}

.bio-image {
    position: relative;
}

.bio-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Services */
.services {
    padding: 5rem 1rem;
    background: white;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #394459;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.services-intro {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
    grid-column: auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #E8C547, #394459);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #E8C547;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(to bottom right, #E8C547, #d4b33f);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: #394459;
}

.service-card h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #394459;
    margin-bottom: 1rem;
    font-weight: bold;
    transition: color 0.3s;
}

.service-card:hover h3 {
    color: #E8C547;
}

.service-card p {
    text-align: center;
    color: #666;
    line-height: 1.6;
}

.services-cta {
    text-align: center;
}

/* Footer */
.footer {
    background: #394459;
    color: white;
    padding: 4rem 1rem;
}

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

.footer h3 {
    color: #E8C547;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-item {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: #E8C547;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: #394459;
}

.contact-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.address-text {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-logo {
    text-align: center;
    margin-top: 2rem;
}

.footer-logo img {
    height: 6rem;
    width: auto;
}

.map-container {
    height: 20rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-btn-float {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

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

.whatsapp-btn-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer h3 {
        text-align: left;
    }
    
    .contact-item {
        text-align: left;
    }
    
    .contact-icon {
        margin: 0 0 1rem 0;
    }
    
    .footer-logo {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        height: 100%;
    }
    
    .hero-text {
        text-align: left;
        padding-left: 4rem;
        align-self: center;
    }
    
    .logo-img {
        margin: 0 0 2rem 0;
    }
    
    .hero-image {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        align-self: center;
    }
    
    .hero-image img {
        width: auto;
        max-width: 600px;
        height: auto;
        max-height: 90vh;
        object-fit: contain;
        object-position: center;
        display: block;
        margin-bottom: 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .service-card {
        grid-column: span 2;
    }
    
    .service-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
    
    .service-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
    
    .bio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
