/* Empório DekiBeer — site institucional (layout mockup bege/preto) */

:root {
  --sand: #ebe6dc;
  --sand-dark: #e0d9cc;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --white: #ffffff;
  --muted: #4a4a48;
  --gold: #c9a227;
  --beer: #d4a017;
  --beer-light: #f0c040;
  --beer-foam: #f5e6b8;
  --wood: #3d2818;
  --wood-light: #5c4030;
  --radius: 14px;
  --radius-pill: 999px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 3.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sand);
}

body.lightbox-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Cabeçalho fixo —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  transition: background 0.35s, box-shadow 0.35s, color 0.35s;
  color: var(--white);
}

.site-header.is-scrolled,
.site-header--solid {
  background: rgba(10, 10, 10, 0.94);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  color: var(--white);
}

.site-header__inner {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: flex-end;
}

.site-header__nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  opacity: 0.88;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible,
.site-header__nav a.is-active {
  outline: none;
  opacity: 1;
  border-bottom-color: var(--beer-light);
}

/* —— Hero + animação cerveja —— */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--safe-top));
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.75) 100%),
    url("../assets/hero-bg.jpg") center / cover no-repeat,
    url("../assets/ref/mockup-hero.png") center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-kenburns 22s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    animation: none;
  }
}

@keyframes hero-kenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.hero__beer-anim {
  position: absolute;
  right: 4%;
  bottom: 28%;
  width: min(42vw, 220px);
  height: min(55vh, 320px);
  pointer-events: none;
  opacity: 0.92;
  z-index: 2;
}

@media (max-width: 640px) {
  .hero__beer-anim {
    right: 2%;
    bottom: 32%;
    width: 38vw;
    opacity: 0.75;
  }
}

.beer-scene {
  position: relative;
  width: 100%;
  height: 100%;
}

.beer-scene__bottle {
  position: absolute;
  top: 0;
  right: 12%;
  width: 28%;
  height: 52%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2;
}

.beer-scene__glass {
  position: absolute;
  bottom: 0;
  left: 8%;
  width: 42%;
  height: 58%;
}

.beer-scene__liquid {
  fill: var(--beer);
  opacity: 0.85;
  transform-origin: bottom center;
  animation: beer-fill 4s ease-in-out infinite;
}

.beer-scene__foam {
  fill: var(--beer-foam);
  animation: foam-pulse 3s ease-in-out infinite;
}

.beer-scene__stream {
  position: absolute;
  top: 38%;
  right: 22%;
  width: 6px;
  height: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--beer-light), var(--beer));
  animation: beer-pour 4s ease-in-out infinite;
  transform-origin: top center;
}

.beer-scene__bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: bubble-rise 2.5s ease-in infinite;
}

.beer-scene__bubble:nth-child(1) {
  left: 22%;
  bottom: 18%;
  width: 6px;
  height: 6px;
  animation-delay: 0s;
}

.beer-scene__bubble:nth-child(2) {
  left: 30%;
  bottom: 12%;
  width: 4px;
  height: 4px;
  animation-delay: 0.6s;
}

.beer-scene__bubble:nth-child(3) {
  left: 26%;
  bottom: 24%;
  width: 5px;
  height: 5px;
  animation-delay: 1.2s;
}

@media (prefers-reduced-motion: reduce) {
  .beer-scene__liquid,
  .beer-scene__foam,
  .beer-scene__stream,
  .beer-scene__bubble {
    animation: none;
  }

  .beer-scene__stream {
    height: 28%;
  }
}

@keyframes beer-pour {
  0%,
  15% {
    height: 0;
    opacity: 0;
  }
  25%,
  70% {
    height: 32%;
    opacity: 1;
  }
  85%,
  100% {
    height: 0;
    opacity: 0;
  }
}

@keyframes beer-fill {
  0%,
  20% {
    transform: scaleY(0.15);
  }
  45%,
  75% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0.2);
  }
}

@keyframes foam-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-80px) scale(0.4);
    opacity: 0;
  }
}

