/* =========================================================
   Added features: separate phone links, How-it-works services,
   Our Team section and the Book Appointment popup.
   Colours follow the site: #be4a87 (magenta) and #172658 (navy).
   ========================================================= */

/* ---------- Phone numbers (each one is its own tap-to-call link) ---------- */
.ph-link {
  white-space: nowrap;
}
.ph-sep {
  opacity: 0.45;
  margin: 0 6px;
}
.topbar-info .topbar-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.topbar-phones .ph-link:hover,
.quick-phones .ph-link:hover {
  text-decoration: underline;
}
.quick-strip .quick-phones {
  display: block;
  line-height: 1.7;
}
.quick-strip .quick-phones .ph-sep {
  color: rgba(255, 255, 255, 0.55);
}
.footer-phones .ph-link,
.contact-phones .ph-link {
  display: inline-block;
}
.contact-phones .ph-link {
  font-weight: 600;
}
.side-phones .ph-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.9;
}
.side-phones .ph-link:hover {
  color: #f08fc0;
}

/* ---------- How it works: all services ---------- */
.how-services {
  margin-top: 64px;
  padding: 34px 34px 38px;
  background: #f6f7fb;
  border: 1px solid #e5e8f1;
  border-radius: 26px 26px 0 26px;
}
.how-services-title {
  margin: 0 0 24px;
  text-align: center;
  color: #172658;
  font-weight: 600;
}
.how-services-title i {
  color: #be4a87;
  margin-right: 6px;
}
.how-services-title strong {
  color: #be4a87;
}
.how-services-grid {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.how-services-grid a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e8f1;
  border-radius: 14px 14px 0 14px;
  color: #172658;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.how-services-grid a:hover {
  transform: translateY(-3px);
  border-color: #be4a87;
  box-shadow: 0 14px 30px rgba(23, 38, 88, 0.12);
  color: #be4a87;
}
.how-svc-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px 14px 0 14px;
  background: #fbeef5;
  color: #be4a87;
  font-size: 22px;
}
.how-svc-icon .icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.how-svc-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 991px) {
  .how-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .how-services {
    padding: 26px 16px 30px;
    margin-top: 44px;
  }
  .how-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Our Team ---------- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.team-card {
  flex: 0 1 calc(25% - 21px);
  min-width: 250px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e8f1;
  border-radius: 22px 22px 0 22px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: #be4a87;
  box-shadow: 0 24px 56px rgba(23, 38, 88, 0.18);
}
.team-photo {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: linear-gradient(145deg, #fbeef5, #f1d3e4);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.team-card:hover .team-photo img {
  transform: scale(1.05);
}
.team-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, #be4a87, #172658);
}
.team-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #be4a87;
}
.team-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  text-align: center;
}
.team-body h3 {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.35;
}
.team-role {
  margin: 0 0 14px;
  color: #be4a87;
  font-weight: 700;
  font-size: 14px;
}
.team-meta {
  list-style: none;
  margin: 0 0 12px;
  padding: 12px 0 0;
  border-top: 1px dashed rgba(190, 74, 135, 0.35);
  text-align: left;
}
.team-meta li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 7px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4b5575;
}
.team-meta li i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #be4a87;
}
.team-bio {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #7d86a3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-book {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid #172658;
  border-radius: 12px 12px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #172658;
  transition: all 0.25s ease;
}
.team-book:hover {
  background: #be4a87;
  border-color: #be4a87;
  color: #fff;
}
@media (max-width: 1099px) {
  .team-card {
    flex-basis: calc(33.333% - 19px);
  }
}
@media (max-width: 860px) {
  .team-card {
    flex-basis: calc(50% - 14px);
  }
}
@media (max-width: 575px) {
  .team-card {
    flex-basis: 100%;
    max-width: 380px;
  }
}

/* Team carousel (reuses .t-slider from main.css) */
.team-slider {
  --per: 4;
}
.team-slider .team-track {
  padding-top: 12px;
  padding-bottom: 22px;
}
.team-slider .team-track .team-card {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  min-width: 0;
  max-width: none;
  scroll-snap-align: start;
  opacity: 1 !important;
}
@media (max-width: 1099px) {
  .team-slider {
    --per: 3;
  }
}
@media (max-width: 860px) {
  .team-slider {
    --per: 2;
  }
}
@media (max-width: 575px) {
  .team-slider {
    --per: 1;
    --gap: 16px;
  }
}

/* ---------- Book Appointment popup ---------- */
.appt-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(15, 26, 61, 0.78);
  backdrop-filter: blur(3px);
  animation: apptFade 0.25s ease;
}
.appt-modal[hidden] {
  display: none;
}
.appt-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  width: 100%;
  max-width: 880px;
  margin: auto;
  background: #fff;
  border-radius: 28px 28px 0 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(10, 18, 48, 0.45);
  animation: apptPop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes apptFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes apptPop {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .appt-modal,
  .appt-dialog {
    animation: none;
  }
}
.appt-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f6f7fb;
  color: #172658;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.appt-close:hover {
  background: #be4a87;
  color: #fff;
}
.appt-side {
  padding: 44px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 108%, rgba(240, 143, 192, 0.4), transparent 55%),
    linear-gradient(155deg, #172658 10%, #9d3a6e 130%);
}
.appt-side-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 22px 22px 0 22px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
}
.appt-side h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 26px;
  line-height: 1.25;
}
.appt-side > p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.appt-side ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.appt-side li {
  display: flex;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 14px;
  line-height: 1.5;
}
.appt-side li i {
  color: #f08fc0;
  margin-top: 1px;
}
.appt-side .appt-side-hours {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.appt-side-hours i {
  color: #f08fc0;
  margin-right: 6px;
}
.appt-main {
  padding: 44px 38px 36px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.appt-form .field {
  margin-bottom: 16px;
}
.appt-form .appt-err {
  color: #d9534f;
  font-size: 13px;
  display: block;
  margin-top: 4px;
}
.appt-form .appt-err[hidden],
.appt-form .appt-alert[hidden] {
  display: none;
}
.appt-form .has-error input,
.appt-form .has-error select,
.appt-form .has-error textarea {
  border-color: #d9534f;
}
.appt-form textarea {
  min-height: 88px;
}
.appt-submit {
  width: 100%;
}
.appt-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.appt-done {
  text-align: center;
  padding: 26px 6px 8px;
}
.appt-done[hidden] {
  display: none;
}
.appt-done-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 30px 30px 0 30px;
  background: #e4f7ee;
  color: #1f9d63;
  font-size: 42px;
}
.appt-done h3 {
  margin: 0 0 8px;
  outline: 0;
}
.appt-done p {
  margin: 0 0 20px;
}
.appt-done .btn {
  margin: 0 4px 10px;
}
.appt-done .btn-whatsapp {
  margin-top: 0;
}
@media (max-width: 767px) {
  .appt-dialog {
    grid-template-columns: 1fr;
  }
  .appt-side {
    padding: 26px 24px 22px;
  }
  .appt-side-icon,
  .appt-side ul,
  .appt-side .appt-side-hours {
    display: none;
  }
  .appt-side h2 {
    font-size: 22px;
    padding-right: 36px;
  }
  .appt-side > p {
    margin: 0;
  }
  .appt-main {
    padding: 24px 22px 26px;
    max-height: none;
  }
  .appt-close {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
  }
}

/* Phone numbers on small screens: no dangling separators when they wrap */
@media (max-width: 575px) {
  .ph-sep {
    display: none;
  }
  .topbar-phones .ph-link,
  .quick-phones .ph-link {
    margin-right: 14px;
  }
}