/* =========================================================
   ESTILOINDEX.CSS
   CSS específico da página pública / index
========================================================= */

:root{
  --index-bg: #e1d5be;
  --index-hero-bg: rgba(255,255,255,.38);
  --index-hero-line: rgba(255,255,255,.30);
  --index-overlay: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 60%);
  --index-badge-bg: rgba(217,154,108,.95);
  --index-badge-text: #1b1b1b;
}

/* ===== BASE DA INDEX ===== */

body{
  background: var(--index-bg);
}

main{
  min-height: calc(100vh - 74px);
}

.home-index-main{
  padding-top: 6.35rem;
  padding-bottom: 1rem;
}

/* ===== HERO MOSAICO ===== */

.hero-mosaic{
  background: var(--index-hero-bg);
  border: 1px solid var(--index-hero-line);
  padding: 12px;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(15,23,42,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-tile{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #f2f2f2;
  height: 100%;
  display: block;
  box-shadow: 0 10px 28px rgba(15,23,42,.10);
}

.hero-img{
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 560px;
  transition: transform .4s ease;
  display: block;
}

.hero-img-sm{
  min-height: 202px;
  max-height: 272px;
}

.hero-tile:hover .hero-img{
  transform: scale(1.03);
}

.hero-focus-top{
  object-position: center top;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: var(--index-overlay);
  color: #fff;
}

.hero-badge{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--index-badge-bg);
  color: var(--index-badge-text);
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.hero-title{
  margin: 0 0 .35rem;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
}

.hero-subtitle{
  margin: 0;
  font-size: .96rem;
  font-weight: 500;
  color: rgba(255,255,255,.94);
}

/* ===== FOOTER / BOTÕES FIXOS DA INDEX ===== */

.whatsapp-float{
  position: fixed;
  width: 60px;
  height: 60px;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  font-size: 30px;
  z-index: 1035;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.whatsapp-float:hover{
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
}

/* ===== AJUSTES DE CONTEÚDO ===== */

.index-section{
  margin-bottom: 2rem;
}

.index-card-soft{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(15,23,42,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== MENU / DROPDOWN ===== */

.amarras-public-dropdown{
  min-width: 290px;
  border-radius: 18px;
  padding: .45rem;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 18px 40px rgba(15,23,42,.14);
}

.amarras-public-dropdown .dropdown-item{
  border-radius: 12px;
  padding: .78rem .95rem;
  font-size: .96rem;
  font-weight: 600;
  color: #1f2937;
}

.amarras-public-dropdown .dropdown-item:hover,
.amarras-public-dropdown .dropdown-item:focus{
  background: rgba(217,154,108,.12);
  color: #111827;
}

.dropdown-submenu{
  position: relative;
}

.dropdown-submenu > .submenu-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.submenu-icon{
  font-size: .92rem;
  transition: transform .2s ease;
  flex-shrink: 0;
}

.dropdown-submenu.open > .submenu-toggle .submenu-icon{
  transform: rotate(90deg);
}

.amarras-submenu{
  list-style: none;
  margin: .3rem 0 0;
  padding: .25rem 0 0 .65rem;
  display: none;
}

.dropdown-submenu.open > .amarras-submenu{
  display: block;
}

.amarras-submenu .dropdown-item{
  font-size: .92rem;
  font-weight: 500;
  padding: .72rem .9rem;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 991.98px){
  .home-index-main{
    padding-top: 5.95rem;
  }

  .hero-img{
    min-height: 360px;
    max-height: 500px;
  }

  .hero-img-sm{
    min-height: 185px;
    max-height: 245px;
  }
}

@media (max-width: 767.98px){
  .home-index-main{
    padding-top: 6.5rem;
  }

  .hero-mosaic{
    padding: 10px;
    border-radius: 22px;
    margin-top: .35rem;
  }

  .hero-tile{
    border-radius: 18px;
  }

  .hero-overlay{
    padding: 18px;
  }

  .hero-title{
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

  .hero-subtitle{
    font-size: .9rem;
  }

  .hero-img{
    min-height: 255px;
    max-height: 360px;
  }

  .hero-img-sm{
    min-height: 170px;
    max-height: 220px;
  }

  .whatsapp-float{
    width: 58px;
    height: 58px;
    right: 16px;
    bottom: 14px;
  }

  /* ===== MENU MOBILE ===== */

  .amarras-navbar .navbar-collapse{
    margin-top: 1rem;
    padding: .4rem .15rem .85rem;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }

  .amarras-public-link{
    min-height: 46px;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }

  .amarras-public-dropdown{
    position: static !important;
    transform: none !important;
    width: 100%;
    min-width: 0;
    margin-top: .35rem;
    border-radius: 20px;
    padding: .5rem;
    box-shadow: none;
    border: 1px solid rgba(15,23,42,.08);
    max-height: 52vh;
    overflow-y: auto;
  }

  .amarras-public-dropdown .dropdown-item{
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: .8rem .95rem;
    font-size: 1rem;
  }

  .dropdown-submenu > .submenu-toggle{
    min-height: 46px;
  }

  .amarras-submenu{
    margin-top: .25rem;
    padding: .25rem 0 0 .35rem;
  }

  .amarras-submenu .dropdown-item{
    min-height: 44px;
    font-size: .96rem;
    padding: .72rem .85rem;
  }
}

@media (max-width: 575.98px){
  .hero-img{
    min-height: 220px;
  }

  .hero-img-sm{
    min-height: 160px;
  }

  .hero-overlay{
    padding: 16px;
  }

  .hero-badge{
    font-size: .73rem;
    padding: 6px 10px;
    margin-bottom: 10px;
  }

  .amarras-public-dropdown{
    max-height: 48vh;
    border-radius: 18px;
  }

  .amarras-public-dropdown .dropdown-item{
    padding: .78rem .85rem;
  }
}

.hero-img-main{
  object-position: center 10%;
}


.amarras-mobile-accordion-toggle,
.amarras-mobile-subtoggle {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.amarras-mobile-accordion-toggle i,
.amarras-mobile-subtoggle i {
  transition: transform .2s ease;
}

.amarras-mobile-accordion {
  display: none;
}

.amarras-mobile-accordion.open {
  display: block;
}

.amarras-mobile-panel {
  margin-top: .4rem;
  padding: .55rem;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  max-height: 52vh;
  overflow-y: auto;
}

.amarras-mobile-link,
.amarras-mobile-sublink {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .75rem .9rem;
  border-radius: 12px;
  color: #1f2937;
  text-decoration: none;
  font-size: .98rem;
  font-weight: 600;
}

.amarras-mobile-link:hover,
.amarras-mobile-link:focus,
.amarras-mobile-sublink:hover,
.amarras-mobile-sublink:focus {
  background: rgba(217,154,108,.12);
  color: #111827;
}

.amarras-mobile-subtoggle {
  min-height: 44px;
  padding: .75rem .9rem;
  border-radius: 12px;
  font-size: .98rem;
  font-weight: 600;
  color: #1f2937;
}

.amarras-mobile-subtoggle:hover,
.amarras-mobile-subtoggle:focus {
  background: rgba(217,154,108,.12);
  color: #111827;
}

.amarras-mobile-subpanel {
  display: none;
  margin-top: .3rem;
  margin-bottom: .35rem;
  margin-left: .35rem;
  padding: .4rem;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
}

.amarras-mobile-subpanel.open {
  display: block;
}

.amarras-mobile-sublink {
  font-size: .94rem;
  font-weight: 500;
  min-height: 42px;
  padding: .68rem .8rem;
  border-radius: 10px;
}

.amarras-mobile-subtoggle {
  background: rgba(255,255,255,.38);
}

.amarras-mobile-subtoggle:hover,
.amarras-mobile-subtoggle:focus {
  background: rgba(217,154,108,.12);
  color: #111827;
}

@media (min-width: 768px) {
  .amarras-mobile-accordion,
  .amarras-mobile-accordion-toggle,
  .amarras-mobile-subtoggle,
  .amarras-mobile-panel,
  .amarras-mobile-subpanel {
    display: none !important;
  }
}


/* ===== VIDEOS HOME INDEX ===== */

.hero-video{
  background: #f2f2f2;
  object-fit: cover;
  object-position: center center;
}

.hero-tile video{
  pointer-events: none;
}

@media (max-width: 767.98px){
  .hero-video.hero-img-sm{
    min-height: 360px;
    max-height: 520px;
  }
}

@media (max-width: 575.98px){
  .hero-video.hero-img-sm{
    min-height: 330px;
    max-height: 480px;
  }
}