/* Lidia Aesthetics - Elegant Gold/Nude Theme */

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

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out both;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out 0.3s both;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out 0.3s both;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Service dropdown hover - handled by .services-dropdown rules at bottom */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5efe6;
}

::-webkit-scrollbar-thumb {
  background: #c9a96e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8953d;
}

/* Lightbox styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: #c9a96e;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 48px;
  cursor: pointer;
  z-index: 10000;
  padding: 10px;
  transition: color 0.3s;
}

.lightbox-nav:hover {
  color: #c9a96e;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Gallery masonry */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-grid > * {
  break-inside: avoid;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #c9a96e;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
}

/* Service page hero */
.service-hero {
  background: linear-gradient(135deg, #2c2c2c 0%, #2c2c2c 50%, rgba(201, 169, 110, 0.25) 100%);
  position: relative;
  overflow: hidden;
}

.service-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(201, 169, 110, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Pulsing CTA */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4); }
  50% { box-shadow: 0 0 20px 5px rgba(201, 169, 110, 0.2); }
}

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

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: #c9a96e;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  z-index: 40;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #b8953d;
}

/* Gold underline accent for headings */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c9a96e, #d4b877);
  border-radius: 2px;
}

/* Elegant card style */
.elegant-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 3px solid transparent;
  transition: all 0.4s ease;
}

.elegant-card:hover {
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.2);
  border-bottom-color: #c9a96e;
  transform: translateY(-4px);
}

/* Serif heading style */
.heading-serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Warm overlay for hero images */
.warm-overlay {
  position: relative;
}

.warm-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 44, 44, 0.85) 0%, rgba(44, 44, 44, 0.6) 50%, rgba(201, 169, 110, 0.3) 100%);
  z-index: 1;
}

/* Divider line with gold */
.gold-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a96e, transparent);
  margin: 0 auto;
}

/* AOS overrides for smoother feel */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== i18n FOUC Prevention ========== */
.i18n-loading [data-i18n],
.i18n-loading [data-i18n-placeholder],
.i18n-loading [data-i18n-alt] {
  visibility: hidden;
}

/* ========== Language Toggle ========== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 2px;
}

.lang-toggle button {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

/* ========== Mobile-First Responsive Improvements ========== */

/* Touch-friendly services dropdown */
.services-dropdown {
  display: none;
}

.services-dropdown.open {
  display: block;
}

/* Preserve hover on desktop with mouse */
@media (hover: hover) and (pointer: fine) {
  .group:hover .services-dropdown {
    display: block;
  }
}

/* Touch targets & mobile UX */
@media (max-width: 1023px) {
  /* Mobile menu links - minimum touch target */
  #mobile-menu a,
  #mobile-menu button {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Gallery filter buttons */
  .gallery-filter-btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Form elements */
  input, select, textarea {
    min-height: 44px;
  }

  /* Lightbox nav buttons */
  .lightbox-nav {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Social icons touch padding */
  header .fa-brands {
    padding: 10px;
    margin: -10px;
  }
}

/* Back-to-top button mobile positioning */
@media (max-width: 640px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* CTA buttons stack vertically on very small screens */
@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .cta-buttons a,
  .cta-buttons button {
    width: 100%;
    text-align: center;
  }
}

/* Mobile services submenu in hamburger */
.mobile-services-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-services-submenu.open {
  max-height: 500px;
}

.mobile-services-toggle .fa-chevron-down {
  transition: transform 0.3s ease;
}

.mobile-services-toggle.active .fa-chevron-down {
  transform: rotate(180deg);
}