.hero__stage {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero__wood {
  padding: 2.5rem 1rem 2.75rem;
  background:
    repeating-linear-gradient(
      92deg,
      transparent 0,
      transparent 8px,
      rgba(0, 0, 0, 0.12) 8px,
      rgba(0, 0, 0, 0.12) 9px
    ),
    linear-gradient(180deg, var(--wood-light) 0%, var(--wood) 55%, #2a1810 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08);
}

.hero__logo {
  display: block;
  width: min(92vw, 420px);
  max-height: min(50vw, 240px);
  margin: 0 auto 1.25rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.hero__logo-fallback {
  display: none;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--beer-light);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__logo-fallback.is-visible {
  display: block;
}

.btn-pill {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-pill--light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.btn-pill--dark {
  background: var(--ink);
  color: var(--white);
}

.btn-pill:hover,
.btn-pill:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* —— Seções —— */
.section {
  scroll-margin-top: calc(var(--header-h) + var(--safe-top) + 0.5rem);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
  padding: 3rem 1rem;
}

.section--sand {
  background: var(--sand);
  color: var(--ink);
  padding: 3rem 1rem;
}

.section__inner {
  width: min(72rem, 100%);
  margin: 0 auto;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section--dark .section__title {
  color: var(--white);
}

/* Cards destaque (3 colunas) */
.highlight-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .highlight-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.highlight-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  background: var(--ink-soft);
}

.highlight-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.5s, opacity 0.35s;
}

.highlight-card:hover .highlight-card__img,
.highlight-card:focus-visible .highlight-card__img {
  transform: scale(1.05);
  opacity: 0.65;
}

.highlight-card__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1.25rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.highlight-card__label {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.35;
}

.highlight-card__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #2a1810, #1a1a1a);
}

/* Horário */
.hours-block {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.hours-block__ornament {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0.5rem 0;
  letter-spacing: 0.4em;
}

.hours-block__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hours-block__lines {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.65;
}

.hours-block__note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* Sobre + carrossel */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.carousel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  background: var(--sand-dark);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__slide--offset img {
  object-position: 60% center;
}

.carousel__controls {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}

.carousel__arrow {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.carousel__dots {
  display: flex;
  gap: 0.35rem;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.carousel__dot.is-active {
  background: var(--white);
  transform: scale(1.15);
}

.about-copy__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-copy__text {
  margin: 0 0 1rem;
  text-align: justify;
  hyphens: auto;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-copy__text:last-of-type {
  margin-bottom: 1.5rem;
}

/* Depoimentos */
.testimonials {
  text-align: center;
}

.testimonials__title {
  margin: 0 0 2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.testimonials__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: left;
  }
}

.testimonial__quote {
  font-size: 2rem;
  line-height: 1;
  color: var(--beer-light);
  margin-bottom: 0.5rem;
}

.testimonial__headline {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.testimonial__body {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.testimonial__author {
  margin: 0;
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
}

/* Galeria preview */
.gallery-preview {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 560px) {
  .gallery-preview {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-preview__item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--sand-dark);
  border: none;
  padding: 0;
  cursor: pointer;
}

.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contato */
.contact-center {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.contact-center__title {
  margin: 0 0 2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-block {
  margin-bottom: 1.75rem;
}

.contact-block__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-block__value {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.contact-block__value a {
  color: inherit;
  text-decoration: none;
}

.contact-block__value a:hover {
  text-decoration: underline;
}

.contact-block__hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}

.social-row a:hover,
.social-row a:focus-visible {
  outline: none;
  background: var(--ink);
  color: var(--white);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 1.25rem 1rem calc(1.25rem + var(--safe-bottom));
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

/* —— Página galeria —— */
.page-hero {
  padding: calc(var(--header-h) + var(--safe-top) + 2.5rem) 1rem 2rem;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.page-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero__lead {
  margin: 0.75rem auto 0;
  max-width: 32rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.gallery-toolbar {
  padding: 1.25rem 1rem 0;
  background: var(--sand);
}

.gallery-toolbar__inner {
  width: min(72rem, 100%);
  margin: 0 auto;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

.filter-pill.is-active {
  background: var(--ink);
  color: var(--white);
}

.filter-pill--sub {
  border-color: var(--muted);
  font-weight: 600;
}

.filter-pill--sub.is-active {
  background: var(--muted);
  border-color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-row--sub {
  padding-bottom: 0.5rem;
}

.gallery-main {
  padding: 1.5rem 1rem 3rem;
  background: var(--sand);
}

.gallery-main__inner {
  width: min(72rem, 100%);
  margin: 0 auto;
}

.gallery-active__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-active__desc {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  border: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sand-dark);
  cursor: zoom-in;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.gallery-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card.is-placeholder .gallery-card__media img {
  display: none;
}

.gallery-card__fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sand-dark), #c4bdb0);
}

.gallery-card__cap {
  padding: 0.45rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-empty code {
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: min(96vw, 1100px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__cap {
  margin: 0.75rem 0 0;
  color: var(--white);
  font-size: 0.875rem;
  text-align: center;
  max-width: 40rem;
}

.lightbox__close {
  position: absolute;
  top: calc(0.75rem + var(--safe-top));
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
