/* ============================================================
   MAGNA DENTAL CLINIC — Pages CSS
   About, Doctors, Services, Reviews, FAQ, Contact, Appointment
   ============================================================ */

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-story {
  background: var(--bg-primary);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-story-text .section-title { margin-bottom: var(--space-5); }

.about-story-text p {
  font-size: var(--text-base);
  color: var(--dark-500);
  line-height: 1.9;
  margin-bottom: var(--space-5);
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--green-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.about-pillar-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-pillar-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark-900);
}

.about-pillar-sub {
  font-size: var(--text-xs);
  color: var(--dark-500);
  margin-top: 2px;
  font-weight: 400;
}

/* About Image Composition */
.about-image-composition {
  position: relative;
  height: 520px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-surface);
}

.about-img-accent {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 35%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--bg-surface);
}

.about-img-main img,
.about-img-secondary img,
.about-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About Info Card */
.about-info-card {
  position: absolute;
  bottom: var(--space-6);
  left: calc(-1 * var(--space-5));
  background: var(--green-800);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 2;
}

.about-info-card-number {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.about-info-card-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.70);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

/* About Photos Section */
.about-photos {
  background: var(--bg-muted);
}

.about-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: var(--space-4);
}

.about-photo-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--dark-900);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  user-select: none;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  height: 100%;
  text-align: left;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.about-photo-item:hover {
  box-shadow: 0 14px 32px rgba(22, 61, 46, 0.22);
  transform: translateY(-3px) scale(1.01);
}

.about-photo-item:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  box-shadow: 0 14px 32px rgba(22, 61, 46, 0.22);
}

/* Featured / Spanning items on Desktop */
.about-photo-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.about-photo-item.span-2 {
  grid-column: span 2;
}

.about-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.about-photo-item:hover img,
.about-photo-item:focus-visible img {
  transform: scale(1.05);
}

/* Hover overlay & zoom badge */
.about-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 61, 46, 0.0) 35%, rgba(15, 42, 32, 0.85) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.about-photo-item:hover .about-photo-overlay,
.about-photo-item:focus-visible .about-photo-overlay {
  opacity: 1;
}

.about-photo-caption-preview {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  transform: translateY(6px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  letter-spacing: 0.01em;
}

.about-photo-item:hover .about-photo-caption-preview,
.about-photo-item:focus-visible .about-photo-caption-preview {
  transform: translateY(0);
}

.about-photo-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(22, 61, 46, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 2;
}

.about-photo-item:hover .about-photo-badge,
.about-photo-item:focus-visible .about-photo-badge {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   GALLERY LIGHTBOX / IMAGE VIEWER MODAL
   ============================================================ */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 19, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.lightbox-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  box-sizing: border-box;
  pointer-events: none;
}

.lightbox-wrapper * {
  pointer-events: auto;
}

/* Lightbox Header */
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-2) 0;
  z-index: 10;
}

.lightbox-counter {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-close-btn:hover,
.lightbox-close-btn:focus-visible {
  background: #c53030;
  border-color: #ffffff;
  transform: scale(1.08) rotate(90deg);
  outline: none;
  box-shadow: 0 0 16px rgba(197, 48, 48, 0.5);
}

/* Lightbox Stage */
.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  position: relative;
  gap: var(--space-6);
  padding: var(--space-2) 0;
  min-height: 0;
}

/* Navigation Arrow Buttons */
.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover,
.lightbox-nav-btn:focus-visible {
  background: var(--green-600);
  border-color: var(--green-300);
  transform: scale(1.12);
  box-shadow: 0 0 24px rgba(63, 143, 114, 0.55);
  outline: none;
}

/* Media Container */
.lightbox-media-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: calc(100vh - 120px);
  width: 100%;
  max-width: min(1020px, calc(100vw - 180px));
  margin: 0 auto;
  position: relative;
}

.lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(85vh - 140px);
  min-height: min(340px, 60vh);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-image.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-caption {
  margin-top: var(--space-3);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  background: rgba(16, 38, 30, 0.88);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 85%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* Mobile Bottom Bar (hidden on desktop) */
.lightbox-mobile-bar {
  display: none;
}

/* About Info Strip */
.about-info-strip {
  background: var(--green-900);
}

.about-info-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-info-item {
  padding: var(--space-8);
  text-align: center;
  background: rgba(255,255,255,0.03);
}

.about-info-item-number {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--green-400);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.about-info-item-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.70);
}

/* ============================================================
   DOCTORS PAGE
   ============================================================ */
.doctors-section {
  background: var(--bg-primary);
}

.doctor-card-featured {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  max-width: 900px;
  margin-inline: auto;
}

.doctor-card-featured-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
}

.doctor-photo-wrap {
  position: relative;
  background: var(--green-50);
  overflow: hidden;
}

.doctor-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  min-height: 480px;
}

.doctor-photo-badge {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.doctor-photo-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.doctor-photo-badge-text {
  font-size: var(--text-xs);
  color: var(--dark-500);
}

.doctor-photo-badge-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--dark-900);
}

.doctor-info {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
}

.doctor-info .section-label { margin-bottom: 0; }

.doctor-name {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  color: var(--dark-900);
  margin-bottom: var(--space-2);
}

.doctor-qual {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.doctor-qual-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--green-100);
  color: var(--green-800);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.doctor-bio {
  font-size: var(--text-base);
  color: var(--dark-500);
  line-height: 1.8;
}

.doctor-stats {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  flex-wrap: wrap;
}

.doctor-stat { }

.doctor-stat-number {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--green-800);
  line-height: 1;
}

.doctor-stat-label {
  font-size: var(--text-xs);
  color: var(--dark-500);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.doctor-contact-chips {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.doctor-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.doctor-chip-call {
  background: var(--green-100);
  color: var(--green-800);
  border: 1px solid var(--green-300);
}

.doctor-chip-call:hover { background: var(--green-800); color: #fff; }

.doctor-chip-wa {
  background: rgba(37,211,102,0.10);
  color: #0a6e30; /* a11y: was #0e8a3e (4.13:1); #0a6e30 = 5.94:1 on chip bg — WCAG AA */
  border: 1px solid rgba(37,211,102,0.25);
}

.doctor-chip-wa:hover { background: #25d366; color: #fff; }

.doctor-chip-book {
  background: var(--green-100);
  color: var(--green-800);
  border: 1px solid var(--green-300);
}

.doctor-chip-book:hover { background: var(--green-800); color: #fff; }

/* Second Doctor Pending */
.doctor-pending {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--color-border);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  margin-top: var(--space-8);
}

.doctor-pending-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.doctor-pending h3 {
  font-size: var(--text-lg);
  color: var(--dark-300);
  margin-bottom: var(--space-2);
}

.doctor-pending p {
  font-size: var(--text-sm);
  color: var(--dark-300);
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-full-section {
  background: var(--bg-primary);
}

.services-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-full-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  padding-top: 0;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}

.service-full-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-800), var(--green-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.service-full-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--green-300);
}

.service-full-card:hover::before { transform: scaleX(1); }

/* Service photo image container */
.service-full-img {
  width: calc(100% + var(--space-8) * 2);
  margin: 0 calc(-1 * var(--space-8)) 0;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  flex-shrink: 0;
}

.service-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition-slow);
}

/* Subtle teal overlay on hover */
.service-full-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(36, 92, 72, 0) 50%,
    rgba(36, 92, 72, 0.18) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-full-card:hover .service-full-img img {
  transform: scale(1.05);
}

.service-full-card:hover .service-full-img::after {
  opacity: 1;
}

.service-full-title {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--dark-900);
}

.service-full-desc {
  font-size: var(--text-sm);
  color: var(--dark-500);
  line-height: 1.8;
  flex: 1;
}

