/* ================================================
   ZANGIROLAMI & ADVOGADOS ASSOCIADOS
   VERSÃO PREMIUM — LUXURY/REFINED
   Tipografia: Cormorant Garant (display) + DM Sans (body)
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, video, iframe, embed, object {
    max-width: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8a;
    --primary-dark: #0f2840;

    --accent: #c4882a;
    --accent-light: #d4a04a;
    --accent-dark: #a06820;
    --accent-subtle: rgba(196, 136, 42, 0.12);

    --white: #ffffff;
    --off-white: #faf9f7;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    --success: #28a745;
    --error: #dc3545;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.08);
    --shadow-xl: 0 20px 40px rgba(0,0,0,.12);
    --shadow-glow: 0 0 30px rgba(196,136,42,.25);

    --ease: cubic-bezier(.4,0,.2,1);
    --ease-bounce: cubic-bezier(.34,1.56,.64,1);
    --duration: 300ms;
    --duration-slow: 500ms;

    --header-height: 90px;

    /* Tipografia */
    --font-display: 'Cormorant Garant', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ================================================
   FOCUS
   ================================================ */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ================================================
   SECTION TAG — etiqueta dourada acima dos títulos
   ================================================ */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-tag::before,
.section-tag::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent);
    opacity: 0.6;
}

.section-tag.center {
    display: flex;
    justify-content: center;
}

/* ================================================
   HEADER
   ================================================ */
header {
    background: linear-gradient(to bottom, rgba(10,20,35,0.72) 0%, transparent 100%);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--duration) var(--ease);
}

header.scrolled {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
    width: 0%;
    transition: width 50ms linear;
    z-index: 1001;
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
}

.logo { transition: transform var(--duration) var(--ease); }
.logo:hover { transform: scale(1.03); }
.logo a { display: block; }
.logo img {
    height: 70px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    width: 26px; height: 3px;
    background: var(--accent);
    transition: all var(--duration) var(--ease);
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-overlay {
    display: none;
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}
.nav-overlay.active { display: block; opacity: 1; }

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
    padding: 0.65rem 0.9rem;
    border-radius: 5px;
    transition: all var(--duration) var(--ease);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
    content: '';
    position: absolute; bottom: 3px; left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 1.5px;
    background: var(--accent); border-radius: 2px;
}
.nav-links a.nav-external {
    display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a.nav-external:hover { background: rgba(255,255,255,.08); }
.nav-elo-icon { height: 18px; width: auto; display: inline-block; }

/* ================================================
   HERO
   CORREÇÕES MOBILE:
   - svh isolado em @supports (não conflita com min-height)
   - hero-content centralizado com padding-top do header via dvh trick
   - carousel-indicators reposicionados para nunca sobrepor botões
   - zoom do carrossel desativado via @media (evita overflow iOS)
   ================================================ */
.hero {
    position: relative;
    width: 100%;
    /* Fallback para browsers sem suporte a svh */
    height: 100vh;
    /* min-height apenas no base — mobile sobrescreve abaixo */
    min-height: 560px;
    overflow: hidden;
    margin: 0;
    padding: 0 !important;
    /* Garante que o hero nunca crie scroll horizontal */
    isolation: isolate;
}

/* svh isolado em @supports — não conflita com min-height em browsers antigos */
@supports (height: 100svh) {
    .hero { height: 100svh; }
}

.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(10,28,50,.8) 0%, transparent 100%);
    z-index: 2; pointer-events: none;
}

/* Vinheta inferior */
.hero::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--primary-dark) 0%, transparent 100%);
    z-index: 2; pointer-events: none;
}

/* --- Carrossel --- */
.carousel-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}
.carousel {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
}
.carousel img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    transform: scale(1.05);
    animation: subtle-zoom 20s ease infinite alternate;
    will-change: opacity, transform;
}
.carousel img.active { opacity: 1; }

@keyframes subtle-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

/* --- Indicadores ---
   Desktop: acima do scroll-indicator (bottom: 32px) + altura do scroll-indicator (~48px) = 80px de folga
   Valor 90px garante espaço confortável sem colidir com nada
*/
.carousel-indicators {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 5;
}
.carousel-indicators .indicator {
    width: 32px; height: 3px;
    background: rgba(255,255,255,.35);
    border: none; border-radius: 3px;
    cursor: pointer;
    transition: all var(--duration) var(--ease); padding: 0;
}
.carousel-indicators .indicator.active {
    background: var(--accent); width: 48px;
}

