:root {
  --bg-main: #050505;
  --bg-alt: #111111;
  --bg-card: #181818;
  --border-subtle: #252525;
  --text-main: #f5f5f5;
  --text-muted: #b3b3b3;
  --accent: #f0b90b; /* amarelo escuro */
  --accent-soft: rgba(240, 185, 11, 0.15);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #181818 0, #050505 55%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER / NAVBAR */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.78));
  border-bottom: 1px solid rgba(240, 185, 11, 0.12);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 46px;
  width: auto;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-main);
}

.logo-text span {
  color: var(--accent);
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f0b90b, #ffdf5b);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(240, 185, 11, 0.6);
  background: radial-gradient(circle at 20% 0, rgba(240, 185, 11, 0.18), transparent 60%);
}

/* BOTÃO MENU MOBILE */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
}

/* HERO HOME (com imagem de fundo) */
.hero {
  padding: 80px 0 60px;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.9)),
    url("capa-solar.jpg") center center / cover no-repeat fixed;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(240, 185, 11, 0.42);
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 22px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f0b90b, #ffdf5b);
  color: #111;
  box-shadow: 0 12px 30px rgba(240, 185, 11, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(240, 185, 11, 0.6);
}

.btn-outline {
  border: 1px solid rgba(240, 185, 11, 0.5);
  color: var(--accent);
  background: rgba(10, 10, 10, 0.9);
}

.btn-outline:hover {
  background: rgba(240, 185, 11, 0.08);
}

/* HERO INFO */
.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.hero-info > div {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(240, 185, 11, 0.22);
}

.hero-info strong {
  display: block;
  font-size: 13px;
}

/* HERO CARD */
.hero-card {
  perspective: 1100px;
}

.hero-card-inner {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(240, 185, 11, 0.25);
  background: radial-gradient(circle at top left, rgba(240, 185, 11, 0.18), #050505);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.hero-card-inner h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.hero-card-inner p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-list {
  list-style: none;
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero-list li + li {
  margin-top: 4px;
}

.hero-badge {
  display: inline-flex;
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.9);
  border: 1px dashed rgba(240, 185, 11, 0.7);
  color: var(--accent);
}

/* SEÇÕES GENÉRICAS */
.section {
  padding: 44px 0;
}

.section-alt {
  background: radial-gradient(circle at top, #101010, #050505);
  padding: 44px 0;
}

.section-alt-plain {
  background: #0b0b0b;
  padding: 44px 0;
}

.section-highlight {
  background: linear-gradient(135deg, #f0b90b, #ffdf5b);
  color: #111;
  padding: 44px 0;
}

.section-header {
  text-align: left;
  margin-bottom: 26px;
}

.section-header h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* CARDS GERAIS */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

/* SECTION HIGHLIGHT */
.section-highlight .highlight-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-highlight h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.section-highlight p {
  font-size: 14px;
}

.highlight-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.section-highlight .btn-primary {
  background: #111;
  color: #f0b90b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.highlight-note {
  font-size: 12px;
}

/* PAGE HERO (subpáginas) */
.page-hero {
  padding: 44px 0 26px;
}

.page-tag {
  display: inline-flex;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(240, 185, 11, 0.5);
  color: var(--accent);
  margin-bottom: 8px;
}

.page-hero h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 560px;
}

/* SOBRE – GRID */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.about-card {
  background: radial-gradient(circle at top, #181818, #050505);
}

.about-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.about-stats {
  list-style: none;
}

.about-stats li + li {
  margin-top: 12px;
}

.about-stats strong {
  display: block;
  font-size: 18px;
  color: var(--accent);
}

.about-stats span {
  font-size: 13px;
  color: var(--text-muted);
}

/* LINHA DO TEMPO */
.about-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 18px;
}

.about-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(240, 185, 11, 0.2), rgba(240, 185, 11, 0.7));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(37, 37, 37, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #050505;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.2);
}

.timeline-year {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: flex-start;
  padding-top: 6px;
}

.timeline-content h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* SERVIÇOS */
.feature-card h3,
.service-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature-card p,
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* PROJETOS */
.project-grid {
  margin-top: 8px;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 15px;
  margin: 10px 0 6px;
}

.project-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Imagem alinhada */
.project-image {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.4s ease-out, filter 0.4s ease-out;
}

.project-card:hover .project-image img {
  transform: scale(1.07);
  filter: brightness(1.08);
}

/* Tags do projeto */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-top: auto;
}

.project-tags li {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(240, 185, 11, 0.12);
  color: var(--accent);
}

/* CONTATO */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}

.contact-card,
.contact-info-card {
  background: var(--bg-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #050505;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(240, 185, 11, 0.4);
}

.contact-list {
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-list li + li {
  margin-top: 6px;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-note {
  font-size: 13px;
  margin-top: 12px;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #050505;
  margin-top: 30px;
  padding-top: 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  padding-bottom: 16px;
}

.footer-logo .logo-img {
  height: 40px;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-list {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-list li + li {
  margin-top: 4px;
}

.footer-list a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 10px 0;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ===== ANIMAÇÕES (CSS ONLY) ===== */

/* fade + subir */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* aplica animação base */
.service-card,
.project-card,
.timeline-item {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease-out forwards;
}

/* delays serviços (se tiver mais, eles só repetem o padrão visual) */
.service-card:nth-of-type(1) { animation-delay: 0.1s; }
.service-card:nth-of-type(2) { animation-delay: 0.2s; }
.service-card:nth-of-type(3) { animation-delay: 0.3s; }
.service-card:nth-of-type(4) { animation-delay: 0.4s; }
.service-card:nth-of-type(5) { animation-delay: 0.5s; }
.service-card:nth-of-type(6) { animation-delay: 0.6s; }
.service-card:nth-of-type(7) { animation-delay: 0.7s; }
.service-card:nth-of-type(8) { animation-delay: 0.8s; }
.service-card:nth-of-type(9) { animation-delay: 0.9s; }
.service-card:nth-of-type(10) { animation-delay: 1.0s; }

/* delays projetos (1–10) */
.project-card:nth-of-type(1) { animation-delay: 0.1s; }
.project-card:nth-of-type(2) { animation-delay: 0.2s; }
.project-card:nth-of-type(3) { animation-delay: 0.3s; }
.project-card:nth-of-type(4) { animation-delay: 0.4s; }
.project-card:nth-of-type(5) { animation-delay: 0.5s; }
.project-card:nth-of-type(6) { animation-delay: 0.6s; }
.project-card:nth-of-type(7) { animation-delay: 0.7s; }
.project-card:nth-of-type(8) { animation-delay: 0.8s; }
.project-card:nth-of-type(9) { animation-delay: 0.9s; }
.project-card:nth-of-type(10) { animation-delay: 1.0s; }

/* delays linha do tempo */
.timeline-item:nth-of-type(1) { animation-delay: 0.1s; }
.timeline-item:nth-of-type(2) { animation-delay: 0.25s; }

/* hover cards */
.service-card:hover,
.project-card:hover,
.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.7);
  border-color: rgba(240, 185, 11, 0.55);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .section-highlight .highlight-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 60px;
    right: 16px;
    left: 16px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(5, 5, 5, 0.96);
    border: 1px solid rgba(240, 185, 11, 0.18);
    flex-direction: column;
    gap: 10px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid {
    gap: 22px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-timeline {
    padding-left: 14px;
  }

  .about-timeline::before {
    left: 4px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item::before {
    left: -11px;
  }

  .timeline-year {
    padding-top: 0;
  }
}