/* =============================================================
   ROCKER'S BEER — style.css
   Paleta militar vintage / pergaminho
   ============================================================= */

/* ---------- 1. VARIÁVEIS CSS ---------- */
:root {
  --cor-fundo:       #ebdcb9;   /* Pergaminho bege */
  --cor-oliva:       #444a34;   /* Verde oliva escuro */
  --cor-oliva-hover: #363d29;   /* Oliva mais escuro (hover) */
  --cor-texto:       #1c1d1a;   /* Texto principal */
  --cor-dourado:     #c7b183;   /* Bordas e detalhes dourados */
  --cor-branca:      #f5eed8;   /* Creme claro (navbar text) */
  --fonte-display:   'Alfa Slab One', Georgia, serif;
  --fonte-corpo:     'Special Elite', 'Courier New', monospace;
  --fonte-oswald:    'Oswald', sans-serif;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--cor-fundo);
  /* Textura de fundo: usa o arquivo se disponível, senão noise CSS puro */
  background-image: url('assets/background_pattern.png');
  background-repeat: repeat;
  background-size: auto;
  color: var(--cor-texto);
  font-family: var(--fonte-corpo);
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; }
ul  { list-style: none; }

/* ---------- 3. ANIMAÇÕES ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Classe utilitária aplicada via JS (IntersectionObserver) */
.fade-in          { opacity: 0; }
.fade-in.visible  { animation: fadeInUp 0.75s ease forwards; }

.fade-in-stagger         { opacity: 0; }
.fade-in-stagger.visible { animation: fadeInUp 0.65s ease forwards; }

/* Delays escalonados para os cards de produto */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.20s; }
.product-card:nth-child(3) { animation-delay: 0.35s; }
.product-card:nth-child(4) { animation-delay: 0.50s; }

/* ---------- 4. HEADER & NAVBAR ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--cor-oliva);
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
}

.navbar { width: 100%; padding: 0 1.5rem; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.nav-links > li { flex: 1; text-align: center; }

/* Item especial do logo: maior e centralizado */
.nav-logo-item {
  flex: 0 0 auto;
  padding: 0 1rem;
}

.nav-logo {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  transition: transform 0.3s ease;
}
.nav-logo:hover { transform: scale(1.06); }

.nav-link {
  display: inline-block;
  padding: 1rem 0.6rem;
  color: var(--cor-branca);
  font-family: var(--fonte-oswald);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease;
  position: relative;
}

/* Linha de destaque abaixo do link ativo */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--cor-dourado);
  transition: transform 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-link.active { color: var(--cor-dourado); }
.nav-link:hover  { color: var(--cor-dourado); }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  padding: 4rem 2rem 3.5rem;
  text-align: center;
  overflow: hidden;
}

/* Ornamentos de canto decorativos */
.corner {
  position: absolute;
  width: 80px;
  height: 80px;
  border-color: var(--cor-dourado);
  border-style: solid;
  opacity: 0.7;
}
.corner--tl { top: 12px; left: 12px; border-width: 3px 0 0 3px; border-radius: 6px 0 0 0; }
.corner--tr { top: 12px; right: 12px; border-width: 3px 3px 0 0; border-radius: 0 6px 0 0; }
.corner--bl { bottom: 12px; left: 12px; border-width: 0 0 3px 3px; border-radius: 0 0 0 6px; }
.corner--br { bottom: 12px; right: 12px; border-width: 0 3px 3px 0; border-radius: 0 0 6px 0; }

.hero__inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }

.hero__title {
  font-family: var(--fonte-display);
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 1.05;
  color: var(--cor-texto);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-shadow: 3px 3px 0 rgba(0,0,0,.12);
  margin-bottom: 0.6rem;
}

.hero__subtitle {
  font-family: var(--fonte-oswald);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--cor-texto);
  letter-spacing: 0.04em;
  margin-bottom: 2.2rem;
}

/* ---- Botão CTA — placa metálica verde-oliva ---- */
.btn-cta {
  display: inline-block;
  position: relative;
  padding: 0;
  cursor: pointer;
}

.btn-cta__inner {
  display: inline-block;
  padding: 0.75rem 2.4rem;
  background: linear-gradient(
    180deg,
    #5a6244 0%,
    var(--cor-oliva) 40%,
    #363d29 100%
  );
  color: var(--cor-branca);
  font-family: var(--fonte-oswald);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 2px solid var(--cor-dourado);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.3),
    0 4px 12px rgba(0,0,0,.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  /* Efeito de rebite / tachinha nos cantos */
  position: relative;
}

/* Rebites decorativos */
.btn-cta__inner::before,
.btn-cta__inner::after {
  content: '•';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cor-dourado);
  font-size: 0.7rem;
  opacity: 0.8;
}
.btn-cta__inner::before { left: 8px; }
.btn-cta__inner::after  { right: 8px; }

/* Hover: brilho e elevação suave */
.btn-cta:hover .btn-cta__inner,
.btn-cta:focus .btn-cta__inner {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -1px 0 rgba(0,0,0,.3),
    0 8px 20px rgba(0,0,0,.4);
}

