/* ==== VARIABLES ==== */
:root {
  --primary-color: #1e40af;
  --secondary-color: #0891b2;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-height: 4.5rem; /* usado para calcular espaços com header fixo */
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 0.5rem); }

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* images */
img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ==== UTILITIES ==== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.section__title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: justify;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section__subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==== BUTTONS ==== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn--primary { background: var(--primary-color); color: var(--white); }
.btn--primary:hover { background: #1e3a8a; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--secondary { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn--secondary:hover { background: var(--primary-color); color: var(--white); }

.btn--outline { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn--outline:hover { background: var(--primary-color); color: var(--white); }

.btn--full { width: 100%; }

/* ==== HEADER ==== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 100;
  transition: var(--transition);
  height: var(--header-height);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.nav__logo img { width: 240px; max-width: 100%; height: auto; }

.nav__list { display: flex; gap: 2rem; align-items: center; }

.nav__link { font-weight: 500; color: var(--text-dark); transition: var(--transition); position: relative; }
.nav__link:hover { color: var(--primary-color); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}
.nav__link:hover::after { width: 100%; }

.nav__toggle, .nav__close { display: none; cursor: pointer; }

/* ==== HERO (BANNER) ==== */
/* removed previous hero text styles (you use an image banner now) */
.hero {
  padding-top: calc(var(--header-height) + 1rem);
  padding-bottom: 1.5rem;
  background: none;
  min-height: auto;
  display: block;
}

/* hero container keeps spacing consistent with other sections */
.hero__container {
  display: block;
}

/* the banner wrapper that centers and constrains the image */
.hero__banner-inner {
  width: 100%;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
  max-height: none;
}

/* make the image fully visible (no crop) and responsive */
.hero__banner-inner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ==== SERVICES ==== */
.services { padding: 5rem 0; background: var(--bg-light); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service__card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.service__card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.service__icon { font-size: 3rem; margin-bottom: 1rem; }
.service__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-dark); }
.service__description { color: var(--text-light); font-size: 0.95rem; }

/* ==== PRICING ==== */
.pricing { padding: 5rem 0; background: var(--white); }

.pricing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }

.pricing__card { background: var(--white); border: 2px solid #e5e7eb; border-radius: 1rem; padding: 2.5rem; position: relative; transition: var(--transition); }
.pricing__card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.pricing__card--featured { border-color: var(--primary-color); box-shadow: var(--shadow-lg); }

.pricing__badge { position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); background: var(--accent-color); color: var(--white); padding: 0.5rem 1.5rem; border-radius: 2rem; font-size: 0.875rem; font-weight: 600; }

.pricing__header { text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 2px solid #e5e7eb; }
.pricing__name { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-dark); }
.pricing__price { display: flex; align-items: flex-start; justify-content: center; gap: 0.25rem; }
.pricing__currency { font-size: 1.5rem; font-weight: 600; color: var(--text-light); }
.pricing__amount { font-size: 3.5rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.pricing__period { font-size: 1rem; color: var(--text-light); align-self: flex-end; margin-bottom: 0.5rem; }
.pricing__features { margin-bottom: 2rem; }
.pricing__feature { padding: 0.75rem 0; color: var(--text-dark); font-size: 0.95rem; }
.pricing__feature--disabled { color: var(--text-light); opacity: 0.6; }

/* ==== CONTACT ==== */
.contact { padding: 5rem 0; background: var(--bg-light); }

.contact__container { display: grid; grid-template-columns: 35fr 65fr; gap: 3rem; align-items: start; }

.contact__info-wrapper {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(8, 145, 178, 0.05) 100%);
  border: 2px solid rgba(30, 64, 175, 0.1);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 20px 60px -15px rgba(30, 64, 175, 0.15);
}

.contact__info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact__card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(30, 64, 175, 0.1);
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.contact__card:hover { transform: translateY(-4px); border-color: #0891b2; box-shadow: 0 12px 30px rgba(30, 64, 175, 0.2); }

.contact__icon-box { width: 70px; height: 70px; border-radius: 1.25rem; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15); flex-shrink: 0; transition: all 0.3s ease; overflow: hidden; }
.contact__card:hover .contact__icon-box { transform: scale(1.1); box-shadow: 0 12px 32px rgba(30, 64, 175, 0.25); }

