/* EGR Systems - theme.css. Tokens come from theme.json (--wp--preset--*). */
:root {
	--egr-blue: var(--wp--preset--color--blue-600, #102280);
	--egr-navy: var(--wp--preset--color--blue-900, #0b1654);
	--egr-cyan: var(--wp--preset--color--cyan, #39b4e5);
	--egr-tint: var(--wp--preset--color--blue-100, #e8eaf5);
	--egr-gray: var(--wp--preset--color--gray-500, #8a8b90);
	--egr-line: #d9dbe3;
	--egr-text2: var(--wp--preset--color--gray-600, #4f5057);
	--egr-max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
img, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--egr-cyan); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.egr-header { background: #fff; border-bottom: 1px solid var(--egr-line); padding-inline: 1.25rem; }
/* Floating header: sticky must sit on the template-part wrapper, whose parent (.wp-site-blocks) spans the whole page. */
.wp-site-blocks > .wp-block-template-part:first-child { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow 0.2s ease; }
.egr-scrolled .wp-site-blocks > .wp-block-template-part:first-child { box-shadow: 0 4px 18px rgba(11, 22, 84, 0.14); }
.egr-header__bar { transition: min-height 0.2s ease; }
.egr-logo img { transition: width 0.2s ease; }
.egr-scrolled .egr-header__bar { min-height: 3.5rem; }
.egr-scrolled .egr-logo img { width: 56px; }
.egr-scrolled .egr-header__cta .wp-block-button__link { padding-top: 0.5rem; padding-bottom: 0.5rem; }
@media (prefers-reduced-motion: reduce) { .egr-header__bar, .egr-logo img, .wp-site-blocks > .wp-block-template-part:first-child { transition: none; } }
.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 46px; } }
.egr-header__bar { align-items: center; gap: 1rem; min-height: 4.5rem; }
.egr-logo img { display: block; width: 74px; height: auto; }
.egr-nav { margin-left: auto; font-weight: 600; font-size: 0.95rem; }
.egr-nav a { text-decoration: none; color: var(--egr-navy); }
.egr-nav a:hover { color: var(--egr-blue); text-decoration: underline; text-underline-offset: 6px; }
.egr-header__cta .wp-block-button__link { font-size: 0.9rem; padding: 0.65rem 1.1rem; white-space: nowrap; }
@media (max-width: 1000px) { .egr-header .egr-header__cta { display: none; } }

/* Sections */
.egr-section { padding: clamp(3rem, 7vw, 6rem) 1.25rem; }
.egr-section > * + * { margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.egr-section--light { background: #fff; }
.egr-section--gray { background: var(--wp--preset--color--gray-100, #f3f4f6); }
.egr-section--dark { background: var(--egr-navy); color: #e6e8f3; }
.egr-section--dark :where(h1, h2, h3), .egr-section--blue :where(h1, h2, h3) { color: #fff; }
.egr-section--blue { background: var(--egr-blue); color: #e6e8f3; }
.egr-section > .egr-lead { margin-inline: calc((100% - min(100%, var(--egr-max))) / 2) auto !important; }
.egr-lead { font-size: var(--wp--preset--font-size--lead); color: var(--egr-text2); max-width: 46rem; }
.egr-section--dark .egr-lead, .egr-section--blue .egr-lead { color: #cfd3ea; }
.egr-kicker { font-family: var(--wp--preset--font-family--mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--egr-gray); margin: 0 0 0.5rem; }
.egr-kicker__n { color: var(--egr-blue); font-weight: 700; margin-right: 0.5rem; }
.egr-kicker__n::after { content: ""; display: inline-block; width: 2rem; height: 1px; background: currentColor; vertical-align: middle; margin-left: 0.6rem; }
.egr-section--dark .egr-kicker__n, .egr-section--blue .egr-kicker__n { color: var(--egr-cyan); }

/* Hero */
.egr-section--hero { background: #fff; padding-top: clamp(2.5rem, 6vw, 5rem); border-bottom: 1px solid var(--egr-line); }
.egr-section--hero { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-inline: max(1.25rem, calc((100% - var(--egr-max)) / 2)); }
.egr-section--hero > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
@media (min-width: 900px) { .egr-section--hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; } }
.egr-hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 18ch; }
.egr-hero__lead { font-size: var(--wp--preset--font-size--lead); color: var(--egr-text2); max-width: 36rem; margin-top: 1.25rem; }
.egr-hero__text .wp-block-buttons { margin-top: 1.75rem; }
.egr-hero__proof { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9rem; font-weight: 600; color: var(--egr-navy); }
.egr-hero__proof li::before { content: "\2713"; color: var(--egr-blue); margin-right: 0.4rem; }
.egr-hero__art { border: 1px solid var(--egr-line); background: linear-gradient(var(--egr-line) 1px, transparent 1px) 0 0 / 100% 28px, #fafbfd; padding: 1rem; }
.egr-map { display: block; width: 100%; }

/* Value list */
.egr-checks { list-style: none; padding: 0; display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.egr-checks li { padding-left: 1.75rem; position: relative; }
.egr-checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 1rem; height: 2px; background: var(--egr-blue); }

/* Cards (solucoes) */
.egr-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.egr-card { background: #fff; border: 1px solid var(--egr-line); border-top: 4px solid var(--egr-blue); padding: 1.75rem; display: flex; flex-direction: column; }
.egr-card__title { margin: 0 0 0.75rem; font-size: 1.4rem; }
.egr-card__text { color: var(--egr-text2); margin: 0 0 1rem; }
.egr-card__list { padding-left: 1.1rem; margin: 0 0 1.5rem; font-size: 0.95rem; }
.egr-card__list li { margin: 0.25rem 0; }
.egr-card__link { margin-top: auto; font-weight: 700; text-decoration: none; }
.egr-card__link:hover { text-decoration: underline; }

/* Problems table */
.egr-table table { width: 100%; border-collapse: collapse; }
.egr-table th, .egr-table td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.18); vertical-align: top; border-left: 0; border-right: 0; }
.egr-table thead th { font-family: var(--wp--preset--font-family--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--egr-cyan); border-bottom: 2px solid var(--egr-cyan); }
.egr-table td:first-child { font-weight: 700; color: #fff; width: 42%; }
@media (max-width: 700px) {
	.egr-table thead { display: none; }
	.egr-table tr, .egr-table td { display: block; width: 100% !important; }
	.egr-table td:first-child { padding-bottom: 0.1rem; border-bottom: 0; }
}

/* Grid / items */
.egr-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.egr-item { border-top: 2px solid var(--egr-blue); padding-top: 1rem; }
.egr-item h3 { margin: 0 0 0.4rem; }
.egr-item p { margin: 0; color: var(--egr-text2); font-size: 0.97rem; }

/* Clients, cases, quotes */
.egr-logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.egr-logos img { max-height: 56px; width: auto; filter: grayscale(1); opacity: 0.85; }
.egr-logos span { font-weight: 700; color: var(--egr-gray); }
.egr-cases { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.egr-case { background: #fff; border: 1px solid var(--egr-line); padding: 1.5rem; }
.egr-case__client { font-family: var(--wp--preset--font-family--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--egr-gray); margin: 0 0 0.4rem; }
.egr-case__title { margin: 0 0 1rem; font-size: 1.25rem; }
.egr-case__title a { text-decoration: none; color: inherit; }
.egr-case__facts div { margin-bottom: 0.75rem; }
.egr-case__facts dt { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--egr-blue); }
.egr-case__facts dd { margin: 0; font-size: 0.95rem; }
.egr-case__metric { font-size: 1.4rem; font-weight: 700; color: var(--egr-blue); margin: 0.5rem 0; }
.egr-case__tech { font-family: var(--wp--preset--font-family--mono); font-size: 0.8rem; color: var(--egr-text2); margin: 0; }
.egr-quotes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.egr-quote { margin: 0; padding: 1.5rem; border-left: 4px solid var(--egr-blue); background: #fff; }
.egr-quote blockquote { margin: 0 0 0.75rem; font-size: 1.1rem; }
.egr-quote figcaption { font-size: 0.9rem; color: var(--egr-text2); }

/* Numbers */
.egr-numbers { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; }
.egr-numbers div { border-top: 2px solid var(--egr-cyan); padding-top: 0.75rem; display: flex; flex-direction: column-reverse; }
.egr-numbers dd { margin: 0; font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 700; color: #fff; line-height: 1.1; }
.egr-numbers dt { color: #cfd3ea; font-size: 0.95rem; }
.egr-section--numbers:not(:has(.egr-numbers)) { display: none; }

/* Steps */
.egr-steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: s; }
.egr-step { border-top: 2px solid var(--egr-line); padding-top: 1rem; position: relative; }
.egr-step::before { content: ""; position: absolute; top: -2px; left: 0; width: 3rem; height: 2px; background: var(--egr-blue); }
.egr-step__n { font-family: var(--wp--preset--font-family--mono); color: var(--egr-blue); font-weight: 700; margin: 0 0 0.25rem; }
.egr-step h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.egr-step p:last-child { margin: 0; font-size: 0.95rem; color: var(--egr-text2); }

/* CTA + form */
.egr-section--cta .wp-block-button__link { background: #fff; color: var(--egr-blue); }
.egr-cta__box { margin-top: 2rem; background: #fff; color: var(--wp--preset--color--ink); padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 4px; }
.egr-contact__channels { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.egr-btn { display: inline-block; padding: 0.8rem 1.4rem; background: var(--egr-blue); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--egr-blue); border-radius: 4px; cursor: pointer; font: inherit; font-weight: 700; }
.egr-btn:hover { background: var(--egr-navy); border-color: var(--egr-navy); }
.egr-btn--ghost { background: transparent; color: var(--egr-blue); }
.egr-btn--ghost:hover { color: #fff; }
.egr-btn--wa { background: #0b6b3a; border-color: #0b6b3a; }
.egr-btn[disabled] { opacity: 0.6; cursor: wait; }
.egr-form { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.egr-form p { margin: 0; }
.egr-form__wide { grid-column: 1 / -1; }
.egr-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.egr-form input[type="text"], .egr-form input[type="email"], .egr-form input[type="tel"], .egr-form textarea { width: 100%; padding: 0.7rem 0.8rem; border: 1px solid #aab; border-radius: 4px; font: inherit; }
.egr-form__consent label { font-weight: 400; font-size: 0.85rem; }
.egr-hp { position: absolute; left: -9999px; }
.egr-form__status.is-ok { color: #0b6b3a; font-weight: 700; }
.egr-form__status.is-err { color: #b00020; font-weight: 700; }

/* Footer */
.egr-footer { background: var(--egr-navy); color: #cfd3ea; padding: 3.5rem 1.25rem 2rem; }
.egr-footer a { color: #fff; }
.egr-footer__logo { display: block; width: 110px; height: auto; margin-bottom: 1rem; }
.egr-footer__h { font-size: 0.85rem !important; font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--egr-cyan) !important; margin-bottom: 0.75rem; }
.egr-footer__list, .egr-info--redes { list-style: none; padding: 0; margin: 0; }
.egr-footer__list li, .egr-info--redes li { margin: 0.4rem 0; }
.egr-info { font-style: normal; font-size: 0.92rem; }
.egr-footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.85rem; }
@media (max-width: 781px) { .egr-footer__cols { gap: 2rem; } }

/* Internal pages */
.egr-page { padding: 2rem 1.25rem 4rem; }
.egr-breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--egr-text2); }
.egr-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--egr-gray); }
.egr-section--cases:not(:has(.egr-logos, .egr-cases, .egr-quotes)) { display: none; }

/* CCP landing: flow, mockups, compact lists */
.egr-flow { list-style: none; counter-reset: f; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.egr-flow li { counter-increment: f; position: relative; background: #fff; border: 1px solid var(--egr-line); border-top: 4px solid var(--egr-blue); padding: 1rem 0.9rem; font-weight: 700; color: var(--egr-navy); line-height: 1.3; }
.egr-flow li::before { content: counter(f, decimal-leading-zero); display: block; font-family: var(--wp--preset--font-family--mono); font-size: 0.8rem; color: var(--egr-blue); margin-bottom: 0.4rem; }
@media (min-width: 1100px) { .egr-flow { grid-template-columns: repeat(7, 1fr); } .egr-flow li:not(:last-child)::after { content: "\2192"; position: absolute; right: -0.85rem; top: 50%; color: var(--egr-gray); z-index: 1; } }
.egr-checks--sm { grid-template-columns: 1fr; gap: 0.35rem; font-size: 0.95rem; }
.egr-section--dark .egr-checks li::before { background: var(--egr-cyan); }
.egr-mocks { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.egr-mock { background: #fff; border: 1px solid var(--egr-line); border-radius: 6px; overflow: hidden; }
.egr-mock::before { content: ""; display: block; height: 1.6rem; background: #e9eaee radial-gradient(circle at 0.8rem 50%, #c5c7cf 0.22rem, transparent 0.25rem) 0 0 / 3.2rem 100% no-repeat; border-bottom: 1px solid var(--egr-line); }
.egr-mock .wp-block-image { margin: 0; }
.egr-mock img { display: block; width: 100%; height: auto; }
.egr-mock__cap { margin: 0; padding: 0.6rem 0.9rem; font-size: 0.85rem; font-weight: 700; color: var(--egr-text2); }
.egr-mock:not(:has(img[src])) { display: none; }
.egr-section--mocks:not(:has(.egr-mock img[src])) { display: none; }

/* About page */
.egr-about-cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .egr-about-cards { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.egr-about-card { background: #fff; border: 1px solid var(--egr-line); border-top: 4px solid var(--egr-blue); padding: 1.75rem; }
.egr-about-card__title { font-size: 1.4rem !important; margin: 0 0 1rem; }
.egr-about-card p:last-child { margin-bottom: 0; }
.egr-about-card p { color: var(--egr-text2); font-size: 0.98rem; }
.egr-about-card .egr-step__n { margin-bottom: 0.25rem; }
.egr-section--about-intro .egr-hero__title { max-width: none; }
.egr-section--dark h2 { max-width: 30ch; }

/* Grid children must align at the top: WordPress flow layout adds margin-top to every sibling after the first. */
:is(.egr-grid, .egr-about-cards, .egr-cards, .egr-steps, .egr-cases, .egr-quotes, .egr-mocks, .egr-flow, .egr-checks, .egr-numbers) > * { margin-block-start: 0 !important; }

.egr-subtitle { font-size: var(--wp--preset--font-size--lead) !important; font-weight: 600; color: var(--egr-blue) !important; margin: 0.5rem 0 1.25rem !important; letter-spacing: 0 !important; }

/* Header submenu */
.egr-nav .wp-block-navigation__submenu-container { border: 1px solid var(--egr-line); border-top: 3px solid var(--egr-blue); box-shadow: 0 8px 24px rgba(11, 22, 84, 0.12); padding: 0.4rem 0; min-width: 18rem; }
.egr-nav .wp-block-navigation__submenu-container a { padding: 0.6rem 1rem; font-weight: 600; }
.egr-nav .wp-block-navigation__submenu-container a:hover { background: var(--egr-tint); text-decoration: none; }

/* Quote block (testimonial on product pages) */
.egr-quote-block { margin: 0; padding: 1.5rem 1.75rem; border-left: 4px solid var(--egr-blue); background: #fff; font-size: 1.15rem; max-width: 46rem; }
.egr-quote-block cite { display: block; margin-top: 0.75rem; font-size: 0.9rem; font-style: normal; font-weight: 700; color: var(--egr-text2); }

/* Custom software page */
.egr-section--tint { background: var(--egr-tint); }
.egr-tiles { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.egr-tile { background: #fff; border: 1px solid var(--egr-line); border-left: 4px solid var(--egr-blue); padding: 1rem 1.1rem; }
.egr-tile p { margin: 0; font-weight: 700; color: var(--egr-navy); line-height: 1.35; }
.egr-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.egr-steps--6 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* Registered trademark mark */
.egr-reg { font-size: 0.55em; line-height: 0; vertical-align: super; margin-left: 0.08em; font-weight: 400; font-style: normal; letter-spacing: 0; }

/* Cases page */
.egr-cred { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.egr-cred__item { border-top: 3px solid var(--egr-blue); padding-top: 0.9rem; }
.egr-cred__big { margin: 0 0 0.4rem; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--egr-navy); line-height: 1.2; }
.egr-cred__item:first-child .egr-cred__big { font-size: clamp(2.25rem, 5vw, 3.25rem); color: var(--egr-blue); }
.egr-cred__cap { margin: 0; color: var(--egr-text2); font-size: 0.95rem; }
.egr-cred__note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--egr-text2); }
.egr-features { display: grid; gap: 2rem; }
.egr-feature { background: #fff; border: 1px solid var(--egr-line); border-top: 5px solid var(--egr-blue); padding: clamp(1.25rem, 3vw, 2.25rem); }
.egr-feature__title { margin: 0.4rem 0 0.25rem; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.egr-feature__sub { margin: 0 0 1.25rem; font-size: 1.15rem; font-weight: 600; color: var(--egr-blue); }
.egr-feature__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .egr-feature__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.egr-feature__label { margin: 1.25rem 0 0.5rem; font-family: var(--wp--preset--font-family--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--egr-gray); font-weight: 700; }
.egr-feature__list { list-style: none; padding: 0; margin: 0; columns: 2 220px; column-gap: 1.5rem; font-size: 0.95rem; }
.egr-feature__list li { break-inside: avoid; padding: 0.2rem 0 0.2rem 1.1rem; position: relative; }
.egr-feature__list li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.6rem; height: 2px; background: var(--egr-blue); }
.egr-feature__aside { background: var(--egr-tint); padding: 1.5rem; align-self: start; }
.egr-feature__aside .egr-feature__label:first-child { margin-top: 0; }
.egr-feature__big { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 700; line-height: 1.3; color: var(--egr-navy); }
.egr-presence { display: grid; gap: 0.9rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.egr-presence__state { border-left: 3px solid var(--egr-blue); padding-left: 0.75rem; font-size: 0.93rem; }
.egr-presence__state ul { list-style: none; padding: 0; margin: 0.3rem 0 0; color: var(--egr-text2); }
.egr-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.egr-chips li { background: #fff; border: 1px solid var(--egr-line); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.9rem; font-weight: 600; color: var(--egr-navy); }
.egr-chips--sm li { background: var(--egr-tint); border-color: transparent; font-size: 0.78rem; padding: 0.15rem 0.65rem; }
.egr-project-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.egr-project { background: #fff; border: 1px solid var(--egr-line); border-top: 4px solid var(--egr-blue); padding: 1.5rem; display: flex; flex-direction: column; }
.egr-project__tag { margin: 0 0 0.5rem; font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--egr-blue); font-weight: 700; }
.egr-project__title { margin: 0 0 0.25rem; font-size: 1.35rem; }
.egr-project__sub { margin: 0 0 0.75rem; font-weight: 700; color: var(--egr-navy); }
.egr-project p { font-size: 0.95rem; }
.egr-project__big { font-size: 1.4rem !important; font-weight: 700; color: var(--egr-blue); margin: 0.25rem 0 !important; }
.egr-project__dif { margin-top: auto !important; padding-top: 0.5rem; color: var(--egr-text2); }
.egr-project .egr-card__link { margin-top: 1rem; }
.egr-tech { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 0.5rem; }
.egr-tech__group h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.egr-section--lastro .egr-bigquote { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.25; color: #fff; max-width: 28ch; margin-top: 2rem; padding-left: 1.25rem; border-left: 4px solid var(--egr-cyan); }
.egr-section--cta .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 2px solid #fff; }
.egr-case-info { margin-top: 2rem; background: var(--egr-tint); padding: 1.5rem; }
.egr-case-info__sub { font-size: 1.2rem; font-weight: 700; color: var(--egr-blue); margin-top: 0; }
.egr-features > *, .egr-project-grid > * { margin-block-start: 0 !important; }

/* ===== Cases page, prototype layout ===== */
.egr-center { text-align: center; }
.egr-section > .egr-center.egr-lead { margin-inline: auto !important; }
.egr-eyebrow { margin: 0 0 0.5rem; font-family: var(--wp--preset--font-family--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--egr-blue); font-weight: 700; }
.egr-section--dark .egr-eyebrow { color: var(--egr-cyan); }

/* dark hero (cover) */
.egr-cover { background: var(--egr-navy); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem; align-items: center; }
.egr-cover .wp-block-cover__inner-container { width: 100%; max-width: 1200px; margin-inline: auto; padding: 0; }
.egr-cover > * + * { margin-top: 0; }
.egr-cover .wp-block-cover__inner-container > * { max-width: 46rem; margin-inline: 0 !important; }
.egr-cover .wp-block-cover__inner-container > * + * { margin-top: 1rem; }
.egr-cover :where(h1, h2) { color: #fff; }
.egr-cover .egr-hero__title { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 20ch; }
.egr-cover .egr-hero__lead { color: #d6dbf2; font-size: 1.05rem; }
.egr-cover .egr-kicker { color: var(--egr-cyan); }
.egr-cover .wp-block-button__link { background: #fff; color: var(--egr-blue); }
.egr-cover .wp-block-button__link:hover { background: var(--egr-tint); }

/* credibility strip with icons */
.egr-section--cred { padding-block: 2rem; }
.egr-cred { gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.egr-cred__item { border-top: 0; padding-top: 0; display: flex; align-items: flex-start; gap: 0.9rem; }
.egr-cred__item > * { margin-block-start: 0 !important; }
.egr-cred__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 12px; background: #fff; color: var(--egr-blue); box-shadow: 0 2px 10px rgba(11, 22, 84, 0.1); }
.egr-cred__big, .egr-cred__item:first-child .egr-cred__big { font-size: 1.02rem; color: var(--egr-navy); line-height: 1.3; margin: 0 0 0.25rem; }
.egr-cred__item:first-child .egr-cred__big { font-size: 1.15rem; }
.egr-cred__cap { font-size: 0.85rem; }
.egr-cred__text > * { margin-block-start: 0 !important; }

/* principal cases: text | image | panel */
.egr-section--features { padding-top: 0; }
.egr-features { gap: 1.5rem; }
.egr-feature { display: grid; gap: 0; grid-template-columns: 1fr; padding: 0; border: 1px solid var(--egr-line); border-top: 1px solid var(--egr-line); background: #fff; box-shadow: 0 2px 14px rgba(11, 22, 84, 0.05); overflow: hidden; }
@media (min-width: 960px) {
	.egr-feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
	.egr-feature.has-media { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.7fr); }
}
.egr-feature > * { margin-block-start: 0 !important; }
.egr-feature__body { padding: clamp(1.25rem, 2.6vw, 2rem); }
.egr-feature__eyebrow { margin: 0 0 0.35rem; font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--egr-blue); font-weight: 700; }
.egr-feature__title { margin: 0 0 0.25rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.egr-feature__sub { margin: 0 0 0.9rem; font-size: 1.02rem; font-weight: 700; color: var(--egr-navy); }
.egr-feature__body p { font-size: 0.95rem; color: var(--egr-text2); }
.egr-ticks { list-style: none; padding: 0; margin: 0.9rem 0 1.25rem; }
.egr-ticks li { position: relative; padding: 0.22rem 0 0.22rem 1.6rem; font-size: 0.93rem; }
.egr-ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--egr-blue); }
.egr-ticks li::after { content: ""; position: absolute; left: 0.34rem; top: 0.62em; width: 0.28rem; height: 0.5rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.egr-feature__media { background: #eef0f6; display: flex; align-items: center; justify-content: center; min-height: 14rem; }
.egr-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.egr-feature__panel { background: var(--egr-blue); color: #fff; padding: clamp(1.25rem, 2.6vw, 2rem); display: flex; flex-direction: column; justify-content: center; }
.egr-feature__panel p { margin: 0; font-size: 0.95rem; color: #dfe3f7; }
.egr-feature__stat { font-size: clamp(2.25rem, 4.4vw, 3rem) !important; font-weight: 700; color: #fff !important; line-height: 1.05; margin-bottom: 0.5rem !important; }
.egr-feature__stat--sm { font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important; }
.egr-feature__panel--presence { background: var(--egr-tint); color: var(--egr-ink); }
.egr-feature__panel--presence .egr-feature__stat { color: var(--egr-navy) !important; }
.egr-feature__panel--presence .egr-presence { grid-template-columns: 1fr; }
.egr-feature__panel--presence .egr-presence__state { font-size: 0.9rem; }
.egr-feature__panel--presence .egr-presence__state ul { color: var(--egr-text2); }
.egr-feature__panel--presence .egr-presence__state ul li { color: var(--egr-text2); }

/* other projects */
.egr-project-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.egr-project { padding: 0; border-top: 1px solid var(--egr-line); overflow: hidden; box-shadow: 0 2px 12px rgba(11, 22, 84, 0.05); }
.egr-project > * { margin-block-start: 0 !important; }
.egr-project__media { position: relative; aspect-ratio: 16 / 10; background: #eef0f6; }
.egr-project__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.egr-project__badge { position: absolute; right: 0.6rem; bottom: 0.6rem; background: rgba(11, 22, 84, 0.88); color: #fff; font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 4px; }
.egr-project__body { padding: 1.1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.egr-project__body > * { margin-block-start: 0 !important; }
.egr-project__title { font-size: 1.15rem; margin: 0 0 0.3rem; }
.egr-project__sub { font-size: 0.9rem; font-weight: 500; color: var(--egr-text2); margin: 0 0 0.75rem; }
.egr-project__chip { margin: 0 0 1rem; }
.egr-project__chip span { display: inline-block; background: var(--egr-tint); color: var(--egr-blue); font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 999px; }
.egr-project .egr-card__link { margin-top: auto; border: 1px solid var(--egr-line); padding: 0.55rem 0.8rem; border-radius: 4px; display: inline-block; text-decoration: none; font-size: 0.88rem; }
.egr-project .egr-card__link:hover { background: var(--egr-tint); }
.egr-section--outros .egr-project-grid { margin-top: 1.5rem; }

/* generic split layouts */
.egr-split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: center; }
.egr-split > * { margin-block-start: 0 !important; }
@media (min-width: 900px) {
	.egr-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.egr-split--3 { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.8fr); }
}
.egr-split__text > * + * { margin-top: 1rem; }
.egr-split__media:not(:has(img[src])) { display: none; }
.egr-split--3:has(.egr-split__media:not(:has(img[src]))) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); }
.egr-split__media img { width: 100%; height: auto; display: block; }
.egr-split__media .wp-block-image { margin: 0; }

/* technologies */
.egr-tech { grid-template-columns: 1fr; gap: 1rem; margin-top: 0; }
.egr-tech__box { background: #fff; border: 1px solid var(--egr-line); padding: 1rem 1.1rem; }
.egr-tech__box > * { margin-block-start: 0 !important; }
.egr-tech__box h3 { margin: 0 0 0.6rem; font-size: 0.82rem; font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--egr-gray); }
.egr-chips li { border-radius: 6px; font-size: 0.85rem; }

/* callout / quotes */
.egr-callout { background: #fff; border: 1px solid #c9d3ee; border-left: 4px solid var(--egr-blue); padding: 1rem 1.25rem; font-size: 1.02rem; font-weight: 700; color: var(--egr-navy); max-width: none; }
.egr-callout--center { text-align: center; font-size: 1.15rem; border-left-width: 1px; border-top: 4px solid var(--egr-blue); padding: 1.5rem; }
.egr-section--tint .egr-callout, .egr-section--light .egr-callout { background: var(--egr-tint); }
.egr-section--tec .egr-callout { background: #fff; }

/* legacy: dark with quote card */
.egr-section--lastro .egr-split__aside { border: 1px solid rgba(255, 255, 255, 0.28); padding: clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.egr-section--lastro .egr-split__aside::before { content: "\201C"; display: block; font-size: 3.5rem; line-height: 0.8; color: var(--egr-cyan); font-family: Georgia, serif; margin-bottom: 0.5rem; }
.egr-section--lastro .egr-bigquote { margin: 0; padding: 0; border: 0; font-size: clamp(1.25rem, 2.6vw, 1.75rem); max-width: none; }
.egr-section--lastro .egr-split__text p { color: #d6dbf2; }

/* light CTA row */
.egr-section--cta-light { border-top: 1px solid var(--egr-line); }
.egr-cta-row__buttons .wp-block-buttons { justify-content: flex-start; gap: 0.75rem; }
@media (min-width: 900px) { .egr-cta-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); } .egr-cta-row__buttons .wp-block-buttons { justify-content: flex-end; } }
.egr-section--cta-light .egr-cta__title { color: var(--egr-navy); }
.egr-section--cta-light .wp-block-button__link { background: var(--egr-blue); color: #fff; }
.egr-section--cta-light .is-style-outline .wp-block-button__link { background: transparent; color: var(--egr-blue); border: 2px solid var(--egr-blue); }
.egr-section--intro-center > * { text-align: center; }

/* No flow-layout offset on grid/flex children */
:is(.egr-cred, .egr-tech, .egr-tiles, .egr-chips, .egr-presence, .egr-split, .egr-features, .egr-project-grid) > * { margin-block-start: 0 !important; }

/* ===================== v3: photo covers, new components ===================== */

/* header: search + CTA arrow */
.egr-search { margin: 0; }
.egr-search .wp-block-search__button { background: transparent; border: 0; color: var(--egr-blue); padding: 0.4rem; margin: 0; cursor: pointer; }
.egr-search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.egr-search .wp-block-search__input { border: 1px solid var(--egr-line); padding: 0.45rem 0.7rem; border-radius: 4px; font: inherit; }
.egr-header__cta .wp-block-button__link::after { content: " \2192"; }
.egr-nav .current-menu-item > a, .egr-nav a[aria-current="page"] { color: var(--egr-blue); border-bottom: 2px solid var(--egr-blue); }
@media (max-width: 1100px) { .egr-header__cta { display: none; } }

/* photo cover: dark gradient on the text side */
.egr-cover { min-height: 440px; padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem; }
.egr-cover .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(90deg, rgba(11, 22, 84, 0.94) 0%, rgba(11, 22, 84, 0.82) 38%, rgba(11, 22, 84, 0.25) 100%) !important; }
.egr-cover .wp-block-cover__image-background { object-fit: cover; object-position: 70% center; }
.egr-cover .wp-block-cover__inner-container { position: relative; min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.egr-cover .wp-block-cover__inner-container > * { max-width: 42rem; }
.egr-cover h1 em, .egr-cover h2 em { font-style: normal; color: var(--egr-cyan); }
.egr-cover .egr-subtitle { color: #9fd9f3 !important; font-size: 1.3rem !important; font-weight: 600; }
.egr-cover .egr-eyebrow { color: var(--egr-cyan); }
.egr-cover .wp-block-buttons { margin-top: 1.5rem; }
.egr-cover .wp-block-button__link { background: var(--egr-blue); color: #fff; border: 2px solid var(--egr-blue); }
.egr-cover .wp-block-button__link::after { content: " \2192"; }
.egr-cover .is-style-outline .wp-block-button__link { background: transparent; border-color: #fff; color: #fff; }
.egr-cover .wp-block-button__link:hover { background: #fff; color: var(--egr-blue); }
.egr-cover__tag { position: absolute; right: 0; bottom: 0; max-width: 14rem !important; margin: 0 !important; padding-left: 0.9rem; border-left: 2px solid var(--egr-cyan); font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem !important; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.7; color: #fff !important; }
@media (max-width: 700px) { .egr-cover__tag { display: none; } }
.egr-cover--band { min-height: 300px; }
.egr-cover--band .wp-block-cover__inner-container { min-height: 200px; }
.egr-cover--band .egr-cta__title { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }

/* icons */
.egr-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 12px; background: #fff; color: var(--egr-blue); box-shadow: 0 2px 10px rgba(11, 22, 84, 0.1); }
.egr-ico svg { width: 26px; height: 26px; }

/* section heading row */
.egr-head { display: grid; gap: 1rem 3rem; grid-template-columns: 1fr; align-items: end; margin-bottom: 1.75rem; }
.egr-head > * { margin-block-start: 0 !important; }
@media (min-width: 900px) { .egr-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.egr-head__title > * + * { margin-top: 0.35rem; }
.egr-head__aside p { margin: 0 0 0.9rem; color: var(--egr-text2); font-size: 0.95rem; }
.egr-head__aside .wp-block-button__link { font-size: 0.88rem; padding: 0.55rem 1.1rem; }

/* solution cards with photo */
.egr-cards--img { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.egr-cards--img .egr-card { padding: 0; border-top: 1px solid var(--egr-line); overflow: hidden; box-shadow: 0 2px 12px rgba(11, 22, 84, 0.06); }
.egr-cards--img .egr-card > * { margin-block-start: 0 !important; }
.egr-card__media { display: block; aspect-ratio: 16 / 9; background: #eef0f6; }
.egr-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.egr-card__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.egr-card__body > * { margin-block-start: 0 !important; }
.egr-card__body .egr-card__title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.egr-card__body .egr-card__list { font-size: 0.9rem; }
.egr-btn--soft { background: var(--egr-tint); color: var(--egr-blue); border-color: transparent; font-size: 0.9rem; padding: 0.55rem 1rem; margin-top: auto; align-self: flex-start; }
.egr-btn--soft:hover { background: var(--egr-blue); color: #fff; border-color: var(--egr-blue); }
.egr-btn--light { background: #fff; color: var(--egr-blue); border-color: #fff; }
.egr-btn--light:hover { background: var(--egr-tint); color: var(--egr-blue); }

/* client tiles (names until logos are provided) */
.egr-logotiles { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.egr-logotile { background: #fff; border: 1px solid var(--egr-line); padding: 1.1rem 1rem; text-align: center; box-shadow: 0 2px 10px rgba(11, 22, 84, 0.06); }
.egr-logotile > * { margin-block-start: 0 !important; }
.egr-tile__name { margin: 0 0 0.3rem; font-weight: 700; color: var(--egr-navy); font-size: 1.05rem; }
.egr-tile__cap { margin: 0; font-size: 0.8rem; color: var(--egr-text2); line-height: 1.35; }

/* approach (home) */
.egr-approach { background: #fff; border: 1px solid var(--egr-line); padding: clamp(1.25rem, 2.5vw, 1.75rem); box-shadow: 0 2px 14px rgba(11, 22, 84, 0.06); }
.egr-approach > * + * { margin-top: 0.75rem; }
.egr-approach__lead { margin: 0; font-weight: 600; color: var(--egr-text2); }
.egr-approach__steps { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-top: 1rem; }
.egr-approach__step { text-align: center; padding: 0.5rem 0.25rem; }
.egr-approach__step > * { margin-block-start: 0 !important; }
.egr-approach__step .egr-ico { margin: 0 auto 0.5rem; width: 3rem; height: 3rem; border-radius: 50%; background: var(--egr-tint); box-shadow: none; }
.egr-approach__step .egr-step__n { margin: 0; }
.egr-approach__t { margin: 0.1rem 0 0.2rem; font-weight: 700; color: var(--egr-navy); font-size: 0.92rem; line-height: 1.25; }
.egr-approach__d { margin: 0; font-size: 0.78rem; color: var(--egr-text2); }

/* about: stats and panels */
.egr-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.egr-stat { background: var(--egr-tint); padding: 1.25rem; }
.egr-stat > * { margin-block-start: 0 !important; }
.egr-stat .egr-ico { margin-bottom: 0.6rem; }
.egr-stat__big { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--egr-blue); line-height: 1.2; }
.egr-stat__cap { margin: 0.3rem 0 0; font-size: 0.88rem; color: var(--egr-text2); }
.egr-split--panels { align-items: stretch; }
.egr-panel { background: var(--egr-tint); padding: clamp(1.25rem, 2.6vw, 2rem); }
.egr-panel > * + * { margin-top: 0.9rem; }
.egr-panel h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* contact channels */
.egr-channels { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.egr-channels li { display: flex; gap: 0.9rem; align-items: flex-start; background: #fff; border: 1px solid var(--egr-line); padding: 0.9rem 1rem; }
.egr-channels li > svg { flex: 0 0 auto; width: 40px; height: 40px; padding: 9px; background: var(--egr-tint); color: var(--egr-blue); border-radius: 50%; }
.egr-channels li > div { display: flex; flex-direction: column; gap: 0.1rem; }
.egr-channels__main { font-size: 1.1rem; font-weight: 700; color: var(--egr-navy); text-decoration: none; }
.egr-channels span { font-size: 0.88rem; color: var(--egr-text2); }
.egr-why { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.egr-why__item { display: flex; gap: 0.9rem; align-items: flex-start; background: #fff; border: 1px solid var(--egr-line); padding: 0.8rem 1rem; }
.egr-why__item > * { margin-block-start: 0 !important; }
.egr-why__text h3 { margin: 0 0 0.15rem; font-size: 1rem; }
.egr-why__text p { margin: 0; font-size: 0.88rem; color: var(--egr-text2); }
.egr-panel .egr-form { margin-top: 0.5rem; }
.egr-cta__box--flat { margin-top: 0; box-shadow: none; max-width: 56rem; margin-inline: auto; }
.egr-section--form { padding-top: 2rem; }

/* steps with icons (solutions page) */
.egr-steps--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.egr-step--icon { background: #fff; border: 1px solid var(--egr-line); padding: 1.1rem; }
.egr-step--icon::before { display: none; }
.egr-step--icon > * { margin-block-start: 0 !important; }
.egr-step--icon .egr-ico { margin-bottom: 0.6rem; }
.egr-chips--lg li { font-size: 0.95rem; padding: 0.5rem 1rem; box-shadow: 0 1px 6px rgba(11, 22, 84, 0.06); }
.egr-ticks--cols { columns: 2 260px; column-gap: 2rem; }
.egr-ticks--cols li { break-inside: avoid; }

/* footer v3 */
.egr-footer { padding-top: 3rem; }
.egr-footer__about { color: #b9c0e2; font-size: 0.9rem; max-width: 22rem; margin: 0.5rem 0 1rem; }
.egr-info--redes { display: flex; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.egr-info--redes a { display: inline-flex; width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px; color: #fff; }
.egr-info--redes a:hover { background: #fff; color: var(--egr-navy); }
.egr-info--lines { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.egr-info--lines li { display: flex; gap: 0.6rem; align-items: center; font-size: 0.92rem; }
.egr-info--lines svg { color: var(--egr-cyan); flex: 0 0 auto; }
.egr-footer__bottom { margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); align-items: center; }
.egr-footer__bottom .egr-footer__legal { margin: 0; padding: 0; border: 0; }

/* case detail page */
.egr-casehero { background: var(--egr-navy) center / cover no-repeat; color: #fff; position: relative; }
.egr-casehero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 22, 84, 0.95) 0%, rgba(11, 22, 84, 0.75) 45%, rgba(11, 22, 84, 0.15) 100%); }
.egr-casehero__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem clamp(2.5rem, 6vw, 4.5rem); }
.egr-casehero .egr-breadcrumbs ol { color: #d6dbf2; }
.egr-casehero .egr-breadcrumbs a { color: #fff; }
.egr-casehero__title { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin: 0.5rem 0 0.25rem; }
.egr-casehero__sub { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 0.9rem; max-width: 40rem; }
.egr-casehero__lead { max-width: 36rem; color: #d6dbf2; margin: 0 0 1.5rem; }
.egr-tabs { position: sticky; top: 4.6rem; z-index: 40; background: #fff; border-bottom: 1px solid var(--egr-line); }
.admin-bar .egr-tabs { top: calc(4.6rem + 32px); }
.egr-tabs ul { list-style: none; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; display: flex; gap: 1.5rem; overflow-x: auto; }
.egr-tabs a { display: block; padding: 0.95rem 0; font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--egr-navy); white-space: nowrap; border-bottom: 3px solid transparent; }
.egr-tabs a:hover { color: var(--egr-blue); border-bottom-color: var(--egr-blue); }
.egr-casesec { max-width: 1200px; margin: 0 auto; padding: clamp(1.75rem, 4vw, 3rem) 1.25rem; scroll-margin-top: 9rem; }
.egr-casesec h2 { margin: 0 0 1rem; }
.egr-casesec__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .egr-casesec__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); } }
.egr-casesec__text > * + * { margin-top: 0.9rem; }
.egr-casecta { background: var(--egr-navy); color: #fff; padding: clamp(2rem, 5vw, 3rem) 1.25rem; }
.egr-casecta > div { max-width: 1200px; margin: 0 auto; }
.egr-casecta h2 { color: #fff; }
.egr-casecta p { color: #d6dbf2; max-width: 40rem; }

/* blog / search */
.egr-post-card { background: #fff; border: 1px solid var(--egr-line); padding: 0 0 1.25rem; }
.egr-post-card > *:not(.wp-block-post-featured-image) { padding-inline: 1.1rem; }
.egr-post-card .wp-block-post-title { font-size: 1.2rem; }
.egr-post-card .wp-block-post-title a { text-decoration: none; color: var(--egr-navy); }
.egr-posts .wp-block-post-date { font-size: 0.82rem; color: var(--egr-text2); }
.egr-main { padding: 0; }

/* menu collapses into the burger below 1100px */
@media (max-width: 1100px) {
	.egr-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
	.egr-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.egr-header__bar { gap: 0.75rem; }
}

/* case app section */
.egr-casesec__grid--app { align-items: center; }
@media (min-width: 900px) { .egr-casesec__grid--app { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.egr-casesec__shot { text-align: center; }
.egr-casesec__shot img { max-width: 340px; width: 100%; height: auto; }

/* screen captures: framed, never cropped */
.egr-feature__media--shot { background: var(--egr-tint); padding: 1.25rem; align-items: center; }
.egr-feature__media--shot img { width: 100%; height: auto; max-height: 100%; object-fit: contain; border: 1px solid var(--egr-line); border-radius: 4px; box-shadow: 0 8px 24px rgba(11, 22, 84, 0.18); }
.egr-shot { margin: 1.5rem 0 0; }
.egr-shot img { width: 100%; height: auto; border: 1px solid var(--egr-line); border-radius: 4px; box-shadow: 0 8px 24px rgba(11, 22, 84, 0.14); }

/* ===== Banco de Alimentos case page ===== */
.egr-casepage--blocks > * { margin-block-start: 0 !important; }
.egr-cover--plain { background: var(--egr-navy); }
.egr-cover--plain .wp-block-cover__background { background: linear-gradient(120deg, #0b1654 0%, #102280 70%, #16349a 100%) !important; }
.egr-timeline { display: grid; gap: 0; grid-template-columns: 1fr; position: relative; margin: 1.5rem 0; }
@media (min-width: 900px) { .egr-timeline { grid-template-columns: repeat(3, 1fr); } .egr-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 1.05rem; height: 2px; background: var(--egr-line); } }
.egr-timeline__step { position: relative; padding: 2.4rem 1.5rem 0 0; }
.egr-timeline__step > * { margin-block-start: 0 !important; }
.egr-timeline__step::before { content: ""; position: absolute; top: 0.55rem; left: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--egr-blue); box-shadow: 0 0 0 4px #fff; }
.egr-timeline__year { margin: 0 0 0.25rem; font-family: var(--wp--preset--font-family--mono); font-weight: 700; color: var(--egr-blue); font-size: 1.1rem; }
.egr-timeline__step h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.egr-timeline__step p:last-child { color: var(--egr-text2); font-size: 0.95rem; }
.egr-areas { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.egr-area { display: flex; gap: 0.8rem; align-items: center; background: #fff; border: 1px solid var(--egr-line); padding: 0.85rem 1rem; }
.egr-area > * { margin-block-start: 0 !important; }
.egr-area .egr-ico { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--egr-tint); box-shadow: none; }
.egr-area .egr-ico svg { width: 22px; height: 22px; }
.egr-area__t { margin: 0; font-weight: 700; color: var(--egr-navy); font-size: 0.95rem; line-height: 1.3; }
.egr-flowline { list-style: none; counter-reset: fl; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.egr-flowline li { background: #fff; border: 1px solid var(--egr-line); border-top: 4px solid var(--egr-blue); padding: 0.75rem 1.1rem; font-weight: 700; color: var(--egr-navy); position: relative; }
.egr-flowline li:not(:last-child)::after { content: "\2192"; position: absolute; right: -1.35rem; top: 50%; transform: translateY(-50%); color: var(--egr-gray); font-weight: 400; }
.egr-flowline li { margin-right: 1.2rem; }
.egr-flowline li:last-child { margin-right: 0; }
.egr-screens { position: relative; margin-bottom: 4.5rem; }
.egr-screens figure { margin: 0; }
.egr-screens img, .egr-screens__strip img { display: block; width: 100%; height: auto; border: 1px solid var(--egr-line); border-radius: 6px; background: #fff; box-shadow: 0 10px 30px rgba(11, 22, 84, 0.2); }
.egr-screens figcaption, .egr-screens__strip figcaption { font-size: 0.82rem; font-weight: 700; color: var(--egr-text2); margin-top: 0.4rem; }
.egr-screens__over { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 900px) {
	.egr-screens__main { width: 78%; }
	.egr-screens__over { position: absolute; right: 0; bottom: -3.5rem; width: 46%; grid-template-columns: 1fr; gap: 0.9rem; margin-top: 0; top: 2rem; bottom: auto; }
	.egr-screens__over img { box-shadow: 0 14px 34px rgba(11, 22, 84, 0.3); }
}
.egr-screens__strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.5rem; }
.egr-screens__strip figure { margin: 0; }
.egr-bigstats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; }
.egr-bigstats div { border-top: 3px solid var(--egr-blue); padding-top: 0.8rem; display: flex; flex-direction: column-reverse; }
.egr-bigstats dd { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; color: var(--egr-blue); line-height: 1.1; }
.egr-bigstats dt { font-size: 0.92rem; color: var(--egr-text2); margin-top: 0.3rem; }
.egr-section--indic:not(:has(.egr-bigstats)) { display: none; }

/* screens composition v2: one large screen + two overlapping smaller ones (desktop) */
.egr-screens__over { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
	.egr-screens__main { width: 80%; }
	.egr-screens__over { position: static; display: block; width: auto; margin: 0; }
	.egr-screens__over figure { position: absolute; width: 38%; z-index: 2; }
	.egr-screens__over figure:nth-child(1) { right: 0; top: 7%; }
	.egr-screens__over figure:nth-child(2) { right: 6%; bottom: -3.5rem; }
	.egr-screens__over img { box-shadow: 0 16px 36px rgba(11, 22, 84, 0.32); }
}

/* CCP case page */
.egr-section--herodark { background: linear-gradient(135deg, #0b1654 0%, #14297f 100%); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.egr-section--herodark .egr-hero__title { color: #fff; }
.egr-section--herodark .egr-subtitle, .egr-section--herodark .egr-subtitle em { color: var(--egr-cyan); font-style: normal; }
.egr-section--herodark .egr-hero__lead { color: #d6dbf2; }
.egr-section--herodark .egr-kicker { color: var(--egr-cyan); }
.egr-split__media.egr-illuswrap { display: block !important; }
.egr-illus { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35)); }
.egr-section--gray .egr-illus { filter: drop-shadow(0 14px 28px rgba(11, 22, 84, 0.2)); }
.egr-split--map { grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .egr-split--map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.egr-mapbox { position: relative; text-align: center; }
.egr-map { width: 100%; max-width: 520px; height: auto; display: block; margin-inline: auto; }
.egr-map path { fill: #dfe5f4; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.egr-map path.on { fill: var(--egr-blue); }
.egr-seal { display: inline-block; margin: 1rem auto 0; background: var(--egr-navy); color: #fff; font-weight: 700; padding: 0.55rem 1.1rem; border-radius: 999px; box-shadow: 0 6px 16px rgba(11, 22, 84, 0.25); }
.egr-presence--map { grid-template-columns: 1fr 1fr; }
.egr-presence--map h3 { margin: 0; font-size: 1.05rem; color: var(--egr-navy); }
@media (max-width: 520px) { .egr-presence--map { grid-template-columns: 1fr; } }
.egr-fcards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.egr-fcards > * { margin-block-start: 0 !important; }
.egr-fcard { background: #fff; border: 1px solid var(--egr-line); border-radius: 10px; padding: 1.4rem; box-shadow: 0 4px 16px rgba(11, 22, 84, 0.08); }
.egr-fcard > * { margin-block-start: 0 !important; }
.egr-fcard .egr-ico { background: var(--egr-tint); box-shadow: none; margin-bottom: 0.8rem; }
.egr-fcard h3 { font-size: 1.1rem; margin: 0 0 0.35rem; }
.egr-fcard p { margin: 0; font-size: 0.92rem; color: var(--egr-text2); }
.egr-areas--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .egr-areas--2 { grid-template-columns: 1fr; } }
.egr-flowline--col { flex-direction: column; align-items: stretch; gap: 1.4rem; }
.egr-flowline--col li { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); border-top: 4px solid var(--egr-cyan); }
.egr-flowline--col li:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -1.5rem; transform: translateX(-50%); color: var(--egr-cyan); }
.egr-section--shots:not(:has(.egr-screens)) { display: none; }

/* Orthocenter case page */
.egr-areas--1 { grid-template-columns: 1fr; }
.egr-areas--w { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.egr-section--wapp { background: linear-gradient(135deg, #0b1654 0%, #14297f 60%, #0f4c8a 100%); }
.egr-section--wapp .egr-area { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }
.egr-section--wapp .egr-area__t { color: #fff; }
.egr-section--wapp .egr-area .egr-ico { background: rgba(255, 255, 255, 0.14); color: var(--egr-cyan); }
.egr-section--wapp .egr-split__text p { color: #d6dbf2; }
.egr-funnel { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.egr-funnel > * { margin-block-start: 0 !important; }
.egr-funnel__step { display: flex; align-items: center; gap: 1rem; background: var(--egr-blue); color: #fff; font-weight: 700; padding: 0.9rem 1.2rem; margin-inline: auto; border-radius: 6px; box-shadow: 0 4px 14px rgba(11, 22, 84, 0.18); }
.egr-funnel__step > * { margin: 0 !important; color: #fff; }
.egr-funnel__n { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #fff; color: var(--egr-blue) !important; display: grid; place-items: center; font-size: 0.9rem; flex: 0 0 auto; }
.egr-funnel__step:nth-child(1) { width: 100%; }
.egr-funnel__step:nth-child(2) { width: 92%; }
.egr-funnel__step:nth-child(3) { width: 84%; }
.egr-funnel__step:nth-child(4) { width: 76%; }
.egr-funnel__step:nth-child(5) { width: 68%; }
.egr-funnel__step:nth-child(6) { width: 60%; background: var(--egr-navy); }
@media (max-width: 600px) { .egr-funnel__step { width: 100% !important; } }
.egr-finaside .egr-ico { margin-bottom: 1rem; }

/* Orthocenter case page (prototype layout) */
.egr-herophoto { position: relative; display: block !important; }
.egr-herophoto .wp-block-image { margin: 0; }
.egr-herophoto img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.egr-badgecard { position: absolute; top: 4%; right: 3%; width: min(46%, 250px); background: #fff; border-radius: 10px; padding: 0.9rem 1rem; box-shadow: 0 10px 28px rgba(11, 22, 84, 0.3); }
.egr-badgecard > * { margin-block-start: 0 !important; }
.egr-badgecard .wp-block-image img { box-shadow: none; border-radius: 0; margin-bottom: 0.6rem; }
.egr-badgecard .egr-ticks { margin: 0; }
.egr-badgecard .egr-ticks li { font-size: 0.78rem; color: var(--egr-navy); padding-block: 0.12rem; }
@media (max-width: 899px) { .egr-badgecard { position: static; width: 100%; margin-top: 1rem; } }
.egr-imgcap { font-size: 0.72rem; color: var(--egr-text2); margin: 0.4rem 0 0 !important; text-align: right; }
.egr-section--dark .egr-imgcap { color: #aeb6d8; }
.egr-section--facts { padding-block: 1.25rem; background: #fff; }
.egr-areas--facts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.egr-areas--facts .egr-area { border: 0; box-shadow: 0 2px 12px rgba(11, 22, 84, 0.08); }
.egr-overmedia { position: relative; display: block !important; }
.egr-overmedia .wp-block-image { margin: 0; }
.egr-overmedia img { width: 100%; height: auto; border-radius: 10px; display: block; }
.egr-overpanel { position: absolute; right: -0.5rem; top: 1rem; width: min(50%, 260px); background: #fff; border-radius: 10px; padding: 0.5rem; box-shadow: 0 10px 28px rgba(11, 22, 84, 0.25); gap: 0.3rem; }
.egr-overpanel .egr-area { border: 0; padding: 0.35rem 0.5rem; }
.egr-overpanel .egr-area .egr-ico { width: 1.9rem; height: 1.9rem; }
.egr-overpanel .egr-area .egr-ico svg { width: 16px; height: 16px; }
.egr-overpanel .egr-area__t { font-size: 0.78rem; }
@media (max-width: 899px) { .egr-overpanel { position: static; width: 100%; margin-top: 0.75rem; } }
.egr-shotframe { display: block !important; }
.egr-shotframe .wp-block-image { margin: 0; }
.egr-shotframe img { border-radius: 10px; box-shadow: 0 14px 34px rgba(11, 22, 84, 0.2); }
.egr-mapimg { display: block !important; }
.egr-mapimg img { max-width: 520px; margin-inline: auto; }
.egr-units { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0.5rem 0 1rem; }
.egr-unit { display: flex; gap: 0.8rem; align-items: center; background: #fff; border-radius: 8px; padding: 0.8rem 1rem; box-shadow: 0 4px 14px rgba(11, 22, 84, 0.1); }
.egr-unit > * { margin: 0 !important; }
.egr-unit__uf { font-weight: 700; color: var(--egr-navy); }
.egr-unit__city { font-size: 0.88rem; color: var(--egr-text2); }
.egr-phone { display: block !important; text-align: center; }
.egr-phone .wp-block-image { margin: 0; }
.egr-phone img { max-width: 300px; margin-inline: auto; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4)); }
.egr-areas--w { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.egr-funnel { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
.egr-funnel__step { width: 100% !important; flex-direction: column; text-align: center; background: #fff; color: var(--egr-navy); border: 1px solid var(--egr-line); border-top: 4px solid var(--egr-blue); box-shadow: 0 4px 14px rgba(11, 22, 84, 0.08); padding: 1rem 0.6rem; margin: 0; }
.egr-funnel__step > * { color: var(--egr-navy); }
.egr-funnel__step:nth-child(6) { background: #fff; }
.egr-funnel__step .egr-ico { background: var(--egr-tint); box-shadow: none; }
.egr-split--top { align-items: start; }

/* WhatsApp phone mock (real text) */
.egr-phone { display: block !important; text-align: center; }
.egr-wa { width: 300px; max-width: 100%; margin-inline: auto; text-align: left; background: #111; border-radius: 34px; padding: 10px; box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45); font-family: system-ui, sans-serif; }
.egr-wa__bar { display: flex; align-items: center; gap: 0.6rem; background: #075e54; color: #fff; padding: 0.7rem 0.8rem; border-radius: 24px 24px 0 0; }
.egr-wa__bar strong { display: block; font-size: 0.95rem; line-height: 1.1; }
.egr-wa__bar small { font-size: 0.72rem; opacity: 0.85; }
.egr-wa__av { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #fff; color: #1f3556; font-weight: 700; display: grid; place-items: center; }
.egr-wa__chat { background: #ece5dd; padding: 0.7rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 360px; }
.egr-wa__chat p { margin: 0 !important; padding: 0.5rem 0.65rem; border-radius: 8px; font-size: 0.8rem; line-height: 1.4; color: #111; max-width: 92%; position: relative; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12); }
.egr-wa__chat small { font-size: 0.7rem; color: #555; }
.egr-wa__in { background: #fff; align-self: flex-start; }
.egr-wa__out { background: #dcf8c6; align-self: flex-end; }
.egr-wa__chat time { display: block; text-align: right; font-size: 0.65rem; color: #777; margin-top: 0.15rem; }
.egr-wa__input { background: #f0f0f0; color: #888; font-size: 0.8rem; padding: 0.65rem 0.9rem; border-radius: 0 0 24px 24px; }
