@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap');

/* ── BizCard 2.0 — Public Card CSS ──────────────────────────────────────────
   Theme: Clean white, neutral greys, subtle blue accents
   Designed to complement any business brand without clashing
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --white: #ffffff;
  --off-white: #f8fafc;
  --border: #e2e8f0;
  --text-main: #1a1f2e;
  --text-muted: #64748b;
  --accent: #3b5bdb;
  --accent-d: #1f45c4;
  --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 12px 40px rgba(0, 0, 0, 0.1);
  --radius: 18px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  background: var(--off-white);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse at 0% 0%,
      rgba(59, 91, 219, 0.05) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 100% 100%,
      rgba(59, 91, 219, 0.04) 0%,
      transparent 55%
    ),
    var(--off-white);
  pointer-events: none;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.bc-navbar {
  background: rgba(255, 255, 255, 0.664) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.55rem 0;
}

.bc-navbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main) !important;
  text-decoration: none;
}

.navbar-brand {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-main) !important;
  text-decoration: none;
}

.navbar-brand img {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  object-fit: contain;
  margin-right: 0.55rem;
}

.bc-navbar .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem !important;
  transition:
    color 0.2s,
    background 0.2s;
}

.bc-navbar .nav-link:hover {
  color: var(--text-main) !important;
  background: var(--off-white);
}

/* ── Page shell ───────────────────────────────────────────────────────────── */
.page-shell {
  position: relative;
  z-index: 1;
}

.page-content {
  padding-top: 5.5rem;
  padding-bottom: 2.5rem;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.bc-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.bc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b5bdb 0%, #6ea8fe 100%);
}

.bc-card-body {
  padding: 2.25rem 1.75rem 1.75rem;
}