/* ============================================================
   REVIEWS PAGE
   ============================================================ */
.reviews-full-section {
  background: var(--bg-primary);
}

.reviews-full-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-8);
}

.reviews-full-header .section-label {
  justify-content: center;
  margin-inline: auto;
}

.reviews-full-header .section-label::before { display: none; }
.reviews-full-header .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-600);
  border-radius: 2px;
}

.reviews-full-header .section-title {
  margin-inline: auto;
  text-align: center;
}

.reviews-full-header .section-subtitle {
  margin-inline: auto;
  text-align: center;
}

.reviews-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-section {
  background: var(--bg-primary);
}.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}

.faq-sidebar { position: sticky; top: calc(var(--nav-height) + var(--space-6)); }

.faq-sidebar-title { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.faq-sidebar-desc { font-size: var(--text-sm); color: var(--dark-500); line-height: 1.75; margin-bottom: var(--space-5); }

.faq-contact-card {
  background: var(--green-900);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: #ffffff;
}

.faq-contact-card h4 {
  color: #ffffff;
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.faq-contact-card p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.70);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.faq-contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  transition: background var(--transition-fast);
}

.faq-contact-link:hover { background: rgba(52,201,138,0.20); color: #ffffff; }

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.faq-item:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
}

.faq-item.is-open {
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}

.faq-question:hover { background: var(--green-50); }

.faq-q-text {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--dark-900);
  line-height: 1.4;
}

.faq-q-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--green-100);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition-base);
  line-height: 1;
}

.faq-item.is-open .faq-q-icon {
  background: var(--green-800);
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}

.faq-item.is-open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  color: var(--dark-500);
  line-height: 1.85;
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-4);
}

.faq-answer-inner a { color: var(--green-700); text-decoration: underline; }
.faq-answer-inner a:hover { color: var(--green-800); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  background: var(--bg-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}

.contact-info-stack { display: flex; flex-direction: column; gap: var(--space-4); }

.contact-info-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
  transform: translateY(-2px);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-700);
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--dark-900);
}

.contact-info-sub {
  font-size: var(--text-xs);
  color: var(--dark-400);
  margin-top: 2px;
}

/* Hours Card */
.contact-hours-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.contact-hours-title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.contact-hours-table {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
}

.contact-hours-row:last-child { border-bottom: none; padding-bottom: 0; }

.contact-hours-day { color: var(--dark-700); font-weight: 500; }
.contact-hours-time { color: var(--dark-900); font-weight: 600; text-align: right; }
.contact-hours-closed { color: #ef4444; font-weight: 600; }

/* Social Cards */
.contact-social-row {
  display: flex;
  gap: var(--space-3);
}

.contact-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-light);
  background: var(--bg-surface);
  color: var(--dark-700);
}

.contact-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-social-btn.instagram:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border-color: transparent;
}

.contact-social-btn.facebook:hover {
  background: #1877f2;
  color: #fff;
  border-color: transparent;
}

/* Map */
.contact-map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}

.contact-map-wrap iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* ============================================================
   APPOINTMENT PAGE
   ============================================================ */
.appointment-section {
  background: var(--bg-primary);
}

.appointment-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}

.appointment-info { position: sticky; top: calc(var(--nav-height) + var(--space-8)); }

.appointment-info-title { font-size: var(--text-2xl); margin-bottom: var(--space-4); }

.appointment-info-text {
  font-size: var(--text-sm);
  color: var(--dark-500);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.appointment-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.appointment-flow-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.appointment-flow-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--green-800);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.appointment-flow-text {
  font-size: var(--text-sm);
  color: var(--dark-700);
  padding-top: 6px;
  line-height: 1.6;
}

.appointment-flow-text strong { color: var(--dark-900); }

.appointment-note {
  padding: var(--space-4) var(--space-5);
  background: var(--green-50);
  border: 1px solid var(--green-300);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--green-800);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  line-height: 1.6;
}

