/* ================================================
   HEADER & FOOTER — Urban Barber
   ================================================ */

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

body {
  font-family: "Montserrat", sans-serif;
  background: #f7ead9;
  font-size: 16px;
}

/* Remove o height:100vh que quebrava todas as seções */
section, article { height: auto; }

/* ================================================
   HEADER / NAV
   ================================================ */
header {
  width: 100%;
  background: #34150f;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 200;
  overflow: visible;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 2rem;
}

nav > img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #d39858;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  font-family: "Cinzel Decorative", serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #d39858;
  display: inline-block;
  transition: color 0.3s, transform 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #eaceaa;
  transform: scale(1.08);
}

.nav-links .cadastro {
  background-color: transparent;
  color: #d39858;
  padding: 0.35rem 1rem;
  border: 1px solid #d39858;
  transition: background 0.3s, color 0.3s;
}
.nav-links .cadastro:hover {
  background-color: #d39858;
  color: #34150f;
}

.nav-links .login {
  background-color: #d39858;
  color: #34150f;
  padding: 0.35rem 1rem;
  border: 1px solid #d39858;
  transition: background 0.3s, color 0.3s;
}
.nav-links .login:hover {
  background-color: #34150f;
  color: #d39858;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: #150c0c;
  padding: 2.5rem 3rem 1.5rem;
  font-family: "Inter", sans-serif;
}

.f-div {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.f-title { flex: 1; }

.f-title > h1 {
  font-family: "Cinzel Decorative", sans-serif;
  font-size: clamp(2.5rem, 7vw, 7rem);
  color: #ffffff18;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.f-nav {
  display: flex;
  justify-content: flex-end;
  gap: 3rem;
  padding: 0.5rem 0;
}

.f-nav-txt > h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.f-nav-txt a { text-decoration: none; }

.f-nav-txt a > p {
  font-size: 1rem;
  color: #ffffff80;
  margin: 0 0 0.6rem;
  transition: color 0.2s;
}

.f-nav-txt a:hover > p { color: #d39858; }

.f-nav-copy {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  border-top: 1px solid #ffffff15;
  padding-top: 1rem;
}

.f-nav-copy p {
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  color: #ffffff60;
  text-align: center;
}

/* ================================================
   UTILITÁRIOS
   ================================================ */
.secao-cabecalho { text-align: center; }
.secao-cabecalho .secao-desc { margin-left: auto; margin-right: auto; }

.revelar {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.revelar.visivel { opacity: 1; transform: translateY(0); }

/* ================================================
   RESPONSIVIDADE — HEADER / FOOTER
   ================================================ */

/* Tablet ≤ 900px */
@media (max-width: 900px) {
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.75rem; }
}

/* Mobile ≤ 768px — menu hamburguer */
@media (max-width: 768px) {
  header { height: 56px; overflow: visible; }

  nav { padding: 0 1rem; }

  nav > img { width: 48px; height: 48px; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background: #34150f;
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 199;
  }

  .nav-links.open { display: flex; }

  .nav-links a { font-size: 0.85rem; }

  /* Footer */
  footer { padding: 2rem 1.25rem 1rem; }

  .f-div {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .f-title > h1 { font-size: clamp(2rem, 10vw, 3.5rem); }

  .f-nav { justify-content: flex-start; gap: 2rem; }

  .f-nav-copy p { font-size: 0.72rem; }
}

/* Mobile pequeno ≤ 480px */
@media (max-width: 480px) {
  header { height: 52px; }

  nav > img { width: 42px; height: 42px; }

  .nav-links { top: 52px; padding: 1rem 1.25rem; gap: 1rem; }

  .nav-links a { font-size: 0.8rem; }

  .f-title > h1 { font-size: clamp(1.6rem, 9vw, 2.8rem); }

  .f-nav { flex-direction: column; gap: 1rem; }
}

/* Mobile mínimo ≤ 375px */
@media (max-width: 375px) {
  nav > img { width: 38px; height: 38px; }
  .nav-links a { font-size: 0.75rem; }
  .f-title > h1 { font-size: 1.6rem; }
}
