/* ==========================================================================
   RCL Equipamentos e Serviços — Tema
   ========================================================================== */

/* Plus Jakarta Sans (fonte variavel 400-800, licenca SIL OFL), hospedada no tema */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --navy: #00325A;
    --navy-deep: #00243F;
    --blue: #185AA5;
    --blue-hover: #1F6BC0;
    --blue-light: #5AA8F0;   /* destaque sobre fundo escuro (contraste) */
    --graphite: #5A6469;
    --ink: #10263B;
    --gray-50: #F2F4F5;
    --gray-25: #F7F9FA;
    --border: #E2E8ED;
    --white: #FFFFFF;
    --whatsapp: #25D366;

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 50, 90, .06), 0 2px 8px rgba(0, 50, 90, .05);
    --shadow-md: 0 10px 30px rgba(0, 50, 90, .12);
    --container: 1200px;
    --gutter: 24px;
    --header-h: 90px;
}

/* Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--graphite);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue); text-decoration: none; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .75rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }

/* Evita palavra sozinha na ultima linha (viuva) e equilibra subtitulos */
p, li, blockquote, figcaption { text-wrap: pretty; }
h2, h3, h4 { text-wrap: balance; }
.coverage p, .page-hero__subtitle, .cta-band p, .coverage__cta p { text-wrap: balance; }

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 1000;
    padding: .75rem 1rem;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }

/* Botoes e links
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.4rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: 600 .95rem/1.2 var(--font);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.15em; height: 1.15em; }

.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }

.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(24, 90, 165, .35); }
.btn--primary:hover { background: var(--blue-hover); }

.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--blue); }

.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--blue);
}
.link-arrow > span, .link-arrow { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: var(--white); text-decoration-color: rgba(255, 255, 255, .5); }

.eyebrow {
    margin-bottom: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
}

.section { padding-block: clamp(56px, 7vw, 88px); }

.section-title { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.18; }

.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--sm { width: 38px; height: 38px; }
.icon-badge--sm .icon { width: 18px; height: 18px; }

/* Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 50, 90, .08); border-color: var(--border); }
.admin-bar .site-header { top: 32px; }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.site-logo { flex-shrink: 0; }
.site-logo img { width: auto; max-width: none; height: 69px; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }

.site-nav .menu { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }

.site-nav .menu a {
    position: relative;
    display: block;
    padding-block: .5rem;
    font-size: .93rem;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    transition: color .2s;
}
.site-nav .menu a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .25s;
}
.site-nav .menu a:hover, .site-nav .menu a[aria-current="page"] { color: var(--blue); }
.site-nav .menu a:hover::after, .site-nav .menu a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Hero
   ========================================================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(480px, 62vh, 620px);
    padding-block: 72px;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.hero__media { position: absolute; inset: 0 0 0 30%; z-index: -2; }
/* A maquina fica a direita da foto: o enquadramento puxa para esse lado */
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }

/* Troca suave das fotos de fundo (o texto fica fixo) */
.hero__slide { opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, var(--navy) 0%, var(--navy) 30%, rgba(0, 50, 90, .82) 45%, rgba(0, 50, 90, .25) 70%, rgba(0, 50, 90, .05) 100%),
        linear-gradient(0deg, rgba(0, 36, 63, .35), transparent 40%);
}

.hero__content { position: relative; }

.hero__title {
    max-width: 640px;
    margin-bottom: 1.5rem;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: var(--white);
}
.hero__title span { color: var(--blue-light); }

.hero__text {
    max-width: 520px;
    margin-bottom: 2.25rem;
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    color: rgba(255, 255, 255, .86);
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

/* Cards de servicos
   ========================================================================== */
.section--features { padding-block: 32px 40px; background: var(--gray-25); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.feature-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--graphite);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(24, 90, 165, .35); }

.feature-card .icon-badge { margin-bottom: 1.25rem; transition: background-color .25s; }
.feature-card:hover .icon-badge { background: var(--blue); }

.feature-card__title { font-size: 1.25rem; margin-bottom: .6rem; }
.feature-card p { font-size: .93rem; line-height: 1.55; margin-bottom: 1.25rem; }

