/* ===== Variables ===== */
:root {
    --navy: #0a1f44;
    --navy-dark: #061530;
    --navy-light: #122a5c;
    --teal: #14a9a2;
    --teal-dark: #0f8a84;
    --teal-light: #e6f7f6;
    --white: #ffffff;
    --gray-50: #f8f9fb;
    --gray-100: #eef1f6;
    --gray-300: #c5cdd8;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #1a1a2e;
    --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.08);
    --shadow-md: 0 8px 30px rgba(10, 31, 68, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 31, 68, 0.18);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --container: 1140px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.section-title .slash {
    color: var(--teal);
    font-weight: 700;
}

.section-text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
}

.section-text + .section-text {
    margin-top: 1rem;
}

.section-highlight {
    font-weight: 600;
    color: var(--navy);
}

.section-location {
    font-weight: 500;
    color: var(--teal-dark);
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

/* ===== Header ===== */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 72px;
}

.logo-link {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 0.65rem 1.5rem;
    border-radius: 0 0 var(--radius) 0;
    flex-shrink: 0;
}

.header-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 0.85rem 5%;
    min-width: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    align-self: center;
    margin-right: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--teal);
}

/* ===== Hero ===== */
.hero {
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(6, 21, 48, 0.88) 0%, rgba(10, 31, 68, 0.72) 100%),
        url('../img/hero-bg.jpg') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0 3.5rem;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    max-width: 550px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta {
    flex: unset;
    width: auto;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
}

.hero-strip {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.hero-strip p {
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* ===== Services strip ===== */
.services-strip {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.service-card span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.icon-teal { background: var(--teal); }
.icon-teal-dark { background: var(--teal-dark); }
.icon-navy { background: var(--navy); }
.icon-blue { background: #2563eb; }

/* ===== Two-column sections ===== */
.section-block {
    padding: 4.5rem 0;
}

.section-block.alt-bg {
    background: var(--gray-50);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.section-grid.reverse {
    direction: rtl;
}

.section-grid.reverse > * {
    direction: ltr;
}

.section-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    background: var(--gray-100);
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-image.fade-left {
    mask-image: linear-gradient(to right, transparent 0%, black 15%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
}

/* ===== Advantages ===== */
.advantages {
    padding: 4.5rem 0;
    text-align: center;
}

.advantages > .container > .section-title {
    margin-bottom: 3rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.advantage-card {
    padding: 1.5rem 1rem;
}

.advantage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.advantage-icon svg {
    width: 30px;
    height: 30px;
}

.advantage-card h3 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.advantage-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--gray-300);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition);
}

.carousel-dots button.active {
    background: var(--navy);
}

/* ===== CTA Banner ===== */
.cta-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 160px;
}

.cta-left {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.cta-left img {
    height: 50px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

.cta-left p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--navy);
    max-width: 280px;
}

.cta-right {
    background: var(--navy);
    display: flex;
    align-items: center;
    padding: 2rem 3rem;
}

.cta-right p {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.7;
}

.cta-link {
    background: none;
    border: none;
    color: var(--teal);
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color var(--transition);
}

.cta-link:hover {
    color: #5eead4;
}

/* ===== Dark section (Calculadora) ===== */
.section-dark {
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
}

.section-dark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-dark .section-title,
.section-dark .section-text {
    color: var(--white);
}

.section-dark .section-text {
    opacity: 0.85;
}

.section-dark-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
}

.section-dark-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Negociação ===== */
.negociacao {
    padding: 4.5rem 0;
}

.negociacao-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

/* ===== Partners ===== */
.partners {
    padding: 3rem 0;
    text-align: center;
    background: var(--white);
}

.partners-label {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.partners-logos img {
    height: 36px;
    width: auto;
    opacity: 0.85;
    filter: grayscale(20%);
}

.partner-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.partner-aws {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: lowercase;
}

/* ===== Footer info ===== */
.footer-info {
    background: var(--gray-50);
    padding: 2.5rem 0;
    border-top: 1px solid var(--gray-100);
}

.footer-info-single {
    max-width: 480px;
    margin: 0 auto;
}

.footer-info-single .footer-info-item {
    width: 100%;
}

.footer-info-item {
    text-align: center;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

.footer-info-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--teal-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.footer-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
}

.footer-info-note {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-500);
    line-height: 1.6;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--gray-100);
}

/* ===== Disclaimer & Footer ===== */
.disclaimer-bar {
    background: var(--teal-light);
    padding: 1rem 0;
}

.disclaimer-bar p {
    text-align: center;
    font-size: 0.72rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.site-footer {
    background: var(--navy);
    padding: 1.25rem 0;
    text-align: center;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 21, 48, 0.75);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition);
    border-top: 4px solid var(--teal);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-box.wide {
    max-width: 900px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 0;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: var(--navy);
    font-weight: 700;
}

.modal-close {
    background: var(--gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.25rem;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--teal-light);
    color: var(--teal-dark);
}

.modal-body {
    padding: 1.25rem 1.75rem 1.75rem;
}

.modal-logo {
    height: 54px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

/* Botão flutuante para reabrir formulário */
.fab-form {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.35rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(20, 169, 162, 0.45);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.fab-form:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(20, 169, 162, 0.55);
}

.fab-form[hidden] {
    display: none;
}

.fab-form svg {
    flex-shrink: 0;
}

/* ===== Form ===== */
.client-form .form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.client-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.client-form label .required {
    color: var(--teal);
}

.client-form input,
.client-form select,
.client-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--gray-50);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    appearance: none;
}

