/* ============================================================
   CASA DA MONTANHA — Buttons, Footer & Shared Components
   components.css
   ============================================================ */

/* ════════════════════════════════════
   BUTTONS
════════════════════════════════════ */

/* Base shared button */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1.1rem 3.5rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: none;
}

/* Primary — filled green */
.btn--primary {
  background: var(--green);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--green-pale);
}

/* Dark — filled black */
.btn--dark {
  background: var(--black);
  color: var(--white);
}

.btn--dark:hover {
  background: #1a1a1a;
}

/* Outline — white border */
.btn--outline {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

/* Outline dark — black border */
.btn--outline-dark {
  background: transparent;
  border: 1px solid var(--black);
  color: var(--black);
}

.btn--outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

/* Text link */
.text-link {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.text-link:hover {
  opacity: 0.65;
}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer {
  background: var(--black);
  color: rgba(248, 247, 244, 0.5);
  padding: 5rem 4rem 3rem;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Brand column */
.footer__brand .logo {
  display: inline-block;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  line-height: 1.9;
  max-width: 280px;
  color: rgba(248, 247, 244, 0.5);
}

/* Columns */
.footer__col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.footer__col a {
  display: block;
  font-family: 'Montserrat', sans-serif;
  color: rgba(248, 247, 244, 0.5);
  font-size: 0.72rem;
  margin-bottom: 0.7rem;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--white);
}

/* Social icons row */
.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem !important;
  margin-bottom: 0 !important;
}

/* Bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
}

.footer__bottom span {
  color: var(--green);
}

/* ════════════════════════════════════
   TOUCH — tap highlight & sizing
════════════════════════════════════ */
.btn,
.text-link {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 900px) {
  .footer {
    padding: 4rem 1.5rem 2.5rem;
  }

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

  .footer__brand {
    grid-column: 1 / 3;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .btn {
    padding: 1rem 2.5rem;
  }
}

@media (max-width: 500px) {
  .footer {
    padding: 3.5rem 1.25rem 2rem;
  }

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

  .footer__brand {
    grid-column: auto;
  }

  .footer__brand p {
    max-width: 100%;
  }

  .footer__col h4 {
    font-size: 0.55rem;
  }

  .footer__col a {
    font-size: 0.78rem;
    padding: 0.4rem 0;
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .footer__bottom {
    font-size: 0.6rem;
  }
}

@media (max-width: 375px) {
  .btn {
    font-size: 0.6rem;
    padding: 0.9rem 1.8rem;
  }
}