/* ==========================================================
   APPOINTMENT FORM CARD — Premium Visual Container
   ========================================================== */
.appointment-form-card {
  position: relative;
  border-radius: 24px;
  padding: 36px 36px 36px 36px;
  /* Rich two-tone teal/green gradient */
  background:
    linear-gradient(145deg,
      #1a5c45 0%,
      #245C48 30%,
      #2f735b 65%,
      #3a8f6f 100%
    );
  /* Layered glowing shadow */
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 8px 24px rgba(22, 61, 46, 0.30),
    0 24px 64px rgba(22, 61, 46, 0.22),
    0 -2px 0 0 rgba(255,255,255,0.08) inset,
    0 2px 0 0 rgba(0,0,0,0.12) inset;
  isolation: isolate;
  overflow: hidden;
}

/* ── Decorative blobs / shapes ── */
/* All are pointer-events:none so they never block interaction */

.appt-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Large top-right glow blob */
.appt-deco-1 {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle at 40% 40%,
    rgba(106, 220, 170, 0.30) 0%,
    rgba(80, 200, 145, 0.12) 50%,
    transparent 70%);
}

/* Medium bottom-left warm mint blob */
.appt-deco-2 {
  width: 250px;
  height: 250px;
  bottom: -80px;
  left: -70px;
  background: radial-gradient(circle at 60% 60%,
    rgba(156, 212, 192, 0.25) 0%,
    rgba(106, 185, 159, 0.10) 55%,
    transparent 75%);
}

/* Small bright top-left sparkle dot */
.appt-deco-3 {
  width: 90px;
  height: 90px;
  top: 28px;
  left: 28px;
  background: radial-gradient(circle,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.04) 60%,
    transparent 80%);
  border: 1.5px solid rgba(255,255,255,0.15);
}

/* Elongated ring in bottom-right */
.appt-deco-4 {
  width: 130px;
  height: 130px;
  bottom: 24px;
  right: 24px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 0 16px rgba(255,255,255,0.04);
}

/* Top accent header bar */
.appointment-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    rgba(156,212,192,0.0) 0%,
    rgba(156,212,192,0.9) 30%,
    #7de0b5 50%,
    rgba(156,212,192,0.9) 70%,
    rgba(156,212,192,0.0) 100%);
  border-radius: 24px 24px 0 0;
  z-index: 2;
}

/* Subtle dot-grid texture overlay */
.appointment-form-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

/* White inner panel — sits on top of all decorative layers */
.appt-form-inner {
  position: relative;
  z-index: 3;
  background: #ffffff;
  border-radius: 16px;
  padding: var(--space-8);
  box-shadow:
    0 2px 8px rgba(22,61,46,0.10),
    0 8px 24px rgba(22,61,46,0.08);
  /* Subtle inner top border for depth */
  border-top: 2px solid rgba(45,155,111,0.15);
}

.appointment-form { display: flex; flex-direction: column; gap: var(--space-5); }

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark-900);
}

.form-label .required { color: #ef4444; margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--dark-900);
  background: var(--bg-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  outline: none;
  line-height: 1.5;
}

.form-control:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(45,155,111,0.12);
  background: var(--bg-surface);
}

.form-control::placeholder { color: var(--dark-300); }

.form-control.is-error { border-color: #ef4444; }
.form-control.is-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }

.form-select-wrap { position: relative; }

.form-select-wrap select {
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark-500);
  pointer-events: none;
  font-size: var(--text-sm);
}

.form-error-msg {
  font-size: var(--text-xs);
  color: #ef4444;
  margin-top: 2px;
  display: none;
}

.form-group.has-error .form-error-msg { display: block; }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint {
  font-size: var(--text-xs);
  color: var(--dark-300);
}

/* ---- Custom three-part time picker ---- */
.time-picker-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.time-picker-part {
  flex: 1 1 0;
  min-width: 0;
}

.time-picker-part select {
  padding-right: 1.75rem;   /* room for the ▾ arrow */
  text-align: center;
  cursor: pointer;
}

