/* Moriah Movelaria — efeitos geométricos / linguagem de projeto */

:root {
  --plan-line: #94a8ba;
  --plan-line-soft: rgba(148, 168, 186, 0.35);
  --plan-grid: rgba(107, 131, 153, 0.08);
}

/* Fundo técnico em seções */
.plan-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--plan-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--plan-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Marquee de marcas */
@keyframes plan-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: plan-marquee 28s linear infinite;
  width: max-content;
}

/* Links de navegação — traço de cota */
.plan-link {
  position: relative;
  padding-bottom: 6px;
}

.plan-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--plan-line);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border-left: 1px solid var(--plan-line);
  border-bottom: 1px solid var(--plan-line);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.plan-link:hover::after {
  width: 100%;
}

.plan-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Badge / selo técnico */
.plan-badge {
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  border: 1px solid rgba(148, 168, 186, 0.35) !important;
  border-radius: 0 !important;
}

.plan-badge::before,
.plan-badge::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--plan-line-soft);
  pointer-events: none;
}

.plan-badge::before {
  top: 4px;
  left: 4px;
  border-right: 0;
  border-bottom: 0;
}

.plan-badge::after {
  right: 4px;
  bottom: 4px;
  border-left: 0;
  border-top: 0;
}

/* Botões — chanfro + varredura */
.plan-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.plan-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(184, 196, 206, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  z-index: 0;
}

.plan-btn:hover::before {
  transform: translateX(120%);
}

.plan-btn > * {
  position: relative;
  z-index: 1;
}

.plan-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 20, 25, 0.25);
}

.plan-btn-outline {
  border-color: rgba(148, 168, 186, 0.55) !important;
}

.plan-btn-outline:hover {
  border-color: #6b8399 !important;
}

/* Cards de portfólio — grid + moldura */
.plan-card {
  position: relative;
  isolation: isolate;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-image:
    linear-gradient(rgba(148, 168, 186, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 168, 186, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.plan-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 6;
  border: 1px solid transparent;
  transition: inset 0.45s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease;
  pointer-events: none;
  box-shadow:
    inset 14px 0 0 -13px transparent,
    inset -14px 0 0 -13px transparent,
    inset 0 14px 0 -13px transparent,
    inset 0 -14px 0 -13px transparent;
}

.plan-card:hover::before {
  opacity: 1;
}

.plan-card:hover::after {
  inset: 8px;
  border-color: rgba(148, 168, 186, 0.75);
  box-shadow:
    inset 18px 0 0 -17px var(--plan-line),
    inset -18px 0 0 -17px var(--plan-line),
    inset 0 18px 0 -17px var(--plan-line),
    inset 0 -18px 0 -17px var(--plan-line);
}

/* Crosshair central no hover */
.plan-card .plan-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  z-index: 8;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.plan-card .plan-crosshair::before,
.plan-card .plan-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(184, 196, 206, 0.85);
}

.plan-card .plan-crosshair::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.plan-card .plan-crosshair::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.plan-card:hover .plan-crosshair {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Cards de capacidade */
.plan-feature {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.75rem;
  border: 1px solid rgba(148, 168, 186, 0.12);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.35s ease, transform 0.35s ease, background-color 0.35s ease;
}

.plan-feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: #6b8399;
  transition: top 0.35s ease, bottom 0.35s ease, box-shadow 0.35s ease;
}

.plan-feature::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 0.55rem;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--plan-line);
  border-left: 1px solid var(--plan-line);
  opacity: 0.5;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.plan-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(148, 168, 186, 0.35);
  background: rgba(107, 131, 153, 0.06);
}

.plan-feature:hover::before {
  top: 0.6rem;
  bottom: 0.6rem;
  box-shadow: 0 0 12px rgba(107, 131, 153, 0.45);
}

.plan-feature:hover::after {
  transform: translate(-3px, -3px);
  opacity: 1;
}

/* Painel de estatística / formulário */
.plan-dimension,
.plan-panel {
  position: relative;
}

.plan-dimension::before,
.plan-panel::before,
.plan-panel::after,
.plan-dimension::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(148, 168, 186, 0.45);
  pointer-events: none;
  transition: all 0.4s ease;
}

.plan-dimension::before,
.plan-panel::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.plan-dimension::after,
.plan-panel::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
}

.plan-dimension:hover::before,
.plan-dimension:hover::after,
.plan-panel:hover::before,
.plan-panel:hover::after {
  width: 22px;
  height: 22px;
  border-color: var(--plan-line);
}

.plan-panel {
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.plan-panel:hover {
  border-color: rgba(148, 168, 186, 0.28) !important;
  box-shadow: inset 0 0 0 1px rgba(148, 168, 186, 0.08);
}

/* Depoimento */
.plan-quote {
  position: relative;
}

.plan-quote::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 120px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--plan-line-soft), transparent);
}

