/* Calhas Werner - Tema dark minimalista + área restrita + logo via imagem */

:root {
    /* Modern light palette (Calhas Werner) */
    --bg-main: #eaf1ff;
    --bg-panel: #ffffff;
    --bg-panel-alt: #dbeafe;
    --accent: #1d4ed8;
    --accent-2: #0ea5e9;
    --accent-soft: rgba(29, 78, 216, 0.16);
    --text-main: #0f172a;
    --text-muted: #334155;
    --border-soft: rgba(15, 23, 42, 0.14);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.12);
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: radial-gradient(circle at top left, #eef2ff 0%, #f8fafc 45%, #f1f5f9 100%);
    color: var(--text-main);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER & NAV */

.topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}

.header-content {
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img-wrapper {
    width: 110px;
    max-height: 48px;
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 48px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.logo-subtitle {
    font-weight: 300;
    font-size: 0.72rem;
    color: #555;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.9rem;
}

.nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background .2s ease, color .2s ease;
}

.nav a:hover {
    background: var(--accent-soft);
    color: var(--text-main);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease-in-out;
}

.nav a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
}

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

.btn-nav-ghost {
    background: transparent;
    color: var(--accent) !important;
    border: 1px solid rgba(11,97,255,0.35);
    padding: 10px 14px;
    border-radius: 999px;
}

.btn-nav-ghost:hover {
    background: rgba(11,97,255,0.08);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #222;
    font-size: 1.4rem;
}

/* MAIN / SECTIONS */

main {
    padding-bottom: 20px;
}

