/**
 * Estação das Motos S/A — Design System & Layout CSS
 * Fiel ao projeto original: cores, tipografia, espaçamentos, texturas e interações.
 */

:root {
  --brand-navy: #002855;
  --brand-deep: #001b3d;
  --brand-red: #e31e24;
  --brand-red-hover: #c4161c;
  --brand-ink: #0b1b33;
  --brand-line: #e3e8ef;
  --brand-steel: #f4f7fa;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.edm-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brand-ink);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.edm-site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

.edm-main {
  flex: 1;
  padding-top: 64px;
}

@media (min-width: 1024px) {
  .edm-main {
    padding-top: 108px;
  }
}

body.admin-bar .edm-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .edm-header {
    top: 46px;
  }
}

/* Container principal (.shell) */
.shell {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .shell {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Tipografia utilitária */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 10.5px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.06;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.1rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.6rem;
  }
}

/* Texturas de fundo originais */
.blueprint,
.edm-blueprint {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

.tread-pattern,
.edm-tread-pattern {
  background-image: repeating-linear-gradient(
    115deg,
    rgba(0, 40, 85, 0.05) 0 2px,
    transparent 2px 14px
  );
}

/* Ícones SVG */
.edm-icon-xs {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.edm-icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.edm-icon-md {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* =========================================================
   HEADER
   ========================================================= */
.edm-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}

.edm-topbar {
  display: none;
  background-color: var(--brand-deep);
  color: #ffffff;
}

@media (min-width: 1024px) {
  .edm-topbar {
    display: block;
  }
}

.edm-topbar-inner {
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}

.edm-topbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.edm-topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.edm-topbar-links a:hover {
  color: #ffffff;
}

.edm-navbar {
  background-color: #ffffff;
  transition: box-shadow 0.3s ease;
}

.edm-navbar.is-scrolled {
  box-shadow: 0 10px 40px -24px rgba(0, 40, 85, 0.55);
}

.edm-navbar-inner {
  display: flex;
  height: 64px;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .edm-navbar-inner {
    height: 72px;
    gap: 2rem;
  }
}

.edm-logo-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.edm-logo-img {
  height: 32px;
  width: 132px;
  object-fit: contain;
  display: block;
}

@media (min-width: 640px) {
  .edm-logo-img {
    height: 36px;
    width: 158px;
  }
}

@media (min-width: 1024px) {
  .edm-logo-img {
    height: 40px;
    width: 176px;
  }
}

.edm-logo-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--brand-navy);
  letter-spacing: 0.04em;
}

.edm-desktop-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .edm-desktop-nav {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .edm-desktop-nav {
    gap: 1.75rem;
  }
}

.edm-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
}

@media (min-width: 1280px) {
  .edm-nav-list {
    gap: 1.75rem;
  }
}

.edm-nav-link,
.edm-nav-list li a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(11, 27, 51, 0.65);
  transition: color 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .edm-nav-link,
  .edm-nav-list li a {
    font-size: 11.5px;
  }
}

.edm-nav-link:hover,
.edm-nav-link.is-active,
.edm-nav-list li a:hover,
.edm-nav-list li.current-menu-item a {
  color: var(--brand-navy);
}

.edm-nav-underline {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-red);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.edm-nav-link:hover .edm-nav-underline,
.edm-nav-link.is-active .edm-nav-underline {
  transform: scaleX(1);
}

.edm-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .edm-header-actions {
    gap: 1rem;
  }
}

.edm-btn-whatsapp-header {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(0, 40, 85, 0.15);
  padding: 0.625rem 1rem;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-navy);
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .edm-btn-whatsapp-header {
    display: inline-flex;
  }
}

.edm-btn-whatsapp-header:hover {
  border-color: var(--brand-navy);
  background-color: var(--brand-navy);
  color: #ffffff;
}

.edm-mobile-toggle {
  display: flex;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--brand-navy);
  cursor: pointer;
  transition: color 0.2s ease;
}

.edm-mobile-toggle:hover {
  color: var(--brand-red);
}

@media (min-width: 1024px) {
  .edm-mobile-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.edm-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}

.edm-mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

@media (min-width: 1024px) {
  .edm-mobile-drawer {
    display: none;
  }
}

.edm-drawer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 27, 61, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.edm-mobile-drawer.is-open .edm-drawer-backdrop {
  opacity: 1;
}

.edm-drawer-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: 86%;
  max-width: 24rem;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.edm-mobile-drawer.is-open .edm-drawer-panel {
  transform: translateX(0);
}

.edm-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--brand-line);
  padding: 1rem 1.25rem;
}

.edm-drawer-logo {
  height: 32px;
  width: 132px;
  object-fit: contain;
}

.edm-drawer-close {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--brand-navy);
  cursor: pointer;
}

.edm-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.edm-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(227, 232, 239, 0.7);
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--brand-navy);
}

.edm-drawer-link.is-active {
  color: var(--brand-red);
}

.edm-drawer-link svg {
  opacity: 0.4;
}

.edm-drawer-foot {
  border-top: 1px solid var(--brand-line);
  padding: 1.25rem;
}

.edm-drawer-cta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--brand-red);
  padding: 0.875rem 1.25rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ffffff;
}

.edm-drawer-tagline {
  margin: 1rem 0 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(11, 27, 51, 0.45);
}