/* Imagens industriais */
.plan-media {
  position: relative;
}

.plan-media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(148, 168, 186, 0);
  transition: inset 0.45s ease, border-color 0.35s ease;
  pointer-events: none;
  z-index: 15;
}

.group:hover .plan-media::after {
  inset: 6px;
  border-color: rgba(148, 168, 186, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee,
  .plan-btn,
  .plan-card,
  .plan-feature,
  .plan-link,
  .plan-panel,
  .plan-dimension {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Responsividade mobile ── */

:root {
  --site-header-bar-height: 4.5rem;
}

@media (min-width: 768px) {
  :root {
    --site-header-bar-height: 7.5rem;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--site-header-bar-height) + 0.75rem);
}

body {
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

.page-with-fixed-header {
  padding-top: calc(var(--site-header-bar-height) + 1.5rem);
}

@media (min-width: 768px) {
  .page-with-fixed-header {
    padding-top: calc(var(--site-header-bar-height) + 2rem);
  }
}

/* Header sólido — logo com fundo preto precisa de base opaca */
.site-header {
  background-color: #0f1419;
}

.site-header__bar {
  min-height: var(--site-header-bar-height);
}

.site-logo {
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
}

.site-logo img {
  display: block;
  height: 3.375rem;
  width: auto;
  max-width: min(240px, 100%);
  max-height: 4.125rem;
}

@media (min-width: 768px) {
  .site-logo img {
    height: 4.125rem;
    max-width: min(300px, 100%);
    max-height: 4.5rem;
  }
}

.site-header__nav {
  gap: 3rem;
}

.site-header__link {
  font-size: 1.3125rem;
  line-height: 1.4;
}

.site-header__cta {
  font-size: 1.3125rem;
  padding: 0.875rem 2.25rem;
}

.site-header__menu-toggle {
  width: 3.75rem;
  height: 3.75rem;
}

.site-header__menu-toggle svg {
  width: 1.875rem;
  height: 1.875rem;
}

.mobile-nav > div {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  gap: 0.375rem;
}

.mobile-nav-link {
  display: block;
  padding: 1.3125rem 1.125rem;
  border-radius: 0.25rem;
  font-size: 1.40625rem;
  line-height: 1.35;
  font-weight: 500;
  color: #d1d5db;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}

.mobile-nav-link--cta {
  margin-top: 0.75rem;
  text-align: center;
  border: 1px solid #6b8399;
  color: #94a8ba;
}

.mobile-nav-link--cta:hover,
.mobile-nav-link--cta:focus-visible {
  background-color: #6b8399;
  color: #fff;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  top: var(--site-header-bar-height);
  z-index: 40;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

@media (max-width: 767px) {
  .mobile-nav {
    position: fixed;
    top: var(--site-header-bar-height);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--site-header-bar-height));
    overflow-y: auto;
    z-index: 45;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav > div {
    padding-top: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav-link {
    font-size: 1.125rem;
    padding: 0.95rem 0.875rem;
  }

  .site-logo img {
    height: 2.75rem;
    max-width: min(168px, 52vw);
    max-height: 3rem;
  }

  .site-header__menu-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .site-header__menu-toggle svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  #home .hero-content,
  .hero .hero-content {
    min-height: auto;
    justify-content: flex-start;
    padding-top: calc(var(--site-header-bar-height) + 1.25rem);
    padding-bottom: 2.75rem;
  }

  #home .hero-bg,
  .hero .hero-bg {
    min-height: 100%;
  }

  .contato-grid {
    gap: 2rem;
  }

  .contato-info__logo {
    height: 3.75rem;
    max-width: 150px;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
  }

  .hero-trust li {
    font-size: 0.625rem;
    padding: 0.4rem 0.7rem;
  }
}

@media (min-width: 768px) {
  #home .hero-content,
  .hero .hero-content {
    min-height: 100svh;
    justify-content: center;
    padding-top: calc(var(--site-header-bar-height) + 2rem);
    padding-bottom: 5rem;
  }
}

/* Hero: fundo preenche viewport, conteúdo pode crescer sem cortar */
#home .hero-bg,
.hero .hero-bg {
  min-height: 100svh;
}

#home .hero-content,
.hero .hero-content {
  box-sizing: border-box;
}

.hero-bg__image {
  transform: scale(1.06);
  animation: hero-ken-burns 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-bg__overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(8, 12, 18, 0.72) 42%, rgba(15, 20, 25, 0.96) 100%);
}

.hero-bg__grid {
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 168, 186, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 168, 186, 0.14) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, black 20%, transparent 100%);
}

.hero-bg__glow {
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, rgba(107, 131, 153, 0.28) 0%, transparent 68%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(184, 196, 206, 0.12) 0%, transparent 70%);
}

@keyframes hero-ken-burns {
  0% { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero-inner {
    gap: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    gap: 3.25rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  background: rgba(107, 131, 153, 0.14) !important;
  border-color: rgba(148, 168, 186, 0.55) !important;
  color: #e5edf3;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .hero-badge {
    font-size: 0.75rem;
  }
}

.hero-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #94a8ba;
  box-shadow: 0 0 12px rgba(148, 168, 186, 0.9);
  flex-shrink: 0;
  animation: hero-pulse-dot 2.4s ease-in-out infinite;
}

@keyframes hero-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}

