/* ============================================
   TEMPLATE.CSS — Brasa Burguer
   Navbar | Footer | Offcanvas | Base
============================================ */

/* Fontes carregadas via <link> no HTML para evitar render blocking */

/* ── CSS Variables ── */
:root {
  --gold: #C9933A;
  --gold-light: #f6a70e;
  --gold-dark: #940000;
  --gold-darker: #940000;
  --charcoal: #1A1A1A;
  --charcoal-2: #242424;
  --charcoal-3: #2E2E2E;
  --cream: #F8F3EB;
  --cream-2: #EFE8DA;
  --body-text: #2c2c2c;
  --white: #FFFFFF;
  --shadow-gold: 0 0.25rem 1.875rem rgba(201, 147, 58, 0.25);
  --shadow-dark: 0 0.5rem 2.5rem rgba(0, 0, 0, 0.35);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background-color: var(--cream);
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.7;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  color: var(--charcoal);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-darker);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--charcoal);
  position: relative;
}

/* ALTERADO: risco de destaque em #940000 */
.section-title::after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 0.1875rem;
  background: #940000;
  margin-top: 0.75rem;
  border-radius: 0.125rem;
}

.section-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 0.375rem;
}

::-webkit-scrollbar-track {
  background: var(--charcoal-2);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 0.1875rem;
}

/* ── Selection ── */
::selection {
  background: var(--gold);
  color: var(--white);
}

