/* Custom Styles for JUSTYTA Legal Services */

body {
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: #421111;
}

.font-decorative {
    font-family: 'Cinzel Decorative', cursive;
}
html, body {
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
/* Phone (default / up to 639px) */
#calendar-section {
  padding-top: 5rem; /* smaller padding */
}
/* 1️⃣  Break-point: 1366 × 768 (MacBook Pro 11 & similar) */
@media (min-width: 1024px) and (max-width: 1440px) and (max-height: 800px) {

  /* --- Calendar container --- */
  #calendar-section .max-w-6xl {
    max-width: 900px !important;   /* tighter wrapper */
  }

  /* --- Left calendar panel --- */
  #calendar-section .lg\:grid-cols-2 > div:first-child {
    padding: 1.5rem !important;    /* reduce from 2-2.5 rem */
  }

  /* Month header row */
  #calendar-section .lg\:grid-cols-2 > div:first-child h3 {
    font-size: 1.125rem !important; /* 18 px */
    margin-bottom: 1rem !important;
  }

  /* Calendar grid cells */
  #calendar-section .grid-cols-7 button {
    font-size: 0.75rem !important;  /* 12 px */
    padding: 0.25rem !important;
  }

  /* --- Right time-slot / form panel --- */
  #calendar-section .lg\:grid-cols-2 > div:last-child {
    padding: 1.5rem !important;
  }

  /* Time-slot buttons */
  #calendar-section .lg\:grid-cols-2 > div:last-child button {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important; /* 14 px */
  }

  /* Form inputs */
  #calendar-section input,
  #calendar-section select,
  #calendar-section textarea {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
  }

  /* Confirm button */
  #calendar-section button[type="submit"] {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
  }
  
}
.text-outline-cream {
  -webkit-text-stroke: 1px #c4af7e; /* brand-cream */
  text-stroke: 1px #c4af7e;
}
@keyframes flash-btnabout{
  0%, 100% { box-shadow: 0 0 0 0 #c4af7e; background-color: #fffbe6; }
  50% { box-shadow: 0 0 25px 8px #c4af7e; background-color: #f5f5dc; }
}
.flash-btnabout {
  animation: flash-btnabout 1.2s infinite;
}
@keyframes flash-btn {
  0%, 100% { box-shadow: 0 0 0 0 #a09a9a; background-color: #fffbe6; }
  50% { box-shadow: 0 0 25px 8px #421111; background-color: #f5f5dc; }
}
.flash-btn {
  animation: flash-btn 1.2s infinite;
}
@keyframes flash-btnservice {
  0%, 100% { box-shadow: 0 0 0 0 #04502E; background-color: #f5f5dc }
  50% { box-shadow: 0 0 15px 8px #04502E; background-color: #f5f5dc; }
}
.flash-btnservice {
  animation: flash-btnservice 1.2s infinite;
}
@keyframes twinkleani {
  0%, 100% { color: #0a3816; }      /* brand-gold */
  20% { color:  #0a3816; }           /* light gold/cream */
  40% { color: #0a3816; }           /* brand-cream */
  60% { color:  #0a3816; }
  80% { color: #421111; }
}
.twinkleani {
  animation: twinkleani 1.2s infinite;
}

@keyframes twinkletwikki {
  0%, 100% { 
    opacity: 1;
    color: #421111;      /* maroon */
  }
  50% { 
    opacity: 0.4;
    color:#f5f5dc;      /* cream/gold */
  }
}
.twinkletwikki {
  animation: twinkletwikki 1s infinite;
}

@keyframes twinkle {
  0%, 100% { color: #c4af7e; }      /* brand-gold */
  20% { color: #fffbe6; }           /* light gold/cream */
  40% { color: #f5f5dc; }           /* brand-cream */
  60% { color: #c4af7e; }
  80% { color: #fffbe6; }
}
.twinkle {
  animation: twinkle 1.2s infinite;
}
.flash-color {
  animation: flash-color 1s infinite;
}
/* Small tablets and up (>= 640px) */
@media (min-width: 640px) {
  #calendar-section {
    padding-top: 6rem;
  }
}

/* Tablets and up (>= 768px) */
@media (min-width: 768px) {
  #calendar-section {
    padding-top: 7rem;
  }
}

/* Small laptops (>= 1024px) */
@media (min-width: 1024px) {
  #calendar-section {
    padding-top: 8rem;
  }
}

/* Large laptops (>= 1280px) */
@media (min-width: 1280px) {
  #calendar-section {
    padding-top: 9rem;
  }
}

/* Desktops / very large screens (>= 1536px) */
@media (min-width: 1536px) {
  #calendar-section {
    padding-top: 10rem;
  }
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 .swiper-pagination-bullet {
    background: #f1f2f1 !important; /* Tailwind's green-500 */
    opacity: 0.5;
  }
  .swiper-pagination-bullet-active {
    background: #f1f2f1 !important; /* Tailwind's green-600 */
    opacity: 1;
  }

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Custom gradient text utilities */
.gradient-text-primary {
    background: linear-gradient(to right, #04502E, #0A4D4D, #6BBF6B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-secondary {
    background: linear-gradient(to right, #421111, #2B0B0B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom button styles */
.btn-primary {
    background-color: #C4AF7E;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.drop-shadow-creamheader {
  text-shadow: 0 2px 12px #f5f5dc, 0 1px 0 #f5f5dc;
}
.drop-shadow-creamheaderwikki {
  text-shadow: 0 10px 12px #421111, 0 1px 0 #421111;
}
.drop-shadow-creamheaderprini {
  text-shadow: 0 10px 12px  #f5f5dc, 0 1px 0  #f5f5dc;
}
.btn-primary:hover {
    background-color: #421111;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #04502E;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #0A4D4D;
    transform: scale(1.05);
}

.btn-tertiary {
    background-color: #421111;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-tertiary:hover {
    background-color: #2B0B0B;
    transform: scale(1.05);
}

/* Video container styles */
.video-container {
    position: relative;
    aspect-ratio: 16/9;
    background-color: rgba(247, 245, 242, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

/* Card styles */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(196, 175, 126, 0.3);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    transform: translateY(0);
}
.drop-shadow-green {
  text-shadow: 0 15px 16px  #C4AF7E, 0 1px 0 #C4AF7E;
}
.card:hover {
    box-shadow: 0 25px 50px -12px rgba(196, 175, 126, 0.3);
    transform: translateY(-0.5rem);
}

/* Stat counter styles */
.stat-counter {
    text-align: center;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #04502E;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(43, 11, 11, 0.7);
}

/* Language switcher styles */
.language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
}

.language-switcher .switcher-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(196, 175, 126, 0.2);
    padding: 0.5rem;
}

.language-switcher button {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-switcher button.active {
    background-color: #C4AF7E;
    color: white;
}

.language-switcher button:not(.active) {
    color: #421111;
}

.language-switcher button:not(.active):hover {
    background-color: #F7F5F2;
}

/* Navigation styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(247, 245, 242, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(196, 175, 126, 0.3);
}

/* Hero section styles */
.hero-section {
    background: #421111;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(157, 153, 144, 0.3);
    padding-top: 5rem;
}

/* FAQ styles */
.faq-item {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-button {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-button:hover {
    background-color: rgba(247, 245, 242, 0.3);
}

.faq-content {
    padding: 0 1.5rem 1rem 1.5rem;
}

/* Footer styles */
.footer {
    background-color: #2B0B0B;
    color: white;
    padding: 3rem 0;
}

.footer a:hover {
    color: #C4AF7E;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
    }
    
    .language-switcher {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Emoji styling fixes */
.emoji-natural {
    color: transparent !important;
    text-shadow: 0 0 0 #000 !important;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Android Emoji', sans-serif !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(to right, transparent, transparent) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Alternative approach - reset all color inheritance for emojis */
.emoji-reset {
    color: initial !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji' !important;
    display: inline-block;
}

/* Prevent emoji color inheritance in testimonials */
.testimonial-text .emoji-natural,
.testimonial-text .emoji-reset {
    display: inline-block;
    color: rgba(0,0,0,0) !important;
    text-shadow: 0 0 0 rgba(0,0,0,1) !important;
}

/* Loading skeleton styles for booking page */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Shimmer effect for skeleton */
.skeleton-shimmer {
    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;
    }
}

/* Loading spinner enhancement */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #C4AF7E;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Calendar specific skeletons */
.calendar-skeleton {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.calendar-day-skeleton {
    background: linear-gradient(135deg, #dee2e6, #ced4da);
    border-radius: 8px;
}

/* Prevent layout shift */
.booking-container {
    min-height: 600px;
    transition: all 0.3s ease;
}

/* Calendar date animations */
.calendar-date-available {
    background: linear-gradient(135deg, #04502E, #04502E);
    transform: scale(1);
    transition: all 0.2s ease;
}
.gradient-text-primary {
            background: linear-gradient(135deg, #D4AF37, #90EE90, #F5F5DC);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
.loading-spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #D4AF37;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Calendar date animations */
.calendar-date-available {
            background: linear-gradient(135deg, #04502e,  #04502e);
            transform: scale(1);
            transition: all 0.2s ease;
        }
        
.calendar-date-available:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
            background: linear-gradient(135deg,  #c4af7e,#c4af7e);
        }
        
.calendar-date-selected {
            background: linear-gradient(135deg, #4d1717, #4d1717);
            transform: scale(1.05);
            animation: pulse-selected 2s infinite;
        }
        
@keyframes pulse-selected {
            0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
            50% { box-shadow: 0 0 0 8px rgba(9, 174, 72, 0); }
        }
        
.calendar-date-unavailable {
            background: #f9fafb;
            color: #9ca3af;
            opacity: 0.6;
        }



/* Prevent Alpine.js elements from showing before initialization */
[x-cloak] { 
    display: none !important; 
}

/* Prevent cumulative layout shift */
.min-h-calendar {
    min-height: 600px;
}

@media (min-width: 640px) {
    .min-h-calendar {
        min-height: 700px;
    }
}

@media (min-width: 1024px) {
    .min-h-calendar {
        min-height: 800px;
    }
}

/* Calendar transition effects */
.calendar-transition {
    transition: all 0.3s ease-in-out;
}

/* Enhanced testimonial animations */
.testimonial-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Enhanced pulse animation */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}
