/* Custom Styling for Carina Oliveira Fotografias */
/* Color Palette: Laranja e Branco (Orange & White Luxury Theme) */
/* Modo 100% Estático: Sem animações e sem transições */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand: #ea580c;
  --brand-light: #f97316;
  --brand-lighter: #ffedd5;
  --brand-dark: #c2410c;
  --brand-glow: rgba(234, 88, 12, 0.2);
  --bg-primary: #ffffff;
  --bg-secondary: #fafaf9;
  --bg-tertiary: #f4f4f5;
  --text-main: #09090b;
  --text-muted: #52525b;
  --border-light: #e4e4e7;
}

/* Animações e transições reativadas */
html {
  background-color: #ffffff;
  color: #09090b;
  scroll-behavior: smooth;
}

a, button, .glass-card, .portfolio-overlay, .faq-icon, .toggle-slider, .toggle-slider:before, img {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -12px rgba(234, 88, 12, 0.18);
}


body {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #18181b;
  overflow-x: hidden;
  position: relative;
}

.font-serif-luxury {
  font-family: 'Cormorant Garamond', serif;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f4f4f5;
}
::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* Mouse Follower Glow desativado */
#cursor-glow {
  display: none !important;
}

/* Ambient Subtle Highlights */
.ambient-glow-1 {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: absolute;
  top: 45%;
  right: 0%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 237, 213, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-3 {
  position: absolute;
  bottom: 8%;
  left: 0%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Glassmorphism & Cards Estáticos */
.glass-nav {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(228, 228, 231, 0.8);
}

.glass-card {
  background: #ffffff;
  border: 1px solid rgba(228, 228, 231, 0.9);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

/* Portrait Frame */
.portrait-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 35px -5px rgba(249, 115, 22, 0.25);
  border: 4px solid #ffffff;
}

/* Degradê laranja de baixo para cima na seção principal (leve, baixa opacidade) */
.hero-gradient {
  background: linear-gradient(to top, rgba(251, 146, 60, 0.18) 0%, rgba(255, 237, 213, 0.08) 45%, rgba(255, 255, 255, 0.95) 100%);
  position: relative;
}
.hero-gradient::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to top, rgba(234, 88, 12, 0.09) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Portrait Frame + Slideshow Integrado */
.portrait-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 35px -5px rgba(249, 115, 22, 0.25);
  border: 4px solid #ffffff;
  background-color: #18181b;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Indicadores de slide estilo Apple pills */
.hero-dots {
  padding: 0.35rem 0.6rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero-dot.is-active {
  width: 22px;
  background: #ea580c;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.85);
}

.hero-caption {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-caption.is-updating {
  opacity: 0;
  transform: translateY(3px);
}

/* Grande botão laranja com efeito glass estilo Apple */
.glass-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.15rem 2rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 9999px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92) 0%, rgba(234, 88, 12, 0.96) 55%, rgba(194, 65, 12, 0.98) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.15),
    0 12px 32px -6px rgba(234, 88, 12, 0.42),
    0 4px 12px -2px rgba(234, 88, 12, 0.25);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.glass-cta:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.1),
    0 18px 40px -6px rgba(234, 88, 12, 0.52),
    0 6px 16px -2px rgba(234, 88, 12, 0.3);
  color: #ffffff !important;
}

.glass-cta:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 
    inset 0 2px 4px 0 rgba(0, 0, 0, 0.2),
    0 6px 16px -4px rgba(234, 88, 12, 0.35);
}

.glass-cta-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: glass-shine 4s ease-in-out infinite;
}

@keyframes glass-shine {
  0%, 70% { left: -100%; }
  100% { left: 160%; }
}

.glass-cta-icon {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-cta:hover .glass-cta-icon {
  transform: translateX(4px);
}

/* ========================================================
   Seção 2: Blocos Interativos de Categorias (Apple Style)
======================================================== */
.category-card {
  cursor: pointer;
  outline: none;
  border-radius: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-8px);
}

.category-card-media {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(228, 228, 231, 0.9);
  transition: box-shadow 0.35s ease;
}

.category-card:hover .category-card-media {
  box-shadow: 0 20px 45px -12px rgba(234, 88, 12, 0.3), 0 0 0 2px rgba(234, 88, 12, 0.5);
}

.category-card-img {
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.category-card:hover .category-card-img {
  transform: scale(1.08);
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-pill-active {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ea580c;
  background: #ffedd5;
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: 9999px;
}

.category-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.category-card:hover .category-cta-btn,
.category-cta-btn:hover {
  background: #ea580c;
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(234, 88, 12, 0.6);
}

/* ========================================================
   Modal Interativo de Exemplos (Entrar no Bloco)
======================================================== */
.category-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-modal-backdrop.is-open {
  display: flex !important;
  opacity: 1;
}

.category-modal-container {
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(228, 228, 231, 0.9);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(234, 88, 12, 0.1);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-modal-backdrop.is-open .category-modal-container {
  transform: scale(1) translateY(0);
}

.category-modal-header {
  padding: 1.75rem 2rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(228, 228, 231, 0.8);
}

.category-modal-close-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #f4f4f5;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(228, 228, 231, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

.category-modal-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #fafaf9;
  border-bottom: 1px solid rgba(228, 228, 231, 0.8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-tab-btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #52525b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-tab-btn:hover {
  border-color: #ea580c;
  color: #ea580c;
}

.category-tab-btn.is-active {
  background: #ea580c !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.category-modal-body {
  padding: 1.75rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .category-modal-body {
    grid-template-columns: 1.4fr 1fr;
  }
}

.category-modal-gallery-list {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.category-modal-gallery-list::-webkit-scrollbar {
  width: 6px;
}

.category-modal-gallery-list::-webkit-scrollbar-track {
  background: #f4f4f5;
  border-radius: 9999px;
}

.category-modal-gallery-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.category-modal-gallery-list::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

.category-photo-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.25);
}

.category-photo-book-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-photo-book-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px -2px rgba(37, 211, 102, 0.5);
}

.category-modal-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
}

