/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333333;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img {
  border-style: none;
  height: auto;
  max-width: 100%;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 15px;
}

/* ==========================================================================
   Header - Top Utility Bar
   ========================================================================== */
.top-bar {
  background-color: #ffffff;
  padding: 10px 0;
}

.top-bar-inner {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.btn-velorio {
  display: inline-block;
  background-color: #EBEBAA;
  color: #5B6874;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 24px;
  border-radius: 50px;
  transition: opacity 0.2s ease;
}

.btn-velorio:hover {
  opacity: 0.88;
}

.assistencia-box {
  text-align: left;
}

.assistencia-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: #5B6874;
}

.assistencia-title a {
  color: #5B6874;
}

.assistencia-phone {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #5B6874;
}

/* ==========================================================================
   Header - Main Navigation Bar
   ========================================================================== */
.main-nav-bar {
  background-color: #003D58;
  padding: 10px 0;
  position: relative;
}

.main-nav-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  width: 100%;
  max-width: 190px;
  display: block;
}

.nav-desktop {
  flex: 0 0 auto;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-item {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF;
  padding: 13px 10px;
  line-height: 20px;
  transition: opacity 0.2s ease;
}

.nav-item:hover,
.nav-item:focus,
.nav-item-active {
  color: #FFFFFF;
}

/* Mobile Toggle Button */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: #FFFFFF;
}

.menu-toggle svg {
  width: 25px;
  height: 25px;
  fill: #FFFFFF;
  display: block;
}

.menu-toggle .menu-icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
  display: block;
}

/* Mobile Dropdown Menu */
.nav-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background-color: #FFFFFF;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.nav-dropdown.is-open {
  display: block;
}