/* ── Profile ──────────────────────────────────────────────────────────────── */
.bc-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--white);
  box-shadow:
    0 2px 8px rgba(59, 91, 219, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: block;
  margin: 0 auto 1rem;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.bc-avatar:hover {
  box-shadow:
    0 4px 12px rgba(59, 91, 219, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.bc-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-lt);
  border: 2.5px solid var(--white);
  box-shadow:
    0 2px 8px rgba(59, 91, 219, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  margin: 0 auto 1rem;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.bc-avatar-placeholder:hover {
  box-shadow:
    0 4px 12px rgba(59, 91, 219, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.bc-name {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}

.bc-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 36ch;
  margin: 0 auto 0.75rem;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.bc-divider {
  border: none;
  border-top: 1px solid var(--border-lt);
  margin: 1.1rem 0;
}

/* ── Section ──────────────────────────────────────────────────────────────── */
.bc-section {
  margin-bottom: 1rem;
}
.bc-section:last-child {
  margin-bottom: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.bc-btn-primary {
  background: var(--text-main);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  min-height: 46px;
  font-size: 0.94rem;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.bc-btn-primary:hover {
  background: #2d3346;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: #fff !important;
}

.bc-btn-outline {
  background: transparent;
  color: var(--text-main) !important;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  min-height: 46px;
  font-size: 0.94rem;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.bc-btn-outline:hover {
  background: var(--off-white);
  border-color: var(--text-muted);
  transform: translateY(-1px);
  color: var(--text-main) !important;
}

.bc-btn-save {
  background: var(--accent);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  min-height: 48px;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.bc-btn-save:hover {
  background: var(--accent-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 91, 219, 0.28);
  color: #fff !important;
}

.bc-btn-whatsapp {
  background: #25d366;
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  min-height: 48px;
  font-size: 0.96rem;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.bc-btn-whatsapp:hover {
  background: #1fba56;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
  color: #fff !important;
}
.bc-btn-whatsapp:disabled {
  opacity: 1;
  transform: none;
  cursor: not-allowed;
  background: #1fba56;
}

/* ── Loading state for buttons ─────────────────────────────────────────────── */
.bc-btn-whatsapp.loading {
  opacity: 1;
  background: #1fba56;
  color: #fff !important;
}

.bc-btn-whatsapp:disabled i,
.bc-btn-whatsapp.loading i {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ── Button spacing (global) ─────────────────────────────────────────────── */
.btn {
  padding: 0.6rem 1rem;
  margin: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

/* ── Icon buttons ─────────────────────────────────────────────────────────── */
.bc-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--off-white);
  color: var(--text-muted) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  margin: 0.25rem;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.bc-icon-btn:hover {
  background: var(--text-main);
  color: #fff !important;
  border-color: var(--text-main);
  transform: translateY(-2px);
}

/* ── Address ──────────────────────────────────────────────────────────────── */
.bc-address-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 2px;
  line-height: 1.5;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.bc-address-link i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}
.bc-address-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Panel ────────────────────────────────────────────────────────────────── */
.bc-panel {
  background: var(--off-white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}

.bc-panel-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

/* ── Video ────────────────────────────────────────────────────────────────── */
.bc-video-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.bc-video-wrap video,
.bc-video-wrap iframe {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  border: none;
}

/* ── Gallery ──────────────────────────────────────────────────────────────── */
.bc-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.bc-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}
.bc-gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}
.bc-gallery-featured {
  grid-column: 1/-1;
  aspect-ratio: 16/9 !important;
}

/* ── About ────────────────────────────────────────────────────────────────── */
.bc-about-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
#bc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 20, 0.9);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#bc-lightbox.active {
  display: flex;
}
#bc-lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
  background: none;
  border: none;
  line-height: 1;
  transition: opacity 0.2s;
}
#lightbox-close:hover {
  opacity: 1;
}

/* ── Enquiry form ─────────────────────────────────────────────────────────── */
.bc-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}
.bc-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--text-main);
  font-size: 0.93rem;
  font-family: inherit;
  padding: 0.6rem 0.85rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  resize: vertical;
}
.bc-input::placeholder {
  color: var(--text-light);
}
.bc-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
  outline: none;
}
.bc-input.is-invalid {
  border-color: var(--danger);
}
.bc-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}
.bc-char-counter {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 0.2rem;
}
.bc-char-counter.warn {
  color: #e07010;
}
.bc-form-status {
  font-size: 0.87rem;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  display: none;
}
.bc-form-status.success {
  background: var(--success-lt);
  border: 1px solid #a7f3d0;
  color: var(--success);
  display: block;
}
.bc-form-status.error {
  background: var(--danger-lt);
  border: 1px solid #fca5a5;
  color: var(--danger);
  display: block;
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.bc-modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
}
.bc-modal .modal-header {
  border-bottom: 1px solid var(--border-lt);
  background: var(--off-white);
  border-radius: 16px 16px 0 0;
}
.bc-modal .modal-title {
  font-weight: 700;
  font-size: 1rem;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .page-content {
    padding-top: 5rem;
  }
  .bc-card-body {
    padding: 1.75rem 1.15rem 1.15rem;
  }
  .bc-name {
    font-size: 1.18rem;
  }
  .bc-avatar,
  .bc-avatar-placeholder {
    width: 86px;
    height: 86px;
  }
  .bc-gallery {
    gap: 0.4rem;
  }
  .bc-gallery img {
    border-radius: 7px;
    padding: 1rem;
  }
  .bc-panel {
    padding: 0.95rem 1rem;
  }
}

/* ── Carousel ─────────────────────────────────────────────────────────────── */
.bc-carousel {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--off-white);
}
.bc-carousel-img {
  width: 100%;
  max-height: 420px;
  min-height: 220px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 0.4s ease;
  background: var(--off-white);
}
.bc-carousel-img:hover {
  transform: scale(1.02);
}
.carousel-item {
  position: relative;
}
.bc-carousel-caption {
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  border-radius: 0;
}
.bc-carousel-caption span {
  font-size: 0.78rem;
  color: #fff;
  font-weight: 500;
}
.bc-carousel-ctrl {
  width: 34px !important;
  height: 34px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-radius: 50% !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22) !important;
  opacity: 0;
  top: 50%;
  transform: translateY(-50%);
  transition:
    opacity 0.25s,
    transform 0.2s,
    box-shadow 0.2s;
}
.bc-carousel-ctrl:hover {
  background: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
  transform: translateY(-50%) scale(1.08);
}
.bc-carousel-ctrl .carousel-control-prev-icon,
.bc-carousel-ctrl .carousel-control-next-icon {
  filter: invert(1) !important;
  width: 14px;
  height: 14px;
}
.bc-carousel:hover .bc-carousel-ctrl {
  opacity: 1;
}
.carousel-control-prev.bc-carousel-ctrl {
  left: 10px;
}
.carousel-control-next.bc-carousel-ctrl {
  right: 10px;
}
.carousel-indicators [data-bs-target] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  margin: 0 3px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.carousel-indicators .active {
  background-color: #fff;
  transform: scale(1.3);
}

/* Thumbnails */
.bc-carousel-thumbs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.bc-carousel-thumbs::-webkit-scrollbar {
  height: 3px;
}
.bc-carousel-thumbs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.bc-carousel-thumb {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.55;
  transition:
    opacity 0.2s,
    border-color 0.2s;
}
.bc-carousel-thumb.active,
.bc-carousel-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

/* ── Lightbox (zoom) ──────────────────────────────────────────────────────── */
#bc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 10, 18, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
#bc-lightbox.active {
  display: flex;
}
#lightbox-zoom-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
#lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform-origin: center center;
  transition: opacity 0.15s ease;
  cursor: default;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}
#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.75;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10001;
  transition:
    opacity 0.2s,
    background 0.2s;
}
#lightbox-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 44px;
  height: 64px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
#lightbox-prev {
  left: 0.75rem;
}
#lightbox-next {
  right: 0.75rem;
}
#lightbox-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
