/* ========================================
   Santana & Barros Advocacia - CSS
   Site de Conversão para Google Ads
   ======================================== */

/* CSS Reset e Variáveis */
:root {
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-accent: #c9a227;
    --color-accent-hover: #b8911f;
    --color-text: #ffffff;
    --color-text-muted: #b0b0b0;
    --color-bg-dark: #0f0f1a;
    --color-bg-light: #1a1a2e;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #1da851;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-strong: 0 8px 40px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    text-align: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 1px;
    margin: 0;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-badge {
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-bg-dark) 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
}

.hero-images {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    text-align: center;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.hero-image-name {
    display: block;
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
}

.hero-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero-title .highlight {
    color: var(--color-accent);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   CTA Button
   ======================================== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--color-whatsapp);
    color: #ffffff;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background: var(--color-whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.btn-cta.pulse {
    animation: pulse-cta 2s infinite;
}

@keyframes pulse-cta {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% { 
        box-shadow: 0 4px 40px rgba(37, 211, 102, 0.6);
    }
}

.btn-cta .whatsapp-icon {
    width: 24px;
    height: 24px;
}

.btn-cta-large {
    padding: 22px 48px;
    font-size: 1.2rem;
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: 70px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-accent);
    margin: 20px auto 0;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--color-bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.about-text strong {
    color: var(--color-accent);
}

.about-cta {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   Lawyers Section
   ======================================== */
.lawyers {
    background: var(--color-bg-dark);
}

.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.lawyer-card {
    background: var(--color-bg-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.lawyer-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.lawyer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition);
}

.lawyer-card:hover .lawyer-image img {
    transform: scale(1.05);
}

.lawyer-info {
    padding: 30px;
}

.lawyer-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.lawyer-oab {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-text-muted);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.lawyer-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: var(--color-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--color-bg-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-soft);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-accent);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.service-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   Why Us Section
   ======================================== */
.why-us {
    background: var(--color-bg-dark);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-us-item {
    text-align: center;
    padding: 30px;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.why-us-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.why-us-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-primary);
}

.why-us-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.why-us-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 35px;
    opacity: 0.9;
}

.cta-section .btn-cta {
    background: var(--color-primary);
    color: var(--color-text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-section .btn-cta:hover {
    background: var(--color-secondary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cta-phone {
    margin-top: 25px;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.cta-phone a {
    font-weight: 700;
    text-decoration: underline;
}

.cta-phone a:hover {
    opacity: 0.8;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-primary);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo-text {
    font-size: 1.3rem;
}

.footer-info p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.footer-info strong {
    color: var(--color-text);
}

.footer-contact p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.footer-phone {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
}

.footer-phone:hover {
    color: var(--color-text);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}

.whatsapp-float.pulse {
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    50% { 
        box-shadow: 0 4px 40px rgba(37, 211, 102, 0.8);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablets */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
        order: 1;
    }
    
    .hero-images {
        order: 2;
        flex-wrap: wrap;
    }
    
    .hero-image-wrapper img {
        max-width: 220px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .lawyers-grid {
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header-content {
        justify-content: center;
        text-align: center;
    }
    
    .header-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-images {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image-wrapper img {
        max-width: 200px;
    }
    
    .hero-image-name {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-cta {
        padding: 16px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 350px;
    }
    
    .btn-cta-large {
        padding: 18px 32px;
        font-size: 1.05rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 35px;
    }
    
    .about-text {
        font-size: 1rem;
        text-align: left;
    }
    
    .lawyer-image {
        height: 300px;
    }
    
    .lawyer-info {
        padding: 25px;
    }
    
    .lawyer-name {
        font-size: 1.3rem;
    }
    
    .services-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .why-us-item {
        padding: 25px;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .footer-content {
        text-align: center;
        gap: 30px;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 18px;
    }
    
    .btn-cta {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .lawyer-image {
        height: 280px;
    }
    
    .service-icon,
    .why-us-icon {
        width: 45px;
        height: 45px;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .btn-cta {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .header,
    .footer {
        background: #f5f5f5;
    }
}
