:root {
    --navy: #0b2740;
    --navy-dark: #071a2c;
    --sand: #f4efe6;
    --accent: #d98e3f;
    --white: #ffffff;
    --text: #1c2530;
    --muted: #5b6773;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(11, 39, 64, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--sand);
    line-height: 1.5;
}

a { color: inherit; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 24px 0;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 28px;
    font-weight: 500;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #0b2740;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,26,44,0.55) 0%, rgba(7,26,44,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 100px 0;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.hero h1 {
    font-size: 3rem;
    margin: 12px 0 16px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217,142,63,0.4); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
    margin-left: 12px;
}

.btn-outline:hover { border-color: var(--white); }

/* Sections */
section { padding: 80px 0; }

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.section-title h2 {
    font-size: 2.1rem;
    margin: 8px 0 0;
    color: var(--navy);
}

/* Specs grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.spec-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.spec-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.spec-card .label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.included-list {
    columns: 2;
    gap: 32px;
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.included-list li {
    break-inside: avoid;
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text);
}

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

/* CTA band */
.cta-band {
    background: var(--navy);
    color: var(--white);
    text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a { color: var(--white); text-decoration: none; font-weight: 600; }

/* Orçamento */
.quote-page { padding: 40px 0 100px; }

.quote-header { text-align: center; margin-bottom: 40px; }
.quote-header h1 { color: var(--navy); }

.boat-summary {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.boat-summary h2 { margin: 0 0 4px; color: var(--navy); }
.boat-summary .price { font-size: 1.8rem; font-weight: 700; color: var(--accent); }

.included-collapsible {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    padding: 0;
    overflow: hidden;
}

.included-collapsible summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 24px;
    font-weight: 600;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.included-collapsible summary::-webkit-details-marker { display: none; }

.included-collapsible summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform 0.15s ease;
}

.included-collapsible[open] summary::after { transform: rotate(45deg); }

.included-collapsible summary:hover { background: #fafafa; }

.included-collapsible .included-list {
    columns: 2;
    padding: 0 24px 20px;
    margin: 0;
}

.category-block {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.category-block h3 {
    background: var(--navy);
    color: var(--white);
    margin: 0;
    padding: 14px 24px;
    font-size: 1.05rem;
}

.item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid #eee;
    gap: 16px;
    flex-wrap: wrap;
}

.item-row:last-child { border-bottom: none; }

.item-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
}

.item-row .unit { color: var(--muted); font-size: 0.85rem; font-weight: 400; }

.item-row .price { font-weight: 600; color: var(--navy); white-space: nowrap; }

.item-row input[type="number"] {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.quote-total {
    position: sticky;
    bottom: 0;
    background: var(--white);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
    padding: 20px 24px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.quote-total .amount { font-size: 1.6rem; font-weight: 700; color: var(--navy); }

.quote-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-pdf { background: var(--navy); color: var(--white); }

/* Shell genérico de modal (usado pelo modal do WhatsApp e pelo de captura de lead) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 26, 44, 0.6);
}

.modal-box {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 { margin: 0; font-size: 1.2rem; color: var(--navy); }

.modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 4px 8px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* Corpo em duas colunas, específico do modal de exportação para WhatsApp */
.modal-body--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
    overflow-y: auto;
}

.wa-col-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
}

.wa-bubble-wrap {
    background: #e5ddd3;
    border-radius: 10px;
    padding: 20px 14px;
    height: 100%;
    min-height: 260px;
}

.wa-bubble {
    background: #d9fdd3;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 90%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.wa-textarea {
    width: 100%;
    min-height: 260px;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    resize: vertical;
    background: #fafafa;
}

.wa-copy-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.wa-copy-actions .btn { padding: 10px 18px; font-size: 0.9rem; }

.wa-copy-actions .btn.copied { background: #1a7a3a; }

@media (max-width: 720px) {
    .modal-body--split { grid-template-columns: 1fr; }
}

/* Formulário simples de captura (lead) */
.lead-form .form-grid { margin-bottom: 0; }
.lead-form small { display: block; margin-top: 4px; color: var(--muted); }
.lead-form .actions-row { margin-top: 20px; }
.lead-form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.lead-success { text-align: center; padding: 20px 0; }
.lead-success .icon { font-size: 2.5rem; margin-bottom: 12px; }
.lead-error { background: #fbe3e3; color: #a12525; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }

/* Admin */
.admin-body { background: #f2f4f7; }
.admin-header {
    background: var(--navy);
    color: var(--white);
    padding: 16px 0;
}
.admin-header .container { display: flex; justify-content: space-between; align-items: center; }
.admin-header a { color: var(--white); text-decoration: none; }
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 32px 20px; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; }
table.admin-table th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-grid input[type="text"],
.form-grid input[type="number"],
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.checkbox-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

.actions-row { margin-top: 20px; display: flex; gap: 12px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-on { background: #d7f5df; color: #1a7a3a; }
.badge-off { background: #f5d7d7; color: #a12525; }

.login-wrap { max-width: 380px; margin: 100px auto; }
.error-box { background: #fbe3e3; color: #a12525; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }

@media (max-width: 640px) {
    .hero h1 { font-size: 2.1rem; }
    .included-list { columns: 1; }
    .form-grid { grid-template-columns: 1fr; }
}
