/* ================================================
   PCS ENGENHARIA - DESIGN SYSTEM UNIFICADO V2.0
   Baseado no padrão premium PCS Restauro
   Investment Banking + Editorial Style
   ================================================ */

/* ================================================
   PALETA CROMÁTICA OFICIAL
   ================================================ */
:root {
  /* Cores Primárias PCS */
  --dark-gray: #37444A;      /* Carvão - backgrounds principais */
  --warm-red: #E74133;       /* Terracota - acentos, CTAs */
  --off-white: #F8F7F7;      /* Branco Quente - texto primário */
  --medium-gray: #6B7980;    /* Texto terciário, subtítulos */
  
  /* Contraste AAA WCAG (10.2:1) */
  
  /* Espaçamentos Oficiais */
  --margin-outer: 50px;
  --spacing-between: 24px;
  --spacing-tight: 20px;
  --spacing-icon: 12px;
  --padding-box: 20px;
  --padding-box-sm: 16px;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
  --shadow-red: 0 4px 16px rgba(231, 65, 51, 0.3);
}

/* ================================================
   RESET & BASE
   ================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  background: var(--dark-gray);
  color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================================================
   TIPOGRAFIA - HIERARQUIA OFICIAL (5 NÍVEIS)
   ================================================ */

/* Nível 1 — Playfair 64–80pt, #F8F7F7 */
h1,
.h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-between);
}

/* Nível 2 — Playfair 36–44pt, bicolor */
h2,
.h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-between);
}

/* Tratamento bicolor de títulos */
h2 em,
.h2 em,
h1 em,
.h1 em {
  color: var(--warm-red);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--warm-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Nível 3 — Inter 16–18pt, #E74133 */
h3,
.h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--warm-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* Nível 4 — Inter 14–16pt, #F8F7F7 */
p,
.body-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--off-white);
  line-height: 1.7;
  margin-bottom: var(--spacing-tight);
}

/* Nível 5 — Inter 12–13pt, #6B7980 */
small,
.caption,
.meta-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--medium-gray);
  line-height: 1.5;
}

/* Lead text maior */
.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--off-white);
  margin-bottom: 32px;
}

/* ================================================
   SEPARADOR HORIZONTAL VERMELHO
   ================================================ */
.separator {
  width: 80px;
  height: 3px;
  background: var(--warm-red);
  margin-bottom: 20px;
  display: block;
}

.separator-center {
  margin-left: auto;
  margin-right: auto;
}

/* ================================================
   COMPONENTES OFICIAIS
   ================================================ */

/* Badge simples */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-icon);
  background: rgba(231, 65, 51, 0.1);
  border: 1px solid rgba(231, 65, 51, 0.3);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--warm-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scope Box */
.scope-box {
  background: rgba(231, 65, 51, 0.1);
  border-left: 3px solid var(--warm-red);
  padding: 16px 20px;
  margin: var(--spacing-between) 0;
}

.scope-box-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--warm-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.scope-box-text {
  font-size: 14px;
  color: var(--off-white);
  line-height: 1.65;
}

/* Card Premium */
.card {
  background: rgba(55, 68, 74, 0.95);
  border: 1px solid rgba(231, 65, 51, 0.3);
  padding: 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--warm-red);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(231, 65, 51, 0.2);
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 12px;
}

.card-meta {
  font-size: 13px;
  color: var(--medium-gray);
  margin-bottom: 16px;
}

.card-desc {
  font-size: 15px;
  color: var(--off-white);
  line-height: 1.6;
}

/* ================================================
   CONTAINER & LAYOUT
   ================================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--margin-outer);
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

.section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* ================================================
   NAVIGATION
   ================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(55, 68, 74, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(231, 65, 51, 0.2);
  z-index: 1000;
  padding: 12px 0;
  overflow: visible;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo-img {
  height: 123px;
  width: auto;
  position: relative;
  top: 0;
}

.footer-logo {
  max-width: 180px;
  width: auto;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--warm-red);
}

.nav-cta {
  background: var(--warm-red);
  color: var(--off-white) !important;
  padding: 10px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #c92a1e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

/* Link PCS Restauro Especial */
.nav-restauro {
  background: linear-gradient(135deg, #37444A 0%, #4a5861 100%);
  color: #F8F7F7;
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid #E74133;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.nav-restauro::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(231, 65, 51, 0.3), transparent);
  transition: left 0.5s ease;
}

.nav-restauro:hover::before {
  left: 100%;
}

.nav-restauro:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 65, 51, 0.4);
  border-color: #F8F7F7;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 100%),
              var(--dark-gray);
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(55, 68, 74, 0.9) 0%, rgba(231, 65, 51, 0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--off-white);
  background: var(--warm-red);
  padding: 8px 16px;
  border-radius: 20px;
  text-transform: none;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(231, 65, 51, 0.3);
}