/* =========================================================
   FOOTER
   ========================================================= */
.edm-footer {
  background-color: var(--brand-deep);
  color: #ffffff;
}

.edm-footer-grid {
  display: grid;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .edm-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.edm-footer-logo-box {
  display: inline-flex;
  background-color: #ffffff;
  padding: 0.75rem;
}

.edm-footer-logo {
  height: 36px;
  width: 158px;
  object-fit: contain;
  display: block;
}

.edm-footer-desc {
  margin: 1.5rem 0 0 0;
  max-width: 24rem;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.edm-footer-phrase {
  margin: 1.5rem 0 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  line-height: 1.625;
  letter-spacing: 0.2em;
  color: var(--brand-red);
}

.edm-footer-heading {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.4);
}

.edm-footer-list,
.edm-footer-contact-list,
.edm-footer-channels {
  list-style: none;
  margin: 1.25rem 0 0 0;
  padding: 0;
}

.edm-footer-list li + li {
  margin-top: 0.625rem;
}

.edm-footer-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.edm-footer-list a:hover {
  color: #ffffff;
}

.edm-footer-contact-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 14px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.7);
}

.edm-footer-contact-list li + li {
  margin-top: 0.875rem;
}

.edm-footer-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}

.edm-footer-channels li + li {
  margin-top: 0.75rem;
}

.edm-footer-channels a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.edm-footer-channels a:hover {
  color: #ffffff;
}

.edm-footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--brand-red);
  margin-top: 2px;
}

.edm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.edm-footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 640px) {
  .edm-footer-bottom-inner {
    flex-direction: row;
  }
}

.edm-footer-bottom-inner p {
  margin: 0;
}

.edm-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.edm-footer-bottom-links a {
  transition: color 0.2s ease;
}

.edm-footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.edm-whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  width: 3.25rem;
  height: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #1fa855;
  color: #ffffff;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.edm-whatsapp-float:hover {
  transform: scale(1.05);
}

.edm-whatsapp-float svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 640px) {
  .edm-whatsapp-float {
    bottom: 1.75rem;
    right: 1.75rem;
  }
}

/* =========================================================
   ELEMENTOR WIDGETS & SECTION HELPERS (FIDELIDADE TOTAL)
   ========================================================= */
.edm-eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

.edm-eyebrow-line::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background-color: var(--brand-red);
}

.edm-eyebrow-hero::before {
  width: 2.5rem;
}

/* Hero Overlay */
.edm-hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-deep);
}

.edm-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #001b3d 0%, rgba(0, 27, 61, 0.9) 52%, rgba(0, 40, 85, 0.35) 100%),
    linear-gradient(to top, rgba(0, 27, 61, 0.9) 0%, transparent 55%, rgba(0, 27, 61, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

.edm-hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.edm-hero-section > .e-con-inner {
  position: relative;
  z-index: 2;
}

/* Page Header Overlay (Internas) */
.edm-page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-deep);
}

.edm-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 27, 61, 0.9);
  z-index: 1;
  pointer-events: none;
}

.edm-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.edm-page-hero > .e-con-inner {
  position: relative;
  z-index: 2;
}

/* Cards de Categoria na Home */
.edm-cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--brand-steel);
  aspect-ratio: 4 / 3;
}

.edm-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease;
}

.edm-cat-card:hover img {
  transform: scale(1.06);
}

.edm-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #001b3d 0%, rgba(0, 27, 61, 0.4) 55%, transparent 100%);
  opacity: 0.95;
  pointer-events: none;
}

.edm-cat-num {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.5);
  z-index: 2;
}

.edm-cat-body {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  z-index: 2;
}

.edm-cat-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: 0.025em;
  color: #ffffff;
}

.edm-cat-desc {
  margin: 0.375rem 0 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.edm-cat-arrow {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transition: all 0.3s ease;
}

.edm-cat-card:hover .edm-cat-arrow {
  border-color: var(--brand-red);
  background-color: var(--brand-red);
}

/* Detalhe vermelho no canto da foto Sobre */
.edm-corner-tl {
  position: relative;
}

.edm-corner-tl::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -12px;
  width: 112px;
  height: 112px;
  border-left: 2px solid var(--brand-red);
  border-top: 2px solid var(--brand-red);
  z-index: 2;
  pointer-events: none;
}

.edm-corner-tr {
  position: relative;
}

.edm-corner-tr::before {
  content: "";
  position: absolute;
  right: -12px;
  top: -12px;
  width: 112px;
  height: 112px;
  border-right: 2px solid var(--brand-red);
  border-top: 2px solid var(--brand-red);
  z-index: 2;
  pointer-events: none;
}

/* Cards de Marca */
.edm-brand-card {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.edm-brand-card:hover {
  border-color: rgba(0, 40, 85, 0.2) !important;
  background-color: var(--brand-steel) !important;
}

.edm-brand-card:hover img {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

/* Cards de Diferenciais */
.edm-diff-card {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.edm-diff-card:hover {
  border-color: rgba(0, 40, 85, 0.2) !important;
  background-color: var(--brand-steel) !important;
}

/* Linha vermelha no topo do CTA final */
.edm-cta-band {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-deep);
}

.edm-cta-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(227, 30, 36, 0.6), transparent);
  z-index: 2;
}
