/* ==========================================================================
   PARO Engenharia & Consultoria — Folha de estilo única
   Carregada uma vez e cacheada (ver .htaccess). Substitui todo CSS inline.
   Ordem: tokens > reset > base > layout > header > footer > componentes >
          páginas > utilitários > responsivo.
   Identidade: slate/corporate (#0f172a) · títulos Montserrat · corpo Inter.
   ========================================================================== */

/* Fontes locais: elimina a dependência crítica de fonts.googleapis.com. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-variable.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700 800;
    font-display: swap;
    src: url('/assets/fonts/montserrat-latin-variable.woff2') format('woff2');
}

/* --------------------------------------------------------- Tokens (design) */
:root {
    --corporate-900: #0f172a;
    --corporate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    --white: #ffffff;

    --success: #2e7d32;
    --danger:  #ef4444;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-max: 1280px;
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-lg: 0.5rem;
    --header-h: 5rem;
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ------------------------------------------------------------------ Base */
body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    color: var(--slate-900);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Acessibilidade */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--corporate-900); color: var(--white);
    padding: 0.75rem 1rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--corporate-900); outline-offset: 2px; }

/* ---------------------------------------------------------------- Layout */
.container-global {
    width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1rem;
}
@media (min-width: 640px)  { .container-global { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-global { padding: 0 2rem; } }
.header-spacer { padding-top: var(--header-h); }

/* ---------------------------------------------------------------- Header */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-100);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center; height: var(--header-h);
}
.header-logo img { height: 3rem; width: auto; display: block; }
.nav-desktop { display: none; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-link {
    color: var(--slate-600); font-size: 0.875rem; font-weight: 500;
    text-decoration: none; transition: color 0.2s ease;
}
.nav-link:hover { color: var(--corporate-900); }
.nav-cta {
    background-color: var(--corporate-900); color: var(--white);
    padding: 0.625rem 1.25rem; border-radius: var(--radius);
    font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: background-color 0.2s ease;
}
.nav-cta:hover { background-color: var(--corporate-800); }
.nav-mobile-btn {
    display: block; background: none; border: none; color: var(--slate-600); cursor: pointer; padding: 0.5rem;
}
@media (min-width: 768px) { .nav-mobile-btn { display: none; } }
.nav-mobile-btn svg { width: 24px; height: 24px; }
.nav-mobile-menu {
    display: none; padding: 1rem 0; border-top: 1px solid var(--slate-100); background-color: var(--white);
}
.nav-mobile-menu.is-open { display: block; }
.mobile-link {
    display: block; padding: 0.75rem 1rem; color: var(--slate-700);
    font-weight: 500; text-decoration: none; border-radius: var(--radius);
}
.mobile-link:hover { background-color: var(--slate-50); }
.mobile-sub-title {
    display: block; padding: 0.75rem 1rem 0.25rem; font-size: 0.75rem; font-weight: 600;
    color: var(--slate-400); text-transform: uppercase; letter-spacing: 0.05em;
    margin-top: 0.5rem; border-top: 1px solid var(--slate-100);
}
.mobile-sub-link {
    display: block; padding: 0.5rem 1.5rem; color: var(--slate-600);
    font-size: 0.875rem; font-weight: 500; text-decoration: none; border-radius: var(--radius);
}
.mobile-sub-link:hover { background-color: var(--slate-50); }

/* ---------------------------------------------------------------- Footer */
.site-footer {
    background-color: var(--corporate-900); color: var(--slate-300);
    border-top: 1px solid var(--slate-800); margin-top: auto;
    padding-top: 4rem; padding-bottom: 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-logo { display: block; margin-bottom: 1.5rem; }
.footer-logo img { height: 3rem; width: auto; opacity: 0.9; transition: opacity 0.2s ease; }
.footer-logo img:hover { opacity: 1; }
.footer-desc { font-size: 0.875rem; color: var(--slate-400); line-height: 1.625; margin-bottom: 1.5rem; }
.footer-title {
    color: var(--white); font-size: 0.875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link { color: var(--slate-300); text-decoration: none; font-size: 0.875rem; transition: color 0.2s ease; }
.footer-link:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.footer-contact-icon { width: 1.25rem; height: 1.25rem; color: var(--slate-400); flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid var(--slate-800); padding-top: 2rem;
    display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-copy { font-size: 0.875rem; color: var(--slate-400); }
.footer-dev { font-size: 0.75rem; color: var(--slate-500); }

/* ------------------------------------------------------------------ Botões */
.btn {
    display: inline-block; padding: 1rem 2rem; font-weight: 700; text-decoration: none;
    border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--corporate-900); color: var(--white); }
.btn-primary:hover { background: var(--corporate-800); }
.btn-light { background: var(--white); color: var(--corporate-900); }
.btn-light:hover { background: var(--slate-100); }
.btn-block { width: 100%; text-align: center; }

/* -------------------------------------------------------- Componente: Hero */
.hero { position: relative; background-color: var(--slate-900); color: var(--white); overflow: hidden; }
.hero--home { padding: 6rem 0; }
.hero--page { padding: 4rem 0; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 10;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.5));
}
.hero--page .hero-overlay { background: linear-gradient(to right, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.58)); }
.hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; opacity: 0.4;
}
.hero--page .hero-img { opacity: 0.55; mix-blend-mode: normal; }
.hero-content { position: relative; z-index: 20; }
.hero--home .hero-content { max-width: 48rem; }
.hero-title { font-weight: 800; font-size: 2.5rem; margin-bottom: 1.5rem; }
.hero--page .hero-title { font-size: 1.875rem; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
@media (min-width: 768px) {
    .hero--home .hero-title { font-size: 3.75rem; }
    .hero--page .hero-title { font-size: 2.25rem; }
}
.hero-subtitle { color: var(--slate-400); font-size: 1.125rem; margin-bottom: 2rem; }
.hero--page .hero-subtitle { font-size: 0.875rem; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ------------------------------------------------- Seções genéricas de página */
.section { padding: 5rem 0; }
.section--surface { background-color: var(--slate-50); }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 3rem; }
.section-lead { color: var(--slate-600); max-width: 42rem; margin: 0 auto 3rem; text-align: center; }

/* -------------------------------------------------------- Componente: Cards */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card {
    background: var(--white); padding: 2rem; border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200); display: flex; flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1); transform: translateY(-2px); }
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.service-card p { color: var(--slate-600); font-size: 0.9375rem; margin-bottom: 1.5rem; flex-grow: 1; }
.service-card .service-proof { color: var(--corporate-800); font-size: 0.8125rem; font-weight: 600; border-top: 1px solid var(--slate-100); padding-top: 1rem; margin-top: auto; margin-bottom: 1rem; }
.service-link { font-weight: 700; color: var(--corporate-900); text-decoration: none; }
.service-link:hover { text-decoration: underline; }

