/* Inner pages — estrutura tipo Darwin (perfil / vertical), stack B2B SmartBot */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.inner-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background: var(--background-color);
    min-height: 100vh;
}

/* Só páginas com header fixo da home (evita deslocar segmentos com inner-header) */
body.inner-page:has(> .main-header) > main {
    padding-top: clamp(7.5rem, 9vw + 3rem, 10.5rem);
}

.inner-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.inner-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.inner-header .logo {
    font-size: 1.25rem;
    font-weight: 700;
}

.inner-header .logo span {
    color: var(--primary-color);
}

.inner-header .logo.logo--brand {
    display: inline-flex;
    align-items: center;
    font-size: unset;
    font-weight: unset;
    text-decoration: none;
}

.inner-header .logo.logo--brand .site-logo--header,
.inner-header .logo.logo--brand .site-logo {
    display: block;
    max-height: 2.1rem;
    width: auto;
    height: auto;
}

.inner-header nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.inner-header a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.inner-header a:hover {
    color: var(--primary-color);
}

.inner-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

body.inner-page:has(> .main-header) .inner-hero {
    padding-top: 1rem;
}

.inner-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

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

.worker-visual {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--card-background), var(--background-color));
    border: 1px solid rgba(var(--primary-color-rgb, 0, 113, 227), 0.12);
    min-height: 0;
    aspect-ratio: 3 / 4;
    max-height: min(400px, 62vh);
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: block;
    padding: 0;
    position: relative;
}

.worker-visual-avatar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(135deg, #5b6cf0 0%, #3942b8 100%);
}

.worker-visual-avatar--photo {
    padding: 0;
    font-size: unset;
    font-weight: unset;
    color: inherit;
    background: none;
    z-index: 0;
}

.worker-visual-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 900px) {
    .worker-visual {
        max-height: min(360px, 55vh);
        max-width: 280px;
    }
}

.worker-visual-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2.1rem 1.15rem 1.15rem;
    text-align: left;
    pointer-events: none;
    /* Faixa inferior azulada + leitura do texto (ref. cartão Maia) */
    background: linear-gradient(
        to top,
        rgba(6, 32, 72, 0.96) 0%,
        rgba(14, 56, 112, 0.62) 38%,
        rgba(20, 70, 130, 0.22) 62%,
        rgba(20, 70, 130, 0) 100%
    );
}

.worker-visual-name {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.worker-visual-role {
    margin: 0.3rem 0 0;
    font-size: clamp(0.82rem, 2.2vw, 0.95rem);
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.worker-intro-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 2rem 2rem 2.25rem;
    border: 1px solid rgba(var(--primary-color-rgb, 0, 113, 227), 0.12);
}

.worker-intro-card h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.worker-intro-card h1 .accent {
    color: var(--primary-color);
}

.worker-intro-card .lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--secondary-color);
    margin: 0 0 1.5rem;
}

.worker-tagline {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 0 0 0.65rem;
}

.worker-intro-card .btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.metric-strip {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .metric-strip {
        grid-template-columns: 1fr;
    }
}

.metric-box {
    border-radius: 16px;
    padding: 1.5rem;
    background: var(--card-background);
    border: 1px solid rgba(var(--primary-color-rgb, 0, 113, 227), 0.1);
    text-align: center;
}

.metric-box .num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.metric-box .label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.inner-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.inner-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.inner-section p {
    color: var(--secondary-color);
    line-height: 1.65;
    margin: 0 0 1rem;
}

.how-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.how-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.how-item p {
    margin: 0;
    font-size: 0.95rem;
}

.personality-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px dashed rgba(var(--primary-color-rgb, 0, 113, 227), 0.25);
    background: rgba(var(--primary-color-rgb, 0, 113, 227), 0.04);
}

.personality-box h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.related-strip {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    border-top: 1px solid rgba(var(--primary-color-rgb, 0, 113, 227), 0.1);
}

.related-strip h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    text-align: center;
}

.related-grid {
    display: grid;
    /* auto-fill deixa colunas vazias a “comer” espaço com 1fr → bloco deslocado à esquerda */
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 1rem;
    justify-content: center;
}

.related-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    max-height: 300px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-color-rgb, 0, 113, 227), 0.18);
    background: var(--card-background);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.related-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.related-card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.related-card:hover .related-card-media {
    transform: scale(1.05);
}

.related-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(5, 28, 58, 0.94) 0%,
        rgba(12, 52, 98, 0.55) 45%,
        rgba(24, 80, 140, 0.18) 68%,
        transparent 100%
    );
}

.related-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0.95rem 0.8rem 0.8rem;
    text-align: left;
}

