/*
 * Etesco — utilitários base e comportamento dos widgets Elementor.
 * Portado das @utility do Tailwind v4 em src/styles.css.
 */

html {
  background-color: var(--e-background);
  color: var(--e-foreground);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--e-background);
  color: var(--e-foreground);
  font-family: var(--e-font-sans);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--e-font-display);
  letter-spacing: -0.03em;
  font-weight: 600;
}

/* Elementor's Global Kit defaults (Roboto/Roboto Slab) win over the plain
   h1-h6 rule above by specificity on native widgets (Heading, etc.) unless
   forced here — keeps Arial correct even before Global Fonts is configured. */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--e-font-display) !important;
}

::selection {
  background: var(--e-primary);
  color: var(--e-primary-foreground);
}

.container-etesco {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
  max-width: 1280px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--e-primary);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 2px;
  background: var(--e-primary);
}

.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.25s ease-out;
}
.link-underline:hover::after {
  width: 100%;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.shadow-editorial {
  box-shadow:
    0 1px 2px rgba(15, 15, 15, 0.04),
    0 12px 32px -12px rgba(15, 15, 15, 0.14);
}

.shadow-editorial-hover {
  box-shadow:
    0 2px 4px rgba(15, 15, 15, 0.06),
    0 24px 48px -18px rgba(15, 15, 15, 0.22);
}

.rounded-organic {
  border-radius: 1rem;
}
.rounded-organic-lg {
  border-radius: 1.5rem;
}

.etesco-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 2.75rem;
  padding-inline: 1.5rem;
  text-decoration: none;
}
.etesco-btn--default {
  background: var(--e-primary);
  color: var(--e-primary-foreground);
}
.etesco-btn--default:hover {
  background: color-mix(in srgb, var(--e-primary) 90%, transparent);
  color: var(--e-primary-foreground);
}
.etesco-btn--outline-white {
  border: 1px solid rgba(245, 245, 245, 0.4);
  background: transparent;
  color: var(--e-foreground);
}
.etesco-btn--outline-white:hover {
  border-color: var(--e-foreground);
  background: rgba(245, 245, 245, 0.1);
}

/* Scroll reveal (substitui o componente ScrollReveal do React) */
.etesco-reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: transform, opacity;
}
.etesco-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.etesco-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2rem;
  animation: etesco-marquee 25s linear infinite;
}

/* ==========================================================================
   Header (Theme Builder) — fixed bar, transparent → graphite on scroll.
   ========================================================================== */
