@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;900&display=swap');

/* Compliance UX: <label placeholder aria-label */

/* ======================================================================
   DESIGN SYSTEM & VARIABLES — CMIL WEBSITE
   Tema: Industrial Dark Theme (Amber & Navy)
   ====================================================================== */

:root {
  /* Paleta de Cores e Tokens */
  --bg-primary: #0b0c10;            /* Preto Profundo Limpo */
  --bg-secondary: #12141d;          /* Marinho Espacial Escuro */
  --bg-card: #161925;               /* Neutro Frio Corporativo */
  --bg-card-hover: #1e2235;
  
  --primary: #3e4095;               /* Azul Marinho Oficial CMIL */
  --primary-light: #5254b0;         /* Azul Médio de Interação */
  --accent: #00afef;                /* Azul Celeste de Destaque CMIL */
  --primary-gradient: linear-gradient(135deg, #3e4095 0%, #00afef 100%);
  --blue-glow: rgba(0, 175, 239, 0.15);
  
  --text-bright: #ffffff;
  --text-normal: #e2e8f0;
  --text-muted: #aca9bb;            /* Cinza Frio Suave Oficial */
  
  --border-dim: rgba(255, 255, 255, 0.06);
  --border-bright: rgba(255, 255, 255, 0.12);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.1);
  --red: #ef4444;

  /* Fontes recomendadas pelo manual com fallbacks robustos */
  --font-display: 'MADE Tommy', 'Outfit', 'Inter', sans-serif;
  --font-body: 'Aileron', 'Inter', sans-serif;
  
  /* Transições e Efeitos */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 175, 239, 0.25);
}

/* ======================================================================
   BASE RESET
   ====================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-normal);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ======================================================================
   TYPOGRAPHY
   ====================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ======================================================================
   LAYOUT UTILITIES
   ====================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.bg-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ======================================================================
   PREMIUM BUTTONS
   ====================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  font-family: var(--font-display);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-bright);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 175, 239, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 175, 239, 0.35), var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}

.w-full {
  width: 100%;
}

/* ======================================================================
   GLASSMORPHISM & CARDS
   ====================================================================== */

.glass-card {
  background: rgba(22, 25, 37, 0.5);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 30px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-premium);
}

.glass-card:hover {
  border-color: var(--accent);
  background: rgba(30, 34, 53, 0.7);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 175, 239, 0.05);
}

/* ======================================================================
   HEADER & NAVIGATION
   ====================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-b: 1px solid var(--border-dim);
  transition: var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: var(--transition-fast);
}

.footer-logo-img:hover {
  opacity: 1;
}

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

.nav-link {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-bright);
  border-bottom-color: var(--primary);
}

/* Link especial de Fornecedor — acesso externo */
.nav-link-supplier {
  color: var(--accent) !important;
  border-bottom-color: transparent;
  position: relative;
}

.nav-link-supplier::after {
  content: '↗';
  font-size: 8px;
  margin-left: 3px;
  opacity: 0.7;
  vertical-align: super;
}

.nav-link-supplier:hover {
  color: #fff !important;
  border-bottom-color: var(--accent) !important;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-bright);
  transition: var(--transition-fast);
}

/* ======================================================================
   HERO SECTION
   ====================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('assets/hero_geotecnia.png');
  background-size: cover;
  background-position: center;
  padding-top: 100px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.8) 0%, rgba(10, 14, 23, 0.95) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 750px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-normal);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* ======================================================================
   HUD METRICS (DASHBOARD)
   ====================================================================== */

.hud-metrics {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  z-index: 3;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px 0;
  gap: 20px;
}

.metric-card {
  text-align: center;
  border-right: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-card:last-child {
  border-right: none;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-light);
  letter-spacing: -1px;
}

.metric-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ======================================================================
   SERVICES SECTION
   ====================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
}

.service-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background-color: rgba(0, 175, 239, 0.1);
  border: 1px solid rgba(0, 175, 239, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: var(--transition-fast);
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--accent);
  color: var(--text-bright);
  box-shadow: var(--shadow-glow);
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.service-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.service-action {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  transition: var(--transition-fast);
  margin-top: 10px;
}

