/* =========================================================
   v44 - Ajustes mobile e UX fina do site público ObraGo
========================================================= */

:root {
    --public-ux-blue: #2563ff;
    --public-ux-teal: #00c49a;
    --public-ux-dark: #040714;
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: rgba(37, 99, 255, .18);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 255, .34);
    outline-offset: 3px;
}

.navbar .logo img,
.site-brand-symbol {
    max-height: 38px;
    width: auto;
}

.navbar .menu li a {
    white-space: nowrap;
}

/* Cards de planos e seções comerciais com alturas mais equilibradas */
.plan-card,
.plan-card-public,
.pricing-card,
.venda-plan-card,
.benefit-card,
.feature-card,
.service-card,
.card {
    min-width: 0;
}

.plan-card,
.plan-card-public,
.pricing-card,
.venda-plan-card {
    display: flex;
    flex-direction: column;
}

.plan-card .plan-button,
.plan-card-public .plan-button,
.pricing-card .plan-button,
.venda-plan-card .plan-button,
.plan-card .btn,
.plan-card-public .btn,
.pricing-card .btn,
.venda-plan-card .btn {
    margin-top: auto;
}

/* Evita estouro de textos comerciais longos */
.hero-title,
.venda-hero h1,
.top .top-content .text-2,
.page-title,
.services .title,
.premium .title,
.about .title,
.contact .title,
.plans .title {
    overflow-wrap: anywhere;
}

@media (max-width: 947px) {
    .navbar {
        padding: 12px 0;
    }

    .navbar .max-width {
        padding-left: 18px;
        padding-right: 18px;
    }

    .navbar .menu {
        border-left: 1px solid rgba(255, 255, 255, .08);
        box-shadow: -20px 0 60px rgba(0, 0, 0, .42);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar .menu li a {
        font-size: 17px;
        padding: 12px 18px;
        border-radius: 10px;
    }

    .top,
    .hero-carousel,
    .hero-slide {
        min-height: 660px;
    }

    .top-content {
        max-width: 100%;
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .top .top-content .text-2 {
        font-size: clamp(34px, 8vw, 48px);
    }

    .top .top-content .text-3,
    .hero-subtitle,
    .venda-hero p {
        font-size: 16px;
    }

    section {
        padding: 72px 0;
    }

    .max-width {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cadastro-grid,
    .cadastro-contato-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .cadastro-plan-card {
        position: static;
    }
}

@media (max-width: 690px) {
    .services .title,
    .premium .title,
    .about .title,
    .contact .title,
    .plans .title,
    .page-title {
        font-size: 30px;
        margin-bottom: 34px;
    }

    .form-row,
    .cadastro-form-box .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .cadastro-form-card,
    .cadastro-plan-card,
    .cadastro-mini-plano,
    .contact-card,
    .plan-card,
    .plan-card-public,
    .pricing-card,
    .venda-plan-card {
        border-radius: 16px;
        padding: 22px !important;
    }

    .cadastro-page,
    .cadastro-page.cadastro-contato-style {
        padding-top: 105px;
    }

    .plan-button,
    .cadastro-button,
    .hero-cta,
    .btn-primary-site,
    .btn-outline-site {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    footer {
        padding-left: 18px;
        padding-right: 18px;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .navbar .logo a {
        font-size: 25px;
    }

    .top,
    .hero-carousel,
    .hero-slide {
        min-height: 700px;
        height: auto;
    }

    .hero-slide {
        background-attachment: scroll;
    }

    .top .top-content .text-1 {
        letter-spacing: 1.8px;
        font-size: 12px;
    }

    .top .top-content .text-2 {
        font-size: 32px;
    }

    .top .top-content a,
    .top .top-content .btn,
    .hero-buttons a,
    .venda-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-buttons,
    .venda-actions,
    .cta-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* =========================================================
   v45 - Correção da marca pública no header
   Mantém ícone e nome ObraGo lado a lado, sem empilhar.
========================================================= */
.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.navbar .logo a.site-brand,
.navbar .logo > a.site-brand {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: auto !important;
    max-width: none !important;
    text-align: left !important;
    line-height: 1 !important;
}

.navbar .logo a.site-brand .site-brand-symbol,
.navbar .logo a.site-brand img.site-brand-symbol {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    min-width: 38px !important;
    display: block !important;
    object-fit: contain !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
}

.navbar .logo a.site-brand .site-brand-word {
    display: inline-block !important;
    white-space: nowrap !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -0.9px !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.navbar .logo a.site-brand .site-brand-word span {
    background: linear-gradient(135deg, #2563ff 0%, #0ea5e9 45%, #10b981 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.navbar .menu {
    margin-left: auto;
}

@media (max-width: 947px) {
    .navbar .logo a.site-brand .site-brand-symbol,
    .navbar .logo a.site-brand img.site-brand-symbol {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        min-width: 34px !important;
        flex-basis: 34px !important;
    }

    .navbar .logo a.site-brand .site-brand-word {
        font-size: 24px !important;
    }
}

@media (max-width: 420px) {
    .navbar .logo a.site-brand .site-brand-symbol,
    .navbar .logo a.site-brand img.site-brand-symbol {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
        min-width: 30px !important;
        flex-basis: 30px !important;
    }

    .navbar .logo a.site-brand .site-brand-word {
        font-size: 22px !important;
    }
}
