/* ==========================================================================
   MAC Gestão – estilos do site
   CSS puro, sem framework e sem etapa de build. Organização:
   1. Tokens  2. Base  3. Layout  4. Componentes  5. Blocos  6. Blog  7. Utilidades
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-latin.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy-900: #0b2a43;
    --navy-800: #0f3a5c;
    --blue-700: #216795;
    --blue-600: #2675aa;
    --blue-500: #3291d1;
    --blue-100: #e3f0fa;
    --blue-50: #f2f8fd;
    --gray-900: #1b2733;
    --gray-700: #3e4c5a;
    --gray-500: #64748b;
    --gray-300: #cfd8e1;
    --gray-200: #e3e9ef;
    --gray-100: #f4f7fa;
    --white: #fff;
    --success: #1f8a4c;
    --danger: #c0362c;

    --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgb(15 58 92 / .06), 0 1px 3px rgb(15 58 92 / .08);
    --shadow: 0 10px 30px -12px rgb(15 58 92 / .25);
    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2rem);
    --section: clamp(4rem, 9vw, 7rem);
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }
ul { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--blue-100); color: var(--navy-900); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(960px + var(--gutter) * 2); }
.container--text { max-width: calc(760px + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section--light { background: var(--gray-100); }
.section--dark { background: var(--navy-800); color: rgb(255 255 255 / .82); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section + .section--white, .section--white + .section--white { padding-top: 0; }
.section__actions { margin-top: 3rem; text-align: center; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 640px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .grid--3, .grid--lg-3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 960px) {
    .split { grid-template-columns: 1.05fr 1fr; }
    .split--reverse .split__media { order: -1; }
    .split--single { grid-template-columns: minmax(0, 820px); justify-content: center; }
}
.split__media { margin: 0; display: flex; justify-content: center; }
.split__media img { width: auto; max-width: 100%; max-height: 520px; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__quote { font-size: 1.2rem; font-weight: 600; color: var(--blue-600); border-left: 3px solid var(--blue-500); padding-left: 1rem; }

/* 4. Componentes ------------------------------------------------------------ */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--navy-800); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
.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; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.icon--sm { width: 1rem; height: 1rem; }

