/* ============================================================
   CAPUNGA — Landing Page
   Estilo: Xilogravura · Monocromático · Acento vermelho #971c1f
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --bg: #ffffff;
  --black: #0e0e0e;
  --red: #971c1f;
  --gray-light: #f4f4f4;
  --gray-mid: #cccccc;
  --gray-dark: #444444;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-heading: 'Oswald', Arial Narrow, sans-serif;
  --font-body: 'Lato', Arial, sans-serif;

  --radius: 0px;
  --border: 2px solid var(--black);
  --shadow: 4px 4px 0 var(--black);
  --shadow-lg: 6px 6px 0 var(--black);

  --container: 1200px;
  --section-pad: 100px 0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Container -------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: var(--border);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow);
  position: relative;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--black);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--black);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: var(--border);
}

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

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-instagram {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.btn-instagram:hover {
  background: #333;
}

/* --- Section Labels --------------------------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-dark);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* --- Scroll Animations ------------------------------------ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid children */
.style-card:nth-child(2).animate-on-scroll {
  transition-delay: 0.1s;
}

.style-card:nth-child(3).animate-on-scroll {
  transition-delay: 0.2s;
}

.style-card:nth-child(4).animate-on-scroll {
  transition-delay: 0.3s;
}

.comparison-card:nth-child(2).animate-on-scroll {
  transition-delay: 0.15s;
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  background: rgba(255, 255, 255, 0.0);
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 0 var(--black);
  padding: 10px 0;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 36px;
  width: auto;
  transition: opacity 0.2s;
}

.header-logo:hover img {
  opacity: 0.75;
}

/* Hide header logo on desktop hero (logo is in CTA box) */
#header:not(.scrolled) .header-logo {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

/* Gradiente que começa opaco no extremo esquerdo e desaparece
   antes do centro, deixando a metade direita da foto limpa */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.82) 20%,
      rgba(255, 255, 255, 0.60) 38%,
      rgba(255, 255, 255, 0.20) 52%,
      transparent 65%);
  pointer-events: none;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-wrapper picture,
.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-content {
  position: relative;
  z-index: 2;
  grid-column: 1;
  background: transparent;
  padding: 14px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 100vh;
}

.hero-logo {
  height: 300px;
  width: auto;
  margin-bottom: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  color: var(--black);
}

.hero-title em {
  font-style: italic;
  color: var(--red);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--gray-dark);
  line-height: 1.7;
  max-width: 420px;
}

.hero-note {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-top: -8px;
}

/* Decorative accent line above title */
.hero-accent {
  display: inline-block;
  width: 48px;
  height: 4px;
  background: var(--red);
  margin-bottom: 0;
}

/* ============================================================
   NOSSOS ESTILOS
   ============================================================ */
.section-styles {
  padding: var(--section-pad);
  background: var(--gray-light);
  position: relative;
  overflow: hidden;
}

.section-styles::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/elementos/bg-enfeite.webp');
  background-size: 400px auto;
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
}

.section-decorator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.decorator-star {
  height: 80px;
  width: auto;
  opacity: 0.12;
  margin-top: -10px;
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.style-card {
  background: var(--bg);
  border: var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.style-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.style-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.style-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.style-card:hover .style-card-img img {
  transform: scale(1.05);
}

.style-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.style-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.style-card-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
  line-height: 1.2;
}

.style-card-body p {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.6;
  flex: 1;
}

.style-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: gap 0.2s ease;
  width: fit-content;
  margin-top: auto;
}

.style-link:hover {
  gap: 10px;
}

/* Style stats (ABV / IBU) */
.style-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.style-stat {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}

/* Tooltip */
.tooltip-trigger {
  position: relative;
  display: inline-block;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
  font-style: normal;
  color: var(--red);
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  width: 240px;
  padding: 10px 14px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  white-space: normal;
}

