/* 
    JURISAFE Design System 
    Author: Antigravity
    Updated: Polished after verification
*/

:root {
    /* Colors */
    --primary-bg: #072027;
    --secondary-bg: #184254;
    --accent-gold: #C9A961;
    --text-light: #D0D7D9;
    --text-support: #899B9F;
    --white: #FFFFFF;
    --black-pure: #000000;
    --gray-bg: #F4F7F8;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.narrow {
    max-width: 800px;
}

/* Typography */
h1 {
    font-size: clamp(32px, 8vw, 72px); /* Responsive sizing */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--white); /* Fixed Contrast */
}

h2 {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 24px;
    font-weight: 700;
}

h4 {
    font-size: 20px;
    font-weight: 700;
}

.microcopy {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 16px;
    display: block;
}

.microcopy-dark {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-bg);
    margin-bottom: 16px;
    display: block;
}

.subheadline {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 300;
    color: var(--text-light);
    max-width: 800px;
    margin-bottom: 40px;
}

.section-title {
    margin-bottom: 40px;
}

.fw-light {
    font-weight: 300 !important;
    opacity: 0.9;
}

.gold-accent {
    color: var(--accent-gold) !important;
}

.section-title.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title.white {
    color: var(--white);
}

.body-text p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.body-text.light p {
    color: var(--text-light);
}

.highlight {
    font-weight: 700;
    color: var(--accent-gold) !important;
}

/* Layout Utilities */
.section-padding {
    padding: var(--section-padding);
}

.alt-bg {
    background-color: var(--primary-bg);
    color: var(--white);
}

.secondary-bg {
    background-color: var(--secondary-bg);
    color: var(--white);
}

.light-gray-bg {
    background-color: var(--gray-bg);
}

.split-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.text-content, .visual-content {
    flex: 1;
}

.reverse {
    flex-direction: row-reverse;
}

.relative {
    position: relative;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(7, 32, 39, 0.95);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.nav-logo-img {
    height: 80px; /* Increased from 60px */
    width: auto;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

.nav-cta {
    background-color: var(--accent-gold);
    color: var(--primary-bg) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover {
    background-color: var(--white) !important;
    color: var(--primary-bg) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001; /* Stay on top of mobile links overlay */
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
    background-color: var(--primary-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.watermark-escudo {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 45%;
    opacity: 0.06;
    pointer-events: none;
}

.shield-watermark {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-bg);
}

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
}

.btn-secondary {
    color: var(--white);
    border-bottom: 2px solid var(--accent-gold);
    padding: 10px 0;
    border-radius: 0;
    display: inline-block;
}

.btn-outline {
    border: 1px solid var(--accent-gold);
    color: var(--primary-bg);
}

.btn-link {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Section Specifics */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.pillar-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(7, 32, 39, 0.04);
    border: 1px solid rgba(7, 32, 39, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(7, 32, 39, 0.1);
    border-color: var(--accent-gold);
}

.pillar-icon {
    font-size: 40px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.15) rotate(5deg);
}

.pillar-card h3 {
    font-size: 20px;
    color: var(--primary-bg);
}

.pillar-card p {
    font-size: 15px;
    color: var(--text-support);
    line-height: 1.6;
}

.mockup-img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
}

.portrait-img {
    width: 100%;
    border-radius: 8px;
    filter: saturate(0.6) brightness(0.9);
}

.badge-price {
    background: var(--accent-gold);
    color: var(--primary-bg);
    padding: 12px 24px;
    position: absolute;
    bottom: 20px;
    right: 0;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 2;
}

.feature-list {
    list-style: none;
    margin: 30px 0;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

.segment-cards {
    margin-top: 40px;
    display: grid;
    gap: 20px;
}

.segment-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
}

.segment-card h4 {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.highlight-border {
    border: 1px solid var(--accent-gold);
    background: rgba(201, 169, 97, 0.05);
}

/* Pricing */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--gray-bg);
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    background: var(--primary-bg);
    color: var(--white);
    border: 2px solid var(--accent-gold);
    transform: scale(1.03);
    position: relative;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(7, 32, 39, 0.1);
    border-color: var(--accent-gold);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 45px rgba(201, 169, 97, 0.25);
    border-color: var(--white);
}

.pricing-card.featured .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--primary-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.price {
    font-size: 40px;
    font-weight: 700;
    margin: 20px 0 10px;
}

.old-price {
    font-size: 18px;
    color: var(--text-support);
    text-decoration: line-through;
    margin-bottom: -15px;
    margin-top: 20px;
    font-weight: 500;
}

.price span {
    font-size: 16px;
    opacity: 0.6;
}

.ideal-for {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 25px;
    min-height: 48px;
}

.card-features {
    list-style: none;
    text-align: left;
    margin: 20px 0 30px;
    flex-grow: 1;
}

.card-features li {
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    opacity: 0.8;
}

.card-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.card-features li.includes-previous {
    font-style: italic;
    opacity: 0.9;
    color: var(--accent-gold) !important;
    font-weight: 600;
    margin-top: 15px; /* Add small separation before 'Tudo incluso' line */
}

.card-features li.includes-previous::before {
    content: "✓";
    font-weight: 700;
}

.pricing-footer {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 60px;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 20px;
    opacity: 0.4;
}

/* FAQ Accordion */
.accordion {
    margin-top: 40px;
}

.accordion-item {
    background: var(--gray-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-bg);
}

.accordion-header::after {
    content: "+";
    font-size: 24px;
    color: var(--accent-gold);
    transition: 0.3s;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.accordion-item.active .accordion-body {
    max-height: 300px;
    padding-bottom: 24px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}

.footer-col h5 {
    color: var(--accent-gold);
    margin-bottom: 25px;
    font-weight: 700;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 12px;
    color: var(--text-support);
}

/* Animations */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .split-layout { flex-direction: column; text-align: center; }
    .reverse { flex-direction: column !important; }
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-bg);
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active { display: flex; }
    .hero { padding-top: 140px; text-align: center; }
    .hero-actions { justify-content: center; }
    .subheadline { margin-left: auto; margin-right: auto; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    h1 { font-size: 36px; }
    .btn { width: 100%; text-align: center; }
    .badge-price { position: relative; width: 100%; right: 0; bottom: 0; margin-top: -10px; }
}