.service-card:hover .service-action {
  color: var(--text-bright);
}

/* ======================================================================
   DETAILS SECTION
   ====================================================================== */

.details-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.details-image-side, .details-content-side {
  flex: 1;
}

.img-premium {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-dim);
  box-shadow: var(--shadow-premium);
  display: block;
}

.details-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  color: var(--text-normal);
}

.details-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-gradient);
  box-shadow: var(--shadow-glow);
}

/* ======================================================================
   ABOUT US SECTION
   ====================================================================== */

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-content, .about-image {
  flex: 1;
}

.about-paragraph {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-badges {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.badge-item {
  flex: 1;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

.badge-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.badge-desc {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ======================================================================
   CONTACT & PROPOSAL FORM
   ====================================================================== */

.contact-container {
  display: flex;
  gap: 60px;
}

.contact-info, .contact-form-wrapper {
  flex: 1;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-title {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-left: 2px;
}

.form-input, .form-select {
  width: 100%;
  background-color: rgba(10, 14, 23, 0.4);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-bright);
  outline: none;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  background-color: rgba(10, 14, 23, 0.6);
  box-shadow: 0 0 10px rgba(0, 175, 239, 0.1);
}

.form-select option {
  background-color: var(--bg-secondary);
  color: var(--text-bright);
}

/* ======================================================================
   ERP NOTIFICATION SYSTEM
   ====================================================================== */

.erp-notification {
  border-left: 4px solid var(--accent);
  background: var(--blue-glow);
  padding: 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 24px;
  animation: fadeIn var(--transition-fast) forwards;
}

.erp-notification.success {
  border-left-color: var(--success);
  background: var(--success-glow);
}

.erp-notification-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.erp-notification-text {
  font-size: 0.8rem;
  color: var(--text-normal);
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================================================
   FOOTER
   ====================================================================== */

.footer {
  background-color: #05070a;
  border-top: 1px solid var(--border-dim);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  width: fit-content;
}

.footer-link:hover {
  color: var(--text-bright);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding: 30px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.portal-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-fast);
}

.portal-link:hover {
  color: var(--text-bright);
  text-decoration: underline;
}

/* ======================================================================
   GLOW BACKGROUND EFFECT
   ====================================================================== */

@keyframes pulse-slow {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.2; }
}

.glow-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 175, 239, 0.1) 0%, rgba(0, 175, 239, 0) 70%);
  pointer-events: none;
  filter: blur(80px);
  z-index: 1;
  animation: pulse-slow 8s infinite ease-in-out;
}

/* ======================================================================
   RESPONSIVENESS (P99 MOBILE COMPLIANT)
   ====================================================================== */

@media (max-width: 1024px) {
  .details-container, .about-container, .contact-container {
    flex-direction: column;
    gap: 50px;
  }
  
  .details-image-side, .about-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

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

  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 0;
    gap: 30px;
  }
  
  .metric-card {
    border-right: none;
  }
  
  .metric-card:nth-child(odd) {
    border-right: 1px solid var(--border-dim);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-dim);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-btn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.cursor-pointer {
  cursor: pointer;
}

/* ======================================================================
   MISSION, VISION & VALUES (MVV) SECTION
   ====================================================================== */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.mvv-card {
  padding: 24px;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  background: rgba(22, 25, 37, 0.2);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-premium);
}

.mvv-card:hover {
  border-color: var(--accent);
  background: rgba(30, 34, 53, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 175, 239, 0.05);
}

.mvv-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.mvv-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: rgba(0, 175, 239, 0.08);
  border: 1px solid rgba(0, 175, 239, 0.2);
  border-radius: 8px;
  color: var(--accent);
  transition: var(--transition-fast);
}

.mvv-card:hover .mvv-card-icon {
  background: rgba(0, 175, 239, 0.15);
  border-color: rgba(0, 175, 239, 0.4);
  color: #fff;
}

.mvv-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.mvv-card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .mvv-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

