:root {
    --bg: #f5f5f7;
    --bg-alt: #ffffff;
    --primary: #2c3e50;
    --primary-soft: #f0f3f7;
    --accent: #be101a;
    --text: #222222;
    --muted: #666666;
    --border: #dde1e7;
    --radius-lg: 18px;
    --radius-sm: 10px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
    --success: #28a745;
    --error: #dc3545;
}

/* =========================
   RESET & BASE
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 2rem;
}

/* =========================
   TYPOGRAPHY
   ========================= */
body, input, textarea, button {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
    font-size: 1.25rem;
}

p, li, a, span, label {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
}

small {
    font-size: 0.8rem;
    color: var(--muted);
}

::placeholder {
    color: #999;
    font-weight: 400;
}

/* =========================
   HEADER MODERNO
   ========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 2rem;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent), #be101a);
    border-radius: 2px;
}

.logo-main {
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #1a252f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.main-nav a i {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.main-nav a:hover i {
    opacity: 1;
}

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
}

.nav-cta i {
    color: #fff;
    opacity: 1;
}

.nav-cta:hover {
    background: #be101a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 154, 108, 0.3);
}

.main-nav a.active {
    color: var(--accent);
    background: rgba(196, 154, 108, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-phone,
.header-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--primary-soft);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-phone i,
.header-email i {
    font-size: 1rem;
}

.header-phone:hover,
.header-email:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 154, 108, 0.2);
}

.header-email {
    padding: 0.6rem 0.8rem;
}

.header-email span {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Overlay escuro */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevenir scroll quando menu está aberto */
body.nav-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* =========================
   MOBILE NAVIGATION - FULLSCREEN
   ========================= */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav.nav-open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
        width: 100%;
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .main-nav a:hover {
        background: #f8f9fa;
        padding-left: 1.5rem;
    }

    .main-nav a i {
        font-size: 1.3rem;
        width: 28px;
        color: var(--primary);
        flex-shrink: 0;
    }

    .main-nav a span {
        flex: 1;
    }

    .nav-cta {
        background: transparent !important;
        color: var(--primary) !important;
        margin-top: 1.5rem;
        padding: 1.5rem 1rem !important;
        border-radius: 12px;
        border: 2px solid var(--accent) !important;
        justify-content: center;
        font-weight: 600;
    }

    .nav-cta:hover {
        background: var(--accent) !important;
        color: #fff !important;
        padding-left: 1rem !important;
    }

    .nav-cta i {
        color: inherit;
    }

    /* Animação dos itens */
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .main-nav.nav-open li {
        animation: slideInRight 0.3s ease forwards;
    }

    .main-nav.nav-open li:nth-child(1) { animation-delay: 0.1s; }
    .main-nav.nav-open li:nth-child(2) { animation-delay: 0.15s; }
    .main-nav.nav-open li:nth-child(3) { animation-delay: 0.2s; }
    .main-nav.nav-open li:nth-child(4) { animation-delay: 0.25s; }
    .main-nav.nav-open li:nth-child(5) { animation-delay: 0.3s; }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 4rem 1.5rem 2rem;
    }

    .main-nav ul {
        max-width: 100%;
    }

    .main-nav a {
        padding: 1.3rem 0.8rem;
        font-size: 1rem;
    }

    .main-nav a:hover {
        padding-left: 1.2rem;
    }

    .main-nav a i {
        font-size: 1.2rem;
        width: 24px;
    }
}
/* =========================
   HERO SECTION
   ========================= */