.related-card-name {
    display: block;
    margin: 0 0 0.2rem;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.related-card-role {
    display: block;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Fotos por destino (paths relativos a este ficheiro em /css/) */
.related-card[href$='maia.html'] .related-card-media {
    background-image: url('../images/Maia.png');
}

.related-card[href$='clara.html'] .related-card-media {
    background-image: url('../images/Clara.png');
}

.related-card[href$='rafael.html'] .related-card-media {
    background-image: url('../images/Rafael.png');
}

.related-card[href$='moia.html'] .related-card-media {
    background-image: url('../images/Moia.png');
}

.related-card[href$='lucas.html'] .related-card-media {
    background-image: url('../images/Lucas.png');
}

.related-card[href$='sofia.html'] .related-card-media {
    background-image: url('../images/Sofia.png');
}

/* Imagens da faixa “Outros segmentos” (href relativo em segmentos/*.html) */
.related-card[href$='advocacia.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='automotivo.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='academia.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='clinicas.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='delivery.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1770509634681-be8be680968a?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='educacao.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='estetica.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1596462502278-27bfdc403348?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='food.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='imobiliaria.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='pet-shop.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='restaurante.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='seguros.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='servicos.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=900&q=80');
}

.related-card[href$='suporte.html'] .related-card-media {
    background-image: url('https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=900&q=80');
}

/* Industry vertical */
.vertical-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2rem;
}

.vertical-hero-segment {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.vertical-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.vertical-hero .sub {
    font-size: 1.125rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.vertical-blocks {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.vertical-block h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.vertical-block p {
    margin: 0;
    color: var(--secondary-color);
    line-height: 1.65;
}

.inner-footer {
    padding: 2rem 1.5rem;
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.875rem;
    text-align: center;
}

.inner-footer a {
    color: var(--primary-color);
}

/* Standalone login (login.html) */
.login-page {
    padding: 3rem 1rem 4rem;
}

.login-page-inner {
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem 1.75rem;
    border-radius: var(--srs-radius-md, 14px);
    border: 1px solid rgba(var(--primary-color-rgb, 0, 113, 227), 0.18);
    background: var(--card-background);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.login-card h1 {
    margin: 0 0 1.25rem;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.login-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.login-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--primary-color-rgb, 0, 113, 227), 0.22);
    background: var(--background-color);
    color: var(--text-color);
}

.login-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 0, 113, 227), 0.2);
}

.login-submit {
    width: 100%;
    margin-top: 0.25rem;
}

.login-feedback {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-align: center;
}

.login-feedback--error {
    color: #b42318;
}

.login-forgot-wrap {
    margin: 0.75rem 0 0;
    text-align: center;
}

.login-forgot-btn {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-forgot-btn:hover {
    opacity: 0.88;
}

.login-back {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.9rem;
}

.login-back-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.login-back-link:hover {
    text-decoration: underline;
}

/* Password reset modal (login.html) */
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.login-modal--open {
    display: flex;
}

.login-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.login-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: auto;
    padding: 1.25rem 1.5rem 1.5rem;
    border-radius: var(--srs-radius-md, 14px);
    border: 1px solid rgba(var(--primary-color-rgb, 0, 113, 227), 0.18);
    background: var(--card-background);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.login-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.login-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

.login-modal-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    margin: -0.25rem -0.35rem 0 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--secondary-color);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.login-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-color);
}

.login-modal-body .login-submit {
    margin-top: 0.25rem;
}

.login-modal-success {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary-color);
}

/* Legal pages: prose stays inside the same horizontal band as header .container */
body.legal-doc-page main.legal-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.legal-doc-page main.legal-page > .container.legal-page-inner {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 4rem;
    box-sizing: border-box;
}

/* Global styles.css uses hero-sized h1/h2; legal snippets need document typography */
body.legal-doc-page .legal-page-body h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

body.legal-doc-page .legal-page-body h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.75rem 0 0.6rem;
    line-height: 1.35;
}

body.legal-doc-page .legal-page-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.35rem 0 0.45rem;
}

body.legal-doc-page .legal-page-body p,
body.legal-doc-page .legal-page-body li {
    font-size: 1rem;
}

body.legal-doc-page .legal-page-body ul {
    list-style: disc;
    padding-left: 1.25rem;
}

body.legal-doc-page .legal-page-body address {
    font-style: normal;
}

body.legal-doc-page .legal-page-body,
body.legal-doc-page .legal-page-body .terms-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.legal-page-header {
    min-width: 0;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .legal-page-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.legal-page-header h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.65rem, 3.2vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-color);
}

.legal-page-meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.legal-page-meta-sep {
    opacity: 0.5;
    user-select: none;
}

.legal-back-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.legal-back-link:hover {
    text-decoration: underline;
}

.legal-page-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.legal-page-body h2 {
    margin: 2rem 0 0.65rem;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.legal-page-body h2:first-child {
    margin-top: 0;
}

.legal-page-body h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.legal-page-body p {
    margin: 0 0 1rem;
}

.legal-page-body ul,
.legal-page-body ol {
    margin: 0 0 1rem 1.15rem;
    padding: 0;
}

.legal-page-body li {
    margin-bottom: 0.4rem;
}

.legal-page-body a {
    color: var(--primary-color);
}

.legal-page-body strong {
    font-weight: 600;
    color: var(--text-color);
}
