@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800&display=swap');

/* Custom Design System & Glassmorphism Utilities */

:root {
  --brand-primary: #C8860A;
  --brand-gold: #C8860A;
  --brand-dark: #a86d08;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* =========================================
   PUBLIC WEBSITE THEME - Gold #C8860A
   ========================================= */

/* Category filter pills on services/home pages */
.pub-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}
.pub-cat-pill:hover {
  border-color: #C8860A;
  color: #C8860A;
}
.pub-cat-pill.active {
  background: #C8860A;
  border-color: #C8860A;
  color: #fff;
}

/* Public services grid cards (JS-rendered) */
.pub-service-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.pub-service-card:hover {
  box-shadow: 0 8px 24px rgba(200,134,10,0.12);
  transform: translateY(-2px);
}
.pub-service-card .card-img {
  height: 160px;
  object-fit: cover;
  width: 100%;
}
.pub-service-card .card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pub-service-card .card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.pub-service-card .card-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  flex: 1;
}
.pub-service-card .card-price {
  font-size: 11px;
  color: #9ca3af;
}
.pub-service-card .card-price strong {
  color: #C8860A;
  font-size: 13px;
  font-weight: 700;
}
.pub-service-card .card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #C8860A;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 8px;
}
.pub-service-card .card-btn:hover {
  background: #a86d08;
}

/* Public navbar active link underline */
.pnav-btn.active-nav {
  color: #C8860A !important;
  border-bottom-color: #C8860A !important;
}

body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Custom Ambient Glassmorphism Styles */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(241, 245, 249, 0.8);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 35px -10px rgba(191, 126, 36, 0.12), 0 8px 20px -6px rgba(0, 0, 0, 0.05);
  border-color: rgba(217, 148, 54, 0.3);
}

.glass-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.glass-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Gradient Text Effect */
.text-gradient-gold {
  background: linear-gradient(135deg, #BF7E24 0%, #d99436 50%, #834e15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-gold {
  background: linear-gradient(135deg, #BF7E24 0%, #d99436 100%);
}

.bg-gradient-gold-dark {
  background: linear-gradient(135deg, #834e15 0%, #BF7E24 100%);
}

.bg-gradient-slate {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Ambient Background Blobs */
.bg-ambient-mesh {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(217, 148, 54, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(217, 148, 54, 0.05) 0px, transparent 50%);
}

/* Glowing Pulsing Animations */
.glow-pulse-emerald {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-emerald 2s infinite;
}

@keyframes pulse-emerald {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.glow-pulse-gold {
  box-shadow: 0 0 0 0 rgba(191, 126, 36, 0.4);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(191, 126, 36, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(191, 126, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(191, 126, 36, 0);
  }
}

/* Custom Styled Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.6);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.8);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(191, 126, 36, 0.5);
}

/* Invoice Print & PDF Export Rules (Exact A4 Color Print) */
@media print {
  /* ── A4 Page Setup ── */
  @page {
    size: A4 portrait;
    margin: 6mm 8mm;
  }

  html, body {
    width: 210mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* ── Hide everything on page except the invoice ── */
  body * {
    visibility: hidden !important;
  }

  #print-area, #print-area * {
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* ── Position print-area to fill A4 ── */
  #print-area {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  /* ── Force inline-style background colors (already done, but belt+suspenders) ── */
  #print-area [style*="background-color:#1e3a5f"],
  #print-area [style*="background-color: #1e3a5f"] {
    background-color: #1e3a5f !important;
    color: #ffffff !important;
  }

  /* ── Hide non-print elements ── */
  .pdf-hide,
  .print\:hidden,
  button,
  header,
  nav,
  aside,
  #inv-subtabs-nav,
  #inv-spanel-list,
  #inv-spanel-create,
  .invoices-panel:not(#inv-spanel-view),
  #inv-spanel-view > div:first-child {
    display: none !important;
    visibility: hidden !important;
  }
}

/* ========================================================
   MOBILE RESPONSIVENESS ENHANCEMENTS
   ======================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

img, iframe, video {
  max-width: 100%;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

@media (max-width: 640px) {
  .tab-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .modal-dialog {
    margin: 0.5rem;
    max-height: 92vh;
  }
}