.hero {
    position: relative;
    height: 520px;
    background: url("imgs/consulting-with-lawyer.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1.5rem;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #be101a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(196, 154, 108, 0.3);
}

.btn-primary:hover {
    background: #a07645;
    box-shadow: 0 6px 20px rgba(196, 154, 108, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================
   SECTIONS GENERIC
   ========================= */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--bg-alt);
}

.section h2 {
    text-align: center;
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-intro-left {
    text-align: left;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =========================
   SOBRE NÓS
   ========================= */
#sobre {
    background: var(--bg-alt);
    padding: 6rem 0 5rem;
}

.sobre-texto {
    max-width: 900px;
    margin: 0 auto 3.5rem;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: left;
}

.sobre-texto p + p {
    margin-top: 1.2rem;
}

.escritorios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.escritorio-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.escritorio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.escritorio-card:hover::before {
    opacity: 1;
}

.escritorio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.escritorio-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-soft);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.escritorio-card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.escritorio-card p {
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.escritorio-card a {
    color: var(--accent);
    font-weight: 600;
}

.escritorio-card a:hover {
    color: #be101a;
}

/* =========================
   EQUIPA - DESIGN MODERNO COMPLETO
   ========================= */
#equipa {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

#equipa::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 154, 108, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(196, 154, 108, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
/* =========================
   CTA MELHORADO - CSS ADICIONAL
   ========================= */

/* Ícone principal do CTA */
.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(196, 154, 108, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(196, 154, 108, 0);
    }
}

/* Features do CTA */
.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 0.95rem;
}

.cta-feature i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Botões do CTA */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Ajustes para o team-cta existente */
.team-cta {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    position: relative;
    overflow: hidden;
}

.team-cta::before {
    background: radial-gradient(circle at top right, rgba(196, 154, 108, 0.15) 0%, transparent 70%);
}

.team-cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(196, 154, 108, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .cta-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}


.team-card {
    perspective: 1000px;
    height: 580px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.team-card.flipped .team-card-inner {
    transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.team-card-front {
    background: #fff;
}

.team-card-back {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    transform: rotateY(180deg);
    color: #fff;
    padding: 2rem;
    overflow-y: auto;
}

.team-image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.team-card:hover .team-photo {
    filter: grayscale(0%);
    transform: scale(1.05);
}
/* Logotipo FSAT sempre a cores */
.fsat-logo-card .team-photo.logo-fsat {
    filter: none !important;
    -webkit-filter: none !important;
}

.fsat-logo-card:hover .team-photo.logo-fsat {
    filter: none !important;
    -webkit-filter: none !important;
}
.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}
.team-email {
    font-size: 0.85rem;
    color: var(--accent);
    margin: 0.5rem 0;
    font-weight: 500;
}

.team-email i {
    margin-right: 5px;
    font-size: 0.8rem;
}
.team-flip-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.team-flip-btn:hover {
    background: #be101a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.team-role {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-role i {
    color: var(--accent);
}

.team-summary {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.team-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(196, 154, 108, 0.3);
}

.team-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.team-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.team-details-content h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.team-details-content h5 {
    color: #fff;
    font-size: 1rem;
    margin: 1.5rem 0 1rem;
}

.team-timeline {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.team-timeline li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.team-timeline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-year {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 80px;
}

.timeline-event {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

.team-specialties {
    margin-top: 2rem;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.specialty-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #fff;
    backdrop-filter: blur(10px);
}

.specialty-tags i {
    color: var(--accent);
}

.team-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.team-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(196, 154, 108, 0.1) 0%, transparent 70%);
}

.team-cta-content {
    position: relative;
    z-index: 1;
}

.team-cta h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.team-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}
/* =========================
   SERVIÇOS - IMAGEM NORMAL SEM OVERLAY
   ========================= */
#servicos {
    position: relative;
    color: #222;
    overflow: hidden;
    padding: 5rem 0;
}

.servicos-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.servicos-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease;
}

#servicos:hover .servicos-bg-img {
    transform: scale(1.1);
}

.servicos-overlay {
    display: none; /* REMOVER OVERLAY COMPLETAMENTE */
}

.servicos-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#servicos h2 {
    color: var(--primary);
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.6); /* Sombra branca para destacar */
}

#servicos .section-intro {
    color: #333;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.7); /* Sombra branca para destacar */
    font-weight: 500; /* Um pouco mais negrito */
}

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

.service-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    color: #222;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-6px);
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(196, 154, 108, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.service-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

/* =========================
   FAQ SECTION
   ========================= */
#faq {
    background: var(--bg-alt);
}

.faq-container {
    max-width: 900px;
    margin: 2rem auto;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--primary-soft);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent);
    font-size: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: #555;
    line-height: 1.7;
}

/* =========================
   CONTACTOS
   ========================= */
#contactos {
    background: #f7f8fa;
    padding: 5rem 0;
}