/* --- Overlay --- */
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10,28,50,.72) 0%,
        rgba(10,28,50,.45) 60%,
        rgba(10,28,50,.3) 100%
    );
    z-index: 1;
}

/* --- Conteúdo central ---
   Centralizado geometricamente no hero.
   No mobile o hero já ocupa 100svh e o header é fixed (não empurra),
   então translate(-50%, -50%) já centraliza corretamente.
   O padding-top empurra levemente para compensar o header visualmente.
*/
.hero-content {
    position: absolute;
    top: 50%; left: 8%;
    transform: translateY(-50%);
    z-index: 3;
    text-align: left;
    padding: 0 2rem;
    padding-top: calc(var(--header-height) * 0.5);
    max-width: 700px;
    width: 100%;
    box-sizing: border-box;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 30px rgba(0,0,0,.4);
}

.hero-content h1 em {
    font-style: italic;
    color: var(--accent-light);
    white-space: nowrap;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    line-height: 1.65;
    margin-bottom: 2.25rem;
    font-weight: 300;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: flex-start; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2.25rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-weight: 600; font-size: 0.9rem;
    border-radius: 4px;
    transition: all var(--duration) var(--ease);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(196,136,42,.4);
    letter-spacing: 0.5px;
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 0 8px rgba(196,136,42,.15);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.25rem;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-weight: 500; font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.4);
    transition: all var(--duration) var(--ease);
    letter-spacing: 0.5px;
}
.btn-secondary:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%);
    z-index: 5; text-align: center;
    color: rgba(255,255,255,.6);
    font-size: 0.7rem;
    letter-spacing: 2px; text-transform: uppercase;
}
.scroll-indicator span { display: block; margin-bottom: 8px; }
.scroll-arrow {
    width: 22px; height: 22px; margin: 0 auto;
    border-left: 1.5px solid rgba(255,255,255,.5);
    border-bottom: 1.5px solid rgba(255,255,255,.5);
    transform: rotate(-45deg);
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%,20%,50%,80%,100% { transform: rotate(-45deg) translateY(0); }
    40% { transform: rotate(-45deg) translateY(7px); }
    60% { transform: rotate(-45deg) translateY(3px); }
}

/* ================================================
   STATS SECTION
   ================================================ */
.stats {
    background: var(--primary-dark);
    padding: 0 !important;
    position: relative;
    z-index: 1;
}

.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1.5rem 2rem;
}

.stat-number-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--accent-light);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.4rem;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,.5);
}

.stat-divider {
    width: 1px;
    height: 70px;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
}

/* ================================================
   SECTIONS BASE
   ================================================ */
section { padding: 90px 20px 70px; scroll-margin-top: var(--header-height); }
.hero { padding: 0 !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%; }

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.3px;
    line-height: 1.15;
}
.section-title::after {
    content: '';
    display: block;
    width: 48px; height: 2px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}
.section-subtitle {
    color: var(--gray-500);
    font-size: 1rem; font-weight: 400;
    margin-bottom: 3.5rem; text-align: center;
    letter-spacing: 0.2px;
}

/* ================================================
   ABOUT
   ================================================ */
.about {
    background: linear-gradient(160deg, var(--primary-dark) 0%, #122d4a 50%, var(--primary-dark) 100%);
    color: #f5f5f5;
    padding: 100px 20px;
    position: relative; overflow: hidden;
}
.about::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 15% 80%, rgba(196,136,42,.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(196,136,42,.04) 0%, transparent 45%);
    pointer-events: none;
}
.about::after {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--primary-dark) 0%, transparent 100%);
    pointer-events: none; z-index: 1;
}

.about-header { text-align: center; margin-bottom: 2.5rem; position: relative; z-index: 2; }
.about-header .section-title { color: var(--white); }
.about-header .section-title::after { background: var(--accent); }
.about-header .section-subtitle { color: rgba(255,255,255,.55); margin-bottom: 0; }

