/* ============================================
   WALLACE SOUZA ADVOCACIA — GLOBAL CSS
   Estilos compartilhados entre todas as LPs
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #fef6e4;
    --bg-dark: #113e39;
    --bg-dark-alt: #0d2f2b;
    --text-primary: #113e39;
    --text-light: #fef6e4;
    --accent: #ceb584;
    --accent-hover: #b89b5e;
    --accent-light: rgba(206, 181, 132, 0.15);
    --accent-glow: rgba(206, 181, 132, 0.3);
    --border-subtle: rgba(17, 62, 57, 0.1);
    --shadow-soft: 0 4px 20px rgba(17, 62, 57, 0.08);
    --shadow-medium: 0 8px 32px rgba(17, 62, 57, 0.12);
    --shadow-heavy: 0 16px 48px rgba(17, 62, 57, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background-color: var(--accent);
    color: var(--text-primary);
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    padding: 6px 16px;
    background: var(--accent-light);
    border-radius: 50px;
}

/* ---------- Navbar ---------- */
.navbar-ws {
    background: rgba(254, 246, 228, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
    transition: var(--transition-smooth);
    z-index: 1050;
}

.navbar-ws.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-soft);
    background: rgba(254, 246, 228, 0.97);
}

.navbar-ws .navbar-brand img {
    max-height: 80px;
    width: auto;
    transition: var(--transition-smooth);
}

.navbar-ws.scrolled .navbar-brand img {
    max-height: 60px;
}

.navbar-ws .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 16px !important;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-ws .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

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

.navbar-ws .nav-link:hover::after {
    width: 60%;
}

.navbar-ws .navbar-toggler {
    border: none;
    padding: 8px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.navbar-ws .navbar-toggler:focus {
    box-shadow: none;
}

/* ---------- Buttons ---------- */
.btn-ws-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--text-primary);
    border: 2px solid var(--accent);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-ws-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(206, 181, 132, 0.35);
}

.btn-ws-primary:active {
    transform: translateY(0);
}

.btn-ws-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-ws-outline:hover {
    background: var(--text-primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-ws-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-ws-outline-light:hover {
    background: var(--text-light);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-ws-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--text-primary);
    border: 2px solid var(--accent);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}

.btn-ws-whatsapp:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(206, 181, 132, 0.35);
}

/* ---------- Cards ---------- */
.card-ws {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card-ws::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: left;
}

.card-ws:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent);
}

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

.card-ws .icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: var(--accent-hover);
    transition: var(--transition-smooth);
}

.card-ws:hover .icon-box {
    background: var(--accent);
    color: var(--text-primary);
    transform: scale(1.05);
}

/* ---------- Dark Section Cards ---------- */
.section-dark .card-ws {
    background: rgba(254, 246, 228, 0.06);
    border-color: rgba(254, 246, 228, 0.1);
}

.section-dark .card-ws:hover {
    background: rgba(254, 246, 228, 0.1);
    border-color: var(--accent);
}

/* ---------- Sections ---------- */
.section-light {
    background: var(--bg-primary);
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 100px 0;
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5 {
    color: var(--text-light);
}

.section-alt {
    background: rgba(17, 62, 57, 0.03);
    padding: 100px 0;
}

/* ---------- Divider ---------- */
.divider-accent {
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    margin: 0 auto 2rem;
}

.divider-accent-left {
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    margin: 0 0 2rem;
}

/* ---------- Step/Process ---------- */
.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

/* ---------- FAQ Accordion ---------- */
.faq-accordion .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0;
}

.faq-accordion .accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 0;
    box-shadow: none;
    border: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--accent-hover);
    background: transparent;
    box-shadow: none;
}

.faq-accordion .accordion-button::after {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23113e39'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
    padding: 0 0 1.25rem;
    color: var(--text-primary);
    opacity: 0.8;
    line-height: 1.8;
}

/* ---------- Footer ---------- */
.footer-ws {
    background: var(--bg-dark-alt);
    color: var(--text-light);
    padding: 60px 0 0;
}

.footer-ws h5 {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-ws p,
.footer-ws a {
    color: rgba(254, 246, 228, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-ws a:hover {
    color: var(--accent);
}

.footer-ws .footer-brand img {
    max-height: 100px;
    margin-bottom: 1rem;
}

.footer-ws .footer-bottom {
    border-top: 1px solid rgba(254, 246, 228, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-ws .footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-ws .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(254, 246, 228, 0.2);
    border-radius: 50%;
    color: rgba(254, 246, 228, 0.7);
    font-size: 1rem;
    transition: var(--transition-fast);
    margin-right: 8px;
}

.footer-ws .social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    animation: float-pulse 2s ease-in-out infinite;
}

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

@keyframes float-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, var(--accent-glow) 0%, transparent 50%);
    opacity: 0.3;
    animation: cta-glow 8s ease-in-out infinite alternate;
}

@keyframes cta-glow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, -5%); }
}

.cta-section h2 {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(254, 246, 228, 0.7);
    position: relative;
    z-index: 1;
}

.cta-section .btn-ws-primary {
    position: relative;
    z-index: 1;
}

/* ---------- Scroll Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Counter Animation ---------- */
.counter-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    display: block;
}

.counter-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }

    .section-light,
    .section-dark,
    .section-alt {
        padding: 60px 0;
    }

    .navbar-ws .navbar-collapse {
        background: var(--bg-primary);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 10px;
        box-shadow: var(--shadow-medium);
    }

    .btn-ws-primary,
    .btn-ws-outline,
    .btn-ws-outline-light {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-light,
    .section-dark,
    .section-alt {
        padding: 50px 0;
    }

    .cta-section {
        padding: 50px 0;
    }

    .counter-value {
        font-size: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.5rem;
    }

    .btn-ws-primary,
    .btn-ws-outline,
    .btn-ws-outline-light {
        width: 100%;
        justify-content: center;
    }
}
