:root {
    --navegalo-blue: #0066A1;
    --navegalo-blue-dark: #004f7c;
    --navegalo-blue-light: #0080c8;
    --navegalo-orange: #E98300;
    --navegalo-orange-dark: #c96f00;
    --navegalo-gray-light: #E0E1DD;
    --navegalo-gray: #616365;
    --navegalo-dark: #1D2731;
    --navegalo-white: #ffffff;
    --container-width: 1480px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--navegalo-dark);
    background: #f7f9fb;
}

a {
    color: var(--navegalo-blue);
}

/* Header */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e7ece9;
    position: sticky;
    top: 0;
    z-index: 9000;
}

.site-header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
}

.site-nav a {
    color: var(--navegalo-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
}

/* Navigation Buttons */

.site-nav a.nav-button {
    background: #eef6fb;
    color: var(--navegalo-blue);
    padding: 9px 11px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(0, 102, 161, 0.15);
    transition: all 0.2s ease;
}

.site-nav a.nav-button:hover {
    background: var(--navegalo-blue);
    color: #ffffff;
}

.site-nav a.nav-button-contact {
    background: var(--navegalo-blue);
    color: #ffffff;
}

.site-nav a.nav-button-contact:hover {
    background: var(--navegalo-blue-dark);
    color: #ffffff;
}

.site-nav a.nav-button-quote {
    background: var(--navegalo-orange);
    color: #ffffff;
    border-color: var(--navegalo-orange);
}

.site-nav a.nav-button-quote:hover {
    background: var(--navegalo-orange-dark);
    color: #ffffff;
}

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
    flex: 0 0 auto;
    white-space: nowrap;
}

.language-switcher a {
    color: var(--navegalo-blue);
    text-decoration: none;
}

.language-switcher span {
    color: #9aa8a2;
}

/* Hero */

.hero {
    background: linear-gradient(135deg, var(--navegalo-blue-dark), var(--navegalo-blue), var(--navegalo-blue-light));
    color: #ffffff;
    padding-top: 110px;
    padding-bottom: 110px;
    padding-left: max(40px, calc((100vw - var(--container-width)) / 2 + 22px));
    padding-right: max(40px, calc((100vw - var(--container-width)) / 2 + 22px));
}

.hero p {
    max-width: 850px;
    font-size: 22px;
    line-height: 1.35;
}

.hero h1 {
    max-width: 1100px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.08;
    margin: 24px 0;
}

.hero h2 {
    max-width: 1000px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.12;
}

.hero a,
.button,
.cta-button {
    display: inline-block;
    background: var(--navegalo-orange);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.hero a:hover,
.button:hover,
.cta-button:hover {
    background: var(--navegalo-orange-dark);
}

/* Main Content */

.content {
    max-width: var(--container-width);
    margin: 60px auto;
    padding: 0 40px;
    font-size: 18px;
    line-height: 1.55;
}

.content h2 {
    font-size: clamp(30px, 3vw, 44px);
    margin-top: 0;
    color: var(--navegalo-dark);
}

.content p,
.content ul {
    max-width: 980px;
}

/* Grid / Cards */

.grid {
    max-width: var(--container-width);
    margin: 60px auto;
    padding: 0 40px;
    display: grid;
    gap: 28px;
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards .full,
.grid .full {
    grid-column: 1 / -1;
    margin: 0 0 8px;
}

.cards article {
    background: #ffffff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--navegalo-blue);
}

.cards article h2,
.cards article h3 {
    color: var(--navegalo-dark);
    margin-top: 0;
}

.cards article a {
    font-weight: 800;
    text-decoration: none;
}

/* Product / Pricing Cards */

.cards article.price {
    max-width: 520px;
    width: 100%;
}

.cards article.price strong {
    color: var(--navegalo-dark);
}

.cards article.price ul {
    margin-top: 18px;
    margin-bottom: 24px;
}

.cards article.price li {
    margin-bottom: 6px;
}

.cards article.price .cta-button {
    margin-top: 8px;
}

.price {
    font-size: 17px;
    line-height: 1.45;
}

/* Quote Builder */

.quote-builder-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

.quote-builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.quote-builder-card,
.quote-summary-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.quote-builder-card {
    padding: 50px;
}

.quote-builder-card h2,
.quote-summary-card h2 {
    margin-top: 0;
    color: var(--navegalo-blue);
}

.quote-builder-card h2 {
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.form-grid div {
    display: flex;
    flex-direction: column;
}

.quote-builder-card label {
    font-weight: 700;
    margin-bottom: 8px;
}

.quote-builder-card input,
.quote-builder-card select,
.quote-builder-card textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d7ded9;
    border-radius: 10px;
    font-size: 15px;
}

.quote-builder-card textarea {
    margin-bottom: 25px;
}

.alert-success {
    background: #e8f7ef;
    color: #006b4f;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.quote-plan-groups {
    display: grid;
    gap: 22px;
    margin: 25px 0;
}

.quote-plan-group {
    border: 1px solid #e2e8e5;
    border-radius: 16px;
    padding: 22px;
    background: #fbfdff;
}

.quote-plan-group h3 {
    margin-top: 0;
    color: var(--navegalo-blue);
}

.quote-plan-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 15px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e8eeee;
}

.quote-plan-option:first-of-type {
    border-top: none;
}

.quote-plan-option label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.quote-plan-option input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.quote-plan-qty {
    max-width: 90px;
}

.quote-summary-card {
    padding: 26px;
    position: sticky;
    top: 110px;
}

.quote-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1ef;
    font-size: 14px;
}