.contact__icon-img { width: 100%; height: 100%; object-fit: cover; }
.contact__card-content { flex: 1; }
.contact__card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.375rem; color: var(--text-dark); }
.contact__card-value { color: #0891b2; font-weight: 600; font-size: 1rem; transition: var(--transition); }
.contact__card:hover .contact__card-value { color: var(--primary-color); }

.contact__form { background: var(--white); padding: 2.5rem; border-radius: 1rem; box-shadow: var(--shadow); }

.form__group { margin-bottom: 1.5rem; }
.form__label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-dark); }
.form__input { width: 100%; padding: 0.875rem; border: 2px solid #e5e7eb; border-radius: 0.5rem; font-family: inherit; font-size: 1rem; transition: var(--transition); }
.form__input:focus { outline: none; border-color: var(--primary-color); }
.form__textarea { resize: vertical; min-height: 120px; }

.form__message { margin-top: 1rem; padding: 1rem; border-radius: 0.5rem; text-align: center; font-weight: 500; display: none; }
.form__message--success { background: #d1fae5; color: #065f46; display: block; }
.form__message--error { background: #fee2e2; color: #991b1b; display: block; }

/* ==== FOOTER ==== */
.footer { background: var(--text-dark); color: var(--white); padding: 3rem 0 1.5rem; }
.footer__content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer__logo { margin-bottom: 1rem; filter: brightness(0) invert(1); display: block; margin-left: auto; margin-right: auto; max-width: 100%; height: auto; }
.footer__description { color: #9ca3af; font-size: 0.95rem; }
.footer__title { font-size: 1.125rem; margin-bottom: 1rem; font-weight: 700; }
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__links a { color: #9ca3af; transition: var(--transition); font-size: 0.95rem; }
.footer__links a:hover { color: var(--white); }
.footer__bottom { padding-top: 2rem; border-top: 1px solid #374151; text-align: center; color: #9ca3af; font-size: 0.875rem; }

/* ==== WHATSAPP FLOAT ==== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4); }

/* ==== BANNER (nova seção) ==== */
.banner { padding-top: calc(var(--header-height) + 0.5rem); }
.banner__inner { width: 100%; }
.banner__img { width: 100%; height: auto; display: block; object-fit: contain; }

/* ==== SERVICES TOGGLE ==== */
.services__toggle {
  display: block;
  margin: 1.5rem auto 0;
  max-width: 320px;
  width: 100%;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow);
}
.services__toggle:hover,.services__toggle:focus { background: #163a9a; transform: translateY(-2px); }

/* when .collapsed - hide beyond 3 items (change nth-child if needed) */
.services__grid.collapsed .service__card:nth-child(n+4) { display: none; }

/* optional animation for hiding */
.services__grid .service__card { transition: transform 0.25s ease, opacity 0.25s ease; }
.services__grid .service__card[style*="display: none"] { opacity: 0; transform: translateY(-8px); }

/* ==== RESPONSIVE ==== */
@media screen and (max-width: 1200px) {
  .contact__container { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact__info-wrapper { padding: 1.75rem; }
}

@media screen and (max-width: 992px) {
  .hero { padding-top: calc(var(--header-height) + 0.75rem); min-height: auto; }
  .contact__container { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact__info-wrapper { order: 1; } .contact__form { order: 2; }
  .contact__card { flex-direction: row; text-align: left; align-items: center; gap: 1rem; padding: 1.25rem; }
  .contact__icon-box { width: 64px; height: 64px; }
  .contact__form { padding: 2rem; }
}

@media screen and (max-width: 968px) {
  .nav__menu { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: var(--white); padding: 4rem 2rem; transition: var(--transition); box-shadow: var(--shadow-lg); }
  .nav__menu.show-menu { right: 0; }
  .nav__list { flex-direction: column; align-items: flex-start; }
  .nav__toggle, .nav__close { display: block; }
  .nav__close { position: absolute; top: 1.5rem; right: 1.5rem; }
  .hero__container { grid-template-columns: 1fr; }
}

@media screen and (max-width: 576px) {
  .section__title { font-size: 2rem; }
  .hero { padding-top: calc(var(--header-height) + 0.5rem); }
  .btn { width: 100%; }
  .pricing__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .contact__info-wrapper { padding: 1.5rem; }
  .contact__card { padding: 1.25rem; gap: 1rem; }
  .contact__icon-box { width: 64px; height: 64px; }
  .contact__card-title { font-size: 1.125rem; }
  .contact__card-value { font-size: 0.95rem; }
}

@media screen and (max-width: 420px) {
  .container { padding: 0 1rem; }
  .section__title { font-size: 1.6rem; text-align: center; }
  .contact__card { padding: 0.9rem; gap: 0.75rem; flex-direction: column; text-align: center; }
  .contact__icon-box { width: 56px; height: 56px; border-radius: 12px; }
  .contact__card-content { width: 100%; }
  .form__input, .form__textarea { padding: 0.75rem; font-size: 0.95rem; }
  .btn { width: 100%; }
  .contact__form { padding: 1.25rem; }
  .services__toggle { max-width: 100%; padding: 0.9rem; font-size: 1rem; }
}

@media screen and (max-width: 768px) {
  .hero__banner-inner { min-height: 30vh; max-height: calc(100vh - 6rem); }
}
.hero{
  position: relative;
  overflow: hidden;
}
.hero__bg{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #e9f6fc 0%, #c7e6f6 45%, #86b8e1 100%);
  z-index: 0;
}
/* ===== Corrige o corte do banner hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-height, 4.5rem) + 1rem);
  padding-bottom: 1.5rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: none;
}

.hero__banner-inner {
  position: relative;
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; /* evita cortar a imagem por wrapper */
  min-height: 40vh;
  max-height: calc(100vh - 6rem);
}

/* comportamento padrão: imagem ajusta sem cortar */
.hero__banner-inner .hero__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: right center; /* mostra a porção direita da imagem quando relevante */
  display: block;
  max-width: 1400px;
}

/* Desktop: se quiser a imagem posicionada à direita ocupar só uma coluna maior sem corte */
@media (min-width: 992px) {
  .hero {
    min-height: calc(100vh - var(--header-height, 4.5rem));
  }
  .hero__banner-inner {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 55%; /* ajuste aqui para controlar quanto da imagem fica visível */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden; /* mantém o layout com a imagem alinhada à direita, mas sem regras conflitantes */
  }
  .hero__banner-inner .hero__img {
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    max-width: none;
  }
}

/* Mobile: imagem ocupa toda a largura (nenhum corte) */
@media (max-width: 991px) {
  .hero__banner-inner {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 0.75rem;
    overflow: visible;
  }
  .hero__banner-inner .hero__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
}