.btn-cta:active .btn-cta__inner {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.95);
}

/* ---------- 6. SEPARADOR ORNAMENTAL ---------- */
.ornament-divider {
  text-align: center;
  font-family: var(--fonte-corpo);
  font-size: 1.2rem;
  color: var(--cor-dourado);
  letter-spacing: 0.4em;
  margin: 0.5rem 0;
  opacity: 0.8;
  user-select: none;
}

/* ---------- 7. SECÇÃO PRODUTOS ---------- */
.products {
  padding: 3rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.products__title {
  font-family: var(--fonte-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
  text-transform: uppercase;
  color: var(--cor-texto);
  letter-spacing: 0.06em;
  margin-bottom: 2.8rem;
  position: relative;
}

/* Linha decorativa abaixo do título */
.products__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--cor-dourado);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

/* Grid de 4 colunas no desktop */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: end;
}

/* ---- Card de produto ---- */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.product-card__bottle {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 220px;
}

.product-card__bottle img {
  width: 60%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(4px 8px 12px rgba(0,0,0,.3));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.product-card:hover .product-card__bottle img {
  transform: translateY(-8px) scale(1.04);
  filter: drop-shadow(4px 14px 18px rgba(0,0,0,.4));
}

/* Caixa de informações — retângulo estilizado */
.product-card__info {
  background: linear-gradient(
    135deg,
    rgba(68,74,52,0.10) 0%,
    rgba(199,177,131,0.22) 100%
  );
  border: 1.5px solid var(--cor-dourado);
  border-radius: 4px;
  padding: 0.8rem 0.9rem;
  width: 100%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.12);
  position: relative;
}

/* Faixa superior decorativa */
.product-card__info::before {
  content: '';
  position: absolute;
  top: -1.5px; left: 10%; right: 10%;
  height: 3px;
  background: var(--cor-oliva);
  border-radius: 0 0 2px 2px;
}

.product-card__specs {
  font-family: var(--fonte-oswald);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cor-oliva);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.product-card__desc {
  font-family: var(--fonte-corpo);
  font-size: 0.75rem;
  color: var(--cor-texto);
  line-height: 1.45;
}

/* ---------- 8. SECÇÃO ATAQUE ---------- */
.attack {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  padding: 3rem 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.attack__text { flex: 0 0 auto; max-width: 380px; padding-bottom: 2rem; }

.attack__title {
  font-family: var(--fonte-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  color: var(--cor-texto);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 0.3rem;
}

.attack__sub {
  font-family: var(--fonte-oswald);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--cor-texto);
  margin-bottom: 1rem;
}

.attack__body {
  font-family: var(--fonte-corpo);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.attack__illustration {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  
}

.attack__illustration img {
  width: 100%;
  max-width:1500px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}

/* ---------- 9. FOOTER ---------- */
.site-footer {
  background-color: var(--cor-oliva);
  margin-top: 0;
  padding: 1.5rem 2rem;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.6rem 1.5rem;
}

.footer__logo {
  grid-row: 1 / 3;
}

.footer__logo img {
  width: 90px;
  height: auto;
  filter: brightness(0.85) drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

.footer__social {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--cor-dourado);
  color: var(--cor-branca);
  font-size: 1.1rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer__social-link:hover {
  background: var(--cor-dourado);
  color: var(--cor-oliva);
  transform: scale(1.12);
}

.footer__copy {
  grid-column: 2;
  grid-row: 2;
  text-align: center;
  font-family: var(--fonte-corpo);
  font-size: 0.75rem;
  color: rgba(245,238,216,.65);
  letter-spacing: 0.04em;
}

/* ---------- 10. RESPONSIVIDADE ---------- */
@media (max-width: 960px) {
  /* Grid de produtos: 2 colunas */
  .products__grid { grid-template-columns: repeat(2, 1fr); }

  /* Seção ataque empilhada */
  .attack { flex-direction: column; align-items: flex-start; }
  .attack__text { max-width: 100%; }
  .attack__illustration { justify-content: center; width: 100%; }
}

@media (max-width: 700px) {
  /* Navbar adaptada */
  .nav-links { gap: 0.1rem; }
  .nav-link  { padding: 0.65rem 0.4rem; font-size: 0.72rem; }
  .nav-logo  { width: 80px; }

  /* Grid de produtos: 1 coluna */
  .products__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  .product-card { flex-direction: row; align-items: center; }
  .product-card__bottle { min-height: unset; width: 35%; }
  .product-card__bottle img { width: 100%; max-width: unset; }
  .product-card__info { flex: 1; }

  /* Footer stack */
  .footer__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    text-align: center;
  }
  .footer__logo { grid-row: 1; }
  .footer__social { grid-column: 1; }
  .footer__copy { grid-column: 1; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1.2rem 2.5rem; }
  .hero__title { font-size: 2.4rem; }
  .corner { width: 50px; height: 50px; }

  /* Oculta alguns links da nav em telas muito pequenas, mantendo os principais */
  .nav-links li:nth-child(3),
  .nav-links li:nth-child(6) { display: none; }
}
