.site-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header .site-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.95);
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-header.is-blur {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(226, 232, 240, 0.7);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

/* Site header: sticky only when class is present (EV4) */
.site-header { position: relative; }
.site-header.is-sticky { position: sticky; }

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.site-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
}

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

.site-nav a {
  text-decoration: none;
  color: #334155;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
}

.site-nav a:hover {
  background: #f1f5f9;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 2.4rem;
  background: radial-gradient(1200px 500px at 10% -20%, color-mix(in srgb, var(--site-primary) 20%, #fff 80%), transparent),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
}

.hero-tag {
  margin: 0;
  color: var(--site-primary);
  font-weight: 600;
}

.hero h1 {
  margin: 0.4rem 0 0.8rem;
  color: var(--site-secondary);
  line-height: 1.1;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}

.hero-copy {
  color: #475569;
  max-width: 58ch;
}

.btn-hero {
  display: inline-flex;
  margin-top: 0.7rem;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  background: var(--site-primary);
  color: #002331;
  font-weight: 700;
}

.hero-card {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid #1e293b;
}

.hero-logo,
.hero-media {
  position: absolute;
  z-index: 2;
}

.hero-logo {
  width: var(--hero-logo-size, 96px);
  height: auto;
  object-fit: contain;
}

.hero-media {
  width: var(--hero-media-size, 320px);
  max-width: 42vw;
  height: auto;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.hero-logo.is-pos-top-left { top: 16px; left: 24px; }
.hero-logo.is-pos-top-center { top: 16px; left: 50%; transform: translateX(-50%); }
.hero-logo.is-pos-center-left { top: 50%; left: 24px; transform: translateY(-50%); }
.hero-logo.is-pos-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.hero-media.is-pos-right-card { right: 24px; bottom: 20px; }
.hero-media.is-pos-left-inline { left: 24px; bottom: 22px; }
.hero-media.is-pos-background-soft { right: -42px; top: 24px; opacity: 0.35; }

.hero-logo.is-anim-float,
.hero-media.is-anim-float {
  animation: hero-float 4.2s ease-in-out infinite;
}

.hero-logo.is-anim-pulse {
  animation: hero-pulse 2.4s ease-in-out infinite;
}

.hero-logo.is-anim-fade-in,
.hero-media.is-anim-slide-up,
.hero-media.is-anim-zoom-in {
  animation-duration: 420ms;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

.hero-logo.is-anim-fade-in { animation-name: hero-fade-in; }
.hero-media.is-anim-slide-up { animation-name: hero-slide-up; }
.hero-media.is-anim-zoom-in { animation-name: hero-zoom-in; }

@keyframes hero-float {
  50% { transform: translateY(-8px); }
}

@keyframes hero-pulse {
  50% { transform: scale(1.05); }
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-zoom-in {
  from { opacity: 0; transform: scale(0.93); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   EV3 — Hero layout/height/bg/text modifiers
   ============================================================ */

/* Hero heights */
.hero--h-compact { padding-top: 1.8rem; padding-bottom: 1.4rem; }
.hero--h-normal  { padding-top: 3.2rem; padding-bottom: 2.4rem; }
.hero--h-tall    { padding-top: 5rem;   padding-bottom: 4rem; }

/* Hero bg styles */
.hero--bg-gradient {
  background: radial-gradient(1200px 500px at 10% -20%, color-mix(in srgb, var(--site-primary) 20%, #fff 80%), transparent),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.hero--bg-white  { background: #ffffff; }
.hero--bg-dark   { background: #0f172a; color: #f1f5f9; }
.hero--bg-dark .hero-tag   { color: var(--site-primary); }
.hero--bg-dark .hero h1    { color: #f8fafc; }
.hero--bg-dark .hero-copy  { color: #94a3b8; }

/* Hero text alignment */
.hero--text-center .hero-grid { text-align: center; justify-items: center; }

/* Hero layout: centered (single column) */
.hero--layout-centered .hero-grid {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.hero--layout-centered .hero-grid .hero-card { display: none; }

/* Hero layout: full-bg (background image mode, text on overlay) */
.hero--layout-full-bg .hero-grid {
  grid-template-columns: 1fr;
}
.hero--layout-full-bg .hero-grid .hero-card { display: none; }

/* ============================================================
   EV4 — Site header model modifiers
   ============================================================ */

/* Header height */
.site-header--h-compact .site-wrap { min-height: 52px; }
.site-header--h-normal  .site-wrap { min-height: 72px; }
.site-header--h-tall    .site-wrap { min-height: 90px; }

/* Header CTA */
.site-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.btn-cta--button  { background: var(--site-primary); color: #002331; }
.btn-cta--outline { border: 2px solid var(--site-primary); color: var(--site-primary); background: transparent; }
.btn-cta--link    { color: var(--site-primary); padding-left: 0; padding-right: 0; }

/* Header transparent model */
.site-header--transparent { background: transparent; border-color: transparent; }

/* Header centered model */
.site-header--centered .site-wrap { justify-content: center; gap: 2rem; }

/* Container modes */
.site-wrap--full  { width: 100%; max-width: 100%; padding: 0 2rem; }
.site-wrap--boxed { width: min(900px, 92vw); }

/* ============================================================
   EV5 — Site footer model modifiers
   ============================================================ */

.site-footer { border-top: 1px solid #e2e8f0; color: #64748b; font-size: 0.9rem; padding: 1.6rem 0 2rem; }
.site-footer.has-border-top { border-top: 3px solid var(--site-primary); }

/* Footer bg styles */
.site-footer--bg-dark   { background: #0f172a; color: #94a3b8; border-top-color: #1e293b; }
.site-footer--bg-dark a { color: #cbd5e1; }
.site-footer--bg-dark a:hover { color: #f1f5f9; }
.site-footer--bg-light  { background: #f8fafc; color: #475569; }
.site-footer--bg-brand  { background: var(--site-primary); color: #fff; }

/* Footer layout */
.footer-columns { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 1.2rem; }
.footer-col h4  { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.6rem; opacity: 0.7; }
.footer-col ul  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.footer-col a   { text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-tagline { margin: 0 0 0.8rem; font-size: 0.9rem; opacity: 0.8; }
.footer-bottom  { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; }
.site-footer--bg-light .footer-bottom { border-top-color: #e2e8f0; }
.footer-brand   { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.8rem; }
.footer-social  { display: flex; gap: 0.5rem; }
.footer-social-link { text-decoration: none; font-size: 0.8rem; padding: 0.25rem 0.5rem; border-radius: 6px; background: rgba(255,255,255,0.08); }
.site-footer--bg-light .footer-social-link { background: #e2e8f0; color: #334155; }

/* Footer CTA band */
.footer-cta-band { text-align: center; padding: 1.5rem 0; }
.footer-cta-band .btn-hero { margin: 0.8rem auto 0; display: inline-flex; }
.footer-cta-text { font-size: 1.1rem; font-weight: 600; margin: 0; }

.builder-slot {
  padding: 1rem 0 2rem;
}

.builder-page .front-section,
.front-section {
  margin: 1rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

.front-section h2 {
  margin: 0 0 0.9rem 0;
  color: #0f172a;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.feature-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem;
  background: #fff;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.plan-card {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 0.9rem;
  background: #f8fafc;
}

.plan-card .price {
  font-size: 1.3rem;
  color: #0f172a;
  font-weight: 700;
}

.front-section details {
  border-top: 1px solid #e2e8f0;
  padding: 0.65rem 0;
}

.cta-final {
  background: #0f172a;
  color: #f8fafc;
}

.cta-final h2 {
  color: #f8fafc;
}

/* Legacy .site-footer base — consolidado no bloco EV5 acima */
.site-footer--legacy-remove {
  padding: 1rem 0 2rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 66vw;
  }
}

@media (max-width: 760px) {
  .site-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    top: 66px;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }
}