#contactos .container {
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contactos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    padding: 1.8rem 1.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 320px;
    margin: 0;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.contact-card p {
    color: #444;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.contact-card a {
    color: var(--accent);
    font-weight: 600;
}

.contact-form {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    width: 928px;
    margin-left: 0;
}

.contact-form h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.form-row input,
.form-row textarea {
    flex: 1;
    min-width: 200px;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.1);
}

.form-row input.valid,
.form-row textarea.valid {
    border-color: var(--success);
}

.form-row input.invalid,
.form-row textarea.invalid {
    border-color: var(--error);
}

.form-row input.invalid:focus,
.form-row textarea.invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.btn-enviar {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.btn-enviar:hover {
    background: #be101a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 154, 108, 0.3);
}

.btn-enviar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideDown 0.3s ease;
}

.form-message i {
    font-size: 1.2rem;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mapa {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.mapa iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.mapa iframe:hover {
    transform: scale(1.005);
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
    background: #2c3e50;
    color: #dfe6ec;
    padding: 2.5rem 0;
    font-size: 0.95rem;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-left p {
    margin: 0;
    color: #dfe6ec;
}

.footer-left strong {
    color: #fff;
    font-weight: 600;
}

.footer-brand {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.footer-brand:hover {
    color: #be101a;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #dfe6ec;
    transition: color 0.2s ease;
    font-weight: 500;
}

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

/* =========================
   FLOATING BUTTONS
   ========================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: #be101a;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* =========================
   COOKIE CONSENT
   ========================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cookie-content i {
    font-size: 1.5rem;
    color: var(--accent);
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

.btn-cookie {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cookie:hover {
    background: #be101a;
    transform: translateY(-2px);
}

/* =========================
   ANIMATIONS
   ========================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

body:not(.loaded) .fade-in {
    opacity: 0;
}

body.loaded .fade-in {
    opacity: 1;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (min-width: 1025px) {
    .site-header.scrolled {
        height: 70px;
    }

    .site-header.scrolled .header-content {
        height: 70px;
    }

    .site-header.scrolled .logo {
        transform: scale(0.95);
    }

    .site-header.scrolled .main-nav a {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }

    .site-header.scrolled .header-phone,
    .site-header.scrolled .header-email {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 1024px) {
    .header-content {
        height: 70px;
    }

    .header-actions {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        display: none;
        overflow-y: auto;
        box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .main-nav.nav-open {
        display: block;
        animation: slideDownNav 0.4s ease;
    }

    @keyframes slideDownNav {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        justify-content: flex-start;
        border-bottom: 1px solid var(--border);
    }

    .main-nav a i {
        font-size: 1.2rem;
        width: 30px;
    }

    .nav-cta {
        margin-top: 1rem;
        border: none;
        text-align: center;
        justify-content: center;
        padding: 1.2rem;
        font-size: 1.05rem;
    }

    .nav-toggle {
        display: flex;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #equipa {
        padding: 4rem 0;
    }

    .hero {
        height: 420px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-card {
        height: 520px;
    }

    .team-image-wrapper {
        height: 280px;
    }

    .team-cta {
        padding: 2rem 1.5rem;
    }

    .team-cta h3 {
        font-size: 1.5rem;
    }

    .team-cta p {
        font-size: 1rem;
    }

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

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

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

    .contact-form {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .back-to-top {
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .logo-main {
        font-size: 1.1rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    .logo::before {
        width: 3px;
        height: 35px;
        left: -10px;
    }
}

@media (max-width: 520px) {
    .container {
        padding-inline: 1rem;
    }

    .team-card {
        height: 500px;
    }

    .team-image-wrapper {
        height: 260px;
    }

    .team-info {
        padding: 1.2rem;
    }

    .team-info h3 {
        font-size: 1.15rem;
    }

    .team-summary {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero {
        height: 380px;
    }

    .section {
        padding: 3rem 0;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row input {
        min-width: 100%;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media print {
    .site-header,
    .back-to-top,
    .cookie-banner,
    .hero-actions {
        display: none !important;
    }

    body {
        background: white;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* =========================
   UTILITY CLASSES
   ========================= */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Ajustar para mobile */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.75);
        transform-origin: center;
    }
}