.eyebrow { display: inline-block; margin-bottom: .9rem; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); }
.eyebrow--light { color: #9fd0f3; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.2rem); color: var(--gray-500); }
.muted { color: var(--gray-500); }

.section-heading { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-heading.is-center { margin-inline: auto; text-align: center; }
.section-heading .lead { margin-bottom: 0; }
.section-heading.is-dark .lead { color: rgb(255 255 255 / .75); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.5rem; border: 2px solid transparent; border-radius: 999px;
    font-weight: 700; font-size: .9375rem; line-height: 1.2; text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--primary { background: var(--blue-600); color: var(--white); box-shadow: 0 8px 20px -8px rgb(38 117 170 / .7); }
.btn--primary:hover { background: var(--blue-700); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy-800); }
.btn--light:hover { background: var(--blue-50); color: var(--navy-800); }
.btn--outline { border-color: var(--blue-600); color: var(--blue-600); background: transparent; }
.btn--outline:hover { background: var(--blue-600); color: var(--white); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; margin-top: auto; padding-top: .5rem; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm); }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.checklist li { position: relative; padding-left: 1.75rem; line-height: 1.5; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .2em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232675aa' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
@media (min-width: 640px) { .checklist--cols { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.section--dark .checklist li::before { background-color: rgb(255 255 255 / .12); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li, .chips a {
    display: inline-block; padding: .4rem .85rem; border-radius: 999px; font-size: .875rem; line-height: 1.3;
    background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-700); text-decoration: none;
}
.chips--links { margin-top: 2.5rem; }
.chips--links a:hover { border-color: var(--blue-500); color: var(--blue-600); }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 600; }
.alert--success { background: #e8f6ee; color: var(--success); }

/* Topo + cabeçalho */
.topbar { background: var(--navy-900); color: rgb(255 255 255 / .75); font-size: .8125rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.topbar__group { display: flex; gap: 1.5rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
a.topbar__item:hover { color: var(--white); }
@media (max-width: 860px) { .topbar__inner > .topbar__item { display: none; } .topbar__group { margin-inline: auto; } }
@media (max-width: 480px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--gray-200); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1.5rem; }
.brand img { width: auto; height: 46px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a {
    display: block; padding: .5rem .65rem; border-radius: var(--radius-sm); white-space: nowrap;
    font-size: .875rem; font-weight: 600; color: var(--gray-900); text-decoration: none; transition: color .15s, background-color .15s;
}
.site-nav a:hover { color: var(--blue-600); background: var(--blue-50); }
.site-nav a[aria-current="page"] { color: var(--blue-600); }
.site-nav .site-nav__cta { margin-left: .5rem; background: var(--blue-600); color: var(--white); padding-inline: 1.1rem; border-radius: 999px; }
.site-nav .site-nav__cta:hover, .site-nav .site-nav__cta[aria-current="page"] { background: var(--blue-700); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--navy-800); }
.nav-toggle .icon--close { display: none; }

@media (max-width: 1240px) {
    .site-nav .site-nav__cta { margin: 1rem 0 0; text-align: center; border-bottom: 0; border-radius: 999px; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        /* absolute (não fixed): o backdrop-filter do cabeçalho prende elementos fixed. */
        position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h));
        background: var(--white); padding: 1rem var(--gutter) 2rem; border-top: 1px solid var(--gray-200);
        overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
    }
    .site-nav ul { flex-direction: column; align-items: stretch; }
    .site-nav a { padding: .9rem 1rem; font-size: 1.0625rem; border-bottom: 1px solid var(--gray-200); border-radius: 0; }
    body.nav-open { overflow: hidden; }
    body.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    body.nav-open .nav-toggle .icon--open { display: none; }
    body.nav-open .nav-toggle .icon--close { display: block; }
}

/* Rodapé */
.site-footer { background: var(--navy-900); color: rgb(255 255 255 / .7); font-size: .9375rem; padding-top: clamp(3.5rem, 7vw, 5rem); }
.site-footer a { color: rgb(255 255 255 / .82); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 4rem; } }
.site-footer__about img { height: 44px; width: auto; margin-bottom: 1.25rem; }
.site-footer__title { color: var(--white); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.25rem; }
.site-footer__links, .site-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer__contact li { display: flex; gap: .75rem; align-items: flex-start; }
.site-footer__contact .icon { margin-top: .3rem; color: var(--blue-500); }
.site-footer__bottom { margin-top: 3.5rem; padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .8125rem; }
.site-footer__bottom p { margin: 0; }
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgb(255 255 255 / .08); transition: background-color .2s; }
.social a:hover { background: var(--blue-600); }
.social .icon { width: 1.15rem; height: 1.15rem; }

.whatsapp-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: var(--shadow); }
.whatsapp-float .icon { width: 1.75rem; height: 1.75rem; }

/* 5. Blocos ------------------------------------------------------------------ */

/* Banner principal */
.hero { position: relative; display: grid; min-height: clamp(520px, 78vh, 760px); background: var(--navy-900); color: var(--white); overflow: hidden; isolation: isolate; }
.hero__slide { grid-area: 1 / 1; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(11 42 67 / .92) 0%, rgb(11 42 67 / .72) 45%, rgb(11 42 67 / .2) 100%); }
.hero__content { padding-block: 6rem 7rem; max-width: calc(var(--container) + var(--gutter) * 2); }
.hero__content > * { max-width: 680px; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; color: var(--white); margin-bottom: 1.25rem; }
.hero__title span { display: block; color: #8cc8f0; }
.hero__text { font-size: clamp(1.0625rem, 1.8vw, 1.25rem); color: rgb(255 255 255 / .85); margin-bottom: 2rem; }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 2rem; margin-inline: auto; display: flex; align-items: center; gap: 1rem; z-index: 2; }
.hero__arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .06); color: var(--white); transition: background-color .2s; }
.hero__arrow:hover { background: rgb(255 255 255 / .18); }
.hero__arrow .icon { width: 1.25rem; height: 1.25rem; }
.hero__dots { display: flex; gap: .5rem; }
.hero__dot { width: .65rem; height: .65rem; padding: 0; border-radius: 999px; border: 0; background: rgb(255 255 255 / .4); transition: width .3s var(--ease), background-color .3s; }
.hero__dot.is-active { width: 2rem; background: var(--white); }

