/* ══════════════════════════════════════════════════════════════════════
   VCHF — Replica exacta do React (ep-wp-shell)
   v1.2.0 — CSS idêntico ao componente React da homepage
══════════════════════════════════════════════════════════════════════ */

.ep-wp-shell,
.ep-wp-shell * {
  box-sizing: border-box;
}

.ep-wp-shell {
  --ep-bg-light: #f2f2f2;
  --ep-bg-brand: #85c2ff;
  --ep-text: #0f172a;
  --ep-muted: #475569;
  --ep-accent: #f97316;
  --ep-accent-hover: #ea580c;
  --ep-white: #ffffff;
  --ep-border: rgba(15, 23, 42, 0.1);
  --ep-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --ep-shadow-lg: 0 14px 36px rgba(15, 23, 42, 0.12);
  color: var(--ep-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

.ep-wp-shell a { color: inherit; text-decoration: none; }
.ep-wp-shell img { display: block; max-width: 100%; height: auto; }

.ep-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ep-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.ep-icon--sm { width: 14px; height: 14px; flex-basis: 14px; }
.ep-icon svg, .ep-social svg { width: 100%; height: 100%; display: block; }

/* ── TOP BAR ─────────────────────────────────────────────────────────── */
.ep-topbar {
  background: var(--ep-bg-light);
  border-bottom: 1px solid var(--ep-border);
}
.ep-topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.ep-topbar__left,
.ep-topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ep-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ep-text);
  transition: color 0.2s ease;
}
.ep-topbar__item:hover { color: var(--ep-accent); }
.ep-topbar__item .ep-icon { color: var(--ep-accent); }
.ep-topbar__label { font-size: 12px; font-weight: 700; }
.ep-socials { display: flex; align-items: center; gap: 8px; }
.ep-social {
  width: 32px; height: 32px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #334155;
  transition: color 0.2s ease, transform 0.2s ease;
}
.ep-social:hover { color: var(--ep-accent); transform: translateY(-1px); }

/* ── HEADER ──────────────────────────────────────────────────────────── */
.ep-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--ep-border);
  background: rgba(133, 194, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* WordPress admin-bar compensation */
.admin-bar .ep-header { top: 32px; }

.ep-header__row {
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ep-header__logo {
  width: 145px; flex: 0 0 145px;
  display: flex; align-items: center; justify-content: flex-start;
}
.ep-header__logo img {
  width: auto; height: 84px; max-width: none; object-fit: contain;
}
.ep-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.ep-nav__list {
  list-style: none; padding: 0; margin: 0;
  max-width: 920px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px;
}
.ep-nav__list > li { position: relative; }
.ep-nav__list > li > a {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 10px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 700; color: #1e293b;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.ep-nav__list > li > a:hover { color: var(--ep-accent); }
.ep-nav__item--has-submenu > a::after {
  content: "";
  width: 8px; height: 8px; margin-left: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  display: inline-block;
}
.ep-submenu {
  list-style: none; margin: 0; padding: 12px 8px;
  position: absolute; left: 0; top: calc(100% + 12px);
  min-width: 240px;
  background: var(--ep-white); border-radius: 16px;
  box-shadow: var(--ep-shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 30;
}
.ep-nav__item--has-submenu:hover .ep-submenu,
.ep-nav__item--has-submenu:focus-within .ep-submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.ep-submenu li a {
  display: block; white-space: nowrap; padding: 12px 16px;
  border-radius: 12px; font-size: 14px; font-weight: 700; color: #1e293b;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ep-submenu li a:hover { background: #f8fafc; color: var(--ep-accent); }
.ep-header__cta { width: 186px; flex: 0 0 186px; display: flex; justify-content: flex-end; }
.ep-phone-chip {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; padding: 16px 20px; border-radius: 24px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--ep-shadow-sm);
  border: 1px solid rgba(15,23,42,0.05);
  font-size: 16px; font-weight: 700; color: var(--ep-text);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.ep-phone-chip:hover { background: var(--ep-white); transform: translateY(-1px); }
.ep-phone-chip .ep-icon { color: var(--ep-accent); }

/* Mobile — hidden on desktop */
.ep-menu-toggle,
.ep-menu-button,
.ep-mobile-panel { display: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ep-topbar { display: none; }
  .ep-header__row { min-height: 108px; }
  .ep-nav, .ep-header__cta { display: none; }

  .ep-menu-toggle { display: none; } /* keep hidden, label triggers it */
  .ep-menu-button {
    width: 44px; height: 44px; border-radius: 18px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(15,23,42,0.1);
    box-shadow: var(--ep-shadow-sm);
    display: inline-flex; flex-direction: column;
    justify-content: center; gap: 4px;
    cursor: pointer; margin-left: auto; padding: 0 11px;
  }
  .ep-menu-button span {
    display: block; height: 2px; border-radius: 999px;
    background: var(--ep-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .ep-menu-toggle:checked + .ep-menu-button span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .ep-menu-toggle:checked + .ep-menu-button span:nth-child(2) { opacity: 0; }
  .ep-menu-toggle:checked + .ep-menu-button span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .ep-mobile-panel {
    display: none;
    padding-bottom: 16px;
    border-top: 1px solid var(--ep-border);
  }
  .ep-menu-toggle:checked ~ .ep-mobile-panel { display: block; }

  .ep-mobile-call {
    display: block; margin: 16px 0; padding: 16px;
    border-radius: 24px; background: var(--ep-white);
    border: 1px solid rgba(15,23,42,0.05);
    box-shadow: var(--ep-shadow-sm);
    font-size: 14px; font-weight: 700; color: var(--ep-text); text-align: left;
  }
  .ep-mobile-links { display: grid; gap: 8px; }
  .ep-mobile-card {
    border-radius: 16px; background: rgba(255,255,255,0.7);
    border: 1px solid rgba(15,23,42,0.05);
    box-shadow: var(--ep-shadow-sm); overflow: hidden;
  }
  .ep-mobile-card > a {
    display: block; padding: 14px 16px;
    font-size: 14px; font-weight: 700; color: var(--ep-text);
  }
  .ep-mobile-submenu {
    border-top: 1px solid rgba(15,23,42,0.1);
    padding: 6px 8px 8px;
  }
  .ep-mobile-submenu a {
    display: block; padding: 10px 12px;
    border-radius: 12px; font-size: 14px; color: #334155;
  }
  .ep-mobile-submenu a:hover,
  .ep-mobile-card > a:hover { color: var(--ep-accent); background: rgba(255,255,255,0.9); }
}

@media (max-width: 767px) {
  .ep-container { padding-left: 16px; padding-right: 16px; }
  .ep-header__row { min-height: 96px; }
  .ep-header__logo { width: auto; flex-basis: auto; min-width: 0; }
  .ep-header__logo img { height: 68px; }
}