.about-content {
    max-width: 960px; margin: 0 auto 4rem;
    position: relative; z-index: 2;
}
.about-topic { margin-bottom: 2.5rem; }
.about-topic:last-child { margin-bottom: 0; }
.about-topic-title {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 0.65rem;
    font-style: italic;
    letter-spacing: 0.2px;
}
.about-content p {
    margin-bottom: 0;
    color: rgba(230,230,230,.9);
    font-size: 1.05rem; line-height: 1.95;
    text-align: justify;
}
.about-content strong {
    color: var(--accent-light);
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1100px; margin: 0 auto;
    position: relative; z-index: 2;
}
.feature-item {
    text-align: center; padding: 2rem 1.25rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    transition: all var(--duration) var(--ease);
    backdrop-filter: blur(8px);
    cursor: default;
}
.feature-item:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,.08);
    border-color: rgba(196,136,42,.4);
    box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.feature-icon {
    width: 48px; height: 48px;
    background: var(--accent);
    border-radius: 10px;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--duration) var(--ease);
}
.feature-item:hover .feature-icon { transform: scale(1.12) rotate(4deg); }
.feature-item h4 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.4rem; }
.feature-item p { font-size: 0.82rem; color: rgba(255,255,255,.6); line-height: 1.5; }

/* ================================================
   VALORES
   ================================================ */
.valores-section { background: var(--off-white); padding: 90px 20px; }
.valores-section .section-title { text-align: center; }
.valores-grid {
    display: flex; flex-wrap: wrap;
    gap: 28px; justify-content: center; margin-top: 40px;
    max-width: 1100px; margin-left: auto; margin-right: auto;
}
.valor-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    padding: 2.5rem 2rem;
    flex: 1 1 280px; min-width: 260px; max-width: 340px;
    transition: all var(--duration) var(--ease);
    border: 1px solid var(--gray-100);
    position: relative; overflow: hidden;
}
.valor-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--duration) var(--ease);
}
.valor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.valor-card:hover::before { transform: scaleX(1); }
.valor-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; color: var(--white);
    transition: transform var(--duration) var(--ease);
}
.valor-card:hover .valor-icon { transform: scale(1.1); }
.valor-card h3 {
    font-family: var(--font-display);
    color: var(--primary); font-size: 1.5rem;
    font-weight: 600; margin-bottom: 0.75rem;
}
.valor-card p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.7; }

/* ================================================
   SERVICES
   ================================================ */
.services { background: var(--white); text-align: center; }
.services .swiper, .services-swiper {
    max-width: 1240px; margin: 0 auto;
    padding: 1rem 2rem 4rem;
}

.swiper-pagination-bullet {
    background: var(--gray-300); opacity: 1;
    width: 8px; height: 8px;
    transition: all var(--duration) var(--ease);
}
.swiper-pagination-bullet-active {
    background: var(--accent); width: 26px; border-radius: 4px;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--white); background: var(--primary);
    width: 46px; height: 46px; border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration) var(--ease);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--accent); transform: scale(1.1);
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 0.9rem; font-weight: 700; }

.service-card {
    padding: 2.5rem 1.75rem;
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    transition: all var(--duration) var(--ease);
    height: 100%; display: flex; flex-direction: column;
    text-align: center; position: relative; overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--duration) var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); background: var(--white); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px; margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center; color: var(--white);
    transition: all var(--duration) var(--ease);
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}
.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 600;
    color: var(--primary); margin-bottom: 0.7rem;
}
.service-card p { color: var(--gray-600); line-height: 1.7; font-size: 0.9rem; flex-grow: 1; }
.service-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--accent); font-weight: 600; font-size: 0.85rem;
    text-decoration: none; margin-top: 1rem;
    transition: all var(--duration) var(--ease);
}
.service-link span { transition: transform var(--duration) var(--ease); }
.service-link:hover { color: var(--accent-dark); }
.service-link:hover span { transform: translateX(4px); }

/* ================================================
   NEWS
   ================================================ */
.news { background: var(--gray-50); text-align: center; }
.news .swiper, .news-swiper { padding: 1rem 0 4rem; }

.news-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px; overflow: hidden;
    transition: all var(--duration) var(--ease);
    height: 100%; display: flex; flex-direction: column; text-align: left;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: transparent; }
