/* ==========================================================================
   Galeria Cãominhada Pet Shop Pantaneiro — Estilos Oficiais
   ========================================================================== */

:root {
  --cream: #fff9e8;
  --cream-deep: #f8edcf;
  --cream-card: #ffffff;
  --pink: #ff006e;
  --pink-dark: #d8005d;
  --pink-soft: rgba(255, 0, 110, 0.08);
  --yellow: #ffbe0c;
  --yellow-soft: rgba(255, 190, 12, 0.15);
  --orange: #f95607;
  --orange-soft: rgba(249, 86, 7, 0.1);
  --ink: #1f1f1f;
  --ink-light: #333333;
  --muted: #675d54;
  --muted-light: #94887e;
  --border-light: rgba(31, 31, 31, 0.08);
  --white: #fffef9;
  --container: 1280px;

  --shadow-sm: 0 4px 12px rgba(77, 39, 14, 0.06);
  --shadow-md: 0 12px 28px rgba(77, 39, 14, 0.1), 0 2px 8px rgba(77, 39, 14, 0.04);
  --shadow-lg: 0 20px 48px rgba(77, 39, 14, 0.14), 0 4px 14px rgba(77, 39, 14, 0.06);
  --shadow-button: 0 10px 22px rgba(255, 0, 110, 0.22), 0 2px 5px rgba(31, 31, 31, 0.08);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background-color: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding-top: 96px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

/* ==========================================================================
   Skip Link & Acessibilidade
   ========================================================================== */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 14px;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   Header da Galeria
   ========================================================================== */
.site-header {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 249, 232, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31, 31, 31, 0.06);
  transition: all var(--transition-normal);
}

.site-header.is-scrolled {
  background: rgba(255, 249, 232, 0.98);
  box-shadow: 0 8px 30px rgba(77, 39, 14, 0.08);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo--pantaneiro {
  width: 86px;
  height: 52px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: rgba(31, 31, 31, 0.14);
}

.brand-logo--caominhada {
  width: 130px;
  height: 52px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(31, 31, 31, 0.1);
  transition: all var(--transition-fast);
}

.btn-back-home:hover {
  background: #ffffff;
  color: var(--pink);
  border-color: var(--pink);
  transform: translateX(-3px);
  box-shadow: var(--shadow-sm);
}

.btn-back-home svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.btn-back-home:hover svg {
  transform: translateX(-2px);
}

.btn-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: var(--shadow-button);
  transition: all var(--transition-fast);
}

.btn-cta-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-cta-whatsapp:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(255, 0, 110, 0.28);
}

/* ==========================================================================
   Hero da Galeria
   ========================================================================== */
.gallery-hero {
  position: relative;
  padding: 64px 0 36px;
  text-align: center;
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.hero-decor--paw-1 {
  top: 15%;
  left: 4%;
  width: 68px;
  transform: rotate(-18deg);
  animation: floatPaw 6s ease-in-out infinite alternate;
}

.hero-decor--paw-2 {
  bottom: 10%;
  right: 5%;
  width: 74px;
  transform: rotate(24deg);
  animation: floatPaw 7s ease-in-out infinite alternate-reverse;
}

.hero-decor--flower {
  top: 22%;
  right: 8%;
  width: 58px;
  animation: spinSlow 28s linear infinite;
}

.hero-decor--leaf {
  bottom: 18%;
  left: 7%;
  width: 52px;
  transform: rotate(35deg);
}

@keyframes floatPaw {
  0% { transform: translateY(0) rotate(-18deg); }
  100% { transform: translateY(-12px) rotate(-10deg); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--pink);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 0, 110, 0.15);
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.gallery-hero h1 {
  margin: 0 auto 16px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
  max-width: 900px;
}

.gallery-hero h1 span.highlight {
  color: var(--pink);
  position: relative;
  display: inline-block;
}

.gallery-hero h1 span.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 12px;
  background: var(--yellow-soft);
  z-index: -1;
  border-radius: 6px;
}

.gallery-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}





/* ==========================================================================
   Barra de Controles & Filtros
   ========================================================================== */
/* ==========================================================================
   Grid de Fotos
   ========================================================================== */
.gallery-section {
  padding-bottom: 72px;
  min-height: 400px;
}

.gallery-canvas {
  width: 100%;
  padding-inline: 5px;
}

