/* ==========================================================================
   CHIANG MAI HOTEL LAUNDRY - STYLESHEET
   บริษัท เชียงใหม่ ซักอบรีด จำกัด (CHIANGMAI LAUNDRY CO., LTD.)
   ========================================================================== */

:root {
  --primary-navy: #0B2545;
  --primary-deep: #133E68;
  --primary-blue: #1D63B8;
  --primary-light: #EBF4FC;
  --accent-cyan: #00A6FB;
  --accent-sky: #48CAE4;
  --accent-gold: #F59E0B;
  --accent-gold-dark: #D97706;
  --accent-emerald: #10B981;
  --accent-rose: #EF4444;
  --slate-dark: #1E293B;
  --slate-body: #475569;
  --slate-light: #F8FAFC;
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(226, 232, 240, 0.8);
  --glass-shadow: 0 20px 40px -15px rgba(11, 37, 69, 0.08);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Typography */
body {
  font-family: 'Prompt', 'Kanit', sans-serif;
  color: var(--slate-dark);
  background-color: #F8FAFC;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.font-kanit {
  font-family: 'Kanit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(11, 37, 69, 0.06);
}

.glass-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -5px rgba(11, 37, 69, 0.05);
  border-radius: 1.25rem;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -5px rgba(29, 99, 184, 0.12);
  border-color: rgba(0, 166, 251, 0.35);
}

.glass-card-elevated {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FBFE 100%);
  border: 1px solid rgba(190, 220, 250, 0.6);
  box-shadow: 0 15px 35px -5px rgba(19, 62, 104, 0.08);
}

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, #0B2545 0%, #133E68 50%, #1D63B8 100%);
}

.gradient-water {
  background: linear-gradient(135deg, #00A6FB 0%, #0077B6 100%);
}

.gradient-hero {
  background: radial-gradient(circle at top right, rgba(0, 166, 251, 0.15), transparent 45%),
              radial-gradient(circle at bottom left, rgba(29, 99, 184, 0.12), transparent 45%),
              linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.gradient-gold-soft {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.text-gradient-primary {
  background: linear-gradient(135deg, #0B2545 0%, #1D63B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00A6FB 0%, #0077B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Wave & Curve Shapes */
.wave-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* Interactive Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1D63B8 0%, #0077B6 100%);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 20px -5px rgba(29, 99, 184, 0.35);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(29, 99, 184, 0.45);
  background: linear-gradient(135deg, #16539C 0%, #006094 100%);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: 0.6s;
}

.btn-primary:hover::after {
  left: 200%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: #133E68;
  border: 1.5px solid #CBD5E1;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #1D63B8;
  color: #1D63B8;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(29, 99, 184, 0.1);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #06C755;
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 20px -5px rgba(6, 199, 85, 0.35);
  transition: all var(--transition-fast);
}

.btn-line:hover {
  background: #05B34C;
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(6, 199, 85, 0.45);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 20px -5px rgba(217, 119, 6, 0.35);
  transition: all var(--transition-fast);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(217, 119, 6, 0.45);
}

/* Pulse animation for CTA phone */
@keyframes soft-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 99, 184, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(29, 99, 184, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(29, 99, 184, 0);
  }
}

.pulse-primary {
  animation: soft-pulse 2s infinite;
}

@keyframes green-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(6, 199, 85, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 199, 85, 0);
  }
}

.pulse-line {
  animation: green-pulse 2.2s infinite;
}

/* Badge Styles */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-cyan {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.badge-emerald {
  background: #D1FAE5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.badge-gold {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

/* Service Card Feature List */
.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.glass-card:hover .service-icon-box {
  transform: scale(1.1) rotate(4deg);
}

/* Step Timeline connector */
.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: repeating-linear-gradient(to right, #93C5FD 0, #93C5FD 6px, transparent 6px, transparent 12px);
  z-index: 0;
}

@media (max-width: 1024px) {
  .step-connector::after {
    display: none;
  }
}

/* Interactive Calculator */
.calc-option-card {
  cursor: pointer;
  border: 2px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all var(--transition-fast);
  background: #FFFFFF;
}

.calc-option-card:hover {
  border-color: #93C5FD;
  background: #F8FBFE;
}

.calc-option-card.active {
  border-color: #1D63B8;
  background: #EFF6FF;
  box-shadow: 0 8px 20px -3px rgba(29, 99, 184, 0.15);
}

/* Range input customization */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #E2E8F0;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1D63B8;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(29, 99, 184, 0.4);
  transition: all 0.15s ease-in-out;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #0077B6;
}

/* Floating Quick Actions Bar */
.floating-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  font-size: 1.4rem;
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.12) translateY(-2px);
}

.float-btn .tooltip-text {
  position: absolute;
  right: 68px;
  background: rgba(15, 23, 42, 0.9);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.float-btn:hover .tooltip-text {
  opacity: 1;
  transform: translateX(0);
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 1.5rem;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(15px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Image Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.25rem;
  text-align: left;
}

.comparison-table tr:not(:last-child) td {
  border-bottom: 1px solid #E2E8F0;
}

.comparison-table .highlight-col {
  background: #F0F7FF;
  border-left: 2px solid #1D63B8;
  border-right: 2px solid #1D63B8;
}

.comparison-table tr:first-child .highlight-col {
  border-top: 2px solid #1D63B8;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.comparison-table tr:last-child .highlight-col {
  border-bottom: 2px solid #1D63B8;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  overflow: hidden;
  transition: all var(--transition-fast);
  background: #FFFFFF;
}

.faq-item:hover {
  border-color: #CBD5E1;
}

.faq-question {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #FFFFFF;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #F8FAFC;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  background: #FAFCFF;
  color: var(--slate-body);
  line-height: 1.7;
  padding: 0 1.5rem;
}

.faq-item.open {
  border-color: #93C5FD;
  box-shadow: 0 6px 16px -3px rgba(29, 99, 184, 0.08);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid #EFF6FF;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: #1D63B8;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1200;
  background: #0B2545;
  color: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(-50px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .floating-bar {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }
  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}