.news-image-wrapper { position: relative; overflow: hidden; }
.news-card img { width: 100%; height: 200px; object-fit: cover; transition: transform var(--duration-slow) var(--ease); }
.news-card:hover img { transform: scale(1.07); }
.news-badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--accent); color: var(--white);
    padding: 4px 12px; border-radius: 3px;
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
}
.news-content { padding: 1.75rem; flex-grow: 1; display: flex; flex-direction: column; }
.news-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 600;
    color: var(--primary); line-height: 1.35;
    margin-bottom: 0.75rem;
}
.news-content p { color: var(--gray-600); line-height: 1.65; margin-bottom: 1.25rem; flex-grow: 1; font-size: 0.88rem; }
.news-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--accent); text-decoration: none;
    font-weight: 600; font-size: 0.82rem;
    transition: all var(--duration) var(--ease);
}
.news-link svg { transition: transform var(--duration) var(--ease); }
.news-link:hover { color: var(--accent-dark); }
.news-link:hover svg { transform: translateX(4px); }
.news-source { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.news-source p { color: var(--gray-500); font-size: 0.8rem; }
.news-source a { color: var(--primary); text-decoration: none; font-weight: 500; }
.news-source a:hover { text-decoration: underline; }

/* ================================================
   CLIENTES
   ================================================ */
.clientes { background: var(--white); text-align: center; }

.clientes-list {
    max-width: 1040px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--gray-200);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,.05);
}
.cliente-item {
    padding: 1.15rem 1.6rem;
    border-bottom: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    background: var(--white);
    transition: all var(--duration) var(--ease);
    display: flex; align-items: center;
    border-left: 3px solid transparent;
}
.cliente-item:nth-child(3n) { border-right: none; }
.cliente-item:nth-last-child(-n+3) { border-bottom: none; }
.cliente-item:hover {
    background: var(--off-white);
    border-left-color: var(--accent);
}
.cliente-item h3 {
    font-family: var(--font-body);
    font-size: 0.875rem; font-weight: 400;
    color: var(--gray-700); margin: 0; line-height: 1.4;
    transition: color var(--duration) var(--ease);
}
.cliente-item:hover h3 { color: var(--primary); font-weight: 500; }

.clientes-list .cliente-item a {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--off-white);
    transition: all var(--duration) var(--ease);
}
.clientes-list .cliente-item a:visited { color: var(--primary); }
.clientes-list .cliente-item a:hover {
    background: var(--white);
    border-color: var(--accent);
    color: var(--accent-dark);
}
.clientes-list .cliente-item a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.clientes-list .cliente-item a::after {
    content: "↗";
    display: inline-block;
    font-size: 0.85em;
    color: var(--accent);
    transform: translateY(-0.02em);
}

/* ================================================
   EQUIPE
   ================================================ */
.equipe {
    background: linear-gradient(
        160deg,
        rgba(196, 136, 42, 0.07) 0%,
        var(--white) 55%,
        rgba(196, 136, 42, 0.04) 100%
    );
    text-align: center;
}

.equipe .container { padding: 0 2rem; }

