
/* ---------- Design Tokens ---------- */
:root {
  /* Cores base */
  --color-brand: #2f3d4d; 
  --color-accent: #dbd0be;
  --color-accent-soft: #e6ddcd; 
  --color-bg: #fbf9f6; 
  --color-text: #222; 

  /* Underline de títulos */
  --underline-color: var(--color-accent);
  --underline-w: 64px;
  --underline-h: 3px;

  /* Animações */
  --anim-duration: 0.7s;
  --anim-stagger: 0.12s;

  /* Radius e sombras */
  --radius-lg: 16px;
  --elev-sm: 0 6px 20px rgba(0, 0, 0, 0.18);
  --elev-md: 0 10px 24px rgba(0, 0, 0, 0.12);
  --elev-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}
section {
  scroll-margin-top: 96px;
}

/* ---------- Utilitárias de cor/fundo ---------- */
.background-body {
  background-color: var(--color-bg);
}
.background-primary {
  background-color: var(--color-brand);
  color: var(--color-accent);
}
.background-secondary {
  background-color: var(--color-accent);
  color: var(--color-brand);
}

.primary-text {
  color: var(--color-brand);
}
.secondary-text {
  color: var(--color-accent);
}
.font-lato {
  font-family: "Lato", sans-serif;
}
a.secondary-text:hover,
a.secondary-text:focus {
  color: #fff;
}

/* ---------- Tipografia fluida ---------- */
.hero-headline {
  font-weight: 300;
  line-height: 1.2;
  font-size: clamp(1.25rem, 2.2vw + 0.5rem, 2.5rem);
}
.logo-title {
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw + 0.2rem, 3rem);
}
.logo-text {
  font-weight: 400;
  font-size: clamp(1rem, 2vw + 0.2rem, 2rem);
}
.section-heading {
  font-weight: 700;
  font-size: clamp(1.3rem, 1.2vw + 0.9rem, 2rem);
}

/* ---------- Navbar ---------- */
.navbar {
  box-shadow: var(--elev-lg);
}
button.navbar-toggler {
  border-color: var(--color-accent);
}
button.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(219, 208, 190, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-nav .nav-link {
  position: relative;
  color: var(--color-accent);
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  overflow: clip;
}
.hero-container {
  max-width: 900px;
}

.logo-line {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 2px;
  animation: drawLine 0.6s ease forwards calc(0.05s + var(--anim-stagger));
}
@keyframes drawLine {
  to {
    transform: scaleX(1);
  }
}

/* Entrada sequenciada */
.hero-logo,
.hero-identity,
.hero-headline,
.hero-contact {
  opacity: 0;
  transform: translateY(8px);
}
.hero-logo {
  animation: fadeUp var(--anim-duration) ease forwards 0.05s;
}
.hero-identity {
  animation: fadeUp var(--anim-duration) ease forwards
    calc(0.05s + var(--anim-stagger));
}
.hero-headline {
  animation: fadeUp var(--anim-duration) ease forwards
    calc(0.05s + var(--anim-stagger) * 2);
}
.hero-contact {
  animation: fadeUp var(--anim-duration) ease forwards
    calc(0.05s + var(--anim-stagger) * 3);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}


/* ---------- Títulos de seção com linha animada ---------- */
.section-heading {
  position: relative;
  padding-bottom: 0.4rem;
}
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: var(--underline-h);
  background: var(--underline-color);
  border-radius: 2px;
  transition: width 0.6s ease 0.1s;
}
.section-heading.is-in::after {
  width: var(--underline-w);
}
.section-heading--center {
  text-align: center;
}
.section-heading--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Botão de contato ---------- */
.contact-button:hover, .contact-button:focus-visible {
  background-color: var(--color-accent) !important;
    color: var(--color-brand);
}

/* ----------  Atendimentos ---------- */
.feature-item {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding-left: 0;
  padding-right: 0;
  transition: transform 0.25s ease;
}
.feature-item .bi {
  transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  color: inherit;
}
.feature-title {
  background: linear-gradient(
      to right,
      rgba(219, 208, 190, 0.3),
      rgba(219, 208, 190, 0.3)
    )
    bottom left / 0 2px no-repeat;
  transition: background-size 0.3s ease;
  padding-bottom: 2px;
}
.feature-item:hover .bi,
.feature-item:focus-within .bi {
  color: var(--color-accent);
  transform: translateX(2px);
  opacity: 0.95;
}
.feature-item:hover .feature-title,
.feature-item:focus-within .feature-title {
  background-size: 100% 2px;
}

@media (min-width: 992px) {
  #atendimentos .row.g-4 {
    --bs-gutter-x: 2rem;
  }
}
#atendimentos ul li:last-child {
  border-bottom: none !important;
}

/* ---------- Timeline de formação ---------- */
.formation-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.formation-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(var(--color-accent), rgba(219, 208, 190, 0));
}
.formation-timeline li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(6px);
}

.formation-timeline li.is-in{
  animation: tl .5s ease forwards;
}

.formation-timeline li:nth-child(2).is-in {
  animation-delay: 0.06s;
}
.formation-timeline li:nth-child(3).is-in {
  animation-delay: 0.12s;
}
.formation-timeline li:nth-child(4).is-in {
  animation-delay: 0.18s;
}
@keyframes tl {
  to {
    opacity: 1;
    transform: none;
  }
}
.formation-timeline .icon {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* ---------- Contato ---------- */
#contato {
  position: relative;
}
#contato::after {
    content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent);
  z-index: 1; 
}

.contact-card {
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-image 0.25s ease, outline-color 0.25s ease;
  transform: translateY(0);
  background-image: linear-gradient(
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0)
  );
  outline: 1px solid transparent;
  outline-offset: -1px;
}
.contact-card .bi {
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.contact-card:hover,
.contact-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08)
  );
  outline-color: rgba(219, 208, 190, 0.45);
}
.contact-card:hover .bi,
.contact-card:focus-within .bi {
  transform: translateY(-1px) scale(1.02);
  opacity: 0.95;
}

/* ---------- Botão flutuante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: var(--elev-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease, outline-color 0.25s ease;
  z-index: 999;
  outline: 2px solid transparent;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  background-color: var(--color-accent-soft);
  outline-color: rgba(219, 208, 190, 0.65);
}
.whatsapp-float i {
  transition: transform 0.25s ease;
}
.whatsapp-float:hover i,
.whatsapp-float:focus-visible i {
  transform: scale(1.1);
}
@media (max-width: 576px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: max(15px, env(safe-area-inset-bottom));
    right: 15px;
  }
}

/* ---------- Footer ---------- */
.custom-footer {
  position: relative;
  text-align: center;
  background: var(--color-brand);
  color: var(--color-accent);
  padding-top: 24px;
  padding-bottom: 32px;
  box-shadow: var(--elev-lg);
}

/* ---------- Acessibilidade: reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-identity,
  .hero-headline,
  .hero-contact,
  .logo-line {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .hero-contact,
  .hero-contact .bi,
  .feature-item .bi,
  .feature-title,
  .contact-card,
  .contact-card .bi,
  .whatsapp-float {
    transition: none !important;
    transform: none !important;
  }
  .section-heading::after {
    transition: none;
    width: var(--underline-w);
  }
  .formation-timeline li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