/* Cabeçalho de página interna */
.page-header { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, var(--navy-900), var(--blue-700)); color: var(--white); padding-block: clamp(4rem, 9vw, 6.5rem); }
.page-header::after { content: ""; position: absolute; right: -10%; top: -40%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(50 145 209 / .35), transparent 65%); z-index: -1; }
.page-header__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .25; }
.page-header h1 { color: var(--white); margin-bottom: .4em; }
.page-header .lead { color: rgb(255 255 255 / .8); max-width: 680px; margin: 0; }

/* Cartões */
.feature { display: flex; flex-direction: column; }
.feature p { margin-bottom: .75rem; }
.feature__title { margin-bottom: .5rem; }
.features--cards .feature { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.features--cards .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.section--dark .features--cards .feature { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .1); box-shadow: none; }
.feature__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.section--dark .feature__icon { background: rgb(50 145 209 / .18); color: #8cc8f0; }
.feature__number { font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--blue-100); margin-bottom: 1rem; -webkit-text-stroke: 1.5px var(--blue-500); }
.features--plain .feature { padding-top: 1.5rem; border-top: 3px solid var(--blue-500); }

/* Abas */
.tabs__list { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.5rem; scrollbar-width: thin; }
@media (min-width: 960px) { .tabs__list { justify-content: center; flex-wrap: wrap; } }
.tabs__list [role="tab"] { flex: none; padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-700); font-weight: 600; font-size: .9375rem; transition: all .2s; }
.tabs__list [role="tab"]:hover { border-color: var(--blue-500); color: var(--blue-600); }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.tabs__panel { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); animation: fade-in .35s var(--ease); }
.tabs__body { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .tabs__body.has-image { grid-template-columns: 1.4fr 1fr; } }
.tabs__image { border-radius: var(--radius-sm); width: 100%; }
.tabs__groups { margin-top: 1.5rem; }
.tag-group h4 { color: var(--blue-600); text-transform: uppercase; font-size: .8125rem; letter-spacing: .08em; margin-bottom: 1rem; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Grupos de etiquetas */
.groups { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .groups { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); } }
.group { background: var(--gray-100); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.section--light .group { background: var(--white); border: 1px solid var(--gray-200); }
.group__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.group__body { padding: 1.75rem; }
.group__body .eyebrow { margin-bottom: .4rem; }

/* Figura */
.figure { margin: 0; }
.figure img { margin-inline: auto; border-radius: var(--radius); }
.figure figcaption { text-align: center; color: var(--gray-500); font-size: .9375rem; margin-top: 1rem; }

/* Chamada */
.cta { background: linear-gradient(120deg, var(--blue-600), var(--navy-800)); color: var(--white); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { color: var(--white); margin: 0; }
.cta p { margin: .5rem 0 0; color: rgb(255 255 255 / .8); }

/* Contato */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.15fr; } }
.contact__subtitle { margin-top: 2rem; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact__list li { display: flex; gap: 1rem; }
.contact__list strong { display: block; color: var(--gray-900); }
.contact__icon { display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.form-grid { display: grid; gap: 1.1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-900); margin-bottom: .35rem; }
.field input, .field textarea, .search input {
    width: 100%; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--gray-900);
    background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .search input:focus { outline: none; background: var(--white); border-color: var(--blue-500); box-shadow: 0 0 0 4px rgb(50 145 209 / .15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .875rem; margin: .35rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map { margin-top: var(--section); }
.map iframe { width: 100%; height: 380px; border: 0; filter: grayscale(.3); }

/* Texto rico */
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose img { border-radius: var(--radius-sm); margin-block: 2rem; }
.prose blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--blue-500); background: var(--blue-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.125rem; color: var(--gray-900); }
.prose li { margin-bottom: .4rem; }
.prose--article { font-size: 1.125rem; line-height: 1.8; }
.prose--article p:first-child::first-letter { float: left; font-size: 3.6em; line-height: .85; font-weight: 800; color: var(--blue-600); margin: .08em .1em 0 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-sm); }

/* 6. Blog -------------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--blue-50); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--blue-500); }
.post-card__placeholder .icon { width: 3rem; height: 3rem; }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 1.15rem; line-height: 1.35; margin-bottom: .6rem; }
.post-card__title a { color: var(--gray-900); text-decoration: none; }
.post-card__title a:hover { color: var(--blue-600); }
.post-card__excerpt { font-size: .9375rem; color: var(--gray-500); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--gray-500); margin-bottom: .6rem; }
.post-meta a { font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }

.blog-layout { display: grid; gap: 3rem; }
@media (min-width: 1100px) { .blog-layout { grid-template-columns: 1fr 300px; } .blog-layout .grid--lg-3 { grid-template-columns: repeat(2, 1fr); } }
.sidebar { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 1100px) { .sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.search { display: flex; gap: .5rem; }
.search .btn { padding-inline: 1.1rem; }
.sidebar__box { background: var(--gray-100); border-radius: var(--radius); padding: 1.5rem; }
.sidebar__box h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.sidebar__box ul { list-style: none; padding: 0; margin: 0; }
.sidebar__box a { display: flex; justify-content: space-between; padding: .5rem 0; color: var(--gray-700); text-decoration: none; border-bottom: 1px solid var(--gray-200); }
.sidebar__box a:hover, .sidebar__box a[aria-current] { color: var(--blue-600); }
.sidebar__box span { color: var(--gray-500); font-size: .875rem; }
.empty { padding: 3rem; text-align: center; background: var(--gray-100); border-radius: var(--radius); }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 3rem; }
.pagination__item { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding-inline: .6rem; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); color: var(--gray-700); text-decoration: none; font-weight: 600; }
a.pagination__item:hover { border-color: var(--blue-500); color: var(--blue-600); }
.pagination__item.is-current { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.pagination__item.is-disabled { opacity: .4; }

.article__header { padding-block: clamp(3rem, 7vw, 5rem) 2.5rem; background: linear-gradient(180deg, var(--blue-50), var(--white)); }
.article__header h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.breadcrumb { font-size: .875rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-600); }
.article__cover { margin-block: 0 3rem; max-width: calc(1040px + var(--gutter) * 2); }
.article__cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.share { display: flex; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); font-weight: 600; color: var(--gray-900); }
.share a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gray-100); color: var(--navy-800); }
.share a:hover { background: var(--blue-600); color: var(--white); }
.share .icon { width: 1.1rem; height: 1.1rem; }
.post-nav { display: grid; gap: 1rem; margin-block: 2.5rem var(--section); }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 1.25rem; border: 1px solid var(--gray-200); border-radius: var(--radius); text-decoration: none; color: var(--gray-900); font-weight: 600; line-height: 1.4; }
.post-nav a:hover { border-color: var(--blue-500); }
.post-nav small { display: flex; align-items: center; gap: .35rem; color: var(--gray-500); font-weight: 600; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.post-nav__next { text-align: right; grid-column: 2; }
.post-nav__next small { justify-content: flex-end; }
@media (max-width: 639px) { .post-nav__next { grid-column: auto; } }

.error-page { text-align: center; }

/* 7. Animação de entrada (ativada via JS; sem JS tudo aparece normalmente) ---- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
