/* ==========================================================================
   AURORA ARQUITETURA — ESTILO EDITORIAL AUTORAL (V2)
   Design minimalista, tectônico e preciso. Inspirado em publicações de arquitetura.
   ========================================================================== */

@layer base {
  html {
    scroll-behavior: smooth;
    color: #191B1B;
    background-color: #F1F1EE;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11", "kern";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: #191B1B;
    color: #F1F1EE;
  }
}

/* -------------------------------------------------------------
 * Linha de Eixo Arquitetônico Estrutural (Assinatura Gráfica)
 * Linha de prumada contínua com nós discretos de cota (+0.00 / EIXO)
 * ------------------------------------------------------------- */
.axis-grid-line {
  position: relative;
}

.axis-grid-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background-color: rgba(25, 27, 27, 0.12);
  pointer-events: none;
}

.axis-notch {
  display: inline-flex;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #686660;
  font-weight: 500;
}

.axis-notch::before {
  content: '+';
  margin-right: 8px;
  font-weight: 400;
  color: #191B1B;
}

/* -------------------------------------------------------------
 * Tipografia & Hierarquia Editorial
 * ------------------------------------------------------------- */
.font-editorial-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-editorial-sans {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* -------------------------------------------------------------
 * Inputs Arquitetônicos de Linha Seca
 * ------------------------------------------------------------- */
.arch-input {
  background: transparent;
  border-bottom: 1px solid rgba(25, 27, 27, 0.28);
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0.95rem 0;
  border-radius: 0;
  color: #191B1B;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.arch-input:focus {
  outline: none;
  border-bottom-color: #191B1B;
  box-shadow: 0 1.5px 0 0 #191B1B;
}

.arch-input::placeholder {
  color: #8C8A82;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Sublinhado editorial sutil em links */
.link-editorial {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.link-editorial::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.link-editorial:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* -------------------------------------------------------------
 * Modais e Gavetas (Cantos retos e contenção arquitetônica)
 * ------------------------------------------------------------- */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-panel {
  transform: translateY(0);
}

.drawer-mobile {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-mobile.active {
  transform: translateX(0%);
}

/* -------------------------------------------------------------
 * Scrollbar minimalista
 * ------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #E8E8E3;
}
::-webkit-scrollbar-thumb {
  background: #A8A59D;
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: #191B1B;
}

/* -------------------------------------------------------------
 * Animação da linha de scroll no Hero
 * ------------------------------------------------------------- */
@keyframes scrollDownLine {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  80%, 100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.scroll-line-motion {
  animation: scrollDownLine 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* -------------------------------------------------------------
 * Acessibilidade: prefers-reduced-motion
 * Desliga transições e animações contínuas quando solicitado pelo usuário
 * ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-line-motion {
    animation: none !important;
  }
}

/* -------------------------------------------------------------
 * Paleta Arquitetônica & Rodapé (Garantia de Renderização e Contraste)
 * ------------------------------------------------------------- */
.bg-mineral {
  background-color: #191B1B !important;
}
.bg-linen {
  background-color: #F1F1EE !important;
}
.bg-concrete {
  background-color: #E8E8E3 !important;
}
.text-linen {
  color: #F1F1EE !important;
}
.text-mineral {
  color: #191B1B !important;
}
.text-graphite {
  color: #42413C !important;
}
.text-muted {
  color: #686660 !important;
}

/* Rodapé Institucional Autoral */
footer.bg-mineral,
#mainFooter {
  background-color: #191B1B !important;
  color: #F1F1EE !important;
  position: relative !important;
  z-index: 10 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
}

#mainFooter .text-white {
  color: #FFFFFF !important;
}

#mainFooter .text-white\/85 {
  color: rgba(255, 255, 255, 0.85) !important;
}

#mainFooter .text-white\/70 {
  color: rgba(255, 255, 255, 0.70) !important;
}

#mainFooter .text-white\/60 {
  color: rgba(255, 255, 255, 0.60) !important;
}