.feature-card__arrow { margin-top: auto; color: var(--navy); }
.feature-card__arrow .icon { width: 22px; height: 22px; transition: transform .25s; }
.feature-card:hover .feature-card__arrow .icon { transform: translateX(5px); color: var(--blue); }

/* Segmentos
   ========================================================================== */
.section--segments { background: linear-gradient(180deg, #EDF1F5 0%, var(--gray-25) 100%); }

.segments { display: grid; grid-template-columns: minmax(300px, 1fr) 2.1fr; gap: 48px; align-items: center; }
.segments__intro .section-title { font-size: clamp(1.5rem, 2.2vw, 1.85rem); }

.segments__intro p { margin-bottom: 1.75rem; }

.segment-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.segment-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.segment-card__media { position: relative; aspect-ratio: 6 / 5; }
.segment-card__media img { width: 100%; height: 100%; object-fit: cover; }
.segment-card__media .icon-badge {
    position: absolute;
    left: 12px; bottom: -19px;
    border: 3px solid var(--white);
    box-sizing: content-box;
}

.segment-card h3 { margin: 28px 12px 4px; font-size: .95rem; }
.segment-card p { margin: 0 12px 16px; font-size: .78rem; line-height: 1.45; }

/* Sobre
   ========================================================================== */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.about__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.about__content > p:not(.eyebrow) { max-width: 560px; }

.about__highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2rem !important;
}
.about__highlights li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-inline: 14px;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
}
.about__highlights li:first-child { padding-left: 0; }
.about__highlights li + li { border-left: 1px solid var(--border); }
.about__highlights .icon { width: 28px; height: 28px; color: var(--blue); }

/* Area de atendimento
   ========================================================================== */
.coverage {
    position: relative;
    padding-block: clamp(48px, 6vw, 64px);
    background:
        radial-gradient(ellipse at 15% 0%, rgba(24, 90, 165, .45), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(24, 90, 165, .3), transparent 50%),
        var(--navy);
    color: rgba(255, 255, 255, .82);
}

.coverage__inner { display: grid; grid-template-columns: 1.6fr auto 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }

.coverage__label { display: flex; align-items: center; gap: .5rem; font-size: .85rem; margin-bottom: .75rem; }
.coverage__label .icon { width: 18px; height: 18px; }

.coverage h2 { color: var(--white); font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 1.25rem; }

.coverage__map { padding-left: clamp(28px, 4vw, 56px); border-left: 1px solid rgba(255, 255, 255, .2); }
.coverage__map img { width: 150px; height: auto; opacity: .95; }

.coverage__cta h3 { color: var(--white); font-size: 1.2rem; margin-bottom: .4rem; }
.coverage__cta p { font-size: .93rem; margin-bottom: 1.25rem; }

/* Paginas internas
   ========================================================================== */
.page-hero {
    padding-block: clamp(48px, 7vw, 80px);
    background: radial-gradient(ellipse at 85% 0%, rgba(24, 90, 165, .55), transparent 60%), var(--navy);
}
.page-hero h1 { margin: 0; color: var(--white); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
.page-hero__subtitle { max-width: 680px; margin: 1rem 0 0; font-size: clamp(1rem, 1.3vw, 1.125rem); color: rgba(255, 255, 255, .82); }

.breadcrumb { display: flex; gap: .5rem; margin-bottom: 1rem; font-size: .8rem; color: rgba(255, 255, 255, .6); }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: var(--white); }

.section--muted { background: var(--gray-25); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .8); }
.section--navy .section-title { color: var(--white); }
.section-title--center { text-align: center; margin-bottom: 2.5rem; }

.prose p:last-child { margin-bottom: 0; }
.prose--light { color: rgba(255, 255, 255, .8); }

.icon-badge--soft { background: rgba(24, 90, 165, .1); color: var(--blue); }

/* Introducao (texto + imagem) */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--single { grid-template-columns: minmax(0, 820px); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* Servicos */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-item {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.service-item:first-child { grid-column: 1 / -1; }
.service-item__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.service-item h2 { font-size: 1.35rem; }

.check-list { display: grid; gap: .55rem; margin-top: 1.25rem !important; padding-top: 1.25rem !important; border-top: 1px solid var(--border); }
.service-item:first-child .check-list { grid-template-columns: repeat(2, 1fr); }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: var(--ink); }
.check-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--blue); }

