/* ==========================================================================
   LEVEL FOUR STUDIO — CUSTOMER HUB & MARKETING PORTAL STYLES (v5.0)
   Brand Identity: Midnight Deep Black, Pure White, Refined Metallic Gold
   ========================================================================== */

:root {
  --ch-bg-base: #07070A;
  --ch-bg-card: #0F0F16;
  --ch-bg-card-hover: #151520;
  --ch-bg-elevated: #161622;
  --ch-border-subtle: rgba(255, 255, 255, 0.08);
  --ch-border-gold: rgba(212, 175, 55, 0.3);
  --ch-border-gold-strong: #D4AF37;
  --ch-gold-primary: #D4AF37;
  --ch-gold-light: #F3E5AB;
  --ch-gold-gradient: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA7C11 100%);
  --ch-text-main: #FFFFFF;
  --ch-text-muted: #A1A1AA;
  --ch-text-dim: #71717A;
  --ch-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Customer Hub Container */
.customer-hub-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  color: var(--ch-text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Section 1: Welcome Header Card */
.ch-welcome-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(15, 15, 22, 0.95) 100%);
  border: 1px solid var(--ch-border-gold);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ch-welcome-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ch-gold-gradient);
}

.ch-welcome-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.ch-welcome-title {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  color: #FFF;
  margin: 6px 0 4px;
  letter-spacing: 0.02em;
}

.ch-welcome-sub {
  color: var(--ch-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Quick Metrics Row */
.ch-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.ch-metric-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--ch-border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  transition: var(--ch-transition);
}

.ch-metric-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.ch-metric-label {
  font-size: 0.72rem;
  color: var(--ch-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.ch-metric-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.1;
}

.ch-metric-val.gold {
  color: var(--ch-gold-light);
}

.ch-metric-sub {
  font-size: 0.7rem;
  color: var(--ch-text-muted);
  margin-top: 4px;
}

/* Quick Actions Nav Bar */
.ch-quick-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--ch-border-subtle);
  padding-top: 20px;
}

.ch-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ch-border-subtle);
  color: #FFF;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--ch-transition);
}

.ch-action-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--ch-border-gold-strong);
  color: var(--ch-gold-light);
  transform: translateY(-1px);
}

.ch-action-btn.primary {
  background: var(--ch-gold-gradient);
  color: #000;
  border-color: var(--ch-gold-primary);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.ch-action-btn.primary:hover {
  background: #FFF;
  color: #000;
}

/* Section Header Titles */
.ch-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 36px 0 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.ch-section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.45rem;
  color: #FFF;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ch-section-title span.icon {
  font-size: 1.3rem;
}

.ch-section-sub {
  font-size: 0.85rem;
  color: var(--ch-text-muted);
  margin: 4px 0 0;
}

/* Section 2: Promotional Carousel */
.ch-promo-carousel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.ch-promo-banner-main {
  background: linear-gradient(135deg, #14141E 0%, #0A0A10 100%);
  border: 1px solid var(--ch-border-gold);
  border-radius: 14px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.ch-promo-banner-main::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ch-promo-side-card {
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-border-subtle);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Section 3: 6-Pillar Service Discovery Cards */
.ch-pillar-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.ch-pillar-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ch-border-subtle);
  color: var(--ch-text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ch-transition);
}

.ch-pillar-tab-btn:hover,
.ch-pillar-tab-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--ch-gold-primary);
  color: var(--ch-gold-light);
}

.ch-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.ch-service-card {
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--ch-transition);
  display: flex;
  flex-direction: column;
}

.ch-service-card:hover {
  border-color: var(--ch-border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.ch-service-card-image {
  height: 160px;
  background: #14141D;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ch-service-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ch-service-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF;
  margin: 0 0 6px;
}

.ch-service-card-desc {
  font-size: 0.82rem;
  color: var(--ch-text-muted);
  line-height: 1.5;
  margin: 0 0 14px;
  flex: 1;
}

.ch-service-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.75rem;
  color: var(--ch-text-dim);
}

.ch-service-benefits li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ch-service-benefits li::before {
  content: '✓';
  color: var(--ch-gold-primary);
  font-weight: bold;
}

.ch-service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ch-border-subtle);
  padding-top: 14px;
  margin-top: auto;
}

.ch-service-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ch-gold-light);
}

.ch-service-price small {
  font-size: 0.7rem;
  color: var(--ch-text-dim);
  font-weight: normal;
  display: block;
}

/* Section 5: Announcements & Holiday Notices */
.ch-announcements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.ch-announcement-card {
  background: #101018;
  border: 1px solid var(--ch-border-subtle);
  border-left: 4px solid var(--ch-gold-primary);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  transition: var(--ch-transition);
}

.ch-announcement-card.holiday {
  border-left-color: #3B82F6;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, #101018 100%);
}

.ch-announcement-card.urgent {
  border-left-color: #EF4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, #101018 100%);
}

.ch-announcement-info strong {
  display: block;
  font-size: 0.95rem;
  color: #FFF;
  margin-bottom: 4px;
}

.ch-announcement-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ch-text-muted);
  line-height: 1.4;
}

.ch-announcement-date {
  font-size: 0.72rem;
  color: var(--ch-text-dim);
  margin-top: 4px;
  display: block;
}

/* Floating WhatsApp Button */
.ch-floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 999;
  text-decoration: none;
  transition: var(--ch-transition);
}

.ch-floating-whatsapp:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Quotation Request Modal */
.ch-quote-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ch-quote-modal-backdrop.open {
  display: flex;
}

.ch-quote-modal-box {
  background: #0D0D14;
  border: 1px solid var(--ch-border-gold);
  border-radius: 14px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .ch-promo-carousel {
    grid-template-columns: 1fr;
  }
  .customer-hub-wrapper {
    padding: 16px 14px 70px;
  }
  .ch-welcome-card {
    padding: 20px;
  }
}