.etesco-header-bar {
  /* !important: beats Elementor's own `.elementor-top-section { position:
     relative }` base rule, which otherwise wins (same specificity, loads
     after this stylesheet) and silently drops the fixed positioning —
     the header would scroll away with the page instead of staying pinned. */
  position: fixed !important;
  inset-inline: 0;
  top: 0 !important;
  z-index: 999;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.etesco-header-bar.is-scrolled {
  background: rgba(100, 100, 96, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--e-border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.etesco-header-bar .elementor-widget-etesco-logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.etesco-header-bar .elementor-nav-menu--main a {
  color: var(--e-foreground) !important;
  font-weight: 500;
  font-size: 0.875rem;
}
.etesco-header-bar .elementor-nav-menu--main a:hover,
.etesco-header-bar .elementor-nav-menu--main li.current-menu-item > a {
  color: var(--e-primary) !important;
}
/* Nav Menu widget's own hover "pointer" underline and dropdown caret icon
   default to an unrelated green Kit accent color — force them to the
   theme's orange to match the text hover color above. */
.etesco-header-bar .elementor-nav-menu--main .elementor-item:before,
.etesco-header-bar .elementor-nav-menu--main .elementor-item:after {
  background-color: var(--e-primary) !important;
  border-color: var(--e-primary) !important;
}
.etesco-header-bar .elementor-nav-menu--main .sub-arrow svg {
  fill: var(--e-primary) !important;
}
.etesco-header-bar .elementor-nav-menu--dropdown a {
  color: var(--e-surface-light-foreground) !important;
}
.etesco-header-bar .elementor-menu-toggle {
  color: var(--e-foreground) !important;
}

/* Native Button widget → same look as the Lovable "default" button variant.
   !important: Elementor's own Global Kit prints `background-color:
   var(--e-global-color-accent)` at equal selector specificity, later in the
   cascade than this theme stylesheet, so it would otherwise win. */
.elementor-widget-button .elementor-button {
  background-color: var(--e-primary) !important;
  color: var(--e-primary-foreground) !important;
  border-radius: 2px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.elementor-widget-button .elementor-button:hover {
  opacity: 0.9;
  color: var(--e-primary-foreground) !important;
}

/* ==========================================================================
   Footer (Theme Builder)
   ========================================================================== */
.etesco-footer {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.etesco-footer .elementor-widget-heading .elementor-heading-title {
  color: var(--e-primary);
  font-size: 0.875rem;
  font-weight: 600;
}
.etesco-footer .elementor-nav-menu--main {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.etesco-footer .elementor-nav-menu--main a {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.875rem;
}
.etesco-footer .elementor-nav-menu--main a:hover {
  color: var(--e-primary) !important;
}
/* Same fix as the header: Nav Menu widget's own hover "pointer" underline
   defaults to an unrelated green Kit accent color. */
.etesco-footer .elementor-nav-menu--main .elementor-item:before,
.etesco-footer .elementor-nav-menu--main .elementor-item:after {
  background-color: var(--e-primary) !important;
  border-color: var(--e-primary) !important;
}
.etesco-footer .elementor-widget-text-editor,
.etesco-footer .elementor-widget-text-editor p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.6;
}
.etesco-footer a {
  color: inherit;
  text-decoration: none;
}
.etesco-footer a:hover {
  color: var(--e-primary);
}
.etesco-footer .elementor-social-icons-wrapper .elementor-social-icon {
  color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: transparent !important;
}
.etesco-footer .elementor-social-icons-wrapper .elementor-social-icon:hover {
  color: var(--e-primary) !important;
  border-color: var(--e-primary);
}
.etesco-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.etesco-footer-bottom .elementor-widget-text-editor,
.etesco-footer-bottom .elementor-widget-text-editor p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin: 0;
}

/* ==========================================================================
   Contact form card (Contato page)
   ========================================================================== */
.etesco-contact-col .elementor-widget-wrap {
  max-width: 48rem !important;
  margin-inline: auto !important;
  background-color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  box-shadow:
    0 1px 2px rgba(15, 15, 15, 0.04),
    0 12px 32px -12px rgba(15, 15, 15, 0.14);
  padding: 2rem 2.5rem;
}
@media (min-width: 768px) {
  .etesco-contact-col .elementor-widget-wrap {
    padding: 2.5rem 3rem;
  }
}

/* ==========================================================================
   Page Hero — used by the "Etesco Page Hero" widget AND directly by
   single-etesco_news.php (a classic PHP template, no Elementor widgets
   available there), so this lives here rather than as widget-inline CSS.
   ========================================================================== */
.etesco-page-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--e-border); padding-top: 4rem; }
.etesco-page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.etesco-page-hero__bg img { height: 100% !important; width: 100%; object-fit: cover; }
.etesco-page-hero__gradient-h { position: absolute; inset: 0; background: linear-gradient(to right, var(--e-background), color-mix(in srgb, var(--e-background) 85%, transparent), color-mix(in srgb, var(--e-background) 30%, transparent)); }
.etesco-page-hero__gradient-v { position: absolute; inset: 0; background: linear-gradient(to top, var(--e-background), color-mix(in srgb, var(--e-background) 40%, transparent), transparent); }
.etesco-page-hero--sm { padding-block: 6rem; }
.etesco-page-hero--md { padding-block: 7rem; }
.etesco-page-hero--lg { padding-block: 8rem; }
.etesco-page-hero--cover { min-height: 68svh; padding-block: 4rem; }
@media (min-width: 768px) {
  .etesco-page-hero--sm { padding-block: 7rem; }
  .etesco-page-hero--md { padding-block: 9rem; }
  .etesco-page-hero--lg { padding-block: 10rem; }
  .etesco-page-hero--cover { min-height: 72svh; }
}
.etesco-page-hero__content { max-width: 48rem; }
.etesco-page-hero__title { font-size: 2.25rem; font-weight: 600; line-height: 1.05; color: var(--e-foreground); margin: 0; }
@media (min-width: 768px) { .etesco-page-hero__title { font-size: 3.75rem; } }
.etesco-page-hero__description { margin-top: 1.5rem; font-size: 1.125rem; color: color-mix(in srgb, var(--e-foreground) 85%, transparent); max-width: 42rem; }

/* ==========================================================================
   Single Notícia article body (single-etesco_news.php)
   ========================================================================== */
.etesco-article-section {
  background: var(--e-surface-light);
  color: var(--e-surface-light-foreground);
}
.etesco-article-container {
  max-width: 48rem;
  padding-block: 5rem;
}
@media (min-width: 768px) {
  .etesco-article-container { padding-block: 6rem; }
}
.etesco-article__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 12px 32px -12px rgba(15, 15, 15, 0.14);
}
.etesco-article__media img {
  height: 100% !important;
  width: 100%;
  object-fit: cover;
}
.etesco-article__body {
  margin-top: 3rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--e-surface-light-foreground) 80%, transparent);
}
.etesco-article__body > * + * {
  margin-top: 1.5rem;
}
.etesco-article__excerpt {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--e-surface-light-foreground) 90%, transparent);
}
@media (min-width: 768px) {
  .etesco-article__excerpt { font-size: 1.5rem; }
}
.etesco-article__back {
  margin-top: 3.5rem;
}
.etesco-article__back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--e-surface-light-foreground) 70%, transparent);
  text-decoration: none;
}
.etesco-article__back a:hover {
  color: var(--e-primary);
}