.hero h1 {
  font-size: clamp(48px, 8vw, 72px);
  margin-bottom: 32px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--off-white);
  margin-bottom: 40px;
  max-width: 700px;
}

/* ================================================
   BUTTONS (CTAs)
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-icon);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--warm-red);
  color: var(--off-white);
}

.btn-primary:hover {
  background: #c92a1e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-secondary {
  background: transparent;
  color: var(--off-white);
  border: 2px solid var(--off-white);
}

.btn-secondary:hover {
  background: var(--off-white);
  color: var(--dark-gray);
}

.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ================================================
   GRID LAYOUTS
   ================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ================================================
   LISTA NUMERADA PREMIUM
   ================================================ */
.numbered-list {
  list-style: none;
  counter-reset: step-counter;
}

.numbered-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 80px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(107, 121, 128, 0.2);
  padding-bottom: 40px;
}

.numbered-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.numbered-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: -8px;
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--warm-red);
  line-height: 1;
}

.numbered-list li h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* ================================================
   TRATAMENTO DE IMAGENS
   ================================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-overlay {
  position: relative;
}

.img-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
}

/* ================================================
   MOBILE MENU
   ================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--off-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu-mobile {
  position: fixed;
  top: 70px;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: calc(100vh - 70px);
  background: rgba(55, 68, 74, 0.98);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(231, 65, 51, 0.2);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px 24px;
  overflow-y: auto;
  z-index: 999;
}

.nav-menu-mobile.active {
  right: 0;
}

.nav-menu-mobile a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--off-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 121, 128, 0.2);
  transition: color 0.3s ease;
}

.nav-menu-mobile a:hover {
  color: var(--warm-red);
}

.nav-menu-mobile .nav-cta {
  margin-top: 24px;
  display: inline-block;
  border-bottom: none;
}

@media (max-width: 968px) {
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: rgba(55, 68, 74, 0.5);
  border-top: 1px solid rgba(231, 65, 51, 0.2);
  padding: 60px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 16px;
  color: var(--warm-red);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  color: var(--off-white);
  line-height: 1.8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--warm-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(107, 121, 128, 0.2);
  color: var(--medium-gray);
  font-size: 13px;
}

/* ================================================
   ACESSIBILIDADE
   ================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--warm-red);
  outline-offset: 3px;
}

/* Touch targets mínimos 44px */
button,
a.btn,
.nav-links a,
.nav-menu-mobile a {
  min-height: 44px;
  min-width: 44px;
}

/* ================================================
   FORMULÁRIO
   ================================================ */
.form-group {
  margin-bottom: var(--spacing-between);
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 8px;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  background: rgba(55, 68, 74, 0.5);
  border: 1px solid rgba(107, 121, 128, 0.3);
  border-radius: 4px;
  color: var(--off-white);
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--warm-red);
  background: rgba(55, 68, 74, 0.8);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ================================================
   UTILITIES
   ================================================ */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 32px; }
.mb-4 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 32px; }
.mt-4 { margin-top: 48px; }

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.visible,
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   REDUCED MOTION (Acessibilidade)
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================
   BACKGROUND ALTERNADO
   ================================================ */
.bg-alt {
  background: rgba(231, 65, 51, 0.03);
}

.bg-dark {
  background: rgba(55, 68, 74, 0.5);
}

/* ================================================
   GRID SYSTEM UTILITIES
   ================================================ */
.grid {
  display: grid;
  gap: var(--spacing-between);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* grid-2 e grid-3 já existem no arquivo (linhas 450-468) */

/* ================================================
   NOTIFICATION SYSTEM
   ================================================ */
.notification {
  position: fixed;
  top: 100px;
  right: 24px;
  background: var(--dark-gray);
  border: 2px solid var(--warm-red);
  border-radius: 8px;
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 99999;
  max-width: 400px;
  opacity: 0;
  transform: translateX(120%);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--off-white);
  font-size: 14px;
  line-height: 1.5;
}

.notification-content i {
  font-size: 20px;
  flex-shrink: 0;
}

.notification-success {
  border-color: #4caf50;
}

.notification-success i {
  color: #4caf50;
}

.notification-error {
  border-color: var(--warm-red);
}

.notification-error i {
  color: var(--warm-red);
}

@media (max-width: 768px) {
  .notification {
    top: 80px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* ================================================
   FORM ERROR STATES
   ================================================ */
input.error,
textarea.error,
select.error {
  border-color: var(--warm-red);
  background: rgba(231, 65, 51, 0.1);
}

/* ================================================
   LOADING STATE
   ================================================ */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================================================
   ACTIVE NAV LINK
   ================================================ */
.nav-link.active {
  color: var(--warm-red);
  border-bottom-color: var(--warm-red);
}
