/* ======================================================
   Theme Colors & Base Setup
   ====================================================== */
:root {
  --primary-blue: #0b4386;
  --secondary-cyan: #0190de;
  --solar-gold: #ffb703;
  --bg-page: #e8ecf2;
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success-color: #25d366;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 16px 8px;
}

/* ======================================================
   Card Wrapper (Mobile-Centric App Container)
   ====================================================== */
.card-wrapper {
  background: var(--card-bg);
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

/* ======================================================
   Header & Avatar
   ====================================================== */
.card-header {
  position: relative;
  text-align: center;
}

.cover-image {
  height: 140px;
  background: linear-gradient(135deg, #093368 0%, #0284c7 60%, #38bdf8 100%);
  position: relative;
}

.badge-verified {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #0b4386;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-verified i {
  color: #0284c7;
}

.profile-avatar {
  margin-top: -55px;
  display: flex;
  justify-content: center;
}

.avatar-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--solar-gold);
  background: linear-gradient(180deg, #0d3b66 0%, #001f3f 100%);
}

/* ======================================================
   Business Info Section
   ====================================================== */
.business-info {
  text-align: center;
  padding: 12px 20px 20px;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.tagline i {
  color: var(--solar-gold);
}

.location-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.location-text i {
  color: #ef4444;
}

/* Action Grid (Call, WhatsApp, Email, Direction) */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.action-btn {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, filter 0.2s;
}

.action-btn:hover .btn-icon {
  transform: translateY(-2px);
}

.action-btn.call .btn-icon { background: #2563eb; }
.action-btn.whatsapp .btn-icon { background: var(--success-color); }
.action-btn.mail .btn-icon { background: #ea4335; }
.action-btn.directions .btn-icon { background: #f59e0b; }

/* Primary CTAs */
.primary-actions {
  display: flex;
  gap: 10px;
}

.cta-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.primary-cta {
  background: var(--primary-blue);
  color: #ffffff;
}

.secondary-cta {
  background: #f1f5f9;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.cta-btn:hover {
  opacity: 0.9;
}

/* ======================================================
   Sub-navigation Tabs
   ====================================================== */
.quick-nav {
  display: flex;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
  overflow-x: auto;
}

.nav-link {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-link.active,
.nav-link:hover {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

/* ======================================================
   Common Content Section
   ====================================================== */
.content-section {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.05rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 16px;
}

.business-meta-box {
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-val {
  font-weight: 600;
  color: var(--text-dark);
}

/* Services */
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafc;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.card-item i {
  font-size: 1.3rem;
  color: var(--secondary-cyan);
  margin-top: 2px;
}

.card-item h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.card-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-img-box {
  background: #e0f2fe;
  color: var(--primary-blue);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-bottom: 8px;
}

.product-card h4 {
  font-size: 0.85rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.product-card .desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 10px;
}

.order-btn {
  background: var(--success-color);
  color: #fff;
  border: none;
  padding: 7px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

/* Contact List */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.contact-list i {
  color: var(--primary-blue);
  font-size: 1.1rem;
  width: 20px;
}

.contact-list .label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.contact-list a, .contact-list span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}

/* Form */
.inquiry-section .form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.82rem;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
}

.submit-btn {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  padding: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Social Icons */
.social-section {
  text-align: center;
  padding: 18px 20px;
}

.social-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.s-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
}

.s-icon.whatsapp { background: #25d366; }
.s-icon.facebook { background: #1877f2; }
.s-icon.instagram { background: #e4405f; }
.s-icon.linkedin { background: #0a66c2; }

/* Footer */
.card-footer {
  text-align: center;
  padding: 16px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.75rem;
}

/* ======================================================
   Modal
   ====================================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-content {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  max-width: 340px;
  width: 100%;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.qr-container {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.qr-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.share-copy-box {
  display: flex;
  gap: 6px;
}

.share-copy-box input {
  flex: 1;
  padding: 8px;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.share-copy-box button {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}