/* ==========================================================================
   Careers application form card (Trabalhe Conosco page)
   ========================================================================== */
#vagas,
#candidatura {
  scroll-margin-top: 5rem;
}
.etesco-application-col {
  max-width: 48rem !important;
}
.etesco-application-col .elementor-widget-form {
  margin-top: 2rem;
}
.etesco-application-col .elementor-widget-form .elementor-widget-container {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1.5rem;
  box-shadow:
    0 1px 2px rgba(15, 15, 15, 0.04),
    0 12px 32px -12px rgba(15, 15, 15, 0.14);
  padding: 1.5rem 1.5rem;
}
@media (min-width: 768px) {
  .etesco-application-col .elementor-widget-form .elementor-widget-container {
    padding: 2.5rem 3rem;
  }
}

/* ==========================================================================
   Capability card ("Capacidade de execução" checklist) — used by the
   "Etesco Capability Card" widget AND, with the same class names, by the
   sticky sidebar in single-etesco_projeto.php.
   ========================================================================== */
.etesco-capability-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 12px 32px -12px rgba(15, 15, 15, 0.14);
}
.etesco-capability-card__bar {
  display: block;
  height: 4px;
  width: 2.5rem;
  background: var(--e-primary);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.etesco-capability-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #000;
  margin: 0;
}
.etesco-capability-card ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.875rem;
}
.etesco-capability-card li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.8);
}
.etesco-capability-card__check {
  color: var(--e-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.etesco-capability-card__dot {
  display: block;
  margin-top: 0.5rem;
  height: 0.375rem;
  width: 0.375rem;
  flex-shrink: 0;
  background: var(--e-primary);
}

/* ==========================================================================
   Project grid (asymmetric masonry) — "Etesco Project Grid" widget
   ========================================================================== */
.etesco-projects__title {
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
  color: var(--e-surface-muted-foreground);
}
@media (min-width: 768px) { .etesco-projects__title { font-size: 3rem; } }
.etesco-projects__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 899px) {
  .etesco-projects__grid { grid-template-columns: 1fr; }
  .etesco-pg-span-2, .etesco-pg-span-3, .etesco-pg-span-4, .etesco-pg-span-6 { grid-column: span 1; }
}
.etesco-pg-span-2 { grid-column: span 2; }
.etesco-pg-span-3 { grid-column: span 3; }
.etesco-pg-span-4 { grid-column: span 4; }
.etesco-pg-span-6 { grid-column: span 6; }
.etesco-project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 12px 32px -12px rgba(15, 15, 15, 0.14);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.etesco-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(15, 15, 15, 0.06), 0 24px 48px -18px rgba(15, 15, 15, 0.22);
}
.etesco-project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.etesco-project-card__media.is-tall { aspect-ratio: 3 / 4; }
.etesco-project-card__media img { height: 100% !important; width: 100%; object-fit: cover; transition: transform 0.9s ease-out; }
.etesco-project-card:hover .etesco-project-card__media img { transform: scale(1.06); }
.etesco-project-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15) 60%, transparent); }
.etesco-project-card__chip {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.25);
}
.etesco-project-card__chip h3 { margin: 0; font-size: 1rem; font-weight: 500; letter-spacing: -0.015em; color: #000; line-height: 1.3; }
@media (min-width: 768px) { .etesco-project-card__chip h3 { font-size: 1.125rem; } }
.etesco-project-card__arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 999px;
  background: var(--e-primary);
  color: var(--e-primary-foreground);
  transition: transform 0.3s ease;
}
.etesco-project-card:hover .etesco-project-card__arrow { transform: rotate(45deg); }