.quote-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 20px;
    margin-top: 15px;
    border-top: 2px solid var(--navegalo-blue);
    font-size: 18px;
}

.quote-summary-total strong {
    color: var(--navegalo-blue);
}

.quote-summary-note {
    font-size: 13px;
    color: var(--navegalo-gray);
    line-height: 1.45;
}

/* Footer */

.site-footer {
    background: var(--navegalo-dark);
    color: #ffffff;
    padding: 48px 22px 24px;
    margin-top: 60px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--navegalo-orange);
}

.site-footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
}

.site-footer-logo img {
    height: 44px;
    width: auto;
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
}

.site-footer h4 {
    margin: 0 0 12px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 9px;
    font-size: 14px;
}

.footer-contact {
    color: #d7e1dd;
    line-height: 1.6;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
}

.site-footer-bottom {
    max-width: var(--container-width);
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #b9c8c2;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* NavAI Widget */

#navegalo-ai-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

#navegalo-ai-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: #0066b3;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

#navegalo-ai-panel {
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 620px;
    max-height: calc(100vh - 48px);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#navegalo-ai-header {
    background: var(--navegalo-blue);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navegalo-ai-close {
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

#navegalo-ai-lead-form {
    padding: 18px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#navegalo-ai-lead-form p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

#navegalo-ai-lead-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d7ded9;
    border-radius: 10px;
    font-size: 14px;
}

#navai-start-chat {
    background: #0066b3;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 800;
    cursor: pointer;
}

#navai-start-chat:hover {
    background: #004f88;
}

#navegalo-ai-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#navegalo-ai-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background: #f6f8f9;
}

.ai-message {
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.ai-message.assistant {
    background: #ffffff;
    color: var(--navegalo-dark);
}

.ai-message.user {
    background: var(--navegalo-orange);
    color: #ffffff;
    margin-left: 30px;
}

#navegalo-ai-form {
    padding: 16px;
    background: #ffffff;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#navegalo-ai-input {
    flex: 1;
    width: 100%;
    min-height: 90px;
    height: 90px;
    resize: none;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid #d7ded9;
    border-radius: 12px;
}

#navegalo-ai-form button {
    min-width: 100px;
    height: 90px;
    border: none;
    border-radius: 12px;
    background: #0066b3;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}

.ai-chat-link {
    display: inline-block;
    margin-top: 8px;
    background: var(--navegalo-orange);
    color: #ffffff !important;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
}

.ai-chat-link:hover {
    background: var(--navegalo-orange-dark);
}

/* Responsive */

@media (max-width: 1100px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 1000px) {
    .quote-builder-layout {
        grid-template-columns: 1fr;
    }

    .quote-summary-card {
        position: static;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 80px 26px;
    }

    .content,
    .grid {
        padding-left: 24px;
        padding-right: 24px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .quote-builder-card {
        padding: 25px;
    }

    #navegalo-ai-widget {
        right: 16px;
        bottom: 16px;
    }

    #navegalo-ai-panel {
        width: calc(100vw - 32px);
        height: 600px;
    }

    #navegalo-ai-form {
        flex-direction: column;
        align-items: stretch;
    }

    #navegalo-ai-form button {
        width: 100%;
        height: 48px;
    }

    #navegalo-ai-input {
        height: 90px;
    }
}