/* ==========================================================================
   FOOTER SECTION — B.E.M. ARCHITECTURE & FOOTER REVEAL EFFECT
   Inspired by Sublime Comporta & Aman Luxury Editorial Aesthetic
   ========================================================================== */

/* Main Content Stacking Context: sits on top of the fixed footer */
#main-content {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

/* Footer Section Shell: Fixed at bottom, uncovered as main content scrolls up */
.footer-section {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  background-color: #f7f4ee;
  color: var(--color-charcoal, #313131);
  overflow: hidden;
  box-sizing: border-box;
}

/* Inner Centered Stage */
.footer-section__inner {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 5.5rem 2rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   Minimalist Center Brand Logo (assets/img/logo-cor-BF721E.png)
   -------------------------------------------------------------------------- */
.footer-section__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.footer-section__logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(191, 114, 30, 0.2));
  transition: transform var(--transition-fast);
}

.footer-section__logo:hover {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Monumental Title: "Camarões" (Inspired by Sublime Comporta display typography)
   -------------------------------------------------------------------------- */
.footer-section__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 6.2rem);
  font-weight: 300;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-charcoal, #313131);
  margin: 0 0 1rem;
  padding-left: 0.16em;
  /* Optical centering despite letter-spacing */
}

/* Heritage Tagline: "Desde 1989" */
.footer-section__since {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #736d65;
  margin-bottom: 2.75rem;
}

/* --------------------------------------------------------------------------
   Button Group (Side-by-side, no rounded borders per design system)
   -------------------------------------------------------------------------- */
.footer-section__btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Shared Base Button Specs (from design_system.html) */
.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 3.25rem;
  border-radius: 0;
  /* Strictly no rounded corners */
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: all 400ms var(--ease-luxury);
}

.footer-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: none;
}

.footer-btn:hover::after {
  left: 100%;
  transition: left 0.75s ease-in-out;
}

/* Primary Button: "Reservar mesa" (#BF721E) */
.footer-btn--primary {
  background-color: #BF721E;
  color: #ffffff;
  border: 1px solid #BF721E;
  box-shadow: 0 4px 18px rgba(191, 114, 30, 0.25);
}

.footer-btn--primary:hover {
  background-color: #a85f14;
  border-color: #a85f14;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(191, 114, 30, 0.45);
}

/* Secondary Button: "Conheça nossa história" (Outline with #BF721E hover) */
.footer-btn--secondary {
  background-color: transparent;
  color: var(--color-charcoal, #313131);
  border: 1px solid var(--color-charcoal, #313131);
}

.footer-btn--secondary:hover {
  background-color: #BF721E;
  border-color: #BF721E;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(191, 114, 30, 0.35);
}

.footer-btn:active {
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   Copyright & Developer Credits
   -------------------------------------------------------------------------- */
.footer-section__copyright {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.7;
  color: #7a746e;
  margin-bottom: 1.75rem;
  text-align: center;
}

.footer-section__copyright-text {
  margin: 0 0 0.4rem;
}

.footer-section__developer {
  margin: 0;
}

.footer-section__dev-link {
  color: #BF721E;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section__dev-link:hover {
  color: #a85f14;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Social Media Icons (Facebook & Instagram side-by-side)
   -------------------------------------------------------------------------- */
.footer-section__socials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.footer-section__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(49, 49, 49, 0.16);
  color: var(--color-charcoal, #313131);
  background: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: all 300ms var(--ease-luxury);
}

.footer-section__social-link:hover {
  color: #BF721E;
  border-color: #BF721E;
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(191, 114, 30, 0.22);
}

.footer-section__social-link:active {
  transform: translateY(1px);
}

.footer-section__social-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  display: block;
}

/* ==========================================================================
   RESPONSIVENESS (TABLET & MOBILE)
   ========================================================================== */

/* Tablet (Portrait & Landscape: 768px - 1024px) */
@media (max-width: 1024px) {
  .footer-section__inner {
    padding: 4.75rem 1.75rem 3rem;
  }

  .footer-section__title {
    font-size: clamp(2.8rem, 6.8vw, 4.8rem);
    margin-bottom: 0.85rem;
  }

  .footer-section__since {
    margin-bottom: 2.25rem;
  }

  .footer-section__btn-group {
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .footer-btn {
    padding: 0.95rem 2.8rem;
  }

  .footer-section__copyright {
    font-size: 0.82rem;
  }
}

/* Mobile Devices (<= 767px) */
@media (max-width: 767px) {
  .footer-section__inner {
    padding: 3.75rem 1.25rem 2.5rem;
  }

  .footer-section__logo {
    height: 28px;
  }

  .footer-section__title {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    margin-bottom: 0.65rem;
    letter-spacing: 0.12em;
    padding-left: 0.12em;
  }

  .footer-section__since {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    margin-bottom: 2rem;
  }

  .footer-section__btn-group {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin-bottom: 2.5rem;
  }

  .footer-btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    border-radius: 0;
  }

  .footer-section__copyright {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .footer-section__social-link {
    width: 38px;
    height: 38px;
  }

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