.hero {
    padding: 60px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 3.4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-text p {
    color: #555;
    font-size: 0.98rem;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.btn-primary,
.btn-outline {
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background: #3f8cff;
    border-color: #3f8cff;
}

.btn-outline {
    background: transparent;
    border-color: var(--border-soft);
    color: #222;
}

.btn-outline:hover {
    background: var(--border-soft);
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.hero-phone {
    font-weight: 500;
}

.hero-phone i {
    color: var(--accent);
    margin-right: 6px;
}

.hero-region {
    color: #555;
}

/* HERO PANEL */

.hero-panel {
    background: radial-gradient(circle at top left, #1b2335 0%, #ffffff 55%, #f6f7fa 100%);
    border-radius: 24px;
    padding: 24px 24px 26px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 50px rgba(0,0,0,0.7);
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--accent-soft);
    color: #7fb1ff;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.hero-panel h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.hero-panel p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
}

.hero-list {
    list-style: none;
    font-size: 0.88rem;
    color: #222;
}

.hero-list li {
    margin-bottom: 6px;
}

.hero-list i {
    color: #4ae38a;
    margin-right: 6px;
}

/* GENERIC SECTIONS */

.section {
    padding: 40px 0;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 0.94rem;
    color: #555;
    margin-bottom: 20px;
}

/* CARDS SERVIÇOS */

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

.card {
    background: var(--bg-panel);
    border-radius: 18px;
    padding: 18px 18px 18px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 14px 40px rgba(0,0,0,0.65);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #7fb1ff;
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.9rem;
    color: #555;
}

/* SOBRE */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
    gap: 22px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-photo-placeholder {
    width: 100%;
    min-height: 220px;
    border-radius: 20px;
    background: #191f2a;
    border: 1px dashed var(--border-soft);
    color: #555;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}

/* GALERIA */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.gallery-item {
    background: #171b26;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.85rem;
}

.gallery-note {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #555;
}

/* ORÇAMENTO */

.section-contrast {
    background: linear-gradient(135deg, #0b0e17, #f6f7fa);
}

.budget-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
    gap: 22px;
    align-items: flex-start;
}

.budget-list {
    list-style: none;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #222;
}

.budget-list li {
    margin-bottom: 6px;
}

.budget-list i {
    color: var(--accent);
    margin-right: 6px;
}

/* FORM BASE */

.budget-form {
    background: var(--bg-panel-alt);
    border-radius: 20px;
    padding: 18px 18px 20px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}

.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.form-group label {
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: #fff;
    padding: 8px 10px;
    color: var(--text-main);
    font-size: 0.88rem;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.full-width {
    width: 100%;
    margin-top: 6px;
}

.form-note {
    font-size: 0.78rem;
    color: #555;
    margin-top: 6px;
}

/* ÁREA RESTRITA */


.area-header-actions{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
}
.area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-simple {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.table-simple th,
.table-simple td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-soft);
}

.table-simple th {
    text-align: left;
    font-weight: 500;
    color: #555;
}

.table-simple tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.link-danger {
    color: var(--danger);
    text-decoration: none;
    font-size: 0.8rem;
}

.link-danger:hover {
    text-decoration: underline;
}

/* ALERTAS */

.alert {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.alert-success {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #a5e6a5;
}

.alert-error {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #ffb4b0;
}

/* FOOTER */

.footer {
    border-top: 1px solid var(--border-soft);
    padding: 18px 0 26px;
    background: #f6f7fa;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 12px;
    font-size: 0.84rem;
    color: #555;
}

.footer i {
    color: var(--accent);
    margin-right: 5px;
}

.footer-copy {
    grid-column: 1 / -1;
    margin-top: 4px;
    font-size: 0.78rem;
}

/* FEEDBACK CONTAINER REUTILIZADO */

.feedback-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 20px;
    background: #0c101a;
    border: 1px solid var(--border-soft);
    text-align: center;
}

/* RESPONSIVO */

@media (max-width: 900px) {
    .hero-grid,
    .about-grid,
    .budget-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        right: 16px;
        top: 60px;
        background: #f6f7fa;
        padding: 12px 14px;
        border-radius: 14px;
        border: 1px solid var(--border-soft);
        flex-direction: column;
        gap: 10px;
        display: none;
    }
    .nav.open {
        display: flex;
    }
    .menu-toggle {
        display: inline-flex;
    }
}

/* =============================
   V2 - Tema mais claro e header com mais destaque
   ============================= */

body {
    background: #f3f4f8;
    color: #222222;
}

/* Header bem claro e com sombra suave */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

/* Logo maior e mais visível */
.logo-img-wrapper {
    width: 140px;
    max-height: 64px;
}

.logo-img {
    max-height: 60px;
}

.logo-title {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
}

.logo-subtitle {
    color: #6b7280;
}

/* Navegação mais legível */
.nav a {
    color: #4b5563;
    font-weight: 500;
}

.nav a:hover {
    color: #111827;
}

.nav a::after {
    background: #2563eb;
}

.btn-nav {
    border-color: #2563eb;
    color: #2563eb;
}

.btn-nav:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Menu mobile com fundo claro */
@media (max-width: 768px) {
    .nav {
        background: #ffffff;
        border-color: #e5e7eb;
    }
}

/* Painéis e cards mais claros */
.hero-panel,
.card,
.budget-form,
.feedback-container {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

/* Títulos e textos gerais */
.section-title {
    color: #111827;
}

.section-subtitle {
    color: #6b7280;
}

/* Footer claro */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-grid {
    color: #6b7280;
}

.footer-copy {
    color: #9ca3af;
}

/* Tabelas com linhas mais suaves */
.table-simple th,
.table-simple td {
    border-bottom: 1px solid #e5e7eb;
}

.table-simple tbody tr:hover {
    background: #f3f4f6;
}

/* Alerts em tema claro */
.alert-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* ===== V4 - Clareamento da seção de orçamento ===== */

.section-contrast {
    background: #ffffff !important;
}

.budget-form {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
}

.budget-list li {
    color: #111827 !important;
}

.form-group label {
    color: #374151 !important;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #f9fafb !important;
    border: 1px solid #cbd5e1 !important;
    color: #111827 !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.section-title, .section-subtitle {
    color: #111 !important;
}


/* ===============================
   V5 - Responsividade Completa
   =============================== */

/* Tipografia fluida */
h1, h2, h3, p, label, a, button {
    text-rendering: optimizeLegibility;
}

/* HERO responsivo */
@media (max-width: 820px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-panel {
        margin-top: 20px;
    }
}

/* Botões 100% largura no mobile */
@media (max-width: 580px) {
    .btn-primary, .btn-outline {
        width: 100%;
    }
}

/* Cards de serviços responsivos */
@media (max-width: 720px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Seção SOBRE ajustada */
@media (max-width: 820px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Galeria totalmente responsiva */
.gallery-item {
    aspect-ratio: 1 / 1;
}

/* Formulário responsivo */
@media (max-width: 720px) {
    .form-row {
        flex-direction: column;
    }
    .budget-form {
        padding: 16px;
    }
}

/* Tabelas responsivas na área restrita */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Melhor espaçamento no mobile */
@media (max-width: 500px) {
    .section {
        padding: 30px 0;
    }
    .section-title {
        font-size: 1.4rem;
    }
}

/* Header responsivo */
@media (max-width: 900px) {
    .logo-img {
        max-height: 46px;
    }
}

@media (max-width: 600px) {
    .logo-img {
        max-height: 40px;
    }
    .nav a {
        font-size: 0.95rem;
    }
}


/* ===============================
   V6 - Ajustes finos mobile (hero)
   =============================== */

/* Hero mais compacto no mobile e sem blocão escuro */
@media (max-width: 820px) {
    .hero {
        padding: 24px 0 32px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-text {
        text-align: left;
    }
    .hero-panel {
        margin-top: 8px;
        background: #ffffff !important;
        color: #111827;
        box-shadow: 0 10px 30px rgba(15,23,42,0.08);
        border-radius: 20px;
    }
    .hero-panel p {
        color: #4b5563;
    }
}

/* Em telas muito pequenas, limitar a largura do painel para não parecer uma faixa */
@media (max-width: 480px) {
    .hero-panel {
        margin-left: 4px;
        margin-right: 4px;
        padding: 18px 16px 20px;
    }
}

/* Garantir que o fundo geral seja claro no mobile também */
@media (max-width: 820px) {
    body {
        background: #f5f6fa;
    }
}


/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}
.whatsapp-float:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}
@media (max-width: 480px) {
    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ===============================
   V8 - Logo um pouco maior (Opção A)
   =============================== */

.logo-img-wrapper {
    width: 170px;
    max-height: 72px;
}

.logo-img {
    max-height: 68px;
}

@media (max-width: 900px) {
    .logo-img-wrapper {
        width: 150px;
        max-height: 64px;
    }
    .logo-img {
        max-height: 60px;
    }
}

@media (max-width: 600px) {
    .logo-img-wrapper {
        width: 135px;
        max-height: 56px;
    }
    .logo-img {
        max-height: 52px;
    }
}


/* V9 - Alinhamento correto de ícones e texto no footer */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.footer-contact-line i {
    margin-right: 0;
    display: inline-flex;
}


/* ========== V10 - Logo maior + menu menos colado à direita ========== */

/* Aumenta ainda mais a logo no mobile e desktop */
.logo-img-wrapper {
    width: 190px !important;
    max-height: 82px !important;
}
.logo-img {
    max-height: 78px !important;
}

/* Ajustes responsivos */
@media (max-width: 900px) {
    .logo-img-wrapper {
        width: 165px !important;
        max-height: 72px !important;
    }
    .logo-img {
        max-height: 68px !important;
    }
}

@media (max-width: 600px) {
    .logo-img-wrapper {
        width: 155px !important;
        max-height: 68px !important;
    }
    .logo-img {
        max-height: 64px !important;
    }
}

/* Recuar o menu hamburguer da borda direita */
.menu-toggle {
    margin-right: 12px !important;
}

@media (max-width: 600px) {
    .menu-toggle {
        margin-right: 16px !important;
    }
}

/* ========== V11 - Alinhamento do título no header mais próximo da logo ========== */

.logo {
    display: flex;
    align-items: center;
    gap: 2px; /* aproxima título da logo */
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centraliza verticalmente em relação à logo */
}

.logo-title {
    margin: 0;
    line-height: 1.1;
}

.logo-subtitle {
    margin: 0;
    line-height: 1.1;
}

@media (max-width: 600px) {
    .logo {
        gap: 2px; /* ainda mais próximo no mobile */
    }
}


/* V12 - Imagens fictícias padrão e dimensões sugeridas */

/* Hero image */
.hero-illustration {
    margin-bottom: 16px;
}
.hero-main-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    max-height: 360px;
}

/* About image */
.about-photo-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    max-height: 420px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}

/* Galeria */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}


/* V13 - Lightbox da galeria e mapa do orçamento */

.lightbox.hidden {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.lightbox-content {
    position: relative;
    z-index: 9999;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(15,23,42,0.7);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: -40px;
    right: 0;
}

.lightbox-prev {
    left: -40px;
}

.lightbox-next {
    right: -40px;
}

@media (max-width: 600px) {
    .lightbox-prev {
        left: 4px;
    }
    .lightbox-next {
        right: 4px;
    }
    .lightbox-close {
        top: 8px;
        right: 8px;
    }
}

.no-scroll {
    overflow: hidden;
}

/* Mapa na página de orçamento */
.orcamento-map-wrapper {
    margin-top: 16px;
}

.map-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.map-address {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.map-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* V15 - Mapa integrado ao grid de orçamento */
.budget-map-full {
    grid-column: 1 / -1;
}

.orcamento-map-wrapper {
    margin-top: 8px;
}


/* Orçamento - layout inspirado em card + mapa */
.orcamento-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 24px;
}

.orcamento-info-card {
    background: #f9fafb;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.orcamento-info-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.orcamento-info-line {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 6px;
}

.orcamento-info-list {
    margin: 14px 0 18px;
    padding-left: 18px;
    font-size: 0.9rem;
    color: #4b5563;
}

.orcamento-info-list li + li {
    margin-top: 4px;
}

.orcamento-whatsapp-btn {
    margin-top: 6px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding-inline: 24px;
}

.orcamento-map-wrapper {
    margin-top: 24px;
}

.orcamento-form-wrapper {
    margin-top: 34px;
}

.orcamento-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.orcamento-form-subtitle {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .orcamento-top-grid {
        grid-template-columns: 1fr;
    }
    .orcamento-map-wrapper {
        margin-top: 0;
    }
}


/* Layout: garantir que o footer fique sempre no final da tela */
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

.section-title{
    position:relative;
    display:inline-block;
}
.section-title::after{
    content:"";
    display:block;
    height:4px;
    width:54px;
    border-radius:999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    margin-top:10px;
}


/* ===== Admin - Gerenciar Galeria (grid + modal + filtros) ===== */
.admin-filter-bar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin: 8px 0 16px;
}
.admin-filter-form{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-end;
}
.admin-filter-form .field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 180px;
}
.admin-filter-form label{
  font-size: .85rem;
  color: var(--text-muted);
}
.admin-filter-form input{
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 0 12px;
  background: #fff;
  color: var(--text-main);
}
.admin-filter-form .actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;
}

/* garante que <a> com classes de botão não fique sublinhado */
.admin-filter-form .actions a.btn-primary,
.admin-filter-form .actions a.btn-outline,
.admin-filter-form .actions a.btn-ghost {
  text-decoration:none;
}
.admin-filter-meta{
  display:flex;
  gap:16px;
  align-items:center;
  font-size:.9rem;
  color: var(--text-muted);
}

.admin-gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:16px;
  margin-top: 10px;
}