/* ---------------------------------------------------- Componente: Breadcrumb */
.breadcrumb { font-size: 0.8125rem; color: var(--slate-500); padding: 1rem 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb a { color: var(--slate-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--corporate-900); text-decoration: underline; }
.breadcrumb li[aria-current] { color: var(--slate-900); font-weight: 600; }

/* ---------------------------------------------------- Componente: Formulário */
.form-container { max-width: 800px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--slate-700); margin-bottom: 0.375rem; }
.form-control {
    width: 100%; padding: 0.75rem; font: inherit; color: var(--slate-900);
    border: 1px solid var(--slate-300); border-radius: var(--radius-sm); background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--corporate-900); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1); }
textarea.form-control { resize: vertical; min-height: 8rem; }
.form-feedback { text-align: center; padding: 6rem 1rem; }
.form-feedback h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.form-feedback.is-error h2 { color: var(--danger); }
.form-alert { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: 0.875rem; }
.form-consent { color: var(--slate-600); font-size: 0.8125rem; line-height: 1.5; }
.form-consent input { margin-right: 0.35rem; }
.form-consent a { color: var(--corporate-900); font-weight: 600; }

/* ------------------------------------------------ Página de conteúdo (serviços) */
.page-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .page-grid { grid-template-columns: 2fr 1fr; } }
@media (min-width: 1024px) { .page-grid--contact { grid-template-columns: 1fr 2fr; } }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.prose p { color: var(--slate-600); margin-bottom: 1rem; }
.prose ul { color: var(--slate-600); padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }
.aside-card { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 1.5rem; }
.aside-card h3 { font-size: 1.125rem; margin-bottom: 1rem; }

/* --------------------------------------------------------------- Utilitários */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* -------------------------------------------------------- Componente: FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--slate-200); border-radius: var(--radius); margin-bottom: 0.75rem; background: var(--white); }
.faq-q {
    cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--slate-900);
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--slate-400); flex-shrink: 0; }
.faq-item[open] .faq-q::after { content: '\2212'; }
.faq-a { padding: 0 1.25rem 1.25rem; color: var(--slate-600); font-size: 0.9375rem; }

/* -------------------------------------------------- Componente: Portfólio */
.case-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
.case-card { border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 1.75rem; background: var(--white); }
.case-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-bottom: 0.5rem; }
.case-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.case-card p { color: var(--slate-600); font-size: 0.9375rem; margin-bottom: 0.5rem; }
.case-result { border-top: 1px solid var(--slate-100); margin-top: 0.75rem; padding-top: 0.75rem; font-weight: 600; color: var(--slate-900); font-size: 0.9375rem; }