/* ==========================================================================
   Single project template (single-etesco_projeto.php)
   ========================================================================== */
.etesco-project-meta-bar { background: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.etesco-project-meta-bar__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.25rem; font-size: 0.875rem; }
.etesco-project-meta-bar__back { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; color: rgba(0, 0, 0, 0.7); text-decoration: none; }
.etesco-project-meta-bar__back:hover { color: var(--e-primary); }
.etesco-project-meta-bar__sector { display: inline-flex; align-items: center; gap: 0.375rem; color: rgba(0, 0, 0, 0.6); }

.etesco-project-body-section { background: var(--e-surface-light); color: var(--e-surface-light-foreground); }
.etesco-project-body-container { padding-block: 5rem; }
@media (min-width: 768px) { .etesco-project-body-container { padding-block: 7rem; } }
.etesco-project-body-grid { display: grid; gap: 3.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .etesco-project-body-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.etesco-project-lead { font-size: 1.25rem; font-weight: 300; letter-spacing: -0.01em; line-height: 1.6; color: color-mix(in srgb, var(--e-surface-light-foreground) 90%, transparent); max-width: 48rem; }
@media (min-width: 768px) { .etesco-project-lead { font-size: 1.5rem; } }
.etesco-project-content { margin-top: 3.5rem; max-width: 48rem; font-size: 1.125rem; line-height: 1.75; color: color-mix(in srgb, var(--e-surface-light-foreground) 80%, transparent); }
.etesco-project-content > * + * { margin-top: 1.5rem; }
.etesco-project-content img { width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 12px 32px -12px rgba(15, 15, 15, 0.14); aspect-ratio: 16 / 9; object-fit: cover; }
.etesco-project-sidebar { position: sticky; top: 7rem; }

.etesco-project-cta-section { background: var(--e-surface-light); padding-bottom: 5rem; }
@media (min-width: 768px) { .etesco-project-cta-section { padding-bottom: 7rem; } }
.etesco-project-cta { position: relative; overflow: hidden; border-radius: 1rem; background: linear-gradient(135deg, var(--e-primary), var(--e-primary-deep)); color: var(--e-primary-foreground); padding: 2.5rem; }
@media (min-width: 768px) { .etesco-project-cta { padding: 4rem; } }
.etesco-project-cta::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); top: -160px; right: -160px; }
.etesco-project-cta__inner { position: relative; display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 768px) { .etesco-project-cta__inner { grid-template-columns: 1.4fr 1fr; } }
.etesco-project-cta h3 { margin: 0; font-size: 1.875rem; font-weight: 500; line-height: 1.15; }
@media (min-width: 768px) { .etesco-project-cta h3 { font-size: 3rem; } }
.etesco-project-cta p { margin-top: 1.25rem; max-width: 36rem; font-size: 1.125rem; opacity: 0.85; }
.etesco-project-cta__btn { display: inline-flex; align-items: center; gap: 0.5rem; background: #000; color: #fff; border-radius: 999px; height: 3.5rem; padding-inline: 2rem; font-weight: 600; text-decoration: none; }
.etesco-project-cta__btn:hover { background: rgba(0, 0, 0, 0.85); }

.etesco-related-section { background: var(--e-surface-muted); color: var(--e-surface-muted-foreground); border-top: 1px solid rgba(0, 0, 0, 0.05); padding-block: 5rem; }
.etesco-related-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.etesco-related-header h2 { margin: 0; font-size: 1.875rem; font-weight: 500; letter-spacing: -0.03em; }
@media (min-width: 768px) { .etesco-related-header h2 { font-size: 2.25rem; } }
.etesco-related-header a { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 500; color: inherit; text-decoration: none; }
.etesco-related-header a:hover { color: var(--e-primary); }
.etesco-related-header__arrow { display: grid; place-items: center; height: 2.5rem; width: 2.5rem; border-radius: 999px; background: #000; color: #fff; transition: transform 0.3s ease; }
.etesco-related-header a:hover .etesco-related-header__arrow { transform: rotate(45deg); }
.etesco-related-scroll { overflow-x: auto; scrollbar-width: none; }
.etesco-related-scroll::-webkit-scrollbar { display: none; }
.etesco-related-track { display: flex; gap: 1.5rem; padding-bottom: 0.5rem; }
.etesco-related-card { flex-shrink: 0; width: 85%; max-width: 420px; border-radius: 1rem; overflow: hidden; background: #fff; border: 1px solid rgba(0, 0, 0, 0.05); text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 12px 32px -12px rgba(15, 15, 15, 0.14); transition: transform 0.5s ease; }
.etesco-related-card:hover { transform: translateY(-4px); }
.etesco-related-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: rgba(0, 0, 0, 0.05); }
.etesco-related-card__media img { height: 100% !important; width: 100%; object-fit: cover; transition: transform 0.9s ease-out; }
.etesco-related-card:hover .etesco-related-card__media img { transform: scale(1.06); }
.etesco-related-card__body { padding: 1.5rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.etesco-related-card__body h3 { margin: 0; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; }
.etesco-related-card:hover .etesco-related-card__body h3 { color: var(--e-primary); }
.etesco-related-card__arrow { flex-shrink: 0; display: grid; place-items: center; height: 2.25rem; width: 2.25rem; border-radius: 999px; background: var(--e-primary); color: var(--e-primary-foreground); }

/* ==========================================================================
   Section Intro ("Etesco Section Intro" widget) — accent bar + title,
   paragraphs beside it. Used for the About/intro blocks on the segment
   pages (Saneamento, Óleo e Gás).
   ========================================================================== */
.etesco-section-intro { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .etesco-section-intro { grid-template-columns: 5fr 7fr; gap: 3.5rem; } }
.etesco-section-intro__title-col { display: flex; gap: 1.5rem; }
.etesco-section-intro__bar { display: block; width: 3px; background: var(--e-primary); flex-shrink: 0; align-self: stretch; }
.etesco-section-intro__title-col h2 { margin: 0; font-size: 1.875rem; font-weight: 600; line-height: 1.05; }
@media (min-width: 768px) { .etesco-section-intro__title-col h2 { font-size: 3rem; } }
.etesco-section-intro__body { font-size: 0.9375rem; line-height: 1.7; }
@media (min-width: 768px) { .etesco-section-intro__body { font-size: 1rem; } }
.etesco-section-intro__body p + p { margin-top: 1.25rem; }
.etesco-section-intro--light .etesco-section-intro__title-col h2 { color: var(--e-surface-light-foreground); }
.etesco-section-intro--light .etesco-section-intro__body { color: rgba(0, 0, 0, 0.7); }
.etesco-section-intro--dark .etesco-section-intro__title-col h2 { color: var(--e-foreground); }
.etesco-section-intro--dark .etesco-section-intro__body { color: rgba(255, 255, 255, 0.75); }

/* ==========================================================================
   Timeline ("Etesco Timeline" widget) — horizontal scrolling milestone
   strip used on the Óleo e Gás page. Simplified from the Lovable source's
   auto-scrolling zig-zag layout to a manual/scroll-snap row with prev/next
   arrows (see class-etesco-timeline-widget.php for rationale).
   ========================================================================== */
.etesco-timeline__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.etesco-timeline__bar { display: inline-block; width: 3rem; height: 3px; background: var(--e-primary); margin-bottom: 1rem; }
.etesco-timeline__header h2 { margin: 0.5rem 0 0; font-size: 1.875rem; font-weight: 600; line-height: 1.05; color: var(--e-surface-light-foreground, #0B0B0B); }
@media (min-width: 768px) { .etesco-timeline__header h2 { font-size: 2.5rem; } }
.etesco-timeline__header p { margin: 0.5rem 0 0; font-size: 0.9375rem; color: rgba(0, 0, 0, 0.65); }
.etesco-timeline__nav { display: flex; gap: 0.5rem; flex-shrink: 0; }
.etesco-timeline__navbtn { display: grid; place-items: center; height: 2.75rem; width: 2.75rem; border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.15); background: transparent; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background 0.3s ease, color 0.3s ease; }
.etesco-timeline__navbtn:hover { background: var(--e-primary); color: var(--e-primary-foreground); border-color: var(--e-primary); }
.etesco-timeline__scroll { overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; }
.etesco-timeline__scroll.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.etesco-timeline__scroll.no-scrollbar::-webkit-scrollbar { display: none; }
.etesco-timeline__track { display: flex; align-items: flex-start; gap: 1.5rem; padding-bottom: 0.5rem; }
.etesco-timeline__card { scroll-snap-align: start; flex-shrink: 0; width: 15rem; border-radius: 1rem; background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 12px 32px -12px rgba(15, 15, 15, 0.14); padding: 1.5rem; }
.etesco-timeline__year { font-size: 1.5rem; font-weight: 700; color: var(--e-primary); margin-bottom: 1rem; }
.etesco-timeline__assets { display: flex; flex-direction: column; gap: 1rem; }
.etesco-timeline__thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0.5rem; background: rgba(0, 0, 0, 0.05); }
.etesco-timeline__thumb img { height: 100% !important; width: 100%; object-fit: cover; }
.etesco-timeline__label { display: block; margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.4; color: rgba(0, 0, 0, 0.65); }

/* ==========================================================================
   Vertical Timeline ("Etesco Vertical Timeline" widget) — alternating
   milestone list with a center guide line, used for the "Sete décadas de
   decisões técnicas" trajectory block on the Nossa História page.
   ========================================================================== */
.etesco-vtimeline__header { max-width: 48rem; margin-bottom: 4rem; }
.etesco-vtimeline__bar { display: block; width: 2.5rem; height: 4px; border-radius: 999px; background: var(--e-primary); margin-bottom: 1.5rem; }
.etesco-vtimeline__header h2 { margin: 0; font-size: 1.875rem; font-weight: 500; line-height: 1.15; color: var(--e-surface-muted-foreground, #0B0B0B); }
@media (min-width: 768px) { .etesco-vtimeline__header h2 { font-size: 3rem; } }
.etesco-vtimeline__body { position: relative; }
.etesco-vtimeline__line { position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: rgba(0, 0, 0, 0.1); }
@media (min-width: 768px) { .etesco-vtimeline__line { left: 50%; transform: translateX(-50%); } }
.etesco-vtimeline__list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 768px) { .etesco-vtimeline__list { gap: 3.5rem; } }
.etesco-vtimeline__item { position: relative; padding-left: 2.5rem; }
@media (min-width: 768px) { .etesco-vtimeline__item { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; padding-left: 0; } }
@media (min-width: 1024px) { .etesco-vtimeline__item { column-gap: 5rem; } }
.etesco-vtimeline__dot { position: absolute; left: 7px; top: 1.75rem; height: 1rem; width: 1rem; border-radius: 999px; background: var(--e-primary); box-shadow: 0 0 0 4px #fff; transform: translate(-50%, -50%); z-index: 1; }
@media (min-width: 768px) { .etesco-vtimeline__dot { left: 50%; } }
.etesco-vtimeline__card { background: #fff; border: 1px solid rgba(0, 0, 0, 0.05); padding: 1.5rem; }
@media (min-width: 768px) { .etesco-vtimeline__card { padding: 2rem 2.5rem; grid-column: 2; } }
@media (min-width: 768px) { .etesco-vtimeline__item:nth-child(odd) .etesco-vtimeline__card { grid-column: 1; text-align: right; } }
.etesco-vtimeline__year { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--e-primary); margin-bottom: 0.75rem; }
.etesco-vtimeline__item:nth-child(odd) .etesco-vtimeline__year { justify-content: flex-end; }
.etesco-vtimeline__year::before { content: ""; display: block; height: 1px; width: 1.5rem; background: rgba(230, 126, 34, 0.4); }
.etesco-vtimeline__item:nth-child(odd) .etesco-vtimeline__year { flex-direction: row-reverse; }
.etesco-vtimeline__card p { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: rgba(0, 0, 0, 0.85); }

/* Utility: black CTA button variant (e.g. Compliance "Ver Arquivo"), overriding
   Elementor's own global-kit button background on this one instance. */
.etesco-btn-black .elementor-button { background-color: #0B0B0B !important; border-color: #0B0B0B !important; color: #fff !important; }

/* Stacked Feature_Cards widget instances (e.g. the Missão/Visão/Valores page,
   one 1-col card then one 2-col row) need breathing room between them.
   Targets Elementor's own `.elementor-widget-{name}` wrapper, since the
   widget's own root divs are never direct siblings (each is wrapped). */
.elementor-widget-etesco-feature-cards + .elementor-widget-etesco-feature-cards { margin-top: 1.5rem; }
