/* =========================================================================
   Itapoã Parque — base.css
   Variáveis de marca, reset, tipografia, container, componentes comuns
   (botões, cards, eyebrow), header/nav e footer. Mobile-first.
   ========================================================================= */

:root {
    /* Marca */
    --azul: #021F4B;
    --azul-2: #0A2E66;
    --laranja: #FF5E10;
    --laranja-2: #EA5410;

    /* Texto / neutros */
    --tinta: #1F2937;
    --tinta-2: #3C4655;
    --cinza: #5B6573;
    --cinza-2: #8893A4;
    --cinza-3: #94A0B0;

    /* Superfícies / linhas */
    --branco: #fff;
    --fundo: #F5F6F8;
    --linha: #E7ECF3;
    --linha-2: #ECEFF3;
    --campo: #D9DFE8;

    /* Apoio */
    --whats: #1FA855;
    --whats-2: #1B9A4D;
    --ok: #0E7C3A;

    /* Layout */
    --container: 1180px;
    --pad-x: 22px;
    --nav-h: 70px;
    --raio: 14px;
    --raio-sm: 11px;
    --raio-lg: 22px;

    --sombra-cta: 0 8px 18px rgba(255, 94, 16, .3);
    --transicao: .18s ease;
}

/* ----- Reset ----- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
/* o atributo hidden sempre esconde, mesmo sobre componentes com display:flex */
[hidden] { display: none !important; }

body {
    font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--tinta);
    background: var(--branco);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--laranja); color: #fff; }

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.1; color: var(--azul); }