.equipe-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.equipe-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
    text-align: left;
    display: flex;
    flex-direction: column;
}
.equipe-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.equipe-media {
    aspect-ratio: 3 / 4;
    background: var(--gray-100);
    overflow: hidden;
}
.equipe-photo {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.equipe-photo--arthur { object-position: 50% 30%; }
.equipe-photo--claudia { object-position: 50% 20%; }

.equipe-avatar {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2a5a8a 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.equipe-avatar::before {
    content: attr(data-initials);
    font-family: var(--font-display);
    font-size: 5rem; font-weight: 600; font-style: italic;
    color: rgba(255,255,255,.18); line-height: 1;
}
.equipe-avatar::after {
    content: attr(data-initials);
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 2.8rem; font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 3px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
    line-height: 1;
}
.equipe-avatar .avatar-line {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.equipe-body {
    padding: 1.1rem 1.1rem 1.4rem;
    display: flex; flex-direction: column; gap: 0.45rem;
}
.equipe-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 600;
    color: var(--primary); line-height: 1.2;
}
.equipe-cargo {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--accent); font-weight: 600;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; margin: 0;
}
.equipe-dados {
    list-style: none; padding: 0; margin: 0.2rem 0 0;
    display: flex; flex-direction: column; gap: 0.55rem;
}
.equipe-dados li { color: var(--gray-600); font-size: 0.9rem; line-height: 1.6; }
.equipe-dados strong { color: var(--gray-800); font-weight: 600; }
.equipe-resumo { margin: 0.25rem 0 0; color: var(--gray-600); font-size: 0.85rem; line-height: 1.6; }
.equipe-actions { margin-top: 1rem; display: flex; }
.equipe-cv {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.2rem 0; color: var(--primary);
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    transition: all var(--duration) var(--ease);
}
.equipe-cv:hover { color: var(--accent-dark); text-decoration: underline; }
.equipe-cv:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ================================================
   CONTACT
   ================================================ */
.contact {
    background:
        linear-gradient(160deg, rgba(241,243,245,0.82) 0%, rgba(250,249,247,0.82) 100%),
        url('../images/2.png') right bottom / cover no-repeat;
    text-align: center;
}
.contact-content { display: flex; justify-content: center; }
.contact-form {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 14px; padding: 3rem;
    width: 100%; max-width: 680px;
    box-shadow: var(--shadow-lg);
}
.contact-form h3 {
    font-family: var(--font-display);
    color: var(--primary); font-size: 1.8rem; font-weight: 600;
    margin-bottom: 2rem; text-align: center;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1.4rem; text-align: left; }
.form-group label { display: block; color: var(--gray-700); font-weight: 500; font-size: 0.85rem; margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 13px 15px;
    background: var(--gray-50); border: 1px solid var(--gray-300);
    border-radius: 7px; font-family: inherit; font-size: 0.95rem;
    color: var(--gray-800); transition: all var(--duration) var(--ease);
}
.form-group select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 44px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none; border-color: var(--accent);
    background: var(--white); box-shadow: 0 0 0 3px rgba(196,136,42,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.field-error { display: block; color: var(--error); font-size: 0.78rem; margin-top: 0.3rem; min-height: 1em; }
.form-group input.error, .form-group textarea.error { border-color: var(--error); }

.submit-button {
    width: 100%; padding: 1rem;
    background: var(--accent); color: var(--white);
    border: none; border-radius: 7px;
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: all var(--duration) var(--ease);
    position: relative; overflow: hidden; letter-spacing: 0.5px;
}
.submit-button:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.submit-button:disabled { cursor: not-allowed; opacity: .9; }
.submit-button .btn-text { display: inline; }
.submit-button .btn-loading { display: none; align-items: center; justify-content: center; gap: .5rem; }
.submit-button.loading .btn-text { display: none; }
.submit-button.loading .btn-loading { display: inline-flex; }
.spinner { width: 18px; height: 18px; animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.form-message {
    padding: .9rem 1rem; margin-bottom: 1.25rem; border-radius: 7px;
    display: none; font-weight: 500; font-size: 0.88rem; align-items: center; gap: .5rem;
}
.form-message.success { display: flex; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { display: flex; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: var(--primary-dark);
    color: var(--gray-300); padding: 3rem 0 1.75rem;
}
.footer-content { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-bottom: 2rem; }
.footer-info h3 {
    font-family: var(--font-display);
    font-size: 0.9rem; font-weight: 600;
    color: var(--accent-light); margin-bottom: 1rem; letter-spacing: 0.5px;
    text-transform: uppercase;
}
.footer-info p { font-size: 0.78rem; line-height: 1.7; color: rgba(255,255,255,.38); }
.footer-info p svg { vertical-align: middle; margin-right: 8px; color: var(--accent); }
.footer-map iframe { width: 100%; height: 180px; border: none; border-radius: 8px; opacity: .85; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,.3); }
.footer-bottom .dev-link { color: var(--accent); text-decoration: none; transition: color var(--duration) var(--ease); }
.footer-bottom .dev-link:hover { color: var(--accent-light); text-decoration: underline; }

/* ================================================
   WHATSAPP + BACK TO TOP
   ================================================ */
.whatsapp-float {
    position: fixed; bottom: 88px; right: 24px;
    width: 58px; height: 58px;
    background: #25d366; color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    z-index: 999;
    opacity: 0; transform: scale(.8) translateY(20px);
    transition: all var(--duration) var(--ease);
    pointer-events: none;
}
.whatsapp-float.visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: all; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,.5); }
.whatsapp-float::before {
    content: '';
    position: absolute; width: 100%; height: 100%;
    border-radius: 50%; background: #25d366;
    animation: whatsappPulse 2.5s infinite; z-index: -1;
}
@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: .4; }
    100% { transform: scale(1.6); opacity: 0; }
}
.whatsapp-tooltip {
    position: absolute; right: 68px;
    background: var(--gray-900); color: var(--white);
    padding: 7px 13px; border-radius: 5px;
    font-size: 0.76rem; font-weight: 500;
    white-space: nowrap; opacity: 0;
    transform: translateX(10px);
    transition: all var(--duration) var(--ease); pointer-events: none;
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute; right: -5px; top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent; border-left-color: var(--gray-900);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 46px; height: 46px;
    background: var(--primary); color: var(--white);
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-lg);
    z-index: 998; opacity: 0; transform: translateY(20px);
    transition: all var(--duration) var(--ease); pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--accent); transform: translateY(-4px); }

