/* nextint — light theme to match Figma design */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-dark: #1e2a3a;
  --bg-dark-footer: #1a2433;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --text-on-dark: #ffffff;
  --border: #e5e5e5;
  --radius: 8px;
  --radius-lg: 16px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --btn-hero: #1a2a3a;
  --icon-blue: #4a90d9;
  --icon-green: #5cb85c;
  --icon-purple: #9b6bcc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header — white, logo left, nav + lang right */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-semicolon {
  color: var(--icon-blue);
  font-weight: 700;
}

.footer .logo-semicolon {
  color: #5ca8f0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0.35rem 0;
  position: relative;
}

.lang-wrap {
  position: relative;
}

.lang-toggle svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  min-width: 140px;
  padding: 0.5rem 0;
  display: none;
}

.lang-dropdown.is-open {
  display: block;
}

.lang-dropdown button,
.lang-dropdown a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.lang-dropdown button:hover,
.lang-dropdown a:hover {
  background: var(--bg-alt);
}

/* Main */
main {
  flex: 1;
}

/* Hero — white bg, dark heading, grey sub, dark navy button */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-trust {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--btn-hero);
  color: var(--text-on-dark);
}

.btn-primary:hover {
  background: #2a3a4a;
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Features — light bg, circular colored icons */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 3rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: -2rem auto 3rem;
  line-height: 1.6;
}

.features-grid,
.what-we-do-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 1rem 0;
}

.feature-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
}

.feature-icon-wrap.blue {
  background: rgba(74, 144, 217, 0.12);
  border-color: rgba(74, 144, 217, 0.35);
  color: var(--icon-blue);
}

.feature-icon-wrap.green {
  background: rgba(92, 184, 92, 0.12);
  border-color: rgba(92, 184, 92, 0.35);
  color: var(--icon-green);
}

.feature-icon-wrap.purple {
  background: rgba(155, 107, 204, 0.12);
  border-color: rgba(155, 107, 204, 0.35);
  color: var(--icon-purple);
}

.feature-icon-wrap svg {
  width: 40px;
  height: 40px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Solution cards — with colored left border / icon */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.solution-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.solution-card.blue { border-color: rgba(74, 144, 217, 0.4); }
.solution-card.green { border-color: rgba(92, 184, 92, 0.4); }
.solution-card.purple { border-color: rgba(155, 107, 204, 0.4); }

.solution-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.solution-card .feature-icon-wrap {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.solution-card .feature-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.solution-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.solution-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Use cases grid 2x2 */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.use-case-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.use-case-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.use-case-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* CTA section — dark blue/purple bg, white text, white outline button */
.cta-section {
  background: var(--bg-dark);
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}

.cta-text {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 1.75rem;
  max-width: 520px;
  line-height: 1.6;
}

.cta-section .btn + .btn {
  margin-left: 0.75rem;
}

/* O que podemos automatizar */
.automate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.automate-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--text);
}

.automate-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.automate-closing {
  margin-top: 0;
  margin-bottom: 0;
}

/* Exemplos de soluções */
.exemplos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.exemplo-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.exemplo-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--icon-blue);
  margin-bottom: 0.75rem;
}

.exemplo-empresa {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.exemplo-card p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.exemplo-card p:last-child {
  margin-bottom: 0;
}

.sobre-short .sobre-block-text {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  text-align: center;
  line-height: 1.65;
}

/* Por que escolher - list */
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.why-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--icon-blue);
}

/* About page — profile card */
.about-main,
.contact-main,
.solucoes-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.sobre-section h2,
.mission-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--text);
}

.profile-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b6bcc 0%, #4a90d9 100%);
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.profile-avatar-placeholder {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 2px dashed var(--border);
}

.about-page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--text);
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.contact-cta-section {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-cta-section h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.contact-cta-section a {
  color: var(--icon-blue);
  text-decoration: none;
}

.contact-cta-section a:hover {
  text-decoration: underline;
}

/* CTA buttons on About page: white text */
.contact-cta-section a.btn-whatsapp,
.contact-cta-section a.btn-primary {
  color: #fff;
}

.contact-cta-section a.btn-whatsapp:hover,
.contact-cta-section a.btn-primary:hover {
  color: #fff;
  text-decoration: none;
}

/* Same for hero-ctas buttons in about-main (profile section) */
.about-main .hero-ctas a.btn-whatsapp,
.about-main .hero-ctas a.btn-primary {
  color: #fff;
}

.about-main .hero-ctas a.btn-whatsapp:hover,
.about-main .hero-ctas a.btn-primary:hover {
  color: #fff;
}

.profile-card h3 {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.profile-role {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.profile-bio {
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 2rem;
}

.profile-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.profile-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.profile-feature .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-feature .icon.blue {
  background: rgba(74, 144, 217, 0.15);
  color: var(--icon-blue);
}

.profile-feature .icon.purple {
  background: rgba(155, 107, 204, 0.15);
  color: var(--icon-purple);
}

.profile-feature strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.profile-feature span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mission-section p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Contact page */
.contact-section {
  text-align: center;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.contact-intro {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.form-status-success {
  background: rgba(92, 184, 92, 0.12);
  color: #2d6a2d;
  border: 1px solid rgba(92, 184, 92, 0.3);
}

.form-status-error {
  background: rgba(220, 53, 69, 0.08);
  color: #a72b39;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.contact-form label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.contact-form select {
  cursor: pointer;
  appearance: auto;
}

.contact-email-line {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-email-line a {
  color: var(--icon-blue);
  text-decoration: none;
}

.contact-email-line a:hover {
  text-decoration: underline;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--text-muted);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.contact-note {
  max-width: 480px;
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
  line-height: 1.5;
}

/* Footer — dark, 3 columns */
.footer {
  background: var(--bg-dark-footer);
  color: var(--text-on-dark);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand .logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-on-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-brand .tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.footer-contact h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text-on-dark);
}

.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-right .figma-attrib {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* Mobile: hamburger menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  z-index: 102;
  position: relative;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5rem 1.5rem 1.5rem;
    margin: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 101;
    list-style: none;
    border-left: 1px solid var(--border);
  }

  .nav.open .nav-links {
    transform: translateX(0);
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a,
  .nav-links .lang-wrap {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }

  .nav-links .lang-toggle {
    padding: 1rem 0;
  }

  .nav.open .nav-toggle[aria-expanded="true"] {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
  }

  /* CTA section: stacked buttons with gap on mobile */
  .cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .cta-section .btn + .btn {
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  /* Solutions page: centered on mobile */
  .solucoes-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .solucoes-main .features {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }

  .solucoes-main .section-title,
  .solucoes-main .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .solucoes-main .solutions-grid,
  .solucoes-main .use-cases-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-right {
    text-align: center;
  }
  .footer-right .figma-attrib {
    justify-content: center;
  }
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}
