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

:root {
  --primary: var(--color-primary);
  --primary-light: var(--color-primary-light);
  --primary-dark: var(--color-primary-dark);
  --background: #fafafa;
  --foreground: #1a1a1a;
  --muted: #f5f5f5;
  --muted-foreground: #666;
  --border: #e5e5e5;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
}

body.menu-open {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-moderno {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(var(--color-primary-rgb), 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.header-moderno.scrolled {
  background: rgba(var(--color-primary-rgb), 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-moderno {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo .logo-img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-logo .logo-img:hover {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #f8f9fa;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #e5e5e5;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-login {
  background: transparent;
  color: white;
  border: 2px solid #e5e5e5;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-portal {
  background: transparent;
  color: #f5a623;
  border: 2px solid #ffe8c5;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-portal:hover {
  background: var(--color-primary);
  color: #f5a623;
  transform: translateY(-2px);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-mobile-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* ===== HERO ===== */
.local-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
}

.local-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.local-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.local-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31, 80, 90, 0.95) 0%,
    rgba(0, 127, 149, 0.75) 50%,
    rgba(0, 127, 149, 0.5) 100%
  );
  z-index: 1;
}

.local-hero .container {
  position: relative;
  z-index: 2;
}

.local-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.local-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}

.local-breadcrumb a:hover {
  color: white;
}

.local-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.4);
}

.local-breadcrumb .current {
  color: white;
  font-weight: 600;
}

.local-hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.local-hero-address {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.local-hero-address i {
  color: white;
  font-size: 1.1rem;
}

.local-info {
  padding: 3rem 0;
}

.local-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.local-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.local-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.local-card-cultos {
  border-left: 4px solid var(--primary);
  background: linear-gradient(
    135deg,
    #fff 0%,
    rgba(var(--color-primary-rgb), 0.03) 100%
  );
}

.local-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.local-card-header i {
  font-size: 1.5rem;
  color: var(--primary);
}

.local-card-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.local-card-empty {
  color: var(--muted-foreground);
  font-style: italic;
  margin: 0;
}

.cultos-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.culto-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background var(--transition-base);
}

.culto-item:last-child {
  border-bottom: none;
}

.culto-item:hover {
  background: rgba(var(--color-primary-rgb), 0.04);
  border-radius: 8px;
}

.culto-dia-col {
  display: flex;
  flex-direction: column;
  min-width: 55px;
}

.culto-dia {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.culto-data {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

.culto-nome {
  flex: 1;
  font-size: 0.95rem;
  color: var(--foreground);
}

.culto-horario {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(var(--color-primary-rgb), 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Card Body (Phone / Address) */
.local-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.local-phone-link,
.local-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 0;
  transition: color var(--transition-base);
}

.local-phone-link {
  color: var(--foreground);
}

.local-phone-link:hover {
  color: var(--primary);
}

.local-whatsapp-link {
  color: #25d366;
  font-weight: 600;
}

.local-whatsapp-link:hover {
  color: #128c7e;
}

.local-address-text {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0;
}

.local-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--muted-foreground);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-base);
  width: fit-content;
}

.local-copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.local-copy-btn.copied {
  border-color: #25d366;
  color: #25d366;
}

/* ===== MAP SECTION ===== */
.local-map-section {
  padding: 0 0 4rem;
}

.local-map-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-static {
  position: relative;
  background: linear-gradient(135deg, #e6f7fa 0%, #d0ecf1 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-static-overlay {
  text-align: center;
  padding: 2rem;
}

.map-pin-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
  animation: float-pin 3s ease-in-out infinite;
}

@keyframes float-pin {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.map-static-address {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.map-load-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.map-load-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.map-iframe-container {
  width: 100%;
  min-height: 400px;
}

.map-iframe-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

.local-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-base);
}

.local-directions-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== FLOATING ACTIONS ===== */
.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition-base);
}

.floating-actions.hidden {
  transform: translateX(150%);
  opacity: 0;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.floating-btn-whatsapp {
  background: #25d366;
  animation: pulse-whatsapp 2s ease-in-out infinite;
}

.floating-btn-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #f77737 100%);
  animation: pulse-instagram 2.5s ease-in-out infinite;
}

.floating-btn-youtube {
  background: #ff0000;
  animation: pulse-youtube 3s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.6);
  }
}

@keyframes pulse-instagram {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(131, 58, 180, 0.6);
  }
}

@keyframes pulse-youtube {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(253, 29, 29, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(253, 29, 29, 0.6);
  }
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  text-decoration: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--foreground);
  color: var(--background);
  padding: 4rem 1rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  transition: background var(--transition-base);
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: white;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copyright-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-logo-right {
  display: flex;
  align-items: center;
}

.footer-mtco-logo-small {
  height: 20px;
  width: auto;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-mtco-logo-small:hover {
  opacity: 1;
}

.mtco-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.mtco-link:hover {
  transform: scale(1.05);
}

/* ===== VLIBRAS ===== */
.vw-plugin-top-wrapper {
  z-index: 1060;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (min-width: 768px) {
  .local-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .local-card-cultos {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 70px;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(var(--color-primary-rgb), 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-mobile-toggle {
    display: flex;
    position: relative;
    z-index: 1110;
  }

  .nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-menu.active .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active .nav-item:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-menu.active .nav-item:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-menu.active .nav-item:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-menu.active .nav-item:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    display: block;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    background: rgba(var(--color-primary-rgb), 0.2);
    transform: translateX(10px);
  }

  .nav-link::after {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
    gap: 10px;
    margin-right: 1rem;
  }

  .btn-login,
  .btn-portal {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .local-hero {
    min-height: 280px;
    padding: 2.5rem 0 2rem;
  }

  .local-hero-address {
    font-size: 0.9rem;
  }

  .local-info {
    padding: 2rem 0;
  }

  .local-map-section {
    padding: 0 0 3rem;
  }

  .map-static {
    min-height: 260px;
  }

  .map-iframe-container,
  .map-iframe-container iframe {
    height: 350px;
    min-height: 350px;
  }

  .floating-actions {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-logo-right {
    justify-content: center;
  }

  .footer-mtco-logo-small {
    height: 18px;
  }

  .vw-plugin-top-wrapper {
    bottom: 70px !important;
  }
}

@media (max-width: 479px) {
  .local-hero-title {
    font-size: 1.75rem;
  }

  .local-card {
    padding: 1.25rem;
  }

  .map-static {
    min-height: 220px;
  }

  .map-iframe-container,
  .map-iframe-container iframe {
    height: 300px;
    min-height: 300px;
  }

  .floating-btn {
    width: 44px;
    height: 44px;
  }

  .floating-btn svg {
    width: 20px;
    height: 20px;
  }

  .footer-copyright-text {
    font-size: 0.8rem;
  }

  .footer-mtco-logo-small {
    height: 16px;
  }
}
