/* Non-critical CSS - Loaded asynchronously to improve CWV */

/* Non-critical Neue Montreal Font Faces - Loaded asynchronously */
@font-face {
  font-family: 'Neue Montreal';
  src: url('/fonts/neue-montreal/NeueMontreal-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('/fonts/neue-montreal/NeueMontreal-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: optional;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('/fonts/neue-montreal/NeueMontreal-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: optional;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('/fonts/neue-montreal/NeueMontreal-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('/fonts/neue-montreal/NeueMontreal-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: optional;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('/fonts/neue-montreal/NeueMontreal-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: optional;
}

/* TipTap Editor Styles - Scoped to .rte-light to avoid conflicts with BlockNote */
.rte-light .ProseMirror {
  outline: none;
}

/* Force light theme for admin/blog editor so content area is never black */
.rte-light .ProseMirror {
  background: #fff !important;
  color: #171717 !important;
}

.rte-light .ProseMirror p.is-editor-empty:first-child::before {
  color: #9ca3af !important;
}

.rte-light .ProseMirror h1,
.rte-light .ProseMirror h2,
.rte-light .ProseMirror h3,
.rte-light .ProseMirror h4,
.rte-light .ProseMirror h5,
.rte-light .ProseMirror h6 {
  color: inherit !important;
}

.rte-light .ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: #9ca3af;
  pointer-events: none;
  height: 0;
}

.rte-light .ProseMirror img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

.rte-light .ProseMirror img.ProseMirror-selectednode {
  outline: 2px solid #3b82f6;
}

.rte-light .ProseMirror table {
  border-collapse: collapse;
  margin: 0;
  overflow: hidden;
  table-layout: fixed;
  width: 100%;
}

.rte-light .ProseMirror table td,
.rte-light .ProseMirror table th {
  border: 1px solid #ced4da;
  box-sizing: border-box;
  min-width: 1em;
  padding: 3px 5px;
  position: relative;
  vertical-align: top;
}

.rte-light .ProseMirror table th {
  background-color: #f1f3f5;
  font-weight: bold;
}

.rte-light .ProseMirror table .selectedCell:after {
  z-index: 2;
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(200, 200, 255, 0.4);
  pointer-events: none;
}

.rte-light .ProseMirror table .column-resize-handle {
  position: absolute;
  right: -2px;
  top: 0;
  bottom: -2px;
  width: 4px;
  background-color: #adf;
  pointer-events: none;
}

.rte-light .ProseMirror code {
  background-color: #f4f4f4;
  border-radius: 3px;
  padding: 2px 4px;
  font-family: monospace;
}

.rte-light .ProseMirror pre {
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Courier New', monospace;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

.rte-light .ProseMirror pre code {
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
  padding: 0;
}

.rte-light .ProseMirror blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
}

.rte-light .ProseMirror ul,
.rte-light .ProseMirror ol {
  padding-left: 1.5rem;
}

.rte-light .ProseMirror mark {
  background-color: #fef08a;
  border-radius: 0.25rem;
  padding: 0.125rem 0;
}

.rte-light .ProseMirror figure {
  margin: 1rem 0;
}

.rte-light .ProseMirror figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Heading Styles - Scoped to .rte-light to avoid conflicts with BlockNote */
.rte-light .ProseMirror h1 {
  font-size: 2em !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1rem !important;
  color: inherit;
}

.rte-light .ProseMirror h2 {
  font-size: 1.5em !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0.875rem !important;
  color: inherit;
}

.rte-light .ProseMirror h3 {
  font-size: 1.125em !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.75rem !important;
  color: inherit;
}

.rte-light .ProseMirror h4 {
  font-size: 1em !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-top: 0.875rem !important;
  margin-bottom: 0.625rem !important;
  color: inherit;
}

.rte-light .ProseMirror h5 {
  font-size: 0.875em !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0.5rem !important;
  color: inherit;
}

.rte-light .ProseMirror h6 {
  font-size: 0.75em !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  margin-top: 0.625rem !important;
  margin-bottom: 0.5rem !important;
  color: inherit;
}

.rte-light .ProseMirror p {
  font-size: 1em !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0.75rem !important;
  color: inherit;
}

/* Ensure inline color styles from TipTap Color extension work */
.rte-light .ProseMirror span[style*="color"],
.rte-light .ProseMirror [style*="color"] {
  /* Inline styles have highest specificity - they will work */
}

/* Override color: inherit for elements with inline color styles */
.rte-light .ProseMirror h1[style*="color"],
.rte-light .ProseMirror h2[style*="color"],
.rte-light .ProseMirror h3[style*="color"],
.rte-light .ProseMirror h4[style*="color"],
.rte-light .ProseMirror h5[style*="color"],
.rte-light .ProseMirror h6[style*="color"],
.rte-light .ProseMirror p[style*="color"] {
  color: unset !important;
}

/* Ensure textStyle marks with color attribute render correctly */
.rte-light .ProseMirror span[data-color] {
  /* color will be set via inline styles */
}

/* Allow inline color styles to work - remove any overrides */
.editor-content *[style*="color"] {
  /* Inline styles have highest specificity */
}

/* Ensure prose class doesn't override inline color styles */
.prose *[style*="color"] {
  /* Let the inline style attribute take precedence */
}

/* Selected heading highlighting */
.rte-light .ProseMirror h1.is-selected,
.rte-light .ProseMirror h2.is-selected,
.rte-light .ProseMirror h3.is-selected,
.rte-light .ProseMirror h4.is-selected,
.rte-light .ProseMirror h5.is-selected,
.rte-light .ProseMirror h6.is-selected {
  background-color: rgba(59, 130, 246, 0.1) !important;
  outline: 2px solid rgba(59, 130, 246, 0.3) !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

/* Selected text within headings */
.rte-light .ProseMirror h1 .is-selected,
.rte-light .ProseMirror h2 .is-selected,
.rte-light .ProseMirror h3 .is-selected,
.rte-light .ProseMirror h4 .is-selected,
.rte-light .ProseMirror h5 .is-selected,
.rte-light .ProseMirror h6 .is-selected {
  background-color: rgba(59, 130, 246, 0.2) !important;
}

/* Dark mode heading styles */
.dark .rte-light .ProseMirror h1,
.dark .rte-light .ProseMirror h2,
.dark .rte-light .ProseMirror h3,
.dark .rte-light .ProseMirror h4,
.dark .rte-light .ProseMirror h5,
.dark .rte-light .ProseMirror h6 {
  color: #ededed !important;
}

.dark .rte-light .ProseMirror h1.is-selected,
.dark .rte-light .ProseMirror h2.is-selected,
.dark .rte-light .ProseMirror h3.is-selected,
.dark .rte-light .ProseMirror h4.is-selected,
.dark .rte-light .ProseMirror h5.is-selected,
.dark .rte-light .ProseMirror h6.is-selected {
  background-color: rgba(59, 130, 246, 0.15) !important;
  outline-color: rgba(59, 130, 246, 0.4) !important;
}

/* Preview Mode Styles - Apply same heading sizes in preview */
.prose h1,
.prose h1 * {
  font-size: 2em !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1rem !important;
}

.prose h2,
.prose h2 * {
  font-size: 1.5em !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0.875rem !important;
}

.prose h3,
.prose h3 * {
  font-size: 1.125em !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.75rem !important;
}

.prose h4,
.prose h4 * {
  font-size: 1em !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-top: 0.875rem !important;
  margin-bottom: 0.625rem !important;
}

.prose h5,
.prose h5 * {
  font-size: 0.875em !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0.5rem !important;
}

.prose h6,
.prose h6 * {
  font-size: 0.75em !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  margin-top: 0.625rem !important;
  margin-bottom: 0.5rem !important;
}

.prose p {
  font-size: 1em !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  margin-top: 0 !important;
  margin-bottom: 1.5em !important;
}

/* Instagram Embed Styles - Consolidated (removed duplicates) */
.instagram-embed-wrapper,
.rte-light .ProseMirror .instagram-embed-wrapper,
.prose .instagram-embed-wrapper {
  margin: 2rem 0;
  padding: 1rem;
  border: 2px solid #e91e63;
  border-radius: 12px;
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
  position: relative;
  overflow: hidden;
}

.instagram-embed-wrapper::before,
.rte-light .ProseMirror .instagram-embed-wrapper::before {
  content: '📷 Instagram';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e91e63;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 1;
}

.instagram-embed-content,
.rte-light .ProseMirror .instagram-embed-content {
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-embed-content blockquote,
.rte-light .ProseMirror .instagram-embed-content blockquote {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.instagram-embed-content iframe,
.rte-light .ProseMirror .instagram-embed-content iframe {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 8px;
}

/* Dark mode Instagram embeds */
.dark .instagram-embed-wrapper {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-color: #ec4899;
}

.dark .instagram-embed-wrapper::before {
  color: #ec4899;
  background: rgba(0, 0, 0, 0.7);
}

/* Social Embed Styles (Instagram, TikTok, YouTube iframes in post content) */
.social-embed {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}
.social-embed iframe {
  display: block;
  margin: 0 auto;
}
.social-embed-instagram iframe {
  width: 100%;
  max-width: 540px;
  min-height: 760px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.social-embed-tiktok iframe {
  width: 100%;
  max-width: 605px;
  min-height: 740px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.social-embed-youtube iframe {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 12px;
}
/* Ensure prose doesn't clip social embeds */
.prose .social-embed,
.post-preview .social-embed {
  max-width: none;
}

/* BlockNote Multi-Column Layout */
.bn-block-column-list,
[data-node-type="columnList"] {
  display: flex !important;
  gap: 2rem !important;
  margin: 2rem 0;
}

.bn-block-column,
[data-node-type="column"] {
  min-width: 0;
  overflow: hidden;
  padding: 0.5rem;
}

/* Prose overrides for columns - don't restrict max-width inside columns */
.prose .bn-block-column-list,
.prose [data-node-type="columnList"],
.post-preview .bn-block-column-list,
.post-preview [data-node-type="columnList"] {
  max-width: none;
}

/* Column images - fill column width, reduce vertical spacing */
.bn-block-column img,
[data-node-type="column"] img {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  margin: 0.75rem auto !important;
  max-height: none !important;
}

/* Column paragraphs - tighter spacing */
.bn-block-column p,
[data-node-type="column"] p {
  margin-bottom: 0.75em !important;
}

/* Responsive: stack columns on small screens */
@media (max-width: 768px) {
  .bn-block-column-list,
  [data-node-type="columnList"] {
    flex-direction: column;
    gap: 1.5rem !important;
  }
}

/* Post Preview Styles */
.post-preview h1 {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  margin-bottom: 1.5rem !important;
}

.post-preview h2,
.post-preview h3 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.01em !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
}

.post-preview h4,
.post-preview h5,
.post-preview h6 {
  font-weight: 700 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
}

/* Paragraph spacing - double paragraph breaks for readability */
.post-preview p {
  text-align: left !important;
  line-height: 1.8 !important;
  margin-top: 0 !important;
  margin-bottom: 1.75em !important;
  font-size: 1rem !important;
  color: #374151 !important;
}

/* Remove excessive margin on last paragraph */
.post-preview p:last-child {
  margin-bottom: 0 !important;
}

/* Hide empty paragraphs generated by wpautop */
.post-preview p:empty {
  display: none !important;
}

/* Ensure <br> tags in content have visible spacing */
.post-preview br {
  display: block !important;
  content: "" !important;
  margin-top: 0.75em !important;
}

/* Consistent image sizing - constrain to uniform aspect ratio container */
.post-preview img:not(.lightbox-image),
.post-preview figure img:not(.lightbox-image),
.post-preview span img:not(.lightbox-image),
.post-preview [class*="inline-block"] img:not(.lightbox-image) {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 560px !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 2rem auto !important;
  border-radius: 8px !important;
}

/* Image figure/wrapper spacing */
.post-preview figure {
  margin: 2rem 0 !important;
  display: block !important;
  width: 100% !important;
}

.post-preview figure img {
  margin: 0 auto !important;
}

/* Chat Message Markdown Styles */
.prose a {
  color: #2563eb;
  text-decoration: underline;
}

.prose code {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

.prose pre {
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 0.75rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.prose strong {
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.prose li {
  margin: 0.25rem 0;
}

.prose blockquote {
  border-left: 3px solid #d1d5db;
  padding-left: 1rem;
  margin: 0.5rem 0;
  font-style: italic;
  color: #6b7280;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.875em;
}

.prose th,
.prose td {
  border: 1px solid #d1d5db;
  padding: 0.5rem;
  text-align: left;
}

.prose th {
  background-color: #f3f4f6;
  font-weight: 600;
}

.prose img,
.prose figure {
  margin-top: 20px;
  margin-bottom: 20px;
}

.prose hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1rem 0;
}

/* Driver.js tour styles */
.ww-tour-popover {
  background: #fff;
  border: 1px solid #f5d0dc;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 16px;
  max-width: 320px;
}

.ww-tour-popover .driver-popover-title {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.ww-tour-popover .driver-popover-description {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.ww-tour-popover .driver-popover-footer button {
  border-radius: 8px;
  border-color: #fda4af;
  color: #9f1239;
  text-shadow: none;
}

.ww-tour-popover .driver-popover-footer .driver-popover-next-btn {
  background-color: #e11d48;
  color: #fff;
  border-color: #e11d48;
}

/* Stripe Payment Element - Darken payment method icons */
.StripeElement svg path,
[data-testid="payment-method-button"] svg path,
.payment-method-button svg path,
.PaymentMethodIcon svg path,
[data-testid="apple-pay-button"] svg path,
.ApplePayButton svg path,
button[data-testid*="payment"] svg path,
button[class*="PaymentMethod"] svg path {
  fill: #111827 !important;
  stroke: #111827 !important;
}

/* Admin Panel - Fix light text on white backgrounds */
[data-admin] input[type="text"],
[data-admin] input[type="email"],
[data-admin] input[type="password"],
[data-admin] input[type="number"],
[data-admin] input[type="search"],
[data-admin] input[type="tel"],
[data-admin] input[type="url"],
[data-admin] input[type="date"],
[data-admin] input[type="datetime-local"],
[data-admin] input[type="time"],
[data-admin] textarea,
[data-admin] select {
  color: #111827 !important;
}

[data-admin] input::placeholder,
[data-admin] textarea::placeholder {
  color: #6b7280 !important;
}

[data-admin] select option {
  color: #111827 !important;
  background-color: #ffffff !important;
}

[data-admin] select {
  color: #111827 !important;
}

[data-admin] h1,
[data-admin] h2,
[data-admin] h3,
[data-admin] h4,
[data-admin] h5,
[data-admin] h6 {
  color: #111827 !important;
}

[data-admin] label {
  color: #111827 !important;
}

/* Custom Swiper Pagination Styles - Instagram-like */
.swiper-pagination-bullet-custom {
  background: rgba(255, 255, 255, 0.4) !important;
  width: 6px !important;
  height: 6px !important;
  opacity: 1 !important;
  border-radius: 50% !important;
  margin: 0 3px !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active-custom {
  background: white !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  opacity: 1 !important;
}

/* White pagination bullets for dark backgrounds */
.swiper-pagination-bullet-custom-white {
  background: rgba(255, 255, 255, 0.4) !important;
  width: 6px !important;
  height: 6px !important;
  opacity: 1 !important;
  border-radius: 50% !important;
  margin: 0 3px !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active-custom-white {
  background: white !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  opacity: 1 !important;
}

/* Marquee Animation for Trusted By Logos */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 120s linear infinite;
}

/* Faster marquee on mobile devices */
@media (max-width: 768px) {
  .animate-marquee {
    animation: marquee 120s linear infinite;
  }
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Mobile Menu Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.4s ease-out forwards;
}

/* Scroll Indicator Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* Hide scrollbar utility */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Safe area insets for mobile */
@supports (padding-top: env(safe-area-inset-top)) {
  .safe-top {
    padding-top: env(safe-area-inset-top);
  }
  .safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Touch-friendly tap highlight */
@media (hover: none) and (pointer: coarse) {
  button, a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}

/* Smooth transitions for cards */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* AI Chat Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideIn {
  animation: slideIn 0.3s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Better image loading placeholder */
.image-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Responsive container utility */
.container-luxury {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container-luxury {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container-luxury {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Text balance for better headlines */
.text-balance {
  text-wrap: balance;
}

/* Line clamp utilities */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Focus visible for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ===== Homepage Animation Utilities ===== */

/* Hero Section Animations - CSS-based for instant FCP/LCP */
@keyframes hero-slide-up {
  from {
    transform: translateY(100%);
    opacity: 1;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-hero-slide-up {
  animation: hero-slide-up 0.6s cubic-bezier(0.76, 0, 0.24, 1) both;
}

.animate-hero-fade-in {
  animation: hero-fade-in 0.5s ease-out both;
}

/* Respect reduced motion for hero animations */
@media (prefers-reduced-motion: reduce) {
  .animate-hero-slide-up,
  .animate-hero-fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Stagger fade-in for grid items */
@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-staggerFadeIn {
  animation: staggerFadeIn 0.6s ease-out forwards;
}

/* Pulse animation for CTAs */
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scroll-left-partners {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

.animate-pulse-cta {
  animation: pulse 2s ease-in-out infinite;
}

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .parallax-disabled {
    transform: none !important;
  }
}

/* Hide default Swiper navigation when using custom buttons */
.swiper-button-next,
.swiper-button-prev {
  display: none !important;
}

/* Fix for details open state - rotate plus icon when details is open */
details[open] .details-plus-icon {
  transform: rotate(45deg);
}
