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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.5;
  padding-top: 5.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to right, #ffa500, #ffb800);
  padding-left: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-links {
  position: absolute;
  left: 0;
  display: flex;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #1a1a1a;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 4px;
}

.header-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

.header-link:hover {
  text-decoration: underline;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 5rem;
  width: auto;
  display: block;
}

.logo:hover {
  color: #333;
}

/* Main */
main {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  padding: 4rem 1.5rem;
  background: #ffa6001b;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
}

@keyframes hero-flow {
  to { stroke-dashoffset: -16; }
}

.hero-flow-arrow {
  stroke-dasharray: 5 3;
  animation: hero-flow 1.2s linear infinite;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #1a1a1a;
}

.hero-content p {
  font-size: 1.0625rem;
  color: #555;
  margin-bottom: 1.75rem;
}

.btn-contact {
  display: inline-block;
  background: #ffa500;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-contact:hover {
  background: #e69500;
}

/* Services Section */
.services {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 4rem 1.5rem;
}

/* Variação de cor por seção */
#servico {
  background: white;
}

#tecnologias {
  background: white;
}

#contato {
  background: #ffa6001b;
}

/* Niches / Clientes Section */
.niches {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, #fff 0%, #fff9f0 50%, #fff 100%);
}

.niches-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.niches-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
  max-width: 560px;
}

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

.niche-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #ffa50020;
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.niche-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 165, 0, 0.12);
  border-color: #ffa50040;
}

.niche-card--wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 1.25rem;
  align-items: start;
}

.niche-card--wide .niche-icon {
  grid-row: span 2;
}

.niche-card--wide h3 {
  margin-bottom: 0.25rem;
}

.niche-card--wide p {
  margin: 0;
}

.niche-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffa500, #ffb800);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.niche-card--wide .niche-icon {
  margin-bottom: 0;
}

.niche-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.niche-card p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* Anchor scroll offset for fixed header */
#top,
#tecnologias,
#servico,
#clientes,
#contato {
  scroll-margin-top: 5.5rem;
}

/* Technologies Section */
.technologies {
  padding: 2rem 1.5rem;
}

.technologies h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #1a1a1a;
}

.technologies-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.tech-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
}

.tech-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #fafafa;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.tech-item:hover {
  background: #ffa60014;
  transform: translateY(-2px);
}

.tech-logo {
  height: 40px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.tech-item .tech-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  color: #1a1a1a;
}

.tech-item .tech-logo-wrap svg {
  max-height: 28px;
  width: auto;
  max-width: 100px;
}

.service-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #1a1a1a;
}

.service-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
  align-items: start;
}

.service-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-list {
  list-style: none;
  margin: 0;
}

.service-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #444;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  background: #ffa500;
  border-radius: 50%;
}

/* Benefits */
.service-benefits {
  background: linear-gradient(135deg, #ffa60012 0%, #ffa60008 100%);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 0.5rem;
  border: 1px solid #ffa50028;
}

.benefits-list {
  list-style: none;
  margin: 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.benefit-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffa500;
  color: #fff;
  border-radius: 8px;
}

.benefit-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Contact Form */
.contact-form-container {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.contact-info {
  flex: 1;
  padding-top: 0.25rem;
}

.contact-info-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.contact-info-lead {
  font-size: 1.0625rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: #ffa500;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact-info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.15rem;
}

.contact-info-text strong {
  font-size: 0.9375rem;
  color: #1a1a1a;
}

.contact-info-text span {
  font-size: 0.875rem;
  color: #777;
}

.contact-form {
  flex: 1;
  max-width: 480px;
  width: 100%;
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.form-message--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.form-message--error {
  background: #ffebee;
  color: #c62828;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffa500;
}

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

.btn-submit {
  background: #ffa500;
  color: #fff;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-submit:hover:not(:disabled) {
  background: #e69500;
}

.btn-submit:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Footer */
.footer {
  background: linear-gradient(to right, #ffa500, #ffb800);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1a1a1a;
  transition: opacity 0.2s;
}

.footer-brand:hover {
  opacity: 0.9;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  display: block;
}

.footer-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.75rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.85;
}

.footer-link-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.875rem;
  color: #333;
  margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .header-links {
    position: fixed;
    top: 5.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 90;
  }

  .header-links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-link {
    font-size: 1rem;
    padding: 0.25rem 0;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-container {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-info {
    width: 100%;
  }

  .services {
    padding: 2rem 1rem;
  }

  .technologies {
    padding: 1.5rem 1rem;
  }

  .tech-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .tech-item {
    padding: 0.75rem;
  }

  .tech-logo {
    height: 36px;
    max-width: 85px;
  }

  .niches-grid {
    grid-template-columns: 1fr;
  }

  .niche-card--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .niche-card--wide .niche-icon {
    grid-row: auto;
    margin-bottom: 1rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-benefits {
    padding: 1rem 1rem 0.5rem;
  }

  .footer {
    padding: 1.5rem 1rem;
  }

  .footer-logo {
    height: 2rem;
  }

  .footer-name {
    font-size: 1.125rem;
  }
}