.client-form textarea {
    resize: vertical;
    min-height: 88px;
    line-height: 1.6;
}

.client-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.client-form input:focus,
.client-form select:focus,
.client-form textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(20, 169, 162, 0.15);
}

.client-form input::placeholder,
.client-form textarea::placeholder {
    color: var(--gray-300);
}

.form-hint {
    font-size: 0.72rem;
    color: var(--gray-500);
    margin-top: 0.35rem;
}

.form-error {
    color: #dc2626;
    font-size: 0.78rem;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.form-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    flex: 1;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.btn-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 169, 162, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-500);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-500);
}

/* ===== Plans page ===== */
.page-hero {
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(6, 21, 48, 0.9) 0%, rgba(10, 31, 68, 0.8) 100%),
        url('../img/hero-bg.jpg') center/cover no-repeat;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.page-content {
    padding: 3rem 0 4rem;
    min-height: 40vh;
}

.page-content h1 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.plan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-100);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.plan-card-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 1.5rem;
    text-align: center;
}

.plan-card-header img {
    width: 80px;
    margin: 0 auto 0.75rem;
    opacity: 0.9;
}

.plan-card-header h3 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
}

.plan-card-body {
    padding: 1.5rem;
    flex: 1;
}

.plan-card-body p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--gray-100);
}

.plan-card-body p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.plan-card .btn-primary {
    margin: 0 1.5rem 1.5rem;
    flex: unset;
    width: calc(100% - 3rem);
}

.plan-card .btn-primary {
    display: block;
    text-align: center;
}

/* ===== Success page ===== */
.success-box {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem;
}

.success-box img {
    width: 120px;
    margin: 1.5rem auto;
}

.success-box p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.8;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--white);
}

.success-back {
    display: inline-block;
    margin-top: 1.5rem;
    flex: unset;
    width: auto;
    padding: 0.85rem 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-grid,
    .section-dark-grid,
    .negociacao-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-grid.reverse {
        direction: ltr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-banner {
        grid-template-columns: 1fr;
    }

    .cta-right {
        padding: 2rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav a {
        font-size: 1rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .logo-img {
        height: 40px;
        max-width: 180px;
    }

    .logo-link {
        padding: 0.55rem 1rem;
    }

    .header-main {
        padding: 0.65rem 4%;
    }

    .header-inner {
        min-height: 64px;
    }

    .hero-content {
        padding: 3rem 0 2.5rem;
    }

    .section-block,
    .advantages,
    .section-dark,
    .negociacao {
        padding: 3rem 0;
    }

    .section-image.fade-left {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-box.wide {
        max-width: 100%;
    }

    .fab-form span {
        display: none;
    }

    .fab-form {
        padding: 0.85rem;
        border-radius: 50%;
    }
}

@media (min-width: 769px) {
    .carousel-dots {
        display: none;
    }
}
