/* ================================================
   HEADER + FOOTER — Estilos compartilhados públicos
   Carregado via cab/header.php em todas as páginas.
   ================================================ */

/* ========================
   HEADER
   ======================== */

.header-moderno {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header-moderno.scrolled,
.header-moderno.header-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: #f0eae8;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-moderno {
  padding: 0;
}

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

/* --- Logo (imagem + texto) --- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  transition: opacity 0.4s ease;
}

.nav-logo-dark {
  display: none;
}

.header-moderno.scrolled .nav-logo-light,
.header-moderno.header-solid .nav-logo-light {
  display: none;
}

.header-moderno.scrolled .nav-logo-dark,
.header-moderno.header-solid .nav-logo-dark {
  display: block;
}

.nav-logo-text {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.4s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-moderno.scrolled .nav-logo-text,
.header-moderno.header-solid .nav-logo-text {
  color: #7b2929;
}

/* --- Nav Links --- */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}

.nav-item {
  margin: 0;
}

.nav-item-cta-mobile {
  display: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem;
  position: relative;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
  border-bottom: 2px solid transparent;
}

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

.nav-link.active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: #7b2929;
}

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

/* Scrolled / Solid: links ficam escuros */
.header-moderno.scrolled .nav-link,
.header-moderno.header-solid .nav-link {
  color: #444;
}

.header-moderno.scrolled .nav-link:hover,
.header-moderno.header-solid .nav-link:hover {
  color: #1a1a1a;
}

.header-moderno.scrolled .nav-link.active,
.header-moderno.header-solid .nav-link.active {
  color: #1a1a1a;
  border-bottom-color: #7b2929;
}

/* --- Pill CTA "Agendar" --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-pill-agendar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #7b2929;
  color: #fff;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-family: "Lato", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.nav-pill-agendar:hover {
  background: #5a1f1f;
  color: #fff;
  transform: translateY(-1px);
}

.nav-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

/* --- Mobile Toggle --- */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1110;
}

.nav-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 2px;
}

.header-moderno.scrolled .nav-mobile-toggle span,
.header-moderno.header-solid .nav-mobile-toggle span {
  background: #1a1a1a;
}

/* X state */
.nav-mobile-toggle.active span {
  background: #1a1a1a;
}

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

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

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

/* ========================
   HEADER — MOBILE (≤767px)
   ======================== */
@media (max-width: 767px) {
  .nav-container {
    padding: 0.75rem 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s 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;
  }

  .nav-actions {
    display: none;
  }

  .nav-item {
    border-bottom: 1px solid #f0eae8;
  }

  .nav-item:last-of-type:not(.nav-item-cta-mobile) {
    border-bottom: none;
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #1a1a1a;
    padding: 0.9rem 0;
    border-bottom: none;
    opacity: 0;
    transform: translateY(15px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      color 0.2s;
  }

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

  .nav-link.active {
    color: #7b2929;
    font-weight: 700;
  }

  .nav-link:hover {
    color: #7b2929;
  }

  /* Stagger animation */
  .nav-menu.active .nav-item:nth-child(1) .nav-link {
    transition-delay: 0.08s;
  }
  .nav-menu.active .nav-item:nth-child(2) .nav-link {
    transition-delay: 0.14s;
  }
  .nav-menu.active .nav-item:nth-child(3) .nav-link {
    transition-delay: 0.2s;
  }
  .nav-menu.active .nav-item:nth-child(4) .nav-link {
    transition-delay: 0.26s;
  }

  /* CTA no drawer mobile */
  .nav-item-cta-mobile {
    display: block;
    border-bottom: none;
    padding-top: 1rem;
  }

  .nav-cta-mobile {
    display: block;
    background: #7b2929;
    color: #fff;
    text-align: center;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-family: "Lato", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
    transition:
      opacity 0.3s ease 0.32s,
      transform 0.3s ease 0.32s,
      background 0.3s;
  }

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

  .nav-cta-mobile:hover {
    background: #5a1f1f;
    color: #fff;
  }
}

/* Body padding para compensar header fixo */
body {
  padding-top: 72px;
}

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

/* Hero: puxa para trás do header transparente */
.hero-section {
  margin-top: -72px;
  padding-top: 0;
}

@media (max-width: 767px) {
  .hero-section {
    margin-top: -62px;
  }
}

/* ========================
   FOOTER
   ======================== */

/* --- CTA Block (topo do footer) --- */
.footer-cta {
  background: linear-gradient(165deg, #2a0e0e 0%, #1a0808 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.footer-cta-title em {
  font-style: italic;
  color: #ecd9d7;
}

.footer-cta-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  color: #fff;
}

.footer-cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Footer principal --- */
.footer-main {
  background: #1a1a1a;
  color: #fff;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-main-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid-new {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

/* --- Coluna marca --- */
.footer-brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: #ecd9d7;
  margin: 0 0 0.5rem;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 400px;
}

/* Pill "Aberto agora" */
.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-status-dot.open {
  background: #5ad67e;
  box-shadow: 0 0 6px rgba(90, 214, 126, 0.5);
}

.footer-status-dot.closed {
  background: #ef4444;
}

.footer-status-text {
  font-weight: 700;
}

.footer-status-text.open {
  color: #5ad67e;
}

.footer-status-text.closed {
  color: #ef4444;
}

.footer-status-detail {
  color: rgba(255, 255, 255, 0.45);
}

/* Social icons */
.footer-social-new {
  display: flex;
  gap: 0.6rem;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
}

/* --- Coluna contato --- */
.footer-contact-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ecd9d7;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-phone {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}

/* Botões de ação (WhatsApp, Ligar, Copiar) */
.footer-contact-actions {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-family: "Lato", sans-serif;
}

.footer-action-btn:hover {
  opacity: 0.85;
}

.footer-action-btn.whatsapp {
  background: rgba(37, 211, 102, 0.18);
  color: #5ad67e;
  border-color: rgba(90, 214, 126, 0.3);
}

.footer-action-btn.ligar {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
}

.footer-action-btn.copiar {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0.35rem 0.5rem;
}

.footer-action-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Endereço */
.footer-address {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.footer-address-marker {
  color: #7b2929;
  font-weight: 700;
  margin-right: 0.15rem;
}

.footer-address-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
  color: #ecd9d7;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-address-link:hover {
  color: #fff;
}

/* --- Faixa inferior (legal) --- */
.footer-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-strip-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-strip-sep {
  color: rgba(255, 255, 255, 0.25);
}

.footer-strip a {
  color: rgba(236, 217, 215, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-strip a:hover {
  color: #ecd9d7;
}

.footer-strip-right {
  font-size: 0.68rem;
  opacity: 0.6;
}

.footer-strip-right a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-strip-right a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Tooltip "Copiado!" */
.footer-copied-tooltip {
  position: absolute;
  background: #1a1a1a;
  color: #5ad67e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  transform: translateY(-30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.footer-copied-tooltip.show {
  opacity: 1;
}

/* ========================
   FOOTER — MOBILE (≤767px)
   ======================== */
@media (max-width: 767px) {
  .footer-cta {
    padding: 2.5rem 1.25rem;
  }

  .footer-main {
    padding: 2rem 1.25rem 1.25rem;
  }

  .footer-grid-new {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-strip {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-strip-left {
    justify-content: center;
  }
}

/* Tablet (≤991px) */
@media (max-width: 991px) {
  .footer-grid-new {
    gap: 2rem;
  }
}