.nav-dropdown-item {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  padding: 10px 25px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus,
.nav-dropdown-item.nav-item-active {
  background-color: #003D58;
  color: #FFFFFF;
}

/* ==========================================================================
   Hero Title Banner
   ========================================================================== */
.hero-banner {
  background-image: url("assets/topo.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #233E55;
}

/* ==========================================================================
   Blue Filter Banner
   ========================================================================== */
.filter-banner {
  position: relative;
  background-image: url("assets/banner-azul-topo.webp");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 6rem 0;
}

.filter-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.filter-subtitle {
  margin: 0;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  color: #FFFFFF;
}

.filter-form-wrapper {
  width: 50%;
  max-width: 50%;
}

form.obituario-filtro {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

form.obituario-filtro select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: #333333;
  background-color: #FFFFFF;
  border: 1px solid #666666;
  border-radius: 50px;
  padding: 10px 20px;
  outline: none;
  cursor: pointer;
}

form.obituario-filtro select:focus {
  border-color: #333333;
}

.btn-buscar {
  background: #4DA5D8;
  border: none;
  border-radius: 50px;
  text-transform: uppercase;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #FFFFFF;
  padding: 10px 30px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-buscar:hover,
.btn-buscar:focus {
  opacity: 0.9;
}

.grafismo-top {
  position: absolute;
  right: 0;
  top: -110px;
  pointer-events: none;
}

.grafismo-top img {
  width: 100%;
  max-width: 290px;
  display: block;
}

/* ==========================================================================
   Decorative Divider Strip
   ========================================================================== */
.divider-strip {
  width: 100%;
  line-height: 0;
  background-color: #F7F7F3;
}

.divider-strip img {
  width: 100%;
  display: block;
}

/* ==========================================================================
   Obituaries Grid Section
   ========================================================================== */
.obituario-section {
  background-color: #F7F7F3;
  padding: 5rem 0;
}

.velorio-iframe-wrapper {
  display: flex;
  justify-content: center;
}

.velorio-iframe-wrapper iframe {
  border: none;
  border-radius: 10px;
}

.obituario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.obituario-card {
  background: #FFFFFF;
  border: 1px solid #dddddd;
  filter: drop-shadow(1px 2px 4px #cccccc);
  color: #033343;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
}

.obituario-card h3 {
  color: #033343;
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.obituario-datas {
  margin-bottom: 0.9rem;
}

.icone-estrela {
  color: gold;
}

.icone-cruz {
  color: red;
}

.icone-cruz img {
  height: 13px;
  width: auto;
  margin-left: 10px;
  vertical-align: middle;
  border-radius: 0;
}

.obituario-card .info {
  text-align: left;
  flex: 1;
}

.obituario-card .info strong {
  color: #b0d3f3;
}

.obituario-card .compartilhar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin-top: 15px;
}

.obituario-card .compartilhar span {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.obituario-card .compartilhar a {
  display: inline-flex;
  align-items: center;
  color: #c36;
}

.obituario-card .compartilhar svg {
  fill: currentColor;
  transition: transform 0.2s;
}

.obituario-card .compartilhar a:hover svg {
  transform: scale(1.1);
}

.obituario-card .acoes {
  margin-top: 10px;
}

.btn-flores,
.btn-participe {
  display: block;
  margin: 10px 0;
  padding: 10px;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.btn-flores {
  background: #ffc107;
  color: #023c5b;
}

.btn-participe {
  background: #cfe3fc;
  color: #023c5b;
}

.btn-flores:hover,
.btn-participe:hover {
  opacity: 0.9;
}

.obituario-vazio {
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #033343;
  font-size: 1.1rem;
  padding: 2rem 1rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 30px;
}

.pagination-wrapper ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination-wrapper ul.page-numbers li {
  display: flex;
}

.pagination-wrapper .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #00425f;
  border-radius: 4px;
  text-decoration: none;
  color: #00425f;
  background-color: #f1f1f1;
  font-weight: bold;
  font-size: 16px;
  transition: 0.2s;
}

.pagination-wrapper li span.page-numbers.current {
  background-color: #333333;
  color: #ffffff;
  border-color: #00425f;
}

.pagination-wrapper li span.page-numbers.dots {
  background-color: transparent;
}

.pagination-wrapper a.page-numbers:hover {
  background: rgba(0, 66, 95, 0.08);
  color: #00425f;
}

/* ==========================================================================
   CTA Banner (Fale Conosco)
   ========================================================================== */
.cta-banner {
  background-color: #EDD294;
  padding: 3rem 0;
}

.cta-banner-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-fale-conosco {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #38AFAD;
  color: #FFFFFF;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  padding: 20px 40px;
  border-radius: 50px;
  transition: opacity 0.2s ease;
}

.btn-fale-conosco:hover {
  opacity: 0.9;
}

.btn-fale-conosco svg {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #003E56;
  padding: 4rem 0 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  margin: 0 0 1.25rem 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: #FFFFFF;
}

.footer-heading-spaced {
  margin-top: 1.5rem;
}

.footer-list li {
  padding-bottom: 5px;
}

.footer-list a {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #D3E8FB;
  transition: color 0.3s ease;
}

.footer-list a:hover {
  color: #FFFFFF;
}

.footer-icon-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-icon-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 4px;
  fill: #6EC1E4;
}

.footer-certificado img {
  width: 100%;
  max-width: 200px;
  display: block;
}

.footer-locations li {
  padding-bottom: 15px;
}

.footer-location-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #D3E8FB;
}

.footer-location-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 5px;
  fill: #D3E8FB;
}

.footer-contact-text {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #D3E8FB;
  margin-bottom: 1rem;
}

.footer-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-whatsapp-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: #D3E8FB;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  transition: opacity 0.2s ease;
}

.social-icons a:hover {
  opacity: 0.8;
}

.social-icons svg {
  width: 22px;
  height: 22px;
  fill: #CBE9FC;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 15px;
  height: 50px;
  z-index: 1000;
}

.whatsapp-float a {
  display: block;
  text-decoration: none;
}

.whatsapp-float img {
  display: block;
  width: 250px;
  height: 66px;
}

/* ==========================================================================
   Responsive Breakpoints (Tablet <= 1024px, Mobile <= 767px)
   ========================================================================== */
@media (max-width: 1024px) {
  .main-nav-bar {
    padding: 1rem 2rem;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .filter-form-wrapper {
    width: 65%;
    max-width: 65%;
  }

  .grafismo-top {
    top: -69px;
  }

  .grafismo-top img {
    max-width: 200px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .top-bar-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-logo img {
    max-width: 120px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .filter-form-wrapper {
    width: 90%;
    max-width: 90%;
  }

  form.obituario-filtro {
    flex-direction: column;
  }

  .grafismo-top {
    top: -48px;
  }

  .grafismo-top img {
    max-width: 140px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float img {
    width: 200px;
    height: auto;
  }
}

