﻿/*
Theme Name: 303TRANSFERS
Theme URI: https://303transfers.pt
Author: 303TRANSFERS
Author URI: https://303transfers.pt
Description: Tema WordPress de transferes.
Version: 1.0.0
Text Domain: 303transfers
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
*/

:root {
  --color-primary: #080d13;
  --color-on-primary: #ffffff;
  --color-primary-container: #1e232a;
  --color-on-primary-container: #858a93;
  --color-primary-fixed-dim: #c2c7d0;

  --color-secondary: #5b604f;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #e0e5cf;
  --color-on-secondary-container: #616655;
  --color-secondary-fixed: #e0e5cf;
  --color-secondary-fixed-dim: #c4c9b4;

  --color-tertiary: #110c02;
  --color-tertiary-container: #282213;
  --color-tertiary-fixed: #eee1c9;
  --color-tertiary-fixed-dim: #d1c5ae;

  --color-surface: #faf9f6;
  --color-surface-bright: #faf9f6;
  --color-surface-dim: #dbdad7;
  --color-surface-container: #efeeeb;
  --color-surface-container-low: #f4f3f0;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-high: #e9e8e5;
  --color-surface-container-highest: #e3e2e0;

  --color-on-surface: #1a1c1a;
  --color-on-surface-variant: #45474b;
  --color-outline: #75777b;
  --color-outline-variant: #c5c6cb;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-surface);
  color: var(--color-on-surface);
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Animações Ultra Fluidas (Motion Dev Style) */
.motion-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

.motion-fade {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.motion-fade.is-visible {
  opacity: 1;
}


/* Tipografia Sem Serifa Moderna e Clean */
.font-display,
.font-headline-lg,
.font-headline-md,
.font-headline-sm {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}

.font-body-lg,
.font-body-md,
.font-body-sm,
.font-title,
.font-label-md,
.font-label-sm {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Backgrounds e Imagens de Alta Fidelidade usando placehold.co */
.bg-hero-cinematic {
  background-image: url('https://placehold.co/1920x1080');
  background-size: cover;
  background-position: center;
}

.bg-card-dolomitas {
  background-image: url('https://placehold.co/800x1000');
  background-size: cover;
  background-position: center;
}

.bg-card-kyoto {
  background-image: url('https://placehold.co/800x1000');
  background-size: cover;
  background-position: center;
}

.bg-card-patagonia {
  background-image: url('https://placehold.co/800x1000');
  background-size: cover;
  background-position: center;
}

.bg-card-sossusvlei {
  background-image: url('https://placehold.co/800x1000');
  background-size: cover;
  background-position: center;
}

.bg-gallery-norway {
  background-image: url('https://placehold.co/1200x900');
  background-size: cover;
  background-position: center;
}

.bg-gallery-greece {
  background-image: url('https://placehold.co/1200x900');
  background-size: cover;
  background-position: center;
}

.bg-gallery-marrakech {
  background-image: url('https://placehold.co/1200x900');
  background-size: cover;
  background-position: center;
}

.bg-gallery-japan {
  background-image: url('https://placehold.co/1200x900');
  background-size: cover;
  background-position: center;
}

.bg-philosophy-portrait {
  background-image: url('https://placehold.co/800x600');
  background-size: cover;
  background-position: center;
}

/* Galeria Parallax Desalinhada estilo Polaroid */
.polaroid-card {
  background-color: #ffffff;
  padding: 1rem 1rem 1.75rem 1rem;
  border-radius: 0.25rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  will-change: transform;
}

.polaroid-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.polaroid-rot-left {
  transform: rotate(-2.5deg);
}

.polaroid-rot-right {
  transform: rotate(2deg);
}

.polaroid-rot-left-subtle {
  transform: rotate(-1deg);
}

.polaroid-rot-right-subtle {
  transform: rotate(1.5deg);
}

.bg-gallery-patagonia-detail {
  background-image: url('https://placehold.co/1200x900');
  background-size: cover;
  background-position: center;
}

.bg-gallery-namibia-detail {
  background-image: url('https://placehold.co/1200x900');
  background-size: cover;
  background-position: center;
}

/* Modal Lightbox de Visualização em Tela Cheia Suave (Sem Piscar) */
.gallery-modal-backdrop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal-content {
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.gallery-modal-backdrop.is-open .gallery-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.gallery-modal-image {
  background-size: cover;
  background-position: center;
  transition: background-image 0.25s ease;
}

/* ==========================================================================
   Estilos de Dropdowns e Popovers Personalizados da Barra de Reserva
   ========================================================================== */
#hero-booking-bar {
  position: relative;
  z-index: 40;
}

.custom-dropdown-container {
  user-select: none;
  position: relative;
}

.custom-dropdown-container.is-open {
  z-index: 50;
}

.custom-dropdown-menu {
  box-shadow: 0 20px 35px -5px rgba(8, 13, 19, 0.18), 0 8px 16px -6px rgba(8, 13, 19, 0.12);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}

.custom-dropdown-container.is-open .custom-dropdown-menu {
  display: block !important;
}

.custom-dropdown-container.is-open [data-dropdown-arrow] {
  transform: rotate(180deg);
}

.custom-dropdown-item.is-selected {
  background-color: var(--color-surface-container);
}

.custom-dropdown-item.is-selected .check-indicator {
  opacity: 1;
}

/* Calendário Popover no Frontend */
.cal-day-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s ease;
  color: var(--color-on-surface);
}

.cal-day-cell:hover:not(.is-disabled):not(.is-empty) {
  background-color: var(--color-surface-container);
  color: var(--color-primary);
}

.cal-day-cell.is-selected {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  font-weight: 700;
}

.cal-day-cell.is-today:not(.is-selected) {
  border: 1.5px solid var(--color-secondary);
  font-weight: 700;
}

.cal-day-cell.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-day-cell.is-empty {
  cursor: default;
  pointer-events: none;
}

.time-slot-btn.is-active {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
}

/* Autocomplete de Locais (OpenStreetMap) */
.location-autocomplete-container {
  position: relative;
}

.location-autocomplete-container:focus-within {
  z-index: 50;
}

.autocomplete-results-menu {
  box-shadow: 0 20px 35px -5px rgba(8, 13, 19, 0.18), 0 8px 16px -6px rgba(8, 13, 19, 0.12);
  z-index: 60;
}

.autocomplete-item {
  transition: all 0.15s ease-in-out;
}

.autocomplete-item:hover {
  background-color: var(--color-surface-container);
}

/* ==========================================================================
   Header Fixo & Prevenção de FOUC (Flash de Estilo Não Formatado)
   ========================================================================== */
#site-header {
  background-color: #faf9f6;
  background-color: rgba(250, 249, 246, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(233, 232, 229, 0.8);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  #site-header {
    background-color: rgba(250, 249, 246, 0.88);
  }
}

/* Selo de Certificação no Rodapé */
.footer-cert-badge {
  width: 100%;
  max-width: 320px;
  background-image: url('https://app.paper.design/file-assets/01KJE80WA861FNW9RZF35YYEXQ/44ZY38KT6K186PR9WEJ585Q4KN.png');
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  filter: brightness(20%);
}