/* ==========================================================================
   LIGACO CONSTRUCTION THEME - MODERN STYLESHEET
   Replicating Next.js 15 UI with High-Performance CSS & Animations
   ========================================================================== */

:root {
  /* CONCEPT 1: ROYAL OBSIDIAN & CHAMPAGNE GOLD */
  --primary: #0D1E2D;
  --primary-hover: #132639;
  --primary-light: #FAF6ED;
  --accent: #C5A059;
  --accent-hover: #A37D32;
  --accent-light: #DFBF7A;
  --accent-glow: rgba(197, 160, 89, 0.35);
  --dark-footer: #081420;
  --dark-footer-bottom: #050D15;
  --bg-body: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Be Vietnam Pro', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism & Header */
.glass-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

/* Logo Auto-Fit & Responsive Sizing Constraints */
.site-logo,
.custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  max-height: 48px !important;
}

.custom-logo,
.site-logo img,
.custom-logo-link img {
  height: auto !important;
  max-height: 46px !important;
  width: auto !important;
  max-width: 210px !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 640px) {
  .custom-logo,
  .site-logo img,
  .custom-logo-link img {
    max-height: 36px !important;
    max-width: 150px !important;
  }
}

.footer-logo .custom-logo,
.footer-logo img {
  height: auto !important;
  max-height: 42px !important;
  width: auto !important;
  max-width: 190px !important;
  object-fit: contain !important;
  display: block !important;
}

.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

/* Container Spacing */
.container-custom {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Floating Vertical Section Indicators (01, 02, 03, 04) */
.floating-section-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

@media (min-width: 1280px) {
  .floating-section-nav {
    display: flex;
  }
}

.floating-section-nav a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  opacity: 0.6;
  transition: var(--transition);
}

.floating-section-nav a:hover {
  opacity: 1;
  color: var(--primary);
  transform: scale(1.15);
}

.floating-section-nav a.active {
  color: var(--primary);
  font-weight: 700;
  opacity: 1;
  transform: scale(1.2);
}

/* Slide-out Drawer Panel */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: linear-gradient(145deg, #132639 0%, #0D1E2D 60%, #081420 100%);
  color: #ffffff;
  border-left: 1px solid rgba(197, 160, 89, 0.25);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
  overflow-y: auto;
}

.drawer-panel.active {
  transform: translateX(0);
}

.drawer-panel .watermark-l {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.08;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 220px;
  font-weight: 900;
  color: #ffffff;
  user-select: none;
  transform: translate(25px, 35px) rotate(-12deg);
}

.drawer-nav a {
  display: block;
  text-align: right;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  letter-spacing: 0.025em;
  transition: transform 0.25s ease, color 0.25s ease;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  transform: translateX(-6px);
  color: #DFBF7A;
  font-weight: 700;
}

/* Hero Slider Section */
.hero-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0f172a;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider-container .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.hero-slider-container .swiper-pagination-bullet-active {
  width: 32px;
  background: #C5A059;
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px rgba(197, 160, 89, 0.85);
}

/* Watermark Background Graphic for Section 2 */
.watermark-bg {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.05;
  z-index: 0;
}

/* Card Hover Effects */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover .img-zoom img,
.group:hover .img-zoom img {
  transform: scale(1.08);
}

/* Expandable Search Modal */
.search-bar-expandable {
  display: none;
  background-color: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  padding: 1rem;
  animation: slideDown 0.3s ease forwards;
}

.search-bar-expandable.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography & Prose */
.prose-content {
  line-height: 1.8;
  color: #334155;
  font-size: 1.05rem;
}

.prose-content h1, .prose-content h2, .prose-content h3 {
  color: var(--primary);
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.prose-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

.prose-content blockquote {
  border-left: 4px solid #C5A059;
  background-color: rgba(197, 160, 89, 0.06);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-weight: 500;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #ffffff;
  color: #475569;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
  background: #0D1E2D;
  color: #DFBF7A;
  border-color: #C5A059;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.25);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, #C5A059 0%, #B8934A 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #B8934A 0%, #A37D32 100%);
  box-shadow: 0 6px 22px rgba(197, 160, 89, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-obsidian {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  background-color: #0D1E2D;
  color: #DFBF7A;
  border: 1px solid rgba(197, 160, 89, 0.4);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-obsidian:hover {
  background-color: #132639;
  border-color: #C5A059;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(13, 30, 45, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   ELEGANT MICRO-ANIMATIONS (INSPIRED BY NEWTECONS)
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Shimmer Light Reflection on Champagne Gold Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(25deg) translateX(-120%);
  transition: transform 0.7s ease;
}

.btn-primary:hover::after {
  transform: rotate(25deg) translateX(120%);
}

/* Smooth Card Hover with Champagne Accent Glow */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px -5px rgba(13, 30, 45, 0.12), 0 0 15px 0 rgba(197, 160, 89, 0.15);
  border-color: rgba(197, 160, 89, 0.4);
}

/* ==========================================================================
   SCROLL REVEAL & STAGGER ANIMATIONS (IntersectionObserver-Driven)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s ease-out;
  will-change: opacity;
}

.reveal-fade.is-revealed {
  opacity: 1;
}

.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ==========================================================================
   CHAMPAGNE GOLD FACADE SHIMMER / GLASS SHEEN ON CARDS
   ========================================================================== */
.gold-shimmer {
  position: relative;
  overflow: hidden;
}

.gold-shimmer::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    65deg,
    transparent 35%,
    rgba(223, 191, 122, 0.22) 50%,
    transparent 65%
  );
  transform: rotate(25deg) translateX(-140%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 20;
}

.gold-shimmer:hover::before {
  transform: rotate(25deg) translateX(140%);
}

/* ==========================================================================
   READING SCROLL PROGRESS BAR (TOP VIEWPORT)
   ========================================================================== */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #C5A059, #DFBF7A, #C5A059);
  z-index: 99999;
  transition: width 0.08s ease-out;
  pointer-events: none;
}

/* ==========================================================================
   FLOATING QUICK ACTIONS WIDGET (HOTLINE, ZALO, PDF PROFILE)
   ========================================================================== */
.floating-quick-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.floating-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(13, 30, 45, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.floating-action-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.floating-btn-phone {
  background: linear-gradient(135deg, #0D1E2D, #16324a);
  color: #DFBF7A;
  border: 1px solid rgba(197, 160, 89, 0.45);
}

.floating-btn-phone:hover {
  border-color: #C5A059;
  color: #FFFFFF;
}

.floating-btn-zalo {
  background: linear-gradient(135deg, #0068FF, #004ecc);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-btn-pdf {
  background: linear-gradient(135deg, #C5A059, #B8934A);
  color: #FFFFFF;
  border: 1px solid rgba(223, 191, 122, 0.6);
}

.pulse-ring-gold {
  position: relative;
}

.pulse-ring-gold::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid #C5A059;
  opacity: 0.6;
  animation: pulseGoldRing 2.2s infinite cubic-bezier(0.25, 0, 0, 1);
  pointer-events: none;
}

@keyframes pulseGoldRing {
  0% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(1.1); opacity: 0; }
}