.time-picker-ampm {
  flex: 0 0 auto;
  min-width: 5.5rem;
}

.time-picker-sep {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-500);
  flex-shrink: 0;
  line-height: 1;
  padding-bottom: 0.1rem;   /* optical alignment */
}

/* On very small screens let the row wrap gracefully */
@media (max-width: 360px) {
  .time-picker-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .time-picker-part,
  .time-picker-ampm {
    flex: 1 1 calc(33% - 0.5rem);
    min-width: 80px;
  }
  .time-picker-sep { display: none; }
}
/* ---- end time picker ---- */

.form-submit-wrap { margin-top: var(--space-2); }


.form-submit-note {
  font-size: var(--text-xs);
  color: var(--dark-300);
  margin-top: var(--space-3);
  line-height: 1.6;
  text-align: center;
}

/* Success State */
.appointment-success {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  display: none;
}

.appointment-success.is-visible { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.success-title { font-size: var(--text-2xl); color: var(--dark-900); }
.success-text { font-size: var(--text-base); color: var(--dark-500); max-width: 40ch; line-height: 1.8; }

/* ============================================================
   RESPONSIVE — PAGES
   ============================================================ */
@media (max-width: 1024px) {
  /* About */
  .about-image-composition { height: auto; }
  .about-img-main,
  .about-img-secondary,
  .about-img-accent,
  .about-info-card { position: static; width: 100%; transform: none; }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
    gap: var(--space-4);
  }

  .about-photo-item.featured {
    grid-column: span 2;
    grid-row: span 1;
    height: 300px;
  }

  .about-photo-item.span-2 {
    grid-column: span 2;
    height: 240px;
  }

  .about-info-strip-grid { grid-template-columns: repeat(2, 1fr); }

  /* Doctors */
  .doctor-card-featured-inner { grid-template-columns: 1fr; }
  .doctor-photo-wrap img { min-height: 320px; object-position: top; }

  /* Services */
  .services-full-grid { grid-template-columns: repeat(2, 1fr); }

  /* Reviews */
  .reviews-full-grid { grid-template-columns: repeat(2, 1fr); }

  /* FAQ */
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sidebar { position: static; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }

  /* Appointment */
  .appointment-layout { grid-template-columns: 1fr; }
  .appointment-info { position: static; }
}

