/* ═══════════════════════════════════════════════════════════
   FlaiCo — Dark Mode Industrial
   Confiança · Autoridade · Precisão Tecnológica
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Variables ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette */
  --bg-primary:    #0b0d10;
  --bg-secondary:  #11141a;
  --bg-tertiary:   #161a22;
  --bg-card:       #1a1e28;
  --bg-card-hover: #1f2430;
  
  /* Accent – industrial steel / silver */
  --accent:        #8b9bb4;
  --accent-light:  #adbdce;
  --accent-dim:    rgba(139, 155, 180, 0.12);
  --accent-glow:   rgba(139, 155, 180, 0.2);
  
  /* Text */
  --text-primary:   #e8e8ed;
  --text-secondary: #9898a6;
  --text-muted:     #5c5c6d;
  
  /* Borders */
  --border:        rgba(255, 255, 255, 0.06);
  --border-accent: rgba(139, 155, 180, 0.3);
  
  /* Spacing */
  --section-py: clamp(5rem, 10vw, 8rem);
  
  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Theme-dependent hardcoded values */
  --nav-scrolled-bg: rgba(11, 13, 16, 0.92);
  --grid-line-color: rgba(139, 155, 180, 0.03);
  --hero-glow-color: rgba(139, 155, 180, 0.08);
}

/* ─── Light Theme ─── */
[data-theme="light"] {
  --bg-primary:    #f4f5f7;
  --bg-secondary:  #eaecf0;
  --bg-tertiary:   #e0e2e8;
  --bg-card:       #ffffff;
  --bg-card-hover: #f8f9fb;

  --accent:        #4a5d7a;
  --accent-light:  #3a4d68;
  --accent-dim:    rgba(74, 93, 122, 0.08);
  --accent-glow:   rgba(74, 93, 122, 0.12);

  --text-primary:   #1a1e28;
  --text-secondary: #4a5060;
  --text-muted:     #8890a0;

  --border:        rgba(0, 0, 0, 0.08);
  --border-accent: rgba(74, 93, 122, 0.25);

  --nav-scrolled-bg: rgba(244, 245, 247, 0.92);
  --grid-line-color: rgba(74, 93, 122, 0.06);
  --hero-glow-color: rgba(74, 93, 122, 0.05);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  color-scheme: dark light;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.accent { color: var(--accent); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  font-weight: 700;
}
.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--full { width: 100%; }

/* ═══════════════ NAVIGATION ═══════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}

.nav--scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__logo-img {
  height: 32px;
  width: 32px;
  object-fit: cover;
  border-radius: 6px;
}

.nav__logo-icon {
  color: var(--accent);
  font-size: 1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav__links a:hover { color: var(--text-primary); }

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  color: var(--accent) !important;
  transition: all 0.3s var(--ease) !important;
}
.nav__cta:hover {
  background: var(--accent-dim);
}
.nav__cta::after { display: none !important; }

/* Language switcher */
.nav__lang { margin-left: 0.5rem; display: flex; align-items: center; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  transition: border-color 0.3s var(--ease);
}
.lang-switch:hover { border-color: var(--accent); }

/* ─── Theme Toggle ─── */
.theme-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
  margin-right: 0.5rem;
}
.theme-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-switch__icon { display: none; }
[data-theme="dark"] .theme-switch__icon--sun,
:root:not([data-theme="light"]) .theme-switch__icon--sun { display: block; }
[data-theme="light"] .theme-switch__icon--moon { display: block; }

/* ─── Light mode: SVG + logo adjustments ─── */
[data-theme="light"] .hero__visual img,
[data-theme="light"] .hero__visual svg {
  filter: none;
}
[data-theme="light"] .nav__logo-img {
  filter: none;
}
[data-theme="light"] .footer__logo-img {
  filter: brightness(0.3);
}

.lang-switch__current {
  color: var(--text-primary);
  font-weight: 600;
}
.lang-switch__sep {
  color: var(--text-muted);
  font-weight: 300;
}
.lang-switch__other {
  color: var(--text-muted);
  font-weight: 400;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.hero__content {
  position: relative;
  flex: 1;
  min-width: 0;
}

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero__visual {
  flex: 0 0 420px;
  position: relative;
}

.hero__image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(139, 155, 180, 0.08));
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-accent);
  border-radius: 2px;
  margin-bottom: 2rem;
  background: var(--accent-dim);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero__stat { text-align: left; }

.hero__stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero__stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.hero__stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hero__scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════ SECTIONS (shared) ═══════════════ */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section__header { margin-bottom: 4rem; }
.section__header--center { text-align: center; }

.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

/* ═══════════════ SOBRE ═══════════════ */
.sobre { background: var(--bg-secondary); }

.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.sobre__text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.sobre__values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  transition: all 0.4s var(--ease);
}
.value-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.value-card__icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════ CICLO DE EVOLUÇÃO ═══════════════ */
.ciclo { background: var(--bg-primary); }

.ciclo__timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.ciclo__line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border), var(--accent));
  opacity: 0.3;
}

.ciclo__phase {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem 0;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out);
}

.ciclo__phase.visible {
  opacity: 1;
  transform: translateY(0);
}

.ciclo__phase-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.ciclo__phase-content {
  flex: 1;
  padding-bottom: 1rem;
}

.ciclo__phase-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.ciclo__phase-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.ciclo__phase-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.ciclo__phase-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ciclo__phase-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}
.ciclo__phase-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════ SETORES ═══════════════ */
.setores { background: var(--bg-secondary); }

.setores__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.setor-card {
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.setor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.setor-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}
.setor-card:hover::before { opacity: 1; }

.setor-card__icon {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.setor-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.setor-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════ DIFERENCIAL ═══════════════ */
.diferencial { background: var(--bg-primary); }

.diferencial__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dif-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  transition: all 0.4s var(--ease);
}
.dif-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.dif-card__number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.dif-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.dif-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════ CONTACTO ═══════════════ */
.contacto {
  background: var(--bg-secondary);
}

.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacto__text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.contacto__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contacto__info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.contacto__info-item svg { color: var(--accent); flex-shrink: 0; }
.contacto__info-item a {
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
}
.contacto__info-item a:hover { color: var(--accent); }

/* ─── Form ─── */
.contacto__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo-img {
  height: 80px;
  width: auto;
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 1rem;
}

.footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.footer__links a:hover { color: var(--accent); }

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════ ANIMATIONS ═══════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 968px) {
  .sobre__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .diferencial__grid { grid-template-columns: repeat(2, 1fr); }
  .contacto__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__inner { flex-direction: column; gap: 3rem; }
  .hero__visual { flex: none; width: 100%; max-width: 420px; }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border);
    transition: right 0.4s var(--ease-out);
  }
  .nav__links.open { right: 0; }
  .nav__toggle { display: flex; z-index: 1001; }
  .nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 7rem 1.5rem 3rem; }
  .hero__stats { flex-direction: column; gap: 1.5rem; }
  .hero__scroll-hint { display: none; }

  .setores__grid { grid-template-columns: 1fr; }
  .diferencial__grid { grid-template-columns: 1fr; }

  .ciclo__phase { gap: 1.5rem; }
  .ciclo__line { left: 23px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .hero__actions { flex-direction: column; }
  .btn--full-mobile { width: 100%; }
}