/* ----- Layout helpers ----- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

.secao { padding-top: clamp(54px, 8vw, 96px); padding-bottom: clamp(54px, 8vw, 96px); }
.secao--clara { background: var(--fundo); }
.secao--azul { background: var(--azul); color: #fff; }

.eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--laranja);
}

.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Página "Em manutenção" (standalone) */
.manut-body { min-height: 100vh; background: var(--fundo); display: flex; align-items: center; justify-content: center; padding: 24px; }
.manut { max-width: 440px; text-align: center; }
.manut__logo { height: 34px; width: auto; margin: 0 auto 28px; display: block; }
.manut__ic { width: 72px; height: 72px; border-radius: 20px; background: rgba(2, 31, 75, .07); color: var(--azul); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.manut h1 { font-size: clamp(24px, 5vw, 32px); font-weight: 800; margin: 0 0 12px; }
.manut p { font-size: clamp(15px, 2vw, 17px); line-height: 1.55; color: var(--cinza); margin: 0 0 8px; }
.manut__contato { margin-top: 20px; font-size: 14px; color: var(--cinza-2); }
.manut__contato a { color: var(--laranja); font-weight: 600; text-decoration: none; }

/* Página 404 */
.erro-404 { text-align: center; }
.erro-404__inner { max-width: 560px; margin: 0 auto; }
.erro-404__code { font-size: clamp(72px, 16vw, 132px); font-weight: 800; line-height: 1; color: var(--laranja); letter-spacing: -.04em; }
.erro-404 h1 { margin: 6px 0 12px; font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
.erro-404 p { margin: 0; font-size: clamp(16px, 1.9vw, 18px); line-height: 1.55; color: var(--cinza); }
.erro-404__acoes { justify-content: center; }

/* Ajuda "esqueci senha" no login (tela do portal — redesign na fase seguinte) */
.login-ajuda { margin-top: 22px; font-size: 14.5px; line-height: 1.6; color: var(--cinza); }
.login-ajuda a { color: var(--laranja); font-weight: 600; text-decoration: none; }
.login-ajuda a:hover { text-decoration: underline; }

/* Ícones SVG inline — wrapper com tamanho fixo */
.ic { display: inline-flex; flex: none; line-height: 0; }
.ic svg { display: block; }
.ic--14 { width: 14px; height: 14px; }
.ic--16 { width: 16px; height: 16px; }
.ic--18 { width: 18px; height: 18px; }
.ic--20 { width: 20px; height: 20px; }
.ic--22 { width: 22px; height: 22px; }
.ic--24 { width: 24px; height: 24px; }
.ic--26 { width: 26px; height: 26px; }
.ic--30 { width: 30px; height: 30px; }
.ic--34 { width: 34px; height: 34px; }

/* alvos de toque ≥44px garantidos nos componentes interativos */

/* ----- Botões ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 54px;
    padding: 0 24px;
    border: none;
    border-radius: var(--raio);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transicao), box-shadow var(--transicao), transform var(--transicao);
}
.btn svg { flex: none; }

.btn--primario { background: var(--laranja); color: #fff; box-shadow: var(--sombra-cta); }
.btn--primario:hover { background: var(--laranja-2); }

.btn--secundario { background: var(--fundo); border: 1px solid var(--linha); color: var(--azul); }
.btn--secundario:hover { background: #EEF1F5; }

.btn--portal { background: var(--azul); color: #fff; }
.btn--portal:hover { background: var(--azul-2); }

.btn--bloco { width: 100%; }

.btn--lg { height: 56px; padding: 0 26px; font-size: 16.5px; }
.btn--ghost {
    background: rgba(255, 255, 255, .1);
    border: 1.5px solid rgba(255, 255, 255, .55);
    color: #fff;
    backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.btn--branco { background: #fff; color: var(--azul); box-shadow: none; }
.btn--branco:hover { background: #EEF1F5; }

/* ----- Cards ----- */
.card {
    background: var(--branco);
    border: 1px solid var(--linha);
    border-radius: var(--raio-lg);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(2, 31, 75, .04);
    transition: box-shadow var(--transicao);
}
.card:hover { box-shadow: 0 16px 36px rgba(2, 31, 75, .1); }
.card__corpo { padding: 20px; }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--linha-2);
}
.site-header__bar {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo placeholder (wordmark) — trocar por <img> da logo real depois */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.01em;
    color: var(--azul);
    white-space: nowrap;
    flex: none;
}
.brand__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--laranja); }
.brand--branca { color: #fff; }
/* flex:none + max-width:none impedem o flex de esmagar a logo (override do img{max-width:100%}). */
.brand-logo { height: calc(var(--nav-h) - 16px); width: auto; max-width: none; flex: none; display: block; }
.footer-logo { height: 50px; width: auto; display: block; margin-bottom: 16px; }
.footer-credito__chip { background: #fff; border-radius: 7px; padding: 6px 10px; display: inline-flex; }
.footer-credito__chip img { height: 34px; width: auto; display: block; }

.nav-links { display: none; align-items: center; gap: 30px; }
.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--tinta);
    text-decoration: none;
    transition: color var(--transicao);
}
.nav-links a:hover { color: var(--laranja); }
.nav-links a.is-active { color: var(--laranja); }

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

.btn-portal-top {
    display: none; /* escondido no mobile (o portal está no drawer); mostra no desktop */
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: var(--raio-sm);
    background: var(--azul);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transicao);
}
.btn-portal-top:hover { background: var(--azul-2); }

.nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #E2E8F1;
    border-radius: var(--raio-sm);
    background: #fff;
    color: var(--azul);
    cursor: pointer;
}

/* Menu mobile: backdrop (glassmorphism) + drawer lateral que desliza da direita */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(2, 12, 30, .42);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 61;
    display: flex;
    flex-direction: column;
    width: min(320px, 84vw);
    height: 100vh;
    height: 100dvh;
    padding: 12px 22px 26px;
    background: #fff;
    box-shadow: -24px 0 60px rgba(2, 31, 75, .22);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); margin-bottom: 6px; }