/* ================================================
   ANIMAÇÕES
   ================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
[data-aos] { opacity: 0; }
[data-aos].aos-animate { opacity: 1; }
.aos-animate[data-aos="fade-up"] { animation: fadeInUp 0.65s ease-out forwards; }

/* ================================================
   RESPONSIVE — 1024px (tablet landscape / menu mobile)
   ================================================ */
@media (max-width: 1024px) {
    .hamburger { display: flex; }
    .nav-overlay.active { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--primary-dark);
        flex-direction: column; padding: 95px 0 2rem;
        gap: 0; transition: right var(--duration) var(--ease);
        box-shadow: var(--shadow-xl); align-items: stretch; z-index: 1000;
        overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block; width: 100%; padding: .9rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,.06);
        border-radius: 0; text-align: left;
        font-size: 0.88rem; color: rgba(255,255,255,.7);
    }
    .nav-links a:hover { background: rgba(255,255,255,.05); color: var(--white); }
    .nav-links a.active { color: var(--accent); background: rgba(196,136,42,.08); border-left: 3px solid var(--accent); }
    .nav-links a.active::after { display: none; }
    .nav-links a.nav-external {
        margin: 1rem 1.5rem; padding: .85rem 1.5rem;
        width: auto; text-align: center;
        border-radius: 6px; border-bottom: none;
    }
    .hero-content h1 { font-size: 3rem; }
    .about-features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .clientes-list { grid-template-columns: repeat(2, 1fr); }
    .equipe-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .cliente-item:nth-child(3n) { border-right: 1px solid var(--gray-200); }
    .cliente-item:nth-child(2n) { border-right: none; }
    .cliente-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--gray-200); }
    .cliente-item:nth-last-child(-n+2) { border-bottom: none; }
    .stats-container { gap: 0; flex-wrap: wrap; }
    .stat-divider { display: none; }
    .stat-item { flex: 0 0 50%; padding: 1.5rem; }
}

/* ================================================
   RESPONSIVE — 768px (mobile landscape / tablet portrait)
   ================================================ */
