/* Restaurante do Tomaz — acabamentos de layout e padronização de fotos.
   Complementa styles.css e novidades.css. Não altera imagens de origem. */

:root {
  --photo-ratio-dish: 4 / 3;
  --photo-ratio-drink: 3 / 4;
  --photo-ratio-gallery: 4 / 5;
}

/* Fotografias continuam visíveis e clicáveis; somente a seleção/arrasto é reduzida. */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* O enquadramento é consistente mesmo com fotos de origens diferentes. */
.dish-card__image img,
.menu-dish__image img,
.drinks-showcase__photo img,
.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish-card__image,
.menu-dish__image { aspect-ratio: var(--photo-ratio-dish); overflow: hidden; }
.drinks-showcase__photo { aspect-ratio: var(--photo-ratio-drink); }
.gallery-grid .gallery-card {
  min-width: 0;
  aspect-ratio: var(--photo-ratio-gallery);
  overflow: hidden;
}
.gallery-grid .gallery-card img { object-position: center; }

/* Fotos editoriais (hero, praia, introdução) mantêm os recortes originais. */
.hero__photo img,
.intro__image img,
.intro__inset img,
.experience__photo img { object-fit: cover; }

/* ==========================================================================
   REFINAMENTOS MOBILE-FIRST DE ALTA PERFORMANCE (Awwwards / Luxury Standard)
   Zero dependências externas • 60fps aceleração GPU • Respeita Core Web Vitals
   ========================================================================== */

/* 1. Header com Glassmorphism ao rolar */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, -webkit-backdrop-filter 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(246, 242, 233, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  box-shadow: 0 4px 20px -2px rgba(18, 59, 61, 0.08);
}

@media (max-width: 820px) {
  .site-nav {
    background: rgba(246, 242, 233, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

/* 2. Microinterações e Feedback Tátil Mobile nos Botões */
.button,
.menu-toggle,
.filter-button,
.text-link {
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.2s ease,
              background-color 0.2s ease,
              color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.button:active,
.menu-toggle:active,
.filter-button:active {
  transform: scale(0.96);
}

.button--dark {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px -2px rgba(18, 59, 61, 0.22);
}

.button--dark:hover {
  box-shadow: 0 8px 22px -4px rgba(18, 59, 61, 0.32);
  transform: translateY(-2px);
}

.button--dark:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 2px 8px -2px rgba(18, 59, 61, 0.2);
}

.button--outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -4px rgba(18, 59, 61, 0.12);
}

.button--outline:active {
  transform: translateY(0) scale(0.96);
}

/* Efeito sutil de luz/shimmer no botão de chamada principal */
@media (prefers-reduced-motion: no-preference) {
  .hero__actions .button--dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    animation: button-shimmer 6s infinite ease-in-out 2s;
  }
  @keyframes button-shimmer {
    0%, 75% { left: -100%; }
    100% { left: 160%; }
  }
}

/* 3. Vitrine de Pratos: Slider Touch Nativo no Celular (Scroll-Snap) */
.dishes-mobile-hint {
  display: none;
}

@media (max-width: 768px) {
  .dishes-mobile-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font: 700 11px/1.4 'DM Sans', sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--coral-deep, #9a4a31);
    margin-bottom: 14px;
    opacity: 0.85;
  }

  .dishes-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 20px;
    padding-top: 4px;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 59, 61, 0.25) transparent;
  }

  .dishes-grid::-webkit-scrollbar {
    height: 4px;
  }
  .dishes-grid::-webkit-scrollbar-track {
    background: transparent;
  }
  .dishes-grid::-webkit-scrollbar-thumb {
    background: rgba(18, 59, 61, 0.22);
    border-radius: 4px;
  }

  .dish-card {
    flex: 0 0 clamp(250px, 80vw, 310px);
    scroll-snap-align: start;
    border-radius: 16px;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 8px 24px -6px rgba(18, 59, 61, 0.08);
    border: 1px solid rgba(18, 59, 61, 0.06);
  }

  .dish-card__image {
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .dish-card__number {
    top: 10px;
    left: 10px;
    border-radius: 6px;
    padding: 5px 9px;
  }

  .dish-card__body {
    padding: 14px 4px 6px;
    border-bottom: none;
    flex-direction: column;
    gap: 4px;
  }

  .dish-card__body h3 {
    font-size: 23px;
    margin: 4px 0 2px;
  }
}

/* 4. Refinamento Desktop para os Pratos */
@media (min-width: 769px) {
  .dish-card {
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  }
  .dish-card__image {
    border-radius: 8px;
    overflow: hidden;
  }
  .dish-card:hover {
    transform: translateY(-4px);
  }
}

/* 5. Acabamento na Galeria e Filtros */
.filter-button {
  border-radius: 999px;
  padding: 9px 18px;
}

.gallery-grid .gallery-card {
  border-radius: 12px;
  box-shadow: 0 4px 16px -4px rgba(18, 59, 61, 0.1);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

@media (hover: hover) {
  .gallery-grid .gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(18, 59, 61, 0.2);
  }
}

/* ==========================================================================
   CARROSSEL DE AVALIAÇÕES DO GOOGLE (Mobile-First)
   Prova social com depoimentos verificados do Google Maps
   ========================================================================== */