.nav-drawer__logo { height: 34px; width: auto; display: block; }
.nav-drawer__close {
    width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--linha-2); background: #fff; color: var(--azul);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background var(--transicao);
}
.nav-drawer__close:hover { background: var(--fundo); }
.nav-drawer__links { display: flex; flex-direction: column; }
.nav-drawer__links a {
    padding: 15px 4px;
    font-size: 17px;
    font-weight: 600;
    color: var(--tinta);
    text-decoration: none;
    border-bottom: 1px solid var(--linha-2);
}
.nav-drawer__links a.is-active { color: var(--laranja); }
.nav-drawer__links a.nav-drawer__portal {
    margin-top: 16px;
    height: 50px;
    border: none;
    border-radius: 13px;
    background: var(--azul);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--transicao);
}
.nav-drawer__links a.nav-drawer__portal:hover { background: var(--azul-2); color: #fff; }

body.nav-aberto { overflow: hidden; }

@media (min-width: 880px) {
    .nav-links { display: flex; }
    .btn-portal-top { display: inline-flex; }
    .nav-hamburger { display: none; }
    .nav-backdrop, .nav-drawer { display: none; }
}

/* =========================================================================
   HERO simples de página (Contato, Política, 404) + pill reutilizável
   ========================================================================= */
.hero-pg { background: var(--azul); color: #fff; }
.hero-pg__inner { padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 56px); }
.hero-pg__head { max-width: 720px; }
.hero-pg h1 { margin: 0 0 14px; font-size: clamp(30px, 5vw, 52px); line-height: 1.06; font-weight: 800; color: #fff; text-wrap: balance; }
.hero-pg__sub { margin: 0; font-size: clamp(16px, 2.1vw, 20px); line-height: 1.5; color: rgba(255, 255, 255, .82); text-wrap: pretty; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 13px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    margin-bottom: 18px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--laranja); }

/* =========================================================================
   Canais diretos (WhatsApp / telefone / e-mail) — compartilhado
   ========================================================================= */
.canais { display: flex; flex-direction: column; gap: 12px; }
.canal { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-radius: 15px; text-decoration: none; transition: background var(--transicao); }
.canal__rotulo { display: block; font-size: 12.5px; font-weight: 600; }
.canal__valor { display: block; font-size: 16px; font-weight: 700; word-break: break-word; }
.canal--whats { background: var(--whats); color: #fff; box-shadow: 0 8px 18px rgba(31, 168, 85, .26); }
.canal--whats:hover { background: var(--whats-2); }
.canal--whats .canal__rotulo { opacity: .85; }
.canal--neutro { background: var(--fundo); border: 1px solid var(--linha); color: var(--azul); }
.canal--neutro:hover { background: #EEF1F5; }
.canal--neutro .canal__rotulo { color: var(--cinza-2); }
.canal__ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(2, 31, 75, .07); display: flex; align-items: center; justify-content: center; flex: none; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--azul); color: #fff; }
.site-footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 34px 24px;
    padding-top: clamp(46px, 6vw, 64px);
}
.site-footer p { color: rgba(255, 255, 255, .62); }

.footer-col__titulo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
    font-size: 15px;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    transition: color var(--transicao);
}
.footer-links a:hover { color: var(--laranja); }

.footer-portal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 18px;
    border-radius: var(--raio-sm);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transicao);
}
.footer-portal:hover { background: rgba(255, 255, 255, .2); }

.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    transition: background var(--transicao);
}
.footer-social a:hover { background: rgba(255, 255, 255, .2); }

.site-footer__bottom {
    margin-top: 40px;
    padding-top: 24px;
    padding-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-legais { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.footer-legais span { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.footer-legais a {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-weight: 600;
}
.footer-legais a:hover { color: var(--laranja); }

.footer-credito { display: flex; align-items: center; gap: 9px; }
.footer-credito span { font-size: 11px; color: rgba(255, 255, 255, .45); }
.footer-credito strong { font-size: 12.5px; color: rgba(255, 255, 255, .8); font-weight: 700; }

/* endereço do empreendimento (coluna de contato) */
.footer-endereco { margin: 12px 0 0; font-style: normal; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .62); }

/* assinatura discreta 180º Soluções (linha final) */
.footer-assinatura { margin-top: 16px; padding-bottom: 30px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .4); }
.footer-assinatura a { color: rgba(255, 255, 255, .62); text-decoration: none; font-weight: 600; }
.footer-assinatura a:hover { color: var(--laranja); }

/* placeholder visível para conteúdo/dados ainda não confirmados */
.placeholder-aviso {
    display: inline-block;
    background: #FFF3CD;
    color: #7A5B00;
    border: 1px dashed #E0B400;
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 12px;
    font-weight: 600;
}
