@import url('base.css');

body { background: var(--p-bg, #fff); color: var(--p-text, #0f172a); }

.profile-page {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.cover {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--p-primary, #2563eb);
}
.cover-placeholder {
  background: linear-gradient(135deg, var(--p-primary, #2563eb), #1e293b);
}

.profile-header {
  text-align: center;
  padding: 0 20px 20px;
  margin-top: -48px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--color-surface);
  object-fit: cover;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  background: var(--p-primary, #2563eb);
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 2px;
}

.profile-tagline {
  color: var(--color-muted);
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 1.6;
}

.lang-switcher {
  display: inline-flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lang-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
}
.lang-btn.active { background: var(--color-surface); color: var(--p-primary, #2563eb); box-shadow: var(--shadow-sm); }

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.qa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--p-primary, #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: none;
}
.qa-whatsapp { background: #25d366; }

.section { padding: 20px; }
.section-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}

.profile-description {
  line-height: 1.8;
  font-size: 15px;
  color: var(--color-text);
}

.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: var(--transition);
}
.link-item:hover { border-color: var(--p-primary, #2563eb); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.link-icon { font-size: 20px; }
.link-title { flex: 1; font-weight: 600; font-size: 14px; }
.link-arrow { color: var(--color-muted); font-size: 18px; }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-image { width: 100%; height: 160px; object-fit: cover; }
.service-body { padding: 14px 16px; }
.service-name { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.service-desc { font-size: 13px; color: var(--color-muted); margin: 0 0 8px; line-height: 1.6; }
.service-price { font-weight: 800; color: var(--p-primary, #2563eb); margin: 0 0 10px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-item { padding: 0; border: none; background: none; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.contact-box p { margin: 0 0 8px; font-size: 14px; }
.hours-list { margin-top: 14px; border-top: 1px solid var(--color-border); padding-top: 12px; }
.hours-list h3 { font-size: 14px; margin: 0 0 8px; }
.hours-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--color-muted); }
.contact-actions { display: flex; gap: 10px; margin-top: 14px; }
.contact-actions .btn { flex: 1; }

.profile-footer-actions { display: flex; gap: 10px; }
.profile-footer-actions .btn { flex: 1; }

.profile-powered { text-align: center; font-size: 12px; color: var(--color-muted); padding: 20px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center; z-index: 9999;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; inset-inline-end: 20px; background: none; border: none; color: #fff; font-size: 24px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,0.5); display: none; align-items: center; justify-content: center; z-index: 9999; }
.modal.open { display: flex; }
.modal-content { background: #fff; border-radius: var(--radius-lg); padding: 24px; text-align: center; width: 90%; max-width: 320px; position: relative; }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; background: none; border: none; font-size: 18px; }

@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