.admin-gallery-card{
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  display:flex;
  flex-direction:column;
  min-height: 260px;
}

.admin-gallery-card .thumb{
  height: 160px;
  background: #f2f4f8;
  overflow:hidden;
}
.admin-gallery-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.admin-gallery-card .card-body{
  padding: 12px 12px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.admin-gallery-card .title{
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.admin-gallery-card .meta{
  font-size: .82rem;
  color: var(--text-muted);
}
.admin-gallery-card .card-actions{
  margin-top:auto;
  display:flex;
  gap:8px;
}
.btn-sm{
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .85rem;
}
.btn-outline{
  background: #fff;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}
.btn-outline:hover{
  border-color: rgba(0,0,0,0.18);
}
.btn-ghost{
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}
.btn-ghost:hover{
  background: rgba(0,0,0,0.03);
}
.is-disabled{
  opacity: .45;
  pointer-events:none;
}

.admin-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin: 18px 0 6px;
}
.admin-pagination .pages{
  display:flex;
  gap:8px;
  align-items:center;
}
.admin-pagination .page{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  text-decoration:none;
  font-size: .9rem;
  background: #fff;
}
.admin-pagination .page.is-active{
  background: var(--accent);
  color:#fff;
  border-color: var(--accent);
  font-weight:700;
}

/* Modal Visualizar */
body.modal-open{ overflow:hidden; }
.cw-modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.65);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 16px;
  z-index: 9999;
}
.cw-modal.open{ display:flex; }
.cw-modal-content{
  width: min(980px, 100%);
  background:#fff;
  border-radius: 18px;
  overflow:hidden;
  position:relative;
  box-shadow: 0 30px 90px rgba(0,0,0,0.4);
}
.cw-modal-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.cw-modal-body{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 18px 14px;
  background: radial-gradient(circle at top left, #1b2335 0%, #ffffff 55%, #f6f7fa 100%);
}
.cw-modal-img{
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
}
.cw-modal-nav{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.cw-modal-footer{
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border-soft);
}
.cw-modal-title{
  font-weight:800;
  color: var(--text-main);
  margin-bottom: 2px;
}
.cw-modal-meta{
  color: var(--text-muted);
  font-size: .9rem;
}

@media (max-width: 600px){
  .admin-filter-form .field{ min-width: 150px; }
  .cw-modal-body{ padding: 12px 10px; }
  .cw-modal-nav{ width: 42px; height: 42px; }
}

/* =========================
   LOGIN (área restrita)
   ========================= */
.login-wrap{
  min-height: calc(100vh - 140px); /* header+footer aproximado */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 16px 60px;
}

.login-card{
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--border-soft, #e6e9f0);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.08);
  padding: 18px 18px 16px;
}

.login-card h1{
  margin: 0 0 6px;
  font-size: 2rem;
  line-height: 1.1;
}

.login-card p{
  margin: 0 0 14px;
  color: #6b7280;
}

.login-form{
  display: grid;
  gap: 12px;
}

.login-field label{
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.login-field input{
  width: 100%;
  display: block;
  height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft, #e6e9f0);
  background: #fff;
  color: #111827;
  outline: none;
}

.login-field input:focus{
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.login-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.login-actions button{
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}

.login-tip{
  margin-top: 10px;
  font-size: 0.92rem;
  color: #6b7280;
}


/* =====================
   Dashboard (Área restrita)
   ===================== */
.dash-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin: 8px 0 18px;
}
.dash-title{margin:0; font-size:1.6rem;}
.dash-sub{margin:6px 0 0; color: var(--text-soft);} 
.dash-actions{display:flex; gap:10px; flex-wrap:wrap;}

.dash-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap:16px;
}
@media (max-width: 900px){
  .dash-grid{grid-template-columns: repeat(2, minmax(220px, 1fr));}
}
@media (max-width: 560px){
  .dash-grid{grid-template-columns: 1fr;}
}

.dash-card{
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(15,23,42,0.10);
}
.dash-card-top{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.dash-card-title{margin:0; font-size:1.05rem;}
.dash-card-count{font-weight:800; font-size:1.1rem; color: var(--accent);} 
.dash-card-desc{margin:10px 0 14px; color:var(--text-soft); font-size:0.92rem;}
.dash-card-actions{display:flex; gap:10px; flex-wrap:wrap;}

.btn.btn-outline{
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}
.btn.btn-outline:hover{
  background: rgba(15, 23, 42, 0.04);
}

/* =========================
   ADMIN (Área restrita)
   ========================= */

.page-wrapper { width: 100%; }
.section-padding { padding: 28px 0 50px; }

.page-header-admin{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.page-header-admin h1{ margin:0; font-size:2rem; }
.page-header-admin p{ margin:6px 0 0; color:#6b7280; }
.link-voltar{ color:#2563eb; text-decoration:none; font-weight:600; }
.link-voltar:hover{ text-decoration:underline; }

.admin-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  box-shadow:0 14px 30px rgba(15,23,42,.08);
  overflow:hidden;
}

.admin-card-header{
  padding:16px 18px;
  border-bottom:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg, rgba(59,130,246,.10), rgba(255,255,255,0));
}
.admin-card-header h2{ margin:0; font-size:1.1rem; }

.admin-card-body{ padding:18px; }

.admin-form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px 16px;
}
.admin-form .form-row{ display:flex; flex-direction:column; gap:6px; }
.admin-form .form-row label{ font-weight:600; color:#111827; font-size:.92rem; }

.admin-form input,
.admin-form textarea{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.14);
  outline:none;
  background:#fff;
  font-size:.95rem;
}
.admin-form textarea{ resize:vertical; min-height:92px; }

.admin-form input:focus,
.admin-form textarea:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow:0 0 0 4px rgba(59,130,246,.18);
}

.admin-form .form-row:last-of-type{
  grid-column: 1 / -1; /* observações ocupa duas colunas */
}

.btn-primary{
  grid-column: 1 / -1;
  justify-self:flex-start;
  background:#1d4ed8;
  color:#fff;
  border:none;
  padding:11px 16px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(29,78,216,.25);
}
.btn-primary:hover{ filter:brightness(1.05); }

.table-responsive{ width:100%; overflow:auto; }
.admin-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
}
.admin-table thead th{
  background:rgba(15,23,42,.04);
  text-align:left;
  padding:12px 12px;
  font-size:.9rem;
  color:#111827;
  border-bottom:1px solid rgba(15,23,42,.10);
  white-space:nowrap;
}
.admin-table tbody td{
  padding:12px 12px;
  border-bottom:1px solid rgba(15,23,42,.08);
  color:#111827;
  vertical-align:top;
}
.admin-table tbody tr:hover{ background:rgba(59,130,246,.06); }
.admin-table tbody tr:last-child td{ border-bottom:none; }