.hero-title {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.hero-accent {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, #dce4ea 0%, #94a8ba 45%, #6b8399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(148, 168, 186, 0.35));
}

.hero-lead {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  line-height: 1.75;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(148, 168, 186, 0.35);
  background: rgba(107, 131, 153, 0.12);
  color: #dce4ea;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .hero-trust li {
    font-size: 0.75rem;
  }
}

.hero-btn-primary {
  box-shadow: 0 10px 30px rgba(107, 131, 153, 0.35);
}

.hero-btn-primary:hover {
  box-shadow: 0 14px 36px rgba(107, 131, 153, 0.5);
  transform: translateY(-1px);
}

.hero-btn-secondary {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.04);
}

.hero-btn-secondary:hover {
  border-color: #fff !important;
}

.hero-actions {
  gap: 1rem;
}

.hero-inner > * {
  animation: hero-fade-up 0.8s ease both;
}

.hero-badge { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.15s; }
.hero-lead { animation-delay: 0.28s; }
.hero-trust { animation-delay: 0.38s; }
.hero-actions { animation-delay: 0.5s; }

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

@media (prefers-reduced-motion: reduce) {
  .hero-bg__image,
  .hero-badge__dot,
  .hero-inner > * {
    animation: none !important;
  }

  .hero-bg__image {
    transform: scale(1.06);
  }
}

/* Contato */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .contato-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 4rem;
  }
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contato-info {
    gap: 2.5rem;
    padding-right: 1rem;
  }
}

.contato-info__logo {
  display: block;
  width: auto;
  height: 4.5rem;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .contato-info__logo {
    height: 5rem;
    max-width: 200px;
  }
}

.contato-info__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contato-info__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a8ba;
}

.contato-info__channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contato-channel {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contato-channel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 1px solid rgba(148, 168, 186, 0.25);
  background: rgba(107, 131, 153, 0.1);
  color: #94a8ba;
}

.contato-channel__label {
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

.contato-channel__value {
  font-size: 1.0625rem;
  line-height: 1.45;
  color: #fff;
  transition: color 0.2s ease;
}

.contato-channel__value:hover {
  color: #94a8ba;
}

.contato-form {
  width: 100%;
}

.brands-strip {
  isolation: isolate;
}

/* Hero: scroll indicator só desktop */
@media (max-width: 767px) {
  .hero-scroll {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hero-scroll {
    animation: hero-scroll-bounce 2s ease-in-out infinite;
  }
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* Cards portfólio: touch = texto sempre visível no mobile */
@media (max-width: 1023px) {
  .plan-card--mobile .plan-card-label,
  .plan-card--mobile .plan-card-desc {
    opacity: 1 !important;
  }
}

@media (min-width: 1024px) {
  .plan-card--mobile .plan-card-label {
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  .plan-card--mobile .plan-card-desc {
    opacity: 0;
    transition: opacity 0.5s ease 0.1s;
  }

  .plan-card--mobile:hover .plan-card-label,
  .plan-card--mobile:hover .plan-card-desc {
    opacity: 1;
  }

  .plan-card--mobile:hover .absolute.inset-0.flex {
    transform: translateY(-0.5rem);
  }
}

/* Safe area iOS (barra do navegador) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 767px) {
    #home .hero-content,
    .hero .hero-content {
      padding-bottom: calc(2.75rem + env(safe-area-inset-bottom));
    }
  }

  @media (min-width: 768px) {
    #home .hero-content,
    .hero .hero-content {
      padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }
  }

  #contato {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

/* Badge hero: evita overflow horizontal */
@media (max-width: 639px) {
  .plan-badge {
    max-width: calc(100vw - 2rem);
  }

  .plan-badge span {
    display: block;
    white-space: normal;
    line-height: 1.4;
  }
}

/* Marquee mais compacto no celular */
@media (max-width: 639px) {
  .animate-marquee {
    gap: 2rem !important;
    font-size: 1.125rem;
  }
}

/* Formulário: inputs maiores no touch */
@media (max-width: 767px) {
  .plan-panel input,
  .plan-panel textarea {
    font-size: 16px; /* evita zoom automático no iOS */
    min-height: 44px;
  }

  .plan-panel textarea {
    min-height: 88px;
  }
}

/* Depoimento: quebra de linha do cargo */
@media (max-width: 639px) {
  .plan-quote .text-left p:last-child {
    font-size: 0.65rem;
    line-height: 1.4;
  }
}
