@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Rizk Brand Colors */
    --brand-primary: #28509A;
    --brand-secondary: #1E3D75;
    --brand-accent: #3E7CF0;
    --brand-light: #3467C7;

    /* Light Theme System Colors */
    --sys-color-background: #FFFFFF;
    --sys-color-surface: #F8F9FA;
    --sys-color-surface-variant: #E9ECEF;

    --sys-color-text-main: #000000;
    --sys-color-text-secondary: #4A4A4A;
    --sys-color-text-light: #FFFFFF;
    /* For dark backgrounds */

    /* Functional Colors */
    --color-success: #28a745;
    --color-error: #dc3545;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--sys-color-background);
    color: var(--sys-color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--brand-secondary);
    line-height: 1.2;
    font-weight: 700;
}

p {
    color: var(--sys-color-text-secondary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--sys-color-text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline:hover {
    background-color: var(--brand-primary);
    color: var(--sys-color-text-light);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Header */
header {
    background-color: var(--sys-color-background);
    border-bottom: 1px solid var(--sys-color-surface-variant);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--sys-color-text-main);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--brand-primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--brand-primary);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--sys-color-surface) 0%, #E8F0FE 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--brand-secondary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--sys-color-text-secondary);
}

.hero .cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Standard Section */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--brand-secondary);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--sys-color-text-secondary);
}

/* Quem Somos */
.about-content {
    background-color: var(--sys-color-background);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Seguradoras Flexbox */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.partner-card {
    background-color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    width: 280px;
    /* Standardized to larger size */
    height: 200px;
    /* Standardized to larger size */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--sys-color-surface-variant);
    flex: 0 0 auto;
    cursor: pointer;
    position: relative;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.partner-card img {
    max-height: 90px;
    /* Increased from 80px */
    max-width: 90%;
    object-fit: contain;
}

/* Resize specific logos that appear smaller */
.partner-card[data-partner="suhai"] img,
.partner-card[data-partner="ituran"] img {
    max-height: 160px;
    max-width: 95%;
    transform: scale(1.1);
}

/* Make Bradesco and Tokio even larger */
.partner-card[data-partner="bradesco"],
.partner-card[data-partner="tokio"] {
    padding: 10px;
    /* Reduce padding to maximize logo space */
}

.partner-card[data-partner="bradesco"] img,
.partner-card[data-partner="tokio"] img {
    max-height: 150px;
    max-width: 95%;
    /* Removed extra scale */
}



/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--sys-color-text-secondary);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--brand-error);
}

.modal-body h3 {
    color: var(--brand-primary);
    font-size: 1.8rem;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 12px;
    display: inline-block;
}

.modal-body p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--sys-color-text-secondary);
}


/* Para Corretores Flexbox */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
}

.feature-card {
    background-color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--brand-primary);
    transition: transform 0.3s ease;
    flex: 1 1 280px;
    /* Grow, shrink, basis */
    max-width: 400px;
    /* Prevent becoming too wide on large screens */
}


.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--brand-primary);
    font-size: 1.5rem;
}

/* Contato */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: var(--brand-secondary);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-info h3 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.8rem;
}

.contact-item {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--brand-accent);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.map-placeholder {
    flex: 1;
    min-width: 300px;
    background-color: var(--sys-color-surface-variant);
    border-radius: var(--radius-lg);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sys-color-text-secondary);
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--brand-secondary);
    /* Updated to Brand Blue */
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1 1 200px;
    /* Flex basis */
}

.footer-logo {
    flex: 1 1 300px;
    /* Give logo column more space */
}


.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    margin-bottom: 24px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.9);
    /* Lighter, more readable text */
    font-size: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer-links li {
    list-style: none;
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    /* Lighter links */
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgb(255, 255, 255);
    color: #ffffff;
    /* Pure white for maximum contrast */
    font-size: 0.9rem;
    font-weight: 500;
    /* Slightly bolder */
    opacity: 1;
}

.footer-bottom p {
    color: #ffffff !important;
    /* Force white color */
    margin: 0;
}
}

/* Forms (Cadastro & Trabalhe Conosco) */
.form-page-body {
    background-color: var(--sys-color-surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.form-wrapper {
    max-width: 800px;
    margin: 60px auto;
    background-color: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--sys-color-text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group:focus-within label {
    color: var(--brand-primary);
}

.form-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
    /* Remove bottom margin inside row */
}

/* Helper for uneven columns if needed, though flex: 1 usually suffices or custom inline flex-grow */
.flex-2 {
    flex: 2 !important;
}


/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 24px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 998;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .form-wrapper {
        margin: 20px;
        padding: 24px;
    }
}