.photos-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #fff;
}

.photo-row {
  display: flex;
  gap: 5px;
  overflow: hidden;
  content-visibility: auto;
}

.photo-tile {
  position: relative;
  flex: none;
  height: 100%;
  overflow: hidden;
  background: #eee9df;
}

.photo-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  color: white;
  text-align: left;
}

.photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.photo-img.is-loaded { opacity: 1; }

.photo-download {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  box-shadow: 0 1px 5px #0002;
}

.photo-download:hover { background: var(--yellow); }
.photo-download svg { display: block; width: 100%; height: 100%; }
.photo-open:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; }
.photo-download:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

.photo-error {
  position: absolute;
  inset: 20% 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   Estados Vazios e Carregamento (Loading & Empty States)
   ========================================================================== */
.state-container {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 31, 31, 0.08);
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 30px auto;
}

.state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink);
}

.state-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.state-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}

.state-desc {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0 0 20px;
}

/* Loading Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--cream-deep);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Botão Carregar Mais
   ========================================================================== */
.load-more-wrapper {
  text-align: center;
  margin-top: 48px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.btn-load-more:hover {
  background: var(--pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-button);
}

.btn-load-more svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.btn-load-more:hover svg {
  transform: translateY(3px);
}

/* ==========================================================================
   Lightbox Modal (Visualizador em Tela Cheia)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-header {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  color: #ffffff;
}

.lightbox-counter {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.lightbox-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-btn-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.lightbox-btn-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.lightbox-btn-close:hover {
  background: var(--pink);
}

.lightbox-body {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 80px;
  overflow: hidden;
}

.lightbox-img-container {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 240ms ease, transform 240ms ease;
}

.lightbox-img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 5;
}

.lightbox-nav-btn:hover {
  background: var(--pink);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.lightbox-nav-btn--prev {
  left: 20px;
}

.lightbox-nav-btn--next {
  right: 20px;
}

.lightbox-footer {
  padding: 16px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-photo-meta {
  color: #ffffff;
}

.lightbox-photo-name {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.lightbox-photo-tag {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}

.lightbox-bottom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-lightbox-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--pink);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 16px rgba(255, 0, 110, 0.4);
  transition: all var(--transition-fast);
}

.btn-lightbox-download:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
}

.btn-lightbox-download svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-lightbox-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.btn-lightbox-share:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-lightbox-share svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-container.is-visible .toast {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  width: 18px;
  height: 18px;
  fill: var(--yellow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: #ffffff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .footer-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo--pantaneiro {
  width: 80px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-logo--caominhada {
  width: 120px;
  height: 48px;
  object-fit: contain;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--yellow);
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--pink);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--yellow);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-paw {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

/* ==========================================================================
   Responsividade Mobile & Tablets
   ========================================================================== */
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lightbox-body {
    padding: 10px 20px;
  }

  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
  }

  .lightbox-nav-btn--prev { left: 10px; }
  .lightbox-nav-btn--next { right: 10px; }
}

@media (max-width: 640px) {
  .gallery-hero .hero-decor {
    display: none;
  }

  body {
    padding-top: 84px;
  }

  .site-header {
    min-height: 84px;
  }

  .header-inner {
    min-height: 84px;
    gap: 10px;
  }

  .header-actions { gap: 8px; }
  .brand-lockup { gap: 8px; }

  .brand-logo--pantaneiro {
    width: 64px;
    height: 40px;
  }

  .brand-logo--caominhada {
    width: 96px;
    height: 40px;
  }

  .btn-back-home span {
    display: none;
  }

  .btn-cta-whatsapp span {
    display: none;
  }

  .btn-back-home, .btn-cta-whatsapp {
    padding: 10px;
    border-radius: 50%;
  }

  .gallery-hero {
    padding: 40px 0 24px;
  }


  .gallery-canvas { padding-inline: 5px; }
  .photos-grid, .photo-row { gap: 5px; }
  .photo-download { right: 5px; bottom: 5px; width: 40px; height: 40px; padding: 10px; }






  .lightbox-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .lightbox-bottom-actions {
    justify-content: stretch;
  }

  .btn-lightbox-download,
  .btn-lightbox-share {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.photo-download:disabled, .btn-lightbox-download:disabled { cursor: progress; opacity: 0.6; }
