/* ══════════════════════════════════════════════════════════════════════════════
   THS Tecnologia — Hotsite Parceiros
   Identidade visual: ths.inf.br
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  --red:        #E30613;
  --navy-dark:  #001834;
  --navy:       #102D4F;
  --navy-mid:   #3C638C;
  --cyan:       #6CC8D7;
  --cyan-light: #43BAFF;
  --text:       #7A7A7A;
  --text-dark:  #1B1D21;
  --grey:       #54595F;
  --bg-alt:     #F8F8F8;
  --white:      #FFFFFF;
  --border:     #E0E0E0;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 4px 24px rgba(16,45,79,.10);
  --shadow-lg:  0 8px 40px rgba(16,45,79,.16);
  --transition: .22s cubic-bezier(.4,0,.2,1);
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Nunito Sans', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

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

a { text-decoration: none; color: inherit; }

.text-red { color: var(--red); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: .03em;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover { background: #c00511; border-color: #c00511; transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover { background: var(--bg-alt); transform: translateY(-1px); }

.btn--nav {
  background: var(--red);
  color: var(--white);
  padding: 9px 20px;
  font-size: .8rem;
}
.btn--nav:hover { background: #c00511; }

.btn--sm {
  padding: 7px 16px;
  font-size: .8rem;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--navy);
  border-color: var(--border);
}
.btn--sm:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.btn--full { width: 100%; justify-content: center; }

/* ── Section decorations ──────────────────────────────────────────────────── */
.section-badge {
  display: inline-block;
  background: rgba(227,6,19,.10);
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-header h2 { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--navy-dark); line-height: 1.2; margin-bottom: 12px; }
.section-header p { color: var(--text); font-size: .95rem; }

.icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.icon--cyan { fill: var(--cyan); width: 20px; height: 20px; }

/* ══ TOP BAR ══════════════════════════════════════════════════════════════════ */
.topbar {
  background: var(--navy-dark);
  padding: 8px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__inner span { display: flex; align-items: center; gap: 6px; }
.topbar__socials a {
  color: rgba(255,255,255,.7);
  font-weight: 600;
  font-size: .8rem;
  transition: var(--transition);
}
.topbar__socials a:hover { color: var(--cyan); }

/* ══ HEADER ══════════════════════════════════════════════════════════════════ */
.header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 32px;
}
.header__logo img { height: 40px; width: auto; }
.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__nav a {
  color: rgba(255,255,255,.85);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .875rem;
  transition: var(--transition);
}
.header__nav a:hover { color: var(--cyan); }
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══ HERO ═════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(67,186,255,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(108,200,215,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: url('https://ths.inf.br/wp-content/uploads/revslider/home-1/slide1-home1.jpg') center/cover no-repeat;
  opacity: .08;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}
.hero__badge {
  display: inline-block;
  background: rgba(227,6,19,.20);
  border: 1px solid rgba(227,6,19,.4);
  color: #ff6b78;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero__content h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 680px;
}
.hero__content p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  position: relative;
  z-index: 2;
}
.hero__stats-inner {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.stat {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--cyan);
  line-height: 1;
}
.stat__label {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
}

/* ══ ABOUT ════════════════════════════════════════════════════════════════════ */
.about {
  padding: 96px 0;
  background: var(--bg-alt);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__text h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--navy-dark);
  line-height: 1.25;
  margin-bottom: 18px;
}
.about__text p { color: var(--text); margin-bottom: 16px; font-size: .95rem; }
.about__text .btn { margin-top: 8px; }
.about__certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cert-icon { font-size: 1.75rem; line-height: 1; }
.cert-card strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--navy); }
.cert-card span { font-size: .75rem; color: var(--text); }

/* ══ PARTNERS ═════════════════════════════════════════════════════════════════ */
.partners {
  padding: 96px 0;
  background: var(--white);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--grey);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .02em;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16,45,79,.15);
}
.partner-card.featured {
  border-color: rgba(227,6,19,.2);
  background: linear-gradient(135deg, rgba(227,6,19,.03) 0%, var(--white) 50%);
}
.partner-card.hidden { display: none; }

.partner-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}
.partner-card__logo-wrap {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-card__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: .02em;
}

.partner-card__tier {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}
.tier--premium { background: rgba(16,45,79,.08); color: var(--navy); }
.tier--balanced { background: rgba(108,200,215,.15); color: #0a7a8a; }
.tier--value { background: rgba(0,187,110,.10); color: #006635; }
.tier--niche { background: rgba(100,100,100,.10); color: var(--grey); }
.tier--service { background: rgba(60,99,140,.12); color: var(--navy-mid); }

.featured-badge {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: -4px;
}
.critical-badge { color: #c00511; }

.partner-card h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-dark);
  line-height: 1.2;
}
.partner-card__cat {
  font-size: .78rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--font-head);
}
.partner-card p {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
}
.partner-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.partner-card__tags span {
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-head);
  background: rgba(16,45,79,.06);
  color: var(--navy-mid);
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: .03em;
}
.partner-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.status {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.status--active { color: #1a8c3c; }
.status--progress { color: #e67e00; }
.status--nego { color: var(--red); }
.status--potential { color: var(--navy-mid); }

/* ══ CTA BAND ═════════════════════════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 64px 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-band p { color: rgba(255,255,255,.7); font-size: .95rem; max-width: 520px; }

/* ══ CONTACT ══════════════════════════════════════════════════════════════════ */
.contact {
  padding: 96px 0;
  background: var(--bg-alt);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact__info h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--navy-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.contact__info p { color: var(--text); font-size: .95rem; margin-bottom: 28px; }
.contact__details { display: flex; flex-direction: column; gap: 14px; }
.contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--grey);
}

.contact__form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--navy); letter-spacing: .02em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(60,99,140,.12);
}
.form-note {
  font-size: .75rem;
  color: var(--text);
  text-align: center;
  line-height: 1.5;
}

/* ══ FOOTER ══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  padding: 56px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__brand img { margin-bottom: 14px; }
.footer__brand p { color: rgba(255,255,255,.55); font-size: .85rem; line-height: 1.7; max-width: 280px; }
.footer__links, .footer__certs { display: flex; flex-direction: column; gap: 10px; }
.footer__links h4, .footer__certs h4 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .85rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.footer__links a {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  transition: var(--transition);
}
.footer__links a:hover { color: var(--cyan); }
.footer__certs p { color: rgba(255,255,255,.55); font-size: .875rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ══ RESPONSIVE ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about__inner,
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero__content h1 { font-size: 2rem; }
  .cta-band__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .header__nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 16px 24px; gap: 16px; }
  .header__nav.open { display: flex; }
  .header__inner { position: relative; }
  .header__burger { display: flex; }
  .footer__inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about__certs { grid-template-columns: 1fr; }
  .stat { flex: 1 1 50%; }
  .hero__content { padding: 48px 24px; }
  .partners-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.5rem; }
  .about__text h2, .contact__info h2 { font-size: 1.5rem; }
}
