/* =============================================================================
   Pharmacy page template (page-templates/page-pharmacy.php)
   Reviews reuse the homepage .testimonials-premium / .testimonial-card styles.
   ============================================================================= */

.ph-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 50%, var(--dark-blue) 100%);
  color: var(--white);
  padding: 80px 0 90px;
  text-align: center;
}

.ph-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--white);
}

.ph-intro {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.ph-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* Booking button: white on the blue hero for contrast */
.ph-hero .ph-book-btn {
  background: var(--white);
  color: var(--primary-blue);
}

.ph-hero .ph-book-btn:hover {
  background: var(--secondary-blue);
  color: var(--primary-blue);
}

.ph-directions-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.ph-directions-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.ph-section {
  padding: 72px 0;
}

.ph-section:nth-of-type(even) {
  background: var(--light-bg);
}

.ph-section-title,
.ph-card-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 28px;
}

.ph-card-title {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

/* Details + hours */
.ph-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.ph-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
}

.ph-details dl {
  margin: 0;
  display: grid;
  gap: 18px;
}

.ph-detail dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.ph-detail dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.ph-detail a,
.ph-map-directions a {
  color: var(--primary-blue);
  font-weight: 600;
}

.ph-hours-table {
  width: 100%;
  border-collapse: collapse;
}

.ph-hours-table th,
.ph-hours-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-weight: 500;
}

.ph-hours-table td {
  text-align: right;
  color: var(--text-dark);
}

.ph-hours-table tr:last-child th,
.ph-hours-table tr:last-child td {
  border-bottom: 0;
}

/* Services */
.ph-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.ph-service-link {
  display: block;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ph-service-link:hover {
  border-color: var(--light-blue);
  box-shadow: 0 6px 18px rgba(10, 47, 138, 0.08);
}

/* Team */
.ph-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
}

.ph-person {
  text-align: center;
}

.ph-person-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}

.ph-person-name {
  font-size: 1.1rem;
  margin: 0 0 4px;
  color: var(--text-dark);
}

.ph-person-role {
  margin: 0;
  color: var(--text-gray);
}

/* Photos */
.ph-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.ph-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* Reviews: spacing tweak for the reused homepage section */
.ph-reviews {
  padding: 80px 0 90px;
}

/* Map */
.ph-map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.ph-map-frame iframe {
  display: block;
}

.ph-map-directions {
  margin: 16px 0 0;
}

@media (max-width: 768px) {
  .ph-hero {
    padding: 56px 0 64px;
  }

  .ph-section {
    padding: 52px 0;
  }

  .ph-photo {
    height: 200px;
  }
}