.tooltip-trigger::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--black);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.tooltip-trigger:hover::after,
.tooltip-trigger:hover::before,
.tooltip-trigger:focus::after,
.tooltip-trigger:focus::before {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   BARRIL OU GROWLER
   ============================================================ */
.section-comparison {
  padding: var(--section-pad);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.comparison-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.04;
}

.comparison-bg-pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.comparison-card {
  border: var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparison-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comparison-card--featured {
  border-color: var(--red);
  box-shadow: var(--shadow-lg);
  position: relative;
}


.comparison-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.comparison-card-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-icon {
  width: 100%;
  aspect-ratio: 4 / 2;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  justify-content: center;
}

.comparison-icon img {
  height: 100%;
  width: auto;
  transition: transform 0.4s ease;
}

.comparison-card:hover .comparison-icon img {
  transform: scale(1.04);
}

.comparison-card-header h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
}

.comparison-volume {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-top: 4px;
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comparison-list li {
  font-size: 0.95rem;
  line-height: 1.4;
  padding-left: 24px;
  position: relative;
  color: var(--gray-dark);
}

.comparison-list--pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--whatsapp-dark);
  font-weight: 700;
}

.comparison-list--cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.comparison-best-for {
  background: var(--gray-light);
  border-left: 4px solid var(--red);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--black);
  line-height: 1.5;
}

.comparison-best-for strong {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 4px;
}

/* Tip box */
.tip-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--gray-light);
  border: var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--black);
  line-height: 1.6;
}

.tip-box__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.tip-box p {
  margin: 0;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.section-cta {
  background: var(--black);
  color: #fff;
  padding: var(--section-pad);
  padding-bottom: 200px; /* 165px ponte + ~35px gap */
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/elementos/bg-enfeite.webp');
  background-size: 400px auto;
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
}

.cta-bridge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.cta-bridge img {
  height: 165px;
  width: auto;
  opacity: 0.2;
  filter: invert(1) brightness(10);
}

.cta-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-logo {
  width: 250px;
  height: auto;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #fff;
}

.cta-title span {
  color: var(--red);
  font-style: italic;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 560px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.btn-whatsapp.btn-lg {
  border-color: var(--black);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.2);
}

.btn-whatsapp.btn-lg:hover {
  box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.3);
}

.cta-phone {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.cta-phone:hover {
  color: #fff;
}

.cta-phone strong {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #080808;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
  border-top: 2px solid var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.8fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.footer-logo {
  height: 100px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
  margin-top: 12px !important;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-contact svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Instagram Widget */
.instagram-widget {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram-widget-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.instagram-icon {
  color: rgba(255, 255, 255, 0.5);
}

.instagram-handle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.instagram-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ============================================================
   RESPONSIVE — Tablet (< 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-instagram {
    grid-column: 1 / -1;
  }

  .hero-content {
    padding: 100px 48px 64px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --section-pad: 70px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* Header */
  .header-inner {
    padding: 0 20px;
  }

  #header:not(.scrolled) .header-logo {
    opacity: 1;
    pointer-events: auto;
  }

  /* Hero — stack image above content */
  #hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    order: -1;
  }

  .hero-image-wrapper img {
    object-position: center center;
  }

  .hero-content {
    min-height: auto;
    padding: 48px 24px;
    text-align: center;
    align-items: center;
    background: #fff;
  }

  .hero-content::after {
    display: none;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-accent {
    margin: 0 auto;
  }

  /* Styles grid */
  .styles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .style-card {
    flex-direction: row;
    max-height: 160px;
  }

  .style-card-img {
    width: 140px;
    min-width: 140px;
    aspect-ratio: auto;
    height: 100%;
  }

  /* Comparison */
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .comparison-card--featured::before {
    top: 12px;
    right: 12px;
    transform: none;
  }

  /* CTA */
  .cta-title {
    font-size: 1.9rem;
  }

  .cta-bridge {
    display: none;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-instagram {
    grid-column: auto;
  }

  /* Floating btn */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
}

/* ============================================================
   RESPONSIVE — Small mobile (< 480px)
   ============================================================ */
@media (max-width: 480px) {
  .style-card {
    flex-direction: column;
    max-height: none;
  }

  .style-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .btn-lg {
    padding: 16px 24px;
    font-size: 1rem;
  }
}