/* Map frame & controls */
.map-container {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(228, 228, 231, 0.9);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
}

/* Gallery Portfolio (Estático) */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.portfolio-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(15, 23, 42, 0.9) 100%);
  opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Lightbox Modal (Estático) — !important necessário para sobrepor class flex do Tailwind */
.lightbox-modal {
  display: none !important;
}

.lightbox-modal.active {
  display: flex !important;
}

/* Filter Tag */
.filter-btn.active {
  background-color: #ea580c !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

/* Accordion */
details summary::-webkit-details-marker {
  display: none;
}
details summary {
  list-style: none;
}
details[open] summary .faq-icon {
  transform: rotate(180deg);
  color: #ea580c;
}

/* Visibilidade estática padrão de todos os blocos */
.reveal-on-scroll,
.reveal-fade-left,
.reveal-fade-right {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Estrelas das Avaliações (Ativas e Estáticas) */
.star-item {
  display: inline-block;
  opacity: 1 !important;
  transform: none !important;
  color: #ea580c !important;
  text-shadow: 0 1px 4px rgba(234, 88, 12, 0.25);
}

/* Instagram Branding */
.instagram-gradient-btn {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Cookies LGPD & GDPR (Estático) */
/* Cookie banner: oculto por padrão via CSS (JS remove a classe quando necessário) */
.cookie-banner {
  display: none !important;
}

.cookie-banner.visible-banner {
  display: block !important;
}

.cookie-banner.hidden-banner {
  display: none !important;
}

/* Cookie modal: !important para sobrepor class flex do Tailwind */
.cookie-modal {
  display: none !important;
}

.cookie-modal.active {
  display: flex !important;
}

/* Custom Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e4e4e7;
  border-radius: 9999px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

input:checked + .toggle-slider {
  background-color: #ea580c;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

input:disabled + .toggle-slider {
  background-color: #f97316;
  opacity: 0.85;
  cursor: not-allowed;
}

/* ========================================================
   ANIMAÇÕES (leves: apenas transform/opacity na GPU)
======================================================== */

/* 1. Revelação de textos/blocos ao rolar a página */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.reveal-zoom {
  transform: scale(0.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 2. Cores animadas */
@keyframes brand-gradient-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Palavras de destaque dos títulos com degradê laranja em movimento */
span.font-serif.italic.text-brand {
  background-image: linear-gradient(100deg, #c2410c 0%, #ea580c 25%, #fb923c 50%, #f59e0b 65%, #ea580c 85%, #c2410c 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-right: 0.08em; /* evita corte do itálico */
  animation: brand-gradient-flow 7s ease-in-out infinite;
}

/* Botões de agendamento com degradê vivo */
.cta-gradient {
  background-image: linear-gradient(110deg, #c2410c, #ea580c, #fb923c, #f59e0b, #ea580c, #c2410c);
  background-size: 300% 100%;
  animation: brand-gradient-flow 6s ease-in-out infinite;
}

.cta-gradient:hover {
  filter: brightness(1.06) saturate(1.1);
}

/* Ponto "Agenda Aberta" pulsando */
.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #ea580c;
  animation: pulse-ring 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Brilhos de fundo flutuando suavemente */
.ambient-glow-1 { animation: glow-float-center 14s ease-in-out infinite; }
.ambient-glow-2 { animation: glow-float 18s ease-in-out infinite; }
.ambient-glow-3 { animation: glow-float 16s ease-in-out infinite reverse; }

@keyframes glow-float-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-46%, -54%) scale(1.08); }
}

@keyframes glow-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-30px, 24px, 0) scale(1.1); }
}

/* 3. Barra de progresso de leitura + estrelas das avaliações */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #c2410c, #ea580c, #fb923c, #f59e0b);
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.55);
  pointer-events: none;
}

.star-rating.stars-in .star-item {
  display: inline-block;
  animation: star-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.star-rating.stars-in .star-item:nth-child(1) { animation-delay: 0.25s; }
.star-rating.stars-in .star-item:nth-child(2) { animation-delay: 0.35s; }
.star-rating.stars-in .star-item:nth-child(3) { animation-delay: 0.45s; }
.star-rating.stars-in .star-item:nth-child(4) { animation-delay: 0.55s; }
.star-rating.stars-in .star-item:nth-child(5) { animation-delay: 0.65s; }

@keyframes star-pop {
  0%   { opacity: 0; transform: scale(0) rotate(-45deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Acessibilidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.reveal-zoom {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  span.font-serif.italic.text-brand,
  .cta-gradient,
  .pulse-dot::after,
  .ambient-glow-1,
  .ambient-glow-2,
  .ambient-glow-3,
  .glass-cta-shine,
  .star-rating.stars-in .star-item {
    animation: none !important;
  }
  .scroll-progress {
    display: none;
  }
}
