/* ═══════════════════════════════════════════════════
   PRICING PAGE — Styles (Mint palette)
   ═══════════════════════════════════════════════════ */

/* ─── Pricing Hero ─────────────────────────────── */

.pricing-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--mint-dark) 0%, var(--mint) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.pricing-hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border: 3px solid rgba(255,255,255,0.3);
  animation: pricingLogoFloat 3s ease-in-out infinite;
}
@keyframes pricingLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.pricing-hero .section-eyebrow {
  color: rgba(255,255,255,0.7);
}
.pricing-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.pricing-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}


/* ─── Pricing Section ─────────────────────────── */

.pricing-section {
  padding: 60px 0 100px;
  background: var(--off-white);
}


/* ─── Branch Tabs ─────────────────────────────── */

.branch-tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 40px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-100);
  background: var(--white);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  min-width: 200px;
  position: relative;
  overflow: hidden;
}
.tab-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mint-dark), var(--mint));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.tab-btn > * { position: relative; z-index: 1; }

.tab-btn:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tab-btn.active {
  border-color: var(--mint);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(82,188,182,0.25);
}
.tab-btn.active::before { opacity: 1; }

.tab-icon {
  font-size: 1.3rem;
}
.tab-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.35s;
}
.tab-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.35s;
}
.tab-btn.active .tab-label { color: var(--white); }
.tab-btn.active .tab-sub { color: rgba(255,255,255,0.8); }


/* ─── Branch Content ──────────────────────────── */

.branch-content {
  display: none;
}
.branch-content.active {
  display: block;
}


/* ─── Pricing Category Card ───────────────────── */

.pricing-category {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 0;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.pricing-category:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--mint-pale);
}

/* Card entrance animation */
.cat-animate {
  animation: catSlideIn 0.5s var(--ease) both;
}
@keyframes catSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ─── Category Header ─────────────────────────── */

.cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--mint-wash), var(--mint-bg));
  border-bottom: 1px solid var(--gray-100);
}

.cat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(82,188,182,0.12);
  flex-shrink: 0;
  color: var(--mint);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cat-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.pricing-category:hover .cat-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(82,188,182,0.2);
}

.cat-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.cat-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 2px;
}


/* ─── Price Table ─────────────────────────────── */

.price-table {
  padding: 8px 32px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-50);
  transition: background 0.2s;
}
.price-row:last-child {
  border-bottom: none;
}
.price-row:hover {
  background: var(--mint-bg);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: var(--radius-sm);
}

.price-name {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.price-dots {
  flex: 1;
  border-bottom: 2px dotted var(--gray-200);
  opacity: 0.5;
  min-width: 20px;
  margin-bottom: 4px;
}

.price-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mint-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.price-value::after {
  content: ' บาท';
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}


/* ─── Pricing Note ────────────────────────────── */

.pricing-note {
  margin-top: 32px;
  padding: 24px 32px;
  background: var(--mint-wash);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--mint);
}
.pricing-note > p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}
.note-branch {
  display: flex;
  align-items: center;
  gap: 12px;
}
.note-branch strong {
  font-size: 0.9rem;
  color: var(--text);
}
.note-branch a {
  font-size: 0.9rem;
  color: var(--mint-dark);
  font-weight: 600;
  transition: color 0.2s;
}
.note-branch a:hover { color: var(--mint); }


/* ─── Pricing CTA ─────────────────────────────── */

.pricing-cta {
  margin-top: 56px;
  text-align: center;
  padding: 48px 40px;
  background: var(--mint);
  border-radius: var(--radius-xl);
  color: var(--white);
}
.pricing-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.pricing-cta > p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.pricing-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.pricing-cta .btn-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--mint-dark);
  font-weight: 700;
}
.pricing-cta .btn-primary:hover {
  background: var(--mint-wash);
  border-color: var(--mint-wash);
  box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}
.pricing-cta .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.pricing-cta .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}


/* ─── Active nav link ─────────────────────────── */

.nav-links a.active {
  color: var(--mint-dark) !important;
  font-weight: 700;
  background: var(--mint-wash);
}


/* ═══════════════════ RESPONSIVE ═══════════════════ */

@media (max-width: 768px) {
  .pricing-hero { padding: 120px 0 80px; }
  .pricing-hero h1 { font-size: 1.8rem; }

  .branch-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .tab-btn {
    flex-direction: row;
    gap: 12px;
    padding: 16px 24px;
    min-width: auto;
  }
  .tab-btn .tab-icon { font-size: 1.2rem; }

  .cat-header {
    padding: 18px 20px;
    gap: 12px;
  }
  .cat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  .cat-header h3 { font-size: 1rem; }

  .price-table { padding: 4px 20px; }

  .price-row {
    flex-wrap: wrap;
    gap: 2px;
    padding: 12px 0;
  }
  .price-name {
    white-space: normal;
    font-size: 0.88rem;
    flex-basis: 100%;
  }
  .price-dots { display: none; }
  .price-value {
    font-size: 1rem;
    margin-left: auto;
  }

  .pricing-note { padding: 20px; }
  .note-branch { flex-direction: column; align-items: flex-start; gap: 4px; }

  .pricing-cta { padding: 36px 24px; }
  .pricing-cta h3 { font-size: 1.25rem; }
  .pricing-cta-buttons { flex-direction: column; align-items: center; }
  .pricing-cta-buttons .btn { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
  .pricing-hero h1 { font-size: 1.5rem; }
  .pricing-hero-desc { font-size: 0.9rem; }
  .cat-header h3 { font-size: 0.95rem; }
  .price-value { font-size: 0.92rem; }
}