@media (max-width: 768px) {
  .about-pillars { grid-template-columns: 1fr; }
  .services-full-grid { grid-template-columns: 1fr; }
  .reviews-full-grid { display: none; }
  .reviews-carousel-wrap { display: block; }
  .contact-social-row { flex-direction: column; }
  .about-info-strip-grid { grid-template-columns: 1fr 1fr; }
  .doctor-info { padding: var(--space-6); }
  .about-photos-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: var(--space-4);
  }
  .about-photo-item.featured,
  .about-photo-item.span-2 {
    grid-column: auto;
    grid-row: auto;
  }
  .about-photo-item {
    aspect-ratio: 4/3;
    height: auto;
  }
  .about-photo-overlay {
    opacity: 0.9;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(12, 34, 26, 0.85) 100%);
  }
  .about-photo-caption-preview {
    transform: translateY(0);
    font-size: 0.8125rem;
  }
  .about-photo-badge {
    opacity: 0.9;
    transform: scale(0.9);
  }

  /* Lightbox Mobile Adjustments */
  .lightbox-wrapper {
    padding: var(--space-3);
  }

  .lightbox-stage {
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .lightbox-nav-btn {
    display: none;
  }

  .lightbox-media-container {
    max-width: 100%;
    max-height: calc(100vh - 130px);
  }

  .lightbox-image {
    max-height: calc(100vh - 170px);
    max-width: 95vw;
  }

  .lightbox-caption {
    font-size: 0.825rem;
    max-width: 95%;
    padding: 6px 14px;
    margin-top: var(--space-2);
  }

  .lightbox-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: var(--space-2) 0;
    gap: var(--space-3);
  }

  .lightbox-mobile-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-height: 44px;
    min-width: 80px;
    justify-content: center;
    transition: background 0.2s ease;
  }

  .lightbox-mobile-btn:active {
    background: var(--green-600);
  }

  .lightbox-mobile-counter {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    font-weight: 600;
  }

  /* Appointment form: comfortable mobile padding */
  .appointment-form-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .appt-form-inner {
    padding: var(--space-6);
    border-radius: 14px;
  }

  .appt-deco-1 { width: 200px; height: 200px; top: -80px; right: -60px; }
  .appt-deco-2 { width: 160px; height: 160px; bottom: -50px; left: -45px; }
  .appt-deco-3 { width: 60px; height: 60px; top: 18px; left: 18px; }
  .appt-deco-4 { width: 90px; height: 90px; bottom: 16px; right: 16px; }

  /* Form rows: stack on mobile to prevent overflow */
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Appointment info: reduce gaps */
  .appointment-info-title {
    font-size: var(--text-xl);
  }

  .appointment-note {
    font-size: var(--text-xs);
  }

  /* FAQ accordion questions: better tap target */
  .faq-question {
    padding: var(--space-4) var(--space-4);
  }

  .faq-answer-inner {
    padding: var(--space-3) var(--space-4) var(--space-4) var(--space-4);
  }

  /* FAQ contact card */
  .faq-contact-card {
    padding: var(--space-5);
  }

  /* Contact map */
  .contact-map-wrap iframe { height: 280px; }

  /* Doctor stats */
  .doctor-stats { gap: var(--space-4); flex-wrap: wrap; }

  /* Doctor qual badges */
  .doctor-qual { gap: var(--space-2); }

  /* Services full card */
  .service-full-card { padding: var(--space-6); padding-top: 0; }
  .service-full-img {
    width: calc(100% + var(--space-6) * 2);
    margin: 0 calc(-1 * var(--space-6)) 0;
  }

  /* Reviews grid hidden on mobile (carousel is shown) */
  .reviews-full-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .about-info-strip-grid { grid-template-columns: 1fr 1fr; }
  .doctor-stats { gap: var(--space-4); }
  .contact-map-wrap iframe { height: 260px; }

  /* Appointment form: full bleed on tiny screens */
  .appointment-form-card {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .appt-form-inner {
    padding: var(--space-5) var(--space-4);
    border-radius: 12px;
  }

  .appt-deco-1 { width: 140px; height: 140px; top: -55px; right: -40px; }
  .appt-deco-2 { width: 120px; height: 120px; bottom: -40px; left: -35px; }
  .appt-deco-3 { width: 44px; height: 44px; top: 12px; left: 12px; }
  .appt-deco-4 { width: 68px; height: 68px; bottom: 12px; right: 12px; }

  /* Appointment info: compact */
  .appointment-flow-step {
    gap: var(--space-3);
  }

  .appointment-flow-num {
    width: 28px;
    height: 28px;
    font-size: var(--text-xs);
    flex-shrink: 0;
  }

  .appointment-info-title {
    font-size: var(--text-lg);
  }

  /* Fix inline hours nbsps — target the container */
  .appointment-section [style*="line-height:2"] {
    line-height: 1.8;
  }

  /* Contact section: tighter cards */
  .contact-info-card {
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .contact-info-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  /* FAQ question text */
  .faq-q-text {
    font-size: var(--text-sm);
  }

  /* Doctor card */
  .doctor-info {
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .doctor-contact-chips {
    flex-direction: column;
  }

  .doctor-chip {
    justify-content: center;
  }

  /* Footer: single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  /* Service card */
  .service-full-card {
    padding: var(--space-5);
    padding-top: 0;
  }
  .service-full-img {
    width: calc(100% + var(--space-5) * 2);
    margin: 0 calc(-1 * var(--space-5)) 0;
  }
}