/* --------------------------------------------------- Bloco de autoria (EEAT) */
.author-box { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 1.75rem; }
.author-box .author-meta { flex: 1; min-width: 240px; }
.author-box h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.author-box .author-role { color: var(--slate-500); font-size: 0.9rem; margin-bottom: 0.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--corporate-900); }
.stat-label { color: var(--slate-500); font-size: 0.875rem; }

/* ----------------------------------------------- Componente: Imagem tratada */
.media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.media img { width: 100%; height: auto; display: block; object-fit: cover; }
/* Body images retain restrained color without an overlay. */
.media--content { margin: 2rem 0; }
.media--content img { aspect-ratio: 2.1 / 1; filter: saturate(0.88) contrast(1.03); }
/* Preto e branco (duotone slate) — mantém o visual sóbrio da marca */
.media--duotone img { filter: grayscale(100%) contrast(1.05); transition: filter 0.4s ease; }
.media--duotone:hover img { filter: grayscale(60%) contrast(1.05); }
/* Camada escura por cima (para texto sobreposto ou coesão visual) */
.media--overlay::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.55), rgba(15,23,42,0.15));
}
.media-caption { font-size: 0.8125rem; color: var(--slate-500); margin-top: 0.5rem; text-align: center; }
/* Faixa de imagem de contexto entre seções (fundo + conteúdo opcional) */
.media-band { position: relative; min-height: 260px; display: flex; align-items: center; overflow: hidden; border-radius: var(--radius-lg); }
.media-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); z-index: 0; }
.media-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,23,42,0.92), rgba(15,23,42,0.55)); z-index: 1; }
.media-band .media-band-content { position: relative; z-index: 2; color: var(--white); padding: 2rem; max-width: 40rem; }
.media-band .media-band-content h2, .media-band .media-band-content h3 { color: var(--white); }

/* Imagem no topo dos cards de portfólio (bleed + P&B) */
.case-card { overflow: hidden; }
.case-media { margin: -1.75rem -1.75rem 1.25rem; background: var(--slate-100); }
.case-media img { width: 100%; height: 170px; object-fit: cover; filter: grayscale(100%); display: block; }

/* ---------------------------------------------------------- Página inicial */
.credential-strip { background: var(--corporate-900); color: var(--white); }
.credential-grid { display: grid; grid-template-columns: 1fr; }
.credential-grid > div { padding: 1.25rem 0; border-bottom: 1px solid var(--slate-700); }
.credential-grid > div:last-child { border-bottom: 0; }
.credential-grid strong, .credential-grid span { display: block; }
.credential-grid strong { font: 700 0.875rem var(--font-heading); }
.credential-grid span { color: var(--slate-400); font-size: 0.75rem; margin-top: 0.25rem; }
.eyebrow { color: var(--slate-500); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.display-title { font-size: 2rem; max-width: 36rem; }
.intro-grid, .proof-grid { display: grid; gap: 2rem; }
.intro-copy { color: var(--slate-600); max-width: 40rem; }
.intro-copy p + p { margin-top: 1rem; }
.secondary-services { margin-top: 2rem; color: var(--slate-600); font-size: 0.9375rem; text-align: center; }
.secondary-services a { color: var(--corporate-900); font-weight: 600; }
.proof-panel { background: var(--corporate-900); color: var(--white); border-radius: var(--radius-lg); padding: 2rem; }
.proof-panel .eyebrow { color: var(--slate-400); }
.proof-panel h2 { font-size: 1.75rem; }
.proof-panel p:not(.eyebrow) { color: var(--slate-300); margin: 1rem 0 1.5rem; }
.process-card { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 2rem; }
.process-card ol { list-style: none; counter-reset: process; }
.process-card li { counter-increment: process; border-top: 1px solid var(--slate-200); display: grid; gap: 0.25rem; padding: 1rem 0 1rem 2.5rem; position: relative; }
.process-card li::before { content: counter(process, decimal-leading-zero); color: var(--slate-500); font: 700 0.75rem var(--font-heading); left: 0; position: absolute; top: 1.1rem; }
.process-card li:first-child { margin-top: 1rem; }
.process-card li span { color: var(--slate-600); font-size: 0.875rem; }
@media (min-width: 640px) { .credential-grid { grid-template-columns: repeat(2, 1fr); gap: 0 2rem; } }
@media (min-width: 1024px) {
    .credential-grid { grid-template-columns: repeat(4, 1fr); }
    .credential-grid > div { border-bottom: 0; padding: 1.4rem 0; }
    .intro-grid { grid-template-columns: 1fr 1fr; align-items: center; }
    .proof-grid { grid-template-columns: 1.25fr 0.75fr; align-items: stretch; }
    .display-title { font-size: 2.4rem; }
}