@media (max-width: 768px) {
    :root { --header-height: 78px; }
    .logo img { height: 56px; max-width: 220px; }
    section { padding: 65px 15px 45px; }

    /* HERO MOBILE
       - Remove min-height fixo — svh cuida do tamanho total
       - Desativa o zoom do carrossel (evita overflow horizontal iOS/Safari)
       - Reposiciona conteúdo: padding-top do header-height compensa o fixed header
       - Indicadores: bottom fixo sem colidir com scroll-indicator (oculto) nem botões
    */
    .hero {
        height: 100vh;
        min-height: 0;
    }
    @supports (height: 100svh) {
        .hero { height: 100svh; }
    }

    .carousel img {
        animation: none;
        transform: none;
        /* Por padrão, foca na parte superior-central — funciona melhor para banners em retrato */
        object-position: center 30%;
    }

    /* Ajuste fino por imagem — mude as % para reposicionar cada foto no mobile */
    .carousel-img-0 { object-position: center 25%; }
    .carousel-img-1 { object-position: center 30%; }
    .carousel-img-2 { object-position: center 20%; }

    .hero-content {
        /* Centralização pura — padding-top compensa header fixed */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: calc(var(--header-height) * 0.6) 1.5rem 0;
        width: calc(100% - 2rem);
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 5.5vw, 2.4rem);
        line-height: 1.18;
    }
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }
    /* Remove <br> no parágrafo — texto corre livre no mobile */
    .hero-content p br { display: none; }

    /* Botões empilhados e full-width */
    .hero-buttons {
        flex-direction: column;
        gap: 0.65rem;
        align-items: stretch;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }

    /* Indicadores: bem no fundo, scroll-indicator está oculto no mobile */
    .carousel-indicators { bottom: 24px; }

    /* Oculta hint de scroll */
    .scroll-indicator { display: none; }

    /* Vinheta superior reduzida */
    .hero::before { height: 100px; }

    /* Demais ajustes mobile */
    .section-title { font-size: 2.2rem; }
    .about { padding: 70px 15px; }
    .about-features { grid-template-columns: 1fr; gap: 1rem; }
    .feature-item { padding: 1.4rem; }
    .valores-grid { flex-direction: column; align-items: center; }
    .valor-card { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .clientes-list { grid-template-columns: 1fr; }
    .cliente-item { border-right: none !important; border-bottom: 1px solid var(--gray-200) !important; }
    .cliente-item:last-child { border-bottom: none !important; }
    .contact-form { padding: 2rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .equipe .container { padding: 0 1rem; }
    .equipe-list { grid-template-columns: 1fr; gap: 1.25rem; }
    .stats-container { flex-direction: row; flex-wrap: wrap; padding: 40px 1rem; }
    .stat-item { flex: 0 0 50%; }
    .stat-number { font-size: 3.5rem; }
    .whatsapp-float { bottom: 88px; right: 16px; width: 52px; height: 52px; }
    .whatsapp-tooltip { display: none; }
    .back-to-top { right: 16px; width: 42px; height: 42px; }
}

/* ================================================
   RESPONSIVE — 480px (mobile portrait médio)
   ================================================ */
@media (max-width: 480px) {
    :root { --header-height: 68px; }
    nav { padding: 0 1rem; }
    .logo img { height: 48px; max-width: 190px; }
    section { padding: 55px 12px 35px; }
    .section-title { font-size: 1.9rem; }

    .hero {
        height: 100vh;
        min-height: 0;
    }
    @supports (height: 100svh) {
        .hero { height: 100svh; }
    }

    .hero-content {
        padding: calc(var(--header-height) * 0.6) 1rem 0;
        width: calc(100% - 1.5rem);
    }

    /* clamp garante que "Inovação Jurídica" caiba em linha única */
    .hero-content h1 { font-size: clamp(1.5rem, 7.5vw, 2rem); }

    .hero-eyebrow { font-size: 0.65rem; letter-spacing: 2.5px; }

    .hero-buttons { flex-direction: column; gap: .65rem; }
    .btn-primary, .btn-secondary {
        width: 100%; text-align: center;
        padding: .9rem 1.5rem; justify-content: center;
    }

    .stats-container { padding: 30px 1rem; }
    .stat-item { flex: 0 0 50%; padding: 1rem .5rem; }
    .stat-number { font-size: 2.8rem; }
    .stat-label { font-size: 0.65rem; }
    .service-card { padding: 1.75rem 1.4rem; }
    .contact-form { padding: 1.5rem 1.25rem; }
}

/* ================================================
   RESPONSIVE — 360px (telas pequenas / 320px)
   ================================================ */
@media (max-width: 360px) {
    :root { --header-height: 60px; }
    .logo img { height: 40px; max-width: 160px; }
    nav { padding: 0 0.75rem; }

    .hero-content {
        padding: calc(var(--header-height) * 0.6) 0.75rem 0;
        width: calc(100% - 1rem);
    }
    .hero-content h1 { font-size: clamp(1.3rem, 6.5vw, 1.75rem); }
    .hero-content p { font-size: 0.85rem; margin-bottom: 1.25rem; }
    .btn-primary, .btn-secondary { padding: 0.8rem 1.2rem; font-size: 0.85rem; }

    .section-title { font-size: 1.7rem; }
    .stat-number { font-size: 2.4rem; }
}