/* ==========================================================================
   Trankar — Site Institucional
   Paleta: laranja #ED8B2B / azul-ardósia #56688F
   ========================================================================== */

:root {
  --laranja: #ED8B2B;
  --laranja-escuro: #d4761a;
  --azul: #56688F;
  --azul-escuro: #3f4d6e;
  --texto: #2A2E37;
  --texto-claro: #5b606b;
  --fundo: #ffffff;
  --fundo-alt: #F5F6F8;
  --branco: #ffffff;
  --borda: #e4e7ec;
  --whatsapp: #25D366;
  --radius: 12px;
  --sombra: 0 8px 30px rgba(20, 30, 60, .08);
  --sombra-card: 0 4px 18px rgba(20, 30, 60, .07);
  --maxw: 1180px;
  --transicao: .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--texto);
}

a { color: var(--azul); text-decoration: none; transition: color var(--transicao); }
a:hover { color: var(--laranja); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--fundo-alt); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2.1rem; margin-bottom: 14px; }
.section-head p { color: var(--texto-claro); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--laranja);
  margin-bottom: 12px;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transicao);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--laranja); color: #fff; }
.btn--primary:hover { background: var(--laranja-escuro); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn--outline:hover { background: var(--azul); color: #fff; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); }
.btn--ghost-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: #fff; color: var(--azul-escuro); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borda);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.header__logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; }
.nav__menu { display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav__links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--texto);
}
.nav__links a:hover, .nav__links a.active { color: var(--laranja); }
.nav__cta .btn { padding: 11px 20px; font-size: .9rem; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--azul);
  border-radius: 3px;
  transition: all var(--transicao);
}
.nav__toggle span + span { margin-top: 5px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(120deg, #1d2740 0%, #3f4d6e 60%, #56688F 100%);
  color: #fff;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding-top: 90px;     /* ← só vertical, não toca no padding lateral */
  padding-bottom: 90px;
}
.hero__content h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero__content h1 span { color: var(--laranja); }
.hero__content p { font-size: 1.15rem; color: rgba(255,255,255,.88); margin-bottom: 32px; max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(237,139,43,.16);
  border: 1px solid rgba(237,139,43,.5);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}

/* ===== Quem Somos ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about__text h2 { font-size: 2.1rem; margin-bottom: 18px; }
.about__text p { color: var(--texto-claro); margin-bottom: 16px; }
.about__highlights { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.about__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}
.about__highlights li::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  margin-top: 3px;
  background: var(--laranja);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.about__media img { border-radius: var(--radius); box-shadow: var(--sombra); }

/* ===== Cards Linhas ===== */
.lines__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.line-card {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  transition: transform var(--transicao), box-shadow var(--transicao);
  display: flex;
  flex-direction: column;
}
.line-card:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.line-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--fundo-alt); }
.line-card__img img { width: 100%; height: 100%; object-fit: cover; }
.line-card__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.line-card__body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.line-card__body p { color: var(--texto-claro); margin-bottom: 18px; flex: 1; }
.line-card__link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--laranja);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.line-card__link:hover { gap: 11px; color: var(--laranja-escuro); }