/* ── Buttons ── */
/* NOTA: gradiente do btn-gold mantido com valor fixo para preservar visual do botão */
.btn-gold {
  background: linear-gradient(135deg, #C9933A, #E8B86D);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  padding: 0.875rem 2.25rem;
  border-radius: 3.125rem;
  transition: var(--transition);
  box-shadow: 0 0.25rem 1.25rem rgba(201, 147, 58, 0.4);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-gold:hover {
  transform: translateY(-0.1875rem);
  box-shadow: 0 0.5rem 1.875rem rgba(201, 147, 58, 0.55);
  color: var(--white);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0.125rem solid var(--gold);
  padding: 0.75rem 2.125rem;
  border-radius: 3.125rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-0.1875rem);
  box-shadow: var(--shadow-gold);
}

/* ── NAVBAR ── */
.navbar-brasa {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  padding: 1.125rem 0;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar-brasa.scrolled {
  background: #1A1A1A;
  box-shadow: 0 0.25rem 1.875rem rgba(0, 0, 0, 0.4);
}

.navbar-brasa-inner {
  max-width: 82.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brasa-brand .brand-logo {
  height: 3.875rem;
  display: block;
  transition: var(--transition);
  color: transparent;
}

.navbar-brasa-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-brasa-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 0.0625rem solid rgba(201, 147, 58, 0.25);
}

@media (max-width: 991px) {
  .navbar-brasa-links {
    display: none;
  }
}

.navbar-toggler-custom {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  background: transparent;
  border: 0.125rem solid rgba(201, 147, 58, 0.6);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

/* ── MOBILE NAVBAR: logo à esquerda ── */
@media (max-width: 991px) {
  .navbar-toggler-custom {
    display: flex;
  }

  .navbar-brasa {
    padding: 0.75rem 0;
  }

  .navbar-brasa-inner {
    position: relative;
    justify-content: space-between;
  }

  .navbar-brasa-brand {
    position: static;
    left: unset;
    transform: none;
  }

  .navbar-brasa .navbar-brasa-brand .brand-logo {
    height: 3.125rem;
  }

  .navbar-toggler-custom {
    margin-left: 0;
  }
}

.navbar-toggler-custom:hover {
  border-color: var(--gold);
  background: rgba(201, 147, 58, 0.1);
}

.navbar-toggler-custom span {
  display: block;
  width: 1.375rem;
  height: 0.125rem;
  background: var(--gold-light);
  border-radius: 0.125rem;
  transition: var(--transition);
}

.nav-link-custom {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 0.125rem;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 0.0625rem;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--gold-light) !important;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: scaleX(1);
}

/* ── Nav social icons ── */
.nav-social-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 0.0625rem solid rgba(201, 147, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.nav-social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.9375rem rgba(201, 147, 58, 0.45);
}

/* ── OFFCANVAS ── */
.offcanvas-dark {
  background: var(--charcoal) !important;
  border-left: 0.0625rem solid rgba(201, 147, 58, 0.2) !important;
  width: 85vw !important;
  max-width: 22.5rem !important;
}

.offcanvas-dark .offcanvas-header {
  border-bottom: 0.0625rem solid rgba(201, 147, 58, 0.15);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 5rem;
}

.offcanvas-logo {
  height: 3rem;
  width: auto;
  display: block;
}

.offcanvas-dark .btn-close {
  filter: invert(1) opacity(0.7);
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.offcanvas-dark .offcanvas-body {
  padding: 1.75rem 1.5rem;
}

.offcanvas-nav-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 1rem 0 !important;
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: var(--transition);
}

.offcanvas-nav-link:last-of-type {
  border-bottom: none;
}

.offcanvas-nav-link i {
  font-size: 1rem;
  color: var(--gold);
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.offcanvas-nav-link:hover {
  color: var(--gold-light) !important;
  padding-left: 0.5rem !important;
}

.offcanvas-social {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.08);
}

.offcanvas-social a {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  border: 0.0625rem solid rgba(201, 147, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.offcanvas-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-0.1875rem);
}

/* ── FOOTER ── */
#footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.1875rem;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

/* ── Footer inner container: padding reduzido ── */
.footer-container-inner {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

.footer-row-inner {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

/* ── Footer brand: logo + texto centralizados ── */
.footer-brand-col {
  text-align: center;
}

.footer-brand-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-brand-logo {
  height: 3.875rem;
  width: auto;
  display: block;
}

.footer-brand-col .footer-brand-desc {
  max-width: 18.75rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand-name {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand-name span {
  color: var(--gold);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0.625rem;
  transition: var(--transition);
  padding-left: 0;
}

.footer-link:hover {
  color: var(--gold-light);
  padding-left: 0.375rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item i {
  color: var(--gold);
  font-size: 0.95rem;
  margin-top: 0.1875rem;
  flex-shrink: 0;
}

/* ── Fix: autodetecção de tel/endereço pelo browser/iOS ── */
.footer-contact-item span,
.footer-contact-item span a,
a[href^="tel"] {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 0.0625rem solid rgba(201, 147, 58, 0.35);
  color: var(--gold-light);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-0.1875rem);
  box-shadow: 0 0.375rem 1.25rem rgba(201, 147, 58, 0.4);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin-top: 0;
  margin-bottom: 0;
}

.footer-bottom {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-privacy-link {
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  transition: color 0.35s ease;
}

.footer-privacy-link:hover {
  color: var(--gold-light) !important;
  text-decoration: none !important;
}

.footer-brand-desc {
  font-size: .88rem;
  color: rgba(255, 255, 255, .75);
  line-height: 1.7;
  max-width: 18.75rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-schedule {
  font-size: .83rem;
  color: rgba(255, 255, 255, .65);
}

.footer-schedule-day {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
}

.footer-open-status {
  margin-top: 1rem;
}

.footer-open-label {
  font-size: .8rem;
  color: rgba(255, 255, 255, .65);
}

/* ── Botão flutuante WhatsApp ── */
#waFloatBtn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0.25rem 1.25rem rgba(37, 211, 102, 0.45);
  z-index: 1030;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#waFloatBtn::before {
  content: '';
  position: absolute;
  inset: -0.25rem;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: waPulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

#waFloatBtn:hover {
  transform: scale(1.08);
  box-shadow: 0 0.5rem 1.875rem rgba(37, 211, 102, 0.6);
}

/* ── Scroll to top button ── */
#scrollTopBtn {
  position: fixed;
  bottom: 7.5rem;
  right: 1.75rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0.25rem 1.25rem rgba(201, 147, 58, 0.45);
  z-index: 999;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: translateY(-0.1875rem);
  box-shadow: 0 0.5rem 1.875rem rgba(201, 147, 58, 0.6);
}

/* ── Utilities ── */
.text-gold {
  color: var(--gold) !important;
}

.bg-dark-brand {
  background-color: var(--charcoal) !important;
}

.divider-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--gold);
  font-size: 1.2rem;
  margin: 0.625rem 0;
}

.divider-gold::before,
.divider-gold::after {
  content: '';
  width: 3.125rem;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.divider-gold::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.dot-green {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 0.5rem rgba(76, 175, 80, 0.6);
  display: inline-block;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

  0%,
  100% {
    box-shadow: 0 0 0.5rem rgba(76, 175, 80, 0.6);
  }

  50% {
    box-shadow: 0 0 0.875rem rgba(76, 175, 80, 0.9);
  }
}

/* ── Footer mobile ── */
@media (max-width: 991px) {
  .footer-brand-logo {
    height: 3.125rem;
  }
}

@media (max-width: 575px) {
  #footer .container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .footer-container-inner {
    padding-top: 1.75rem;
    padding-bottom: 1rem;
  }

  .footer-row-inner {
    --bs-gutter-y: 1.25rem;
    --bs-gutter-x: 0;
  }

  .footer-bottom {
    justify-content: center !important;
    text-align: center;
  }

  .footer-brand-desc,
  .footer-brand-col .footer-brand-desc {
    max-width: 100%;
  }
}