/* Certificacao: etapas */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem !important; counter-reset: none; }
.step {
    position: relative;
    padding: 28px 24px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
}
.step__num {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
}
.step h3 { color: var(--white); font-size: 1.1rem; }
.step p { margin: 0; font-size: .93rem; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic { padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.topic .icon-badge { margin-bottom: 1rem; }
.topic h3 { font-size: 1.1rem; }
.topic p { margin: 0; font-size: .93rem; }

.highlight-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 920px;
    margin-inline: auto;
    padding: clamp(24px, 4vw, 40px);
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.highlight-box .icon-badge { flex-shrink: 0; }
.highlight-box h2 { font-size: 1.4rem; }

/* Segmentos (pagina) */
.segment-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.segment-full {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.segment-full:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.segment-full .segment-card__media { aspect-ratio: 16 / 10; }
.segment-full .icon-badge { position: absolute; left: 20px; bottom: -26px; border: 4px solid var(--white); box-sizing: content-box; }
.segment-full__body { padding: 40px 24px 24px; }
.segment-full h2 { font-size: 1.2rem; }
.segment-full p { margin: 0; font-size: .93rem; }

/* Sobre (pagina) */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.value {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--ink);
}
.value .icon-badge { flex-shrink: 0; width: 46px; height: 46px; }

.coverage__inner--page { grid-template-columns: 1.4fr auto; }
.coverage__map--lg img { width: 240px; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; align-items: center; }
.logo-grid img { max-height: 64px; width: auto; margin-inline: auto; filter: grayscale(1); opacity: .75; }

/* Corpos de prova */
.cp-intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cp-intro__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }

.cp-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(40px, 5vw, 56px) !important;
    padding-top: 32px !important;
    border-top: 1px solid var(--border);
}
.cp-features li { display: flex; gap: .85rem; align-items: flex-start; padding-inline: 20px; font-size: .85rem; line-height: 1.45; }
.cp-features li:first-child { padding-left: 0; }
.cp-features li + li { border-left: 1px solid var(--border); }
.cp-features .icon { width: 32px; height: 32px; color: var(--navy); }
.cp-features strong { display: block; margin-bottom: .2rem; font-size: .95rem; color: var(--navy); }

.cp-norms {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 32px;
    padding: 24px 28px;
    background: var(--gray-25);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
}
.cp-norms .icon-badge { flex-shrink: 0; }
.cp-norms h2 { margin-bottom: .5rem; font-size: 1.05rem; }
.cp-norms p { margin: .5rem 0 0; font-size: .85rem; }
.cp-norms__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.cp-norms__list li {
    padding: .3rem .8rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--navy);
}

.cp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.cp-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--header-h) + 16px);
}
.cp-card__code {
    align-self: flex-start;
    margin-bottom: .75rem;
    padding: .2rem .6rem;
    border-radius: 6px;
    background: var(--blue);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.cp-card__title { font-size: 1.3rem; margin-bottom: .4rem; }
.cp-card__text { font-size: .9rem; line-height: 1.5; }

.cp-card__media { margin: .25rem 0 1.25rem; }
.cp-card__media img { width: 100%; height: auto; }
.cp-card__legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: .5rem !important; text-align: center; font-size: .75rem; line-height: 1.35; }
.cp-card__legend strong { display: block; font-size: .85rem; color: var(--ink); }

.cp-card__options { display: grid; gap: 14px; margin-bottom: 14px; }