/* ===== Faixa CTA ===== */
.cta-band {
  background: var(--laranja);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.92); margin-bottom: 28px; font-size: 1.08rem; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-band .btn--whatsapp { background: #fff; color: #128C3E; }
.cta-band .btn--whatsapp:hover { background: #eafff1; color: #0f7a35; }

/* ===== Page header (sub-páginas) ===== */
.page-hero {
  background: linear-gradient(120deg, #1d2740 0%, #3f4d6e 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

/* ===== Soluções ===== */
.solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.solution + .solution { margin-top: 70px; }
.solution--reverse .solution__media { order: 2; }
.solution__media img { border-radius: var(--radius); box-shadow: var(--sombra); width: 100%; }
.solution__text h2 { font-size: 1.9rem; margin-bottom: 16px; }
.solution__text p { color: var(--texto-claro); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.tag {
  background: rgba(86,104,143,.1);
  color: var(--azul-escuro);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  padding: 7px 16px;
  border-radius: 50px;
}
.tag--orange { background: rgba(237,139,43,.14); color: var(--laranja-escuro); }

/* ===== Formulário Registro ===== */
.form-wrap { max-width: 880px; margin: 0 auto; }
.form-intro { text-align: center; margin-bottom: 40px; color: var(--texto-claro); }
.reg-form fieldset {
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  background: #fff;
  box-shadow: var(--sombra-card);
}
.reg-form legend {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--azul-escuro);
  padding: 0 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 7px;
  color: var(--texto);
}
.field label .req { color: var(--laranja); }
.field input, .field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  background: #fff;
  color: var(--texto);
  transition: border-color var(--transicao), box-shadow var(--transicao);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px rgba(237,139,43,.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-actions { text-align: center; margin-top: 10px; }
.form-actions .btn { padding: 15px 50px; font-size: 1.05rem; }

/* ===== Footer ===== */
.footer {
  background: var(--azul-escuro);
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand img { height: 52px; margin-bottom: 16px; }
.footer__brand p { font-size: .95rem; max-width: 320px; }
.footer h4 {
  color: #fff;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__links { list-style: none; display: grid; gap: 11px; }
.footer__links a { color: rgba(255,255,255,.8); font-size: .96rem; }
.footer__links a:hover { color: var(--laranja); }
.footer__contact { display: grid; gap: 14px; }
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: .96rem;
}
.footer__contact a:hover { color: #fff; }
.footer__contact svg { width: 18px; height: 18px; flex: 0 0 18px; fill: var(--laranja); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* ===== Float WhatsApp ===== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform var(--transicao);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ===== Página obrigado ===== */
.thanks {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}
.thanks__icon {
  width: 90px; height: 90px;
  margin: 0 auto 24px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.thanks__icon svg { width: 48px; height: 48px; fill: #fff; }
.thanks h1 { font-size: 2.2rem; margin-bottom: 14px; }
.thanks p { color: var(--texto-claro); max-width: 480px; margin: 0 auto 28px; }

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero__media {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 24px auto 0;
    padding: 0 4px;
  }
  .hero__media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  .hero__content h1 { font-size: 2.3rem; }
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__media { order: -1; }
  .lines__grid { grid-template-columns: 1fr; }
  .solution, .solution--reverse .solution__media { grid-template-columns: 1fr; order: 0; }
  .solution__media { order: -1; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav__menu { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--borda);
    padding: 20px 24px 24px;
    box-shadow: var(--sombra);
    z-index: 99;
  }
  .nav__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
  }
  .nav__links a {
    display: block;
    padding: 10px 0;
    width: 100%;
    font-size: 1.05rem;
  }
  .nav__cta {
    margin-top: 8px;
  }
  .nav__cta .btn {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }
  
  
  /* Burger icon to X animation */
  .nav.is-open .nav__toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav.is-open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.is-open .nav__toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .form-grid { grid-template-columns: 1fr; }
  .reg-form fieldset { padding: 18px 16px; }
  .section { padding: 56px 0; }
  .section-head h2, .cta-band h2 { font-size: 1.7rem; }
  body { font-size: 16px; }
}

@media (max-width: 500px) {
  .hero__cta, .cta-band__btns {
    flex-direction: column;
    width: 100%;
  }
  .hero__cta .btn, .cta-band__btns .btn {
    width: 100%;
    justify-content: center;
  }
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__inner {
     padding-top: 40px;
     padding-bottom: 32px;
  }
  .hero__content h1 {
    font-size: 1.9rem;    /* título menor em telas muito pequenas */
  }
  .hero__content p {
    font-size: 1rem;
  }
  .hero__tag {
    font-size: .72rem;
  }
}
