:root {
    /* Identidade Visual Premium - Alfredo Thiago */
    --bg-light: #E9E8E8;
    --primary: #07445D;
    
    /* Variações criadas a partir do tom principal para hierarquia */
    --primary-light: #125773;
    --primary-glow: rgba(7, 68, 93, 0.15);
    --bg-white: #ffffff;
    --shadow-light: rgba(7, 68, 93, 0.08);
    --shadow-medium: rgba(7, 68, 93, 0.15);

    /* Fonts */
    /* Trajan Pro is highly similar to Cinzel for web fallback */
    --font-heading: 'Trajan Pro', 'Cinzel', serif;
    --font-body: 'Sora', sans-serif;

    /* Transitions */
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.3s ease;
}

/* Reset & BaseStyles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body.theme-light {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--primary);
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-weight: 300; /* Sora Light */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400; /* Trajan Pro Regular equivalent */
    line-height: 1.25;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

ul {
    list-style: none;
}

p {
    font-weight: 300; /* Sora Light */
}

strong, b {
    font-weight: 500;
}

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

.section-padding {
    padding: 6rem 0;
}

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

section, header, footer {
    width: 100%;
    display: block;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 2px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-light);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.btn-primary-inv {
    background-color: var(--bg-light);
    color: var(--primary);
    border: 1px solid var(--bg-light);
}

.btn-primary-inv:hover {
    background-color: transparent;
    color: var(--bg-light);
}

.btn-large {
    padding: 1.2rem 2.8rem;
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-fast);
    padding: 0.8rem 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.sticky {
    padding: 0.5rem 0;
    background-color: rgba(233, 232, 232, 0.98);
    box-shadow: 0 4px 20px var(--shadow-light);
    border-bottom: 1px solid rgba(7, 68, 93, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-logo-img {
    height: 80px; 
    width: auto;
    transition: all var(--transition-fast);
}

.logo .logo-white {
    display: block !important;
}

.logo .logo-colored {
    display: none !important;
}

.header.sticky .logo .logo-white {
    display: none !important;
}

.header.sticky .logo .logo-colored {
    display: block !important;
}

.header.sticky .nav-logo-img {
    height: 60px;
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--bg-white); /* White over Hero */
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

.header.sticky .nav-menu a {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    margin-bottom: 5px;
    transition: var(--transition-fast);
}

/* Hero Premium Section */
.hero-premium {
    position: relative;
    min-height: 100vh;
    padding-top: 100px; /* Space for the header */
    display: flex;
    align-items: center;
    background-color: #041f2b; /* Versão mais escura e sofisticada de #07445D */
    overflow: hidden;
    color: var(--bg-white);
    width: 100%;
}

.hero-premium-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1505664177941-10c0eaffafce?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.12; /* Subtle texture */
    z-index: 1;
}

/* Gradient overlay to make text pop while blending image gracefully */
.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #041f2b 40%, rgba(4, 31, 43, 0.3) 100%);
    z-index: 2;
}

.hero-premium-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 2rem;
}

/* Lado Esquerdo */
.hero-premium-content {
    display: flex;
    flex-direction: column;
}

.hero-brand {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-logo-img {
    height: 140px; /* Increased for vertical logo impact */
    width: auto;
    filter: brightness(1.1);
}

.hero-premium-title {
    font-size: 2.7rem; /* Reduzido para maior elegância e legibilidade */
    margin-bottom: 2.5rem; 
    line-height: 1.25;
    color: var(--bg-white);
    text-transform: uppercase;
}


.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--bg-light);
    color: var(--primary);
    padding: 1.2rem 2.5rem;
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn-hero-cta:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.hero-cta-subtext {
    font-size: 0.85rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 1px;
    margin-left: 0.5rem;
}

/* Lado Direito */
.hero-premium-visual {
    position: relative;
    height: 100%;
    min-height: 650px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.advocate-image-wrapper {
    position: absolute;
    bottom: -50px; /* Overflow slightly out of section elegantly */
    height: 110%;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.advocate-img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Linear gradient mask to blend smoothly at the bottom */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 25%);
    mask-image: linear-gradient(to top, transparent 0%, black 25%);
}