.cp-metal { margin: 0; padding: 0; border: 0; min-width: 0; }
.cp-metal legend, .cp-select label { margin-bottom: .45rem; padding: 0; font-size: .85rem; font-weight: 700; color: var(--ink); }
.cp-metal__list { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-metal__opt {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .85rem;
    border: 1px solid #CBD5DE;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.cp-metal__opt:hover { border-color: var(--blue); }
.cp-metal__opt input { position: absolute; opacity: 0; pointer-events: none; }
.cp-metal__opt:has(input:checked) { border-color: var(--blue); background: rgba(24, 90, 165, .08); box-shadow: inset 0 0 0 1px var(--blue); }
.cp-metal__opt:has(input:focus-visible) { outline: 3px solid var(--blue-light); outline-offset: 2px; }

.cp-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.cp-dot--azul { background: #1E4FD8; }
.cp-dot--verde { background: #1E8E3E; }
.cp-dot--vermelho { background: #D62828; }
.cp-dot--cinza { background: var(--graphite); }

.cp-select label { display: block; }
.cp-select select {
    width: 100%;
    padding: .7rem 2.5rem .7rem 1rem;
    border: 1px solid #CBD5DE;
    border-radius: var(--radius-sm);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300325A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center / 16px;
    font: 500 .9rem/1.4 var(--font);
    color: var(--ink);
    appearance: none;
    cursor: pointer;
}
.cp-select select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24, 90, 165, .15); }

.cp-note {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: .8rem 1rem;
    background: rgba(24, 90, 165, .07);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    line-height: 1.45;
}
.cp-note .icon { width: 20px; height: 20px; color: var(--blue); margin-top: 1px; }
.cp-note p { margin: 0; }
.cp-note strong { display: block; color: var(--ink); }

.cp-card__drawing { margin: 0 0 1rem; }
.cp-card__drawing figcaption, .cp-specs caption { margin-bottom: .5rem; font-size: .85rem; font-weight: 700; color: var(--ink); text-align: left; }
.cp-draw { width: 100%; height: auto; font: 600 11px var(--font); }
.cp-draw text { fill: var(--navy); }
.cp-draw__piece { fill: #6B757B; }
.cp-draw__hole { fill: var(--white); stroke: #4A5358; stroke-width: 1; }
.cp-draw__line { stroke: #4A5358; stroke-width: 1; }
.cp-draw__dim { fill: none; stroke: var(--navy); stroke-width: 1; }

.cp-specs { width: 100%; margin-bottom: 1.25rem; border-collapse: collapse; font-size: .82rem; }
.cp-specs th, .cp-specs td { padding: .45rem .7rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.cp-specs th { width: 52%; font-weight: 500; background: var(--gray-25); color: var(--graphite); }
.cp-specs td { color: var(--ink); font-weight: 600; }

.cp-card__btn { margin-top: auto; width: 100%; }

/* Alinha os blocos dos cards lado a lado (titulo de 2 linhas nao desloca o resto) */
@supports (grid-template-rows: subgrid) {
    .cp-card { display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .cp-card > * { min-width: 0; }
    .cp-card__code { justify-self: start; }
    .cp-card__btn { align-self: end; }
}

.cp-seals { padding-block: 40px; border-bottom: 1px solid var(--border); }
.cp-seals__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.cp-seals__list li { display: flex; gap: .9rem; align-items: flex-start; padding-inline: 24px; font-size: .85rem; line-height: 1.45; }
.cp-seals__list li:first-child { padding-left: 0; }
.cp-seals__list li + li { border-left: 1px solid var(--border); }
.cp-seals__list .icon { width: 36px; height: 36px; color: var(--navy); }
.cp-seals__list strong { display: block; margin-bottom: .2rem; font-size: .95rem; color: var(--navy); }

/* Chamada final */
.cta-band {
    padding-block: clamp(48px, 6vw, 72px);
    background: linear-gradient(110deg, var(--blue) 0%, #0F4680 55%, var(--navy) 100%);
}
.cta-band .btn--primary { background: var(--white); color: var(--navy); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.cta-band .btn--primary:hover { background: var(--gray-50); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { color: var(--white); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .4rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 620px; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 64px); align-items: start; }

.contact__whatsapp {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 20px 24px;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(37, 211, 102, .3);
    transition: transform .2s;
}
.contact__whatsapp:hover { transform: translateY(-2px); }
.contact__whatsapp .icon { width: 36px; height: 36px; }
.contact__whatsapp strong { display: block; font-size: 1.1rem; }
.contact__whatsapp small { opacity: .9; }

.contact__list { display: grid; gap: 1.25rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; color: var(--ink); font-size: .95rem; }
.contact__list small { display: block; color: var(--graphite); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.contact__list a { color: var(--ink); font-weight: 600; }
.contact__list a:hover { color: var(--blue); }
.contact__list .icon-badge { flex-shrink: 0; }

.contact__form {
    padding: clamp(24px, 4vw, 40px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.contact-map iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.3); }

/* Formulario (Contact Form 7) */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form-grid .field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--blue); }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid #CBD5DE;
    border-radius: var(--radius-sm);
    background: var(--white);
    font: 400 .95rem/1.4 var(--font);
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24, 90, 165, .15); }

.wpcf7-form-control-wrap { display: block; }
.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance label { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; font-weight: 400; color: var(--graphite); }
.wpcf7-acceptance input { margin-top: 4px; }

.wpcf7-submit { margin-top: .5rem; border: 0; background: var(--blue); color: var(--white); }
.wpcf7-submit:hover { background: var(--blue-hover); }
.wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.wpcf7-spinner { vertical-align: middle; }

.wpcf7-not-valid-tip { margin-top: .3rem; font-size: .8rem; color: #C62828; }
.wpcf7 form .wpcf7-response-output { margin: 1.25rem 0 0; padding: .9rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2E7D32; background: #EDF7EE; color: #1B5E20; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: #C62828; background: #FDECEC; color: #8E1C1C; }
.wpcf7 .hidden-fields-container { display: none; }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-card__body > p:not(.post-meta) { font-size: .93rem; }
.post-card__body .link-arrow { margin-top: auto; }
.post-card__title { font-size: 1.15rem; }
.post-card__title a { color: var(--navy); }
.post-card__title a:hover { color: var(--blue); }

.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .6rem; font-size: .8rem; color: var(--graphite); }
.post-meta__cat { font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.post-meta--light { margin: 1rem 0 0; color: rgba(255, 255, 255, .75); }
.post-meta--light .post-meta__cat { color: var(--blue-light); }

.page-hero--post h1 { max-width: 860px; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; }

.post-layout { max-width: 860px; }
.post-cover { margin: 0 0 2.5rem; }
.post-cover img { width: 100%; border-radius: var(--radius); }

.post-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.5rem;
    margin-top: 3rem;
    padding: 28px;
    background: var(--gray-25);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
}
.post-cta > div { flex: 1 1 320px; }
.post-cta h2 { font-size: 1.2rem; margin-bottom: .3rem; }
.post-cta p { margin: 0; font-size: .93rem; }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 44px; height: 44px;
    padding-inline: .9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    font-weight: 600;
    color: var(--navy);
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.empty-state { text-align: center; font-size: 1.05rem; padding-block: 2rem; }

/* Texto corrido (artigos e paginas genericas) */
.entry-content { max-width: 820px; color: #444E54; font-size: 1.05rem; line-height: 1.75; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.entry-content h3 { margin: 2rem 0 .75rem; font-size: 1.25rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content li::marker { color: var(--blue); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong { color: var(--ink); }
.entry-content blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--blue); background: var(--gray-25); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { margin-top: .5rem; font-size: .85rem; color: var(--graphite); text-align: center; }
.entry-content table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: .7rem .9rem; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--gray-50); color: var(--ink); }

/* Aviso de cookies */
.cookie-banner {
    position: fixed;
    left: 20px; bottom: 20px;
    z-index: 95;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    max-width: 560px;
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 36, 63, .2);
    font-size: .88rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 260px; margin: 0; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; }
.cookie-banner .btn { padding: .6rem 1.1rem; font-size: .88rem; }
.entry-content .btn { margin: .25rem .5rem .25rem 0; text-decoration: none; }

/* Rodape
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .72); font-size: .85rem; }

.site-footer a { color: inherit; transition: color .2s; }
.site-footer a:hover { color: var(--white); }

.site-footer__top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem 2.5rem;
    align-items: center;
    padding-block: 40px 32px;
}

.site-footer__logo img { width: auto; height: 58px; }

.site-footer__nav .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; }

.site-footer__contact { display: grid; gap: .9rem; list-style: none; margin: 0; padding: 0; }
.site-footer__contact a { display: flex; align-items: center; gap: .75rem; color: var(--white); }
.site-footer__contact small { color: rgba(255, 255, 255, .65); font-size: .8rem; }
.site-footer__contact .icon { width: 20px; height: 20px; color: var(--blue-light); }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    padding-block: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .78rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.site-footer__bottom .sep { margin-inline: .35rem; opacity: .35; }
.site-footer__tagline { color: var(--blue-light); }

/* WhatsApp flutuante
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
    transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float .icon { width: 30px; height: 30px; }

/* Animacoes discretas (so com JS ativo)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Responsivo
   ========================================================================== */
@media (max-width: 1320px) {
    .site-header__inner { gap: 1.25rem; }
    .site-nav { gap: 1.25rem; }
    .site-nav .menu { gap: 1rem; }
    .site-nav .menu a { font-size: .9rem; }
    .site-nav__cta { padding-inline: 1.1rem; }
}

@media (max-width: 1180px) {
    /* No topo: logo maior e mais respiro. Rolando (header fixo): versao compacta */
    :root { --header-h: 92px; }
    .site-header.is-scrolled { --header-h: 72px; }
    .site-header__inner { transition: min-height .25s ease; }

    .site-logo img { height: 61px; transition: height .25s ease; }
    .site-header.is-scrolled .site-logo img { height: 53px; }

    .nav-toggle { display: grid; }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        padding: 1rem var(--gutter) 2rem;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 20px 30px rgba(0, 50, 90, .12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .admin-bar .site-nav { top: calc(var(--header-h) + 32px); }

    .site-nav .menu { flex-direction: column; gap: 0; }
    .site-nav .menu a { padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
    .site-nav .menu a::after { display: none; }

    .segment-grid { grid-template-columns: repeat(3, 1fr); }
    .segments { grid-template-columns: 1fr; }
    .segments__intro { max-width: 640px; }

    .cp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Rodape: sem espaco para o menu numa linha so ao lado do logo, o menu desce para uma linha propria */
@media (min-width: 1025px) and (max-width: 1259px) {
    .site-footer__top { grid-template-columns: auto auto; justify-content: space-between; }
    .site-footer__nav { grid-column: 1 / -1; grid-row: 2; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
}

@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }

    .about { grid-template-columns: 1fr; }
    .about__highlights { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; }
    .about__highlights li:nth-child(3) { padding-left: 0; border-left: 0; }

    .coverage__inner { grid-template-columns: 1fr; }
    .coverage__map { display: none; }

    .split, .contact, .cp-intro { grid-template-columns: 1fr; }
    .cp-features, .cp-seals__list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
    .cp-features li:nth-child(3), .cp-seals__list li:nth-child(3) { padding-left: 0; border-left: 0; }
    .service-list { grid-template-columns: 1fr; }
    .steps, .topic-grid, .segment-full-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }

    .site-footer__top { grid-template-columns: 1fr; justify-items: start; }
    .site-footer__logo img { height: 60px; }
    .site-footer__nav .menu { justify-content: flex-start; }
}

@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
    .admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }

    .hero { min-height: 0; padding-block: 56px 64px; }
    .hero__media { inset: 0; }
    .hero__media img { object-position: 78% 30%; }
    .hero::before { background: linear-gradient(180deg, rgba(0, 50, 90, .6) 0%, rgba(0, 50, 90, .82) 55%, rgba(0, 50, 90, .9) 100%); }
    .hero__actions .btn { width: 100%; }

    .feature-grid { grid-template-columns: 1fr; }

    .steps, .topic-grid, .segment-full-grid, .form-grid, .post-grid { grid-template-columns: 1fr; }
    .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__actions .btn { flex: 1; }
    .service-item { padding: 24px 20px; }
    .service-item:first-child .check-list { grid-template-columns: 1fr; }
    .highlight-box { flex-direction: column; }
    .cta-band .btn { width: 100%; }

    .cp-grid, .cp-features, .cp-seals__list { grid-template-columns: 1fr; }
    .cp-features li, .cp-seals__list li { padding-inline: 0; }
    .cp-features li + li, .cp-seals__list li + li { border-left: 0; }
    .cp-card { padding: 20px 18px; }
    .cp-norms { flex-direction: column; align-items: flex-start; padding: 20px; }

    .segment-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 62%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
        scroll-padding-inline: var(--gutter);
    }
    .segment-card { scroll-snap-align: start; }

    .about__highlights li { padding-inline: 0 10px; }
    .about__highlights li + li { border-left: 0; }

    .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
