* {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}

.text-gray-600 {
  color: #4b5563;
}

.star-rating {
  color: #fbbf24;
}

.backdrop-blur-sm {
  backdrop-filter: blur(8px);
}

/* ========== BUTTONS ========== */
.btn-primary {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.35);
  filter: brightness(108%);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(59, 130, 246, 0.3);
}

/* ========== TOUR CARDS ========== */
.tour-card {
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.tour-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-color: rgba(59, 130, 246, 0.12);
}

/* ========== NAVIGATION ========== */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #3B82F6;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ========== ACCESSIBILITY ========== */
.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-to-content:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  background: #3B82F6;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  outline: 2px solid white;
}

*:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* ========== FORM ERRORS ========== */
.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

input.error,
select.error,
textarea.error {
  border-color: #dc2626;
  background-color: #fee2e2;
}

html {
  scroll-padding-top: 5rem;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ========== HERO HEADING ========== */
#hero-heading {
  text-shadow: 0 2px 10px rgba(0,0,0,0.3), 0 4px 20px rgba(0,0,0,0.2);
}

#hero-heading .bg-gradient-to-r {
  background: linear-gradient(135deg, #bfdbfe 0%, #ffffff 25%, #e0f2fe 50%, #ffffff 75%, #bfdbfe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
  background-size: 200% auto;
  font-weight: 900;
  letter-spacing: -0.03em;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@media (max-width: 768px) {
  #hero-heading {
    text-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 3px 15px rgba(0,0,0,0.3);
  }
}

/* ========== TRUST BAR ========== */
.trust-stat {
  padding: 0.5rem 1rem;
}

/* ========== FACTS SECTION ========== */
.fact-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fact-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 20px 40px -8px rgba(59,130,246,0.15);
  transform: translateY(-4px);
}

.fact-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #eff6ff;
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
}

.fact-card-cta {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
  border-radius: 1.25rem;
  padding: 2rem;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fact-card-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -8px rgba(29,78,216,0.4);
}

/* ========== PHOTO GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 8px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 0.75rem;
  position: relative;
  aspect-ratio: 1;
}

.gallery-item--tall {
  grid-row: span 2;
  aspect-ratio: unset;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  border-radius: 0.75rem;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(0,0,0,0.12);
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .gallery-item--tall {
    grid-row: span 1;
    aspect-ratio: 1;
  }
  .gallery-item--wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
  }
}

/* ========== WHY FREE SECTION ========== */
.why-free-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.35s ease;
}

.why-free-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}

/* ========== REVIEW CARDS ========== */
.review-card {
  background: #f9fafb;
  border: 1px solid #f1f5f9;
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover {
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

/* ========== FAQ ========== */
.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover,
.faq-item[open] {
  box-shadow: 0 8px 25px -5px rgba(59,130,246,0.12);
  border-color: #bfdbfe;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: #1f2937;
  font-size: 1rem;
  list-style: none;
  user-select: none;
  gap: 1rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  color: #3b82f6;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

details[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: #4b5563;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ========== PRIVATE TOUR HIGHLIGHTS ========== */
.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.highlight-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px -5px rgba(59,130,246,0.12);
  transform: translateX(4px);
}

.highlight-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ========== MEDUGORJE FEATURE ========== */
.medugorje-feature {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #312e81 100%);
  border: 1px solid #6366f130;
}

/* ========== CONTENT LINK CARDS ========== */
.content-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 15px 30px -8px rgba(59,130,246,0.15);
  transform: translateY(-5px);
}

.content-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ========== STICKY CTA ========== */
.sticky-cta-bar {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

/* ========== ANIMATIONS ========== */
.animate-fade-in {
  animation: fadeIn 0.7s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ========== SUBPAGE STYLES ========== */

/* Page hero (for subpages) */
.page-hero {
  background: linear-gradient(to bottom right, #1e3a5f, #1d4ed8);
  padding: 5rem 0 4rem;
  color: white;
}

.page-hero-breadcrumb a {
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.page-hero-breadcrumb a:hover {
  color: white;
}

/* Long-form content typography */
.prose-mostar {
  color: #374151;
  line-height: 1.8;
}

.prose-mostar h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #111827;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.prose-mostar h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-mostar p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.prose-mostar strong {
  color: #111827;
  font-weight: 700;
}

.prose-mostar em {
  color: #374151;
}

.prose-mostar blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4b5563;
  background: #f0f9ff;
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.75rem 0.75rem 0;
}

.prose-mostar ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.prose-mostar ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.prose-mostar ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: 700;
}

/* Callout boxes for subpages */
.callout-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

.callout-amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

.callout-red {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Subpage section cards */
.subpage-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.subpage-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
  border-color: #bfdbfe;
}

/* Timeline for history pages */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6, #1e40af);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #3b82f6;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 800;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.timeline-body {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Itinerary steps */
.itinerary-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.itinerary-time {
  flex-shrink: 0;
  width: 5rem;
  text-align: right;
  font-weight: 700;
  color: #3b82f6;
  font-size: 0.875rem;
  padding-top: 0.2rem;
}

.itinerary-content {
  flex: 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  padding: 1.25rem 1.5rem;
}

.itinerary-content.highlight {
  border-color: #3b82f6;
  background: #eff6ff;
}

/* Photo spots for photography page */
.photo-spot {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.photo-spot:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 25px -5px rgba(59,130,246,0.12);
  transform: translateY(-3px);
}

.photo-spot-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: #3b82f6;
  color: white;
  border-radius: 0.625rem;
  font-weight: 800;
  font-size: 0.875rem;
  margin-bottom: 0.875rem;
}

/* Day trip destination cards */
.destination-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.destination-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
  transform: translateY(-6px);
}

.destination-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.destination-body {
  padding: 1.5rem 2rem 2rem;
}

/* Subpage nav (same as main) */
.subpage-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: gap 0.2s ease;
}

.subpage-nav-back:hover {
  gap: 0.75rem;
}

/* ========== TOUCH DEVICES: DISABLE TRANSFORM HOVERS ========== */
@media (hover: none) {
  .btn-primary:hover,
  .tour-card:hover,
  .fact-card:hover,
  .fact-card-cta:hover,
  .why-free-card:hover,
  .review-card:hover,
  .highlight-card:hover,
  .content-card:hover,
  .photo-spot:hover,
  .destination-card:hover,
  .subpage-card:hover {
    transform: none;
  }
}