.hero-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.4rem;
    background: rgba(4, 31, 43, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    color: var(--bg-white);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 5;
    white-space: nowrap;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.badge-icon svg {
    width: 100%;
    height: 100%;
}

.badge-3 { top: 25%; right: 5%; }
.badge-4 { bottom: 20%; left: 5%; }

/* Text Utils */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.title-line {
    width: 60px;
    height: 1px;
    background-color: var(--primary);
    margin-bottom: 2rem;
}

.center-line {
    margin: 0 auto 2rem auto;
}

/* Features Strip */
.features-strip {
    background-color: var(--bg-light);
    padding: 5rem 0;
    border-bottom: 1px solid rgba(7, 68, 93, 0.05);
}

.features-strip-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    color: var(--primary);
    transition: all var(--transition-fast);
}

.feature-item:hover .feature-icon-circle {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background-color: var(--primary);
    color: var(--bg-white);
}

.feature-icon-circle svg {
    width: 24px;
    height: 24px;
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.feature-item p {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.6;
    max-width: 200px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--primary);
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    opacity: 0.8;
}

/* Quem Somos (Premium) */
.about-premium {
    background-color: #041f2b; 
    color: var(--bg-white);
}

.about-premium-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-premium-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.advocate-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    background: #07445D;
}

.advocate-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: all var(--transition-slow);
}

.advocate-frame:hover .advocate-photo {
    transform: scale(1.05);
}

.institutional-badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.advocate-name {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--bg-white);
    margin-bottom: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.advocate-bio p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    font-weight: 300;
    opacity: 0.85;
}

.advocate-bio strong {
    color: var(--bg-white);
    font-weight: 500;
}

.advocate-cta {
    margin-top: 3rem;
}

.btn-premium-wa {
    background-color: #E9E8E8;
    color: #041f2b;
    padding: 1.5rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    text-transform: uppercase;
    font-family: var(--font-body);
}

.btn-premium-wa:hover {
    background-color: var(--bg-white);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    color: #07445D;
}

.wa-icon {
    width: 32px;
    height: 32px;
    stroke: #041f2b;
    transition: transform var(--transition-fast);
}

.btn-premium-wa:hover .wa-icon {
    transform: scale(1.1) rotate(5deg);
    stroke: #07445D;
}

/* Soluções Jurídicas Carousel — Transform-based (GPU only) */
.solutions-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

/* Viewport clips the overflow — NO native scroll */
.solutions-viewport {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0 2rem;
}

/* Track slides via transform: translate3d (compositor-only, zero layout) */
.solutions-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 5vw;
    will-change: transform;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    /* Smooth transition for button clicks — disabled during drag via JS */
    transition: transform 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.solutions-track.is-dragging {
    transition: none;
    cursor: grabbing;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: none;
    box-shadow: 0 10px 30px var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-nav:hover {
    background-color: var(--primary);
    color: var(--bg-light);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
}

.prev-btn { left: 2vw; }
.next-btn { right: 2vw; }

.carousel-indicators {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -0.5rem;
}

.progress-bar {
    width: 300px;
    max-width: 80%;
    height: 3px;
    background-color: rgba(7, 68, 93, 0.15);
    position: relative;
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 5%;
    border-radius: 2px;
    transition: width 0.35s ease;
}

.solution-card {
    flex: 0 0 340px;
    position: relative;
    height: 420px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(7, 68, 93, 0.08);
    /* Isolate each card — prevents repaint cascade */
    contain: layout style paint;
}

/* Image as <img> with object-fit (enables loading=lazy) */
.solution-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    /* GPU layer for hover zoom — only this property animates */
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark elegant overlay */
    background: linear-gradient(to top, rgba(7, 68, 93, 0.95) 0%, rgba(7, 68, 93, 0.4) 60%, rgba(7, 68, 93, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
}

.solution-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    z-index: 3;
    color: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.solution-card h3 {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    transform: translateY(10px);
    transition: transform var(--transition-fast);
}

.solution-card p {
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    line-height: 1.5;
    font-weight: 300;
    color: var(--bg-white);
}

/* Hover effects — only when NOT dragging */
.solutions-track:not(.is-dragging) .solution-card:hover .solution-bg {
    transform: scale(1.08);
}

.solutions-track:not(.is-dragging) .solution-card:hover h3 {
    transform: translateY(0);
}

.solutions-track:not(.is-dragging) .solution-card:hover p {
    opacity: 0.9;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* Metodologia (Como Trabalhamos) */
.methodology {
    background-color: #041f2b;
    color: var(--bg-white);
    overflow: hidden;
}

.methodology-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.methodology-title {
    font-size: 2.2rem;
    color: var(--bg-white);
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method_step_card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 4px;
    border-left: 3px solid rgba(233, 232, 232, 0.2);
    transition: all var(--transition-fast);
    cursor: default;
}

.method_step_card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--bg-light);
    transform: translateX(10px);
}

.method_step_card h3 {
    font-size: 1.2rem;
    color: var(--bg-white);
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
}

.method_step_card p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
    font-weight: 300;
}