.reviews-section {
  background: var(--sand, #f6f2e9);
  border-top: 1px solid var(--line, #e5ded1);
  overflow: hidden;
}

.reviews-header {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: clamp(28px, 4.5vw, 46px);
}

.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(18, 59, 61, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
  font: 700 11px/1 'DM Sans', sans-serif;
  letter-spacing: .12em;
  color: var(--ink, #123b3d);
  box-shadow: 0 2px 8px rgba(18, 59, 61, 0.04);
  margin-bottom: 14px;
}

.reviews-badge .icon--google {
  width: 16px;
  height: 16px;
}

.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted, #526b68);
  flex-wrap: wrap;
  justify-content: center;
}

.reviews-stars,
.review-stars {
  display: inline-flex;
  gap: 3px;
  color: #f59e0b;
}

.reviews-stars .icon--star,
.review-stars .icon--star {
  width: 17px;
  height: 17px;
}

.reviews-carousel {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  padding: 10px 4px 16px;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
  scroll-snap-align: center;
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 12px 32px -8px rgba(18, 59, 61, 0.1), 0 2px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(18, 59, 61, 0.06);
  display: flex;
  flex-direction: column;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  font: 700 18px 'DM Sans', sans-serif;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
}

.review-avatar--orange { background: #e65100; }
.review-avatar--brown  { background: #6d4c41; }
.review-avatar--blue   { background: #1565c0; }

.review-author {
  flex: 1;
  min-width: 0;
}

.review-author strong {
  display: block;
  font: 700 16px 'DM Sans', sans-serif;
  color: var(--ink, #123b3d);
}

.review-author__meta {
  display: block;
  font: 400 12px/1.4 'DM Sans', sans-serif;
  color: var(--ink-muted, #526b68);
  margin-top: 2px;
}

.review-card__quote {
  font: 400 clamp(15px, 1.8vw, 16px)/1.7 'DM Sans', sans-serif;
  color: var(--ink, #123b3d);
  margin: 0 0 20px;
  flex: 1;
}

.review-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid rgba(18, 59, 61, 0.08);
  padding-top: 14px;
}

.review-card__tags span {
  font: 700 11px/1.3 'DM Sans', sans-serif;
  letter-spacing: .05em;
  background: var(--sand, #f6f2e9);
  color: var(--ink, #123b3d);
  padding: 5px 11px;
  border-radius: 6px;
}

.reviews-control {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(18, 59, 61, 0.12);
  box-shadow: 0 4px 14px rgba(18, 59, 61, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink, #123b3d);
  flex: 0 0 44px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.reviews-control:hover {
  background: var(--ink, #123b3d);
  color: #ffffff;
  transform: scale(1.06);
}

.reviews-control:active {
  transform: scale(0.94);
}

.reviews-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.reviews-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cfc8bb;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.reviews-dot.is-active {
  width: 26px;
  background: var(--coral, #eb7e5c);
}

@media (max-width: 640px) {
  .reviews-control {
    display: none;
  }
  .reviews-carousel {
    margin-inline: -12px;
    padding-inline: 12px;
  }
  .review-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
}

/* ==========================================================================
   CARD DE DESTINO & LOCALIZAÇÃO (Padrão Resorts & Hotéis de Luxo)
   Acesso nativo a Waze, Google Maps e cópia de endereço com 1 toque
   ========================================================================== */
.destination-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 38px -10px rgba(18, 59, 61, 0.16), 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(18, 59, 61, 0.08);
  margin-top: 26px;
  max-width: 470px;
}

.destination-card__map {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e8e3d8;
}

.destination-card__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) contrast(1.08) saturate(1.1);
  display: block;
}

.destination-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 59, 61, 0.4) 0%, rgba(18, 59, 61, 0.15) 45%, rgba(18, 59, 61, 0.72) 100%);
  pointer-events: none;
}

.destination-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  font: 700 11px/1.3 'DM Sans', sans-serif;
  color: var(--ink, #123b3d);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.destination-card__badge .icon {
  width: 14px;
  height: 14px;
  color: var(--coral, #eb7e5c);
}

.destination-card__pin-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}

.destination-card__pulse {
  position: absolute;
  top: -6px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(235, 126, 92, 0.45);
  animation: pulse-radar 2.4s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}

.destination-card__pin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--coral, #eb7e5c);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(235, 126, 92, 0.6);
  border: 2.5px solid #ffffff;
  position: relative;
  z-index: 2;
}

.destination-card__pin .icon {
  width: 18px;
  height: 18px;
}

.destination-card__tooltip {
  background: rgba(18, 59, 61, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  margin-top: 8px;
  text-align: center;
  font: 400 11px/1.35 'DM Sans', sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.destination-card__tooltip strong {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: var(--cream, #fffcf4);
}

.destination-card__footer {
  padding: 16px 18px 18px;
  background: #ffffff;
}

.destination-card__title {
  display: block;
  font: 700 10px/1 'DM Sans', sans-serif;
  letter-spacing: .15em;
  color: var(--coral-deep, #9a4a31);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.destination-card__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.dest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 10px;
  font: 700 12px/1 'DM Sans', sans-serif;
  text-decoration: none;
  border: 1px solid var(--line, #e5ded1);
  background: var(--sand, #f6f2e9);
  color: var(--ink, #123b3d);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.dest-btn .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.dest-btn--google:hover {
  background: #ffffff;
  border-color: #4285F4;
  color: #1a73e8;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
  transform: translateY(-2px);
}

.dest-btn--waze:hover {
  background: #ffffff;
  border-color: #33ccff;
  color: #0588b3;
  box-shadow: 0 4px 12px rgba(51, 204, 255, 0.2);
  transform: translateY(-2px);
}

.dest-btn--copy:hover {
  background: var(--ink, #123b3d);
  color: #ffffff;
  border-color: var(--ink, #123b3d);
  transform: translateY(-2px);
}

.dest-btn:active {
  transform: scale(0.96);
}

.dest-btn--copy.is-copied {
  background: #2e7d32 !important;
  color: #ffffff !important;
  border-color: #2e7d32 !important;
}

@keyframes pulse-radar {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .destination-card__buttons {
    grid-template-columns: 1fr 1fr;
  }
  .dest-btn--copy {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .destination-card__pulse {
    animation: none;
    display: none;
  }
}