.btn-link{
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  color:#1d4ed8;
  font-weight:700;
  text-decoration:none;
  margin-right:10px;
}
.btn-link:hover{ text-decoration:underline; }
.btn-danger{ color:#dc2626; }

.alert{
  border-radius:14px;
  padding:12px 14px;
  border:1px solid rgba(220,38,38,.25);
  background:rgba(220,38,38,.08);
  color:#7f1d1d;
}

/* Responsivo */
@media (max-width: 840px){
  .page-header-admin{ align-items:flex-start; flex-direction:column; }
  .admin-form{ grid-template-columns:1fr; }
  .btn-primary{ width:100%; text-align:center; }
}

/* Marca do topo (logo + textos) */
.brand{
  display:flex;
  align-items:center;
  gap:10px;              /* <- aproxima texto da logo */
  text-decoration:none;
}

.brand-logo{
  height:44px;           /* ajuste se quiser */
  width:auto;
  display:block;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;      /* deixa mais “colado” */
  margin:0;              /* garante sem afastamento */
  padding:0;
}

.brand-title{
  margin:0;
  padding:0;
}

.brand-subtitle{
  margin:2px 0 0;        /* bem pequeno */
  padding:0;
  opacity:.75;
  font-size:.9rem;
}

.brand,
.brand-text{
  margin-left:0 !important;
}


/* =========================
   FIX: Aproximar texto da logo (Calhas Werner)
   - remove “espaçamento fantasma” causado por largura fixa no wrapper
   ========================= */
.topbar .logo{
  gap: 8px !important; /* ajuste fino: diminui distância entre logo e textos */
}

.topbar .logo-img-wrapper{
  width: auto !important;       /* remove largura fixa que empurrava o texto */
  max-width: none !important;
  max-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.topbar .logo-img{
  height: 44px !important;      /* mantém proporcional e alinhado */
  width: auto !important;
  display: block !important;
}

@media (max-width: 768px){
  .topbar .logo-img{ height: 40px !important; }
}