.methodology-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contracts-wrapper {
    position: relative;
    width: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.methodology-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.4);
    width: 90%;
    max-width: 800px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    filter: brightness(1.5);
}

.contracts-img {
    width: 110%; /* Makes it overflow slightly for a massive architectural feel */
    max-width: 1000px; 
    height: auto;
    filter: drop-shadow(0 30px 80px rgba(0,0,0,0.6));
    transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
    transition: transform var(--transition-slow);
    z-index: 2;
}

.methodology-visual:hover .contracts-img {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.06);
}

.contracts-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(233, 232, 232, 0.08) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Diferenciais */
.features {
    background-color: transparent;
    border-top: 1px solid rgba(7, 68, 93, 0.08);
    border-bottom: 1px solid rgba(7, 68, 93, 0.08);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature-block {
    padding: 1rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    color: var(--primary);
    background-color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px var(--shadow-light);
    transition: transform var(--transition-fast);
}

.feature-block:hover .feature-icon {
    transform: translateY(-5px);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-block h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.feature-block p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Segurança Jurídica / Editorial */
.editorial {
    background-color: transparent;
}

.editorial-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.editorial-visual {
    position: relative;
    width: 100%;
    height: 550px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.editorial-img-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 90%;
    border-radius: 2px;
    box-shadow: 0 25px 50px -12px var(--shadow-medium);
    transition: transform var(--transition-slow);
    overflow: hidden;
}

.editorial-img-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.editorial-img-small {
    position: absolute;
    bottom: 5%;
    right: 0;
    width: 55%;
    height: 45%;
    border-radius: 2px;
    box-shadow: 0 30px 60px -15px var(--shadow-medium);
    border: 8px solid var(--bg-light);
    transition: transform var(--transition-slow);
    overflow: hidden;
}

.editorial-img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.editorial-visual:hover .editorial-img-large {
    transform: scale(1.02);
}

.editorial-visual:hover .editorial-img-small {
    transform: scale(1.04) translateY(-5px);
}

.editorial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editorial-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.editorial-line {
    width: 60px;
    height: 1px;
    background-color: var(--primary);
    margin-bottom: 2.5rem;
}

.editorial-bullets {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.editorial-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.bullet-icon {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    margin-top: 8px;
}

.editorial-bullets p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* CTA Intermediário */
.cta-section {
    background-color: var(--primary);
    padding: 7rem 0;
    text-align: center;
    color: var(--bg-light);
}

.cta-headline {
    color: var(--bg-light);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-sub {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Contato */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-text {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 3rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: #25D366; 
    color: #ffffff !important;
    padding: 1.2rem 2rem;
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 3rem;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    background-color: #1ebc59;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.contact-details p {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.contact-details strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    opacity: 0.7;
}

.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 2px;
    box-shadow: 0 10px 40px var(--shadow-light);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 1px solid rgba(7, 68, 93, 0.2);
    border-radius: 2px;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(7, 68, 93, 0.02);
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    color: var(--primary);
    border-top: 1px solid rgba(7, 68, 93, 0.1);
}

.footer-minimal {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(7, 68, 93, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 100px;
    width: auto;
}

.footer-contact-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-end;
}

.footer-email {
    font-size: 0.95rem;
    color: var(--primary);
    opacity: 0.9;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--primary);
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-bottom-minimal {
    font-size: 0.75rem;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

/* Animations Core */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

[style*="--delay"] {
    transition-delay: var(--delay);
}

@keyframes float-subtle {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float-subtle 8s ease-in-out infinite;
}

.floating-subtle {
    animation: float-subtle 10s ease-in-out infinite;
}

/* ============================================================
   RESPONSIVE — Tablet Landscape (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-menu ul {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.75rem;
    }

    .btn.cta-header {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }
    
    .section-padding {
        padding: 4.5rem 0;
    }

    /* Hero */
    .hero-premium-container {
        grid-template-columns: 1fr;
        padding-top: 1rem;
        gap: 2rem;
    }

    .hero-premium-content {
        text-align: center;
        align-items: center;
    }

    .hero-brand {
        justify-content: center;
    }

    .hero-premium-title {
        font-size: 2.2rem;
    }

    .hero-cta-wrapper {
        align-items: center;
    }

    .hero-premium-visual {
        min-height: 450px;
    }

    .advocate-image-wrapper {
        position: relative;
        bottom: 0;
        height: auto;
    }

    .advocate-img {
        max-height: 450px;
        width: auto;
    }

    /* Features Strip */
    .features-strip-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    /* About */
    .about-premium-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .advocate-frame {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-premium-content {
        text-align: center;
    }

    .advocate-name {
        font-size: 2.5rem;
    }

    .institutional-badge {
        margin: 0 auto 1.5rem;
    }

    .advocate-cta {
        display: flex;
        justify-content: center;
    }

    /* Methodology */
    .methodology-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .methodology-title {
        text-align: center;
    }

    .methodology-visual {
        order: -1;
    }

    .contracts-img {
        width: 90%;
        transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
    }

    /* Editorial */
    .editorial-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .editorial-visual {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
    }

    .title-line {
        margin-left: auto;
        margin-right: auto;
    }

    .whatsapp-btn {
        justify-content: center;
    }

    .contact-details {
        text-align: left;
    }

    /* Footer */
    /* Final safety for horizontal jitter */
    body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .solutions-track {
        padding: 0 1rem; /* Safer than vw for preventing overflow */
        gap: 1rem;
    }
    
    .carousel-nav {
        display: none !important;
    }
}

/* ============================================================
   RESPONSIVE — Tablet Portrait (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 0;
    }

    /* Header / Nav */
    .nav-menu {
        display: none;
    }
    
    .cta-header {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-toggle span {
        background-color: var(--bg-white);
    }

    .header.sticky .mobile-toggle span {
        background-color: var(--primary);
    }
    
    /* Force hide hero brand on any mobile screen */
    .hero-brand, .hero-logo-img {
        display: none !important;
    }

    .nav-logo-img {
        height: 60px;
    }

    .header.sticky .nav-logo-img {
        height: 50px;
    }

    /* Hero Section Reordering - Mobile */
    .hero-premium-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .hero-premium-content {
        display: contents; /* Allows interleaving title, image, and button */
    }

    .hero-premium-title {
        order: 1;
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-premium-visual {
        order: 2;
        width: 100%;
        min-height: auto;
        margin: 0.5rem 0;
    }

    .hero-cta-wrapper {
        order: 3;
        width: 100%;
        align-items: center;
        margin-top: 1rem;
    }

    .advocate-img {
        max-height: 380px;
        width: auto;
    }

    .hero-brand {
        display: none !important;
    }

    .hero-logo-img {
        display: none;
    }

    .hero-premium-title {
        font-size: 1.65rem;
        margin-bottom: 2rem;
    }

    .btn-hero-cta {
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }

    .hero-premium-visual {
        min-height: 350px;
    }

    .advocate-img {
        max-height: 350px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.5rem 0.9rem;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .badge-icon {
        width: 16px;
        height: 16px;
    }

    .badge-3 { top: 15%; right: 0; }
    .badge-4 { bottom: 15%; left: 0; }

    /* Features Strip */
    .features-strip {
        padding: 3rem 0;
    }

    .features-strip-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .feature-item h3 {
        font-size: 0.75rem;
    }

    .feature-item p {
        font-size: 0.75rem;
    }

    .feature-icon-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 1.2rem;
    }

    .feature-icon-circle svg {
        width: 20px;
        height: 20px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    /* About */
    .advocate-name {
        font-size: 2.2rem;
    }

    .advocate-bio p {
        font-size: 1rem;
    }

    .btn-premium-wa {
        padding: 1.2rem 2rem;
        font-size: 0.85rem;
        gap: 1.2rem;
    }

    .wa-icon {
        width: 24px;
        height: 24px;
    }

    /* Methodology */
    .methodology-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }

    .method_step_card {
        padding: 1.5rem;
    }

    .method_step_card h3 {
        font-size: 1rem;
    }

    .method_step_card p {
        font-size: 0.85rem;
    }

    .contracts-img {
        width: 100%;
        transform: none;
    }

    .methodology-visual:hover .contracts-img {
        transform: scale(1.03);
    }

    /* Editorial */
    .editorial-visual {
        height: 350px;
    }

    .editorial-title {
        font-size: 1.5rem;
    }

    .editorial-img-large {
        width: 80%;
        height: 85%;
    }
    
    .editorial-img-small {
        width: 60%;
        height: 45%;
        bottom: 0;
    }

    /* Carousel */
    .solution-card {
        flex: 0 0 280px;
        height: 380px;
    }

    .solutions-track {
        gap: 1rem;
        padding: 0 4vw;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .prev-btn { left: 1vw; }
    .next-btn { right: 1vw; }

    /* Show text by default on mobile (no hover) */
    .solution-card h3 {
        transform: translateY(0);
    }

    .solution-card p {
        opacity: 0.85;
        transform: translateY(0);
    }

    .solution-overlay {
        background: linear-gradient(to top, rgba(7, 68, 93, 0.92) 0%, rgba(7, 68, 93, 0.5) 55%, rgba(7, 68, 93, 0.1) 100%);
    }

    /* Contact */
    .contact-form-wrapper {
        padding: 2rem;
    }

    .whatsapp-btn {
        font-size: 0.95rem;
        padding: 1rem 1.5rem;
    }

    /* Footer */
    .footer-logo {
        height: 80px;
    }

    .footer-minimal {
        padding-top: 3rem;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    /* Hero */
    /* Hero Responsive Overrides (iPhone/Small Mobile) */
    .hero-premium {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 2rem;
        overflow: hidden;
    }

    .hero-premium-container {
        padding: 1rem 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-premium-title {
        font-size: 1.5rem;
        line-height: 1.3;
        order: 1;
    }

    .hero-premium-visual {
        order: 2;
        min-height: 320px;
        margin-bottom: 0.5rem;
    }

    .hero-cta-wrapper {
        order: 3;
        padding: 0 1rem;
    }

    .btn-hero-cta {
        padding: 1.1rem 2rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .advocate-img {
        max-height: 320px;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.75rem;
        background: rgba(4, 31, 43, 0.7); /* Darker for legibility */
        backdrop-filter: blur(5px);
    }

    .badge-3 { top: 15%; right: 2%; }
    .badge-4 { bottom: 15%; left: 2%; }
    
    /* Prevent horizontal shake */
    * {
        max-width: 100vw;
    }

    /* Features Strip */
    .features-strip {
        padding: 2.5rem 0;
    }

    .features-strip-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-item {
        flex-direction: row;
        text-align: left;
        gap: 1.2rem;
    }

    .feature-icon-circle {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
    }

    .feature-item h3 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .feature-item p {
        max-width: 100%;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    /* About */
    .advocate-frame {
        max-width: 100%;
        border-radius: 8px;
    }

    .advocate-name {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .advocate-bio p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .btn-premium-wa {
        width: 100%;
        justify-content: center;
        padding: 1.1rem 1.5rem;
        font-size: 0.8rem;
        gap: 1rem;
    }

    .wa-icon {
        width: 22px;
        height: 22px;
    }

    /* Methodology */
    .methodology-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .method_step_card {
        padding: 1.2rem;
    }

    .method_step_card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .method_step_card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .methodology-bg-logo {
        display: none;
    }

    /* Editorial */
    .editorial-visual {
        height: 280px;
    }

    .editorial-title {
        font-size: 1.3rem;
        line-height: 1.35;
    }

    .editorial-bullets li {
        gap: 1rem;
    }

    .editorial-bullets p {
        font-size: 0.85rem;
    }

    .editorial-img-large {
        width: 85%;
        height: 80%;
    }

    .editorial-img-small {
        width: 55%;
        height: 45%;
        border-width: 5px;
    }

    /* Carousel */
    .solutions-carousel-wrapper {
        padding: 1rem 0;
    }

    .solution-card {
        flex: 0 0 85vw;
        height: 350px;
    }

    .solutions-track {
        padding: 0 3vw;
        gap: 0.8rem;
    }

    .carousel-nav {
        display: none;
    }

    .solution-content {
        padding: 1.5rem 1.2rem;
    }

    .solution-card h3 {
        font-size: 1.1rem;
    }

    .solution-card p {
        font-size: 0.8rem;
    }

    /* Contact */
    .contact-text {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .btn-block {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .whatsapp-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
    }

    .contact-details p {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-logo {
        height: 65px;
    }

    .footer-minimal {
        padding-top: 2rem;
    }

    .footer-email {
        font-size: 0.8rem;
    }

    .footer-bottom-minimal {
        font-size: 0.65rem;
    }

    .footer-socials {
        gap: 1rem;
    }
    .hero-brand {
        display: none;
    }
}
