/* Shared Stitch-inspired theme — used across all pages */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('appointment-modal.css');
@import url('maternity-leave.css');

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.21, 0.45, 0.32, 0.9), transform 1.2s cubic-bezier(0.21, 0.45, 0.32, 0.9);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile header menu — mirrors desktop nav without crowding the bar */
.mobile-menu-btn:focus-visible {
  outline: 2px solid #715539;
  outline-offset: 2px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-panel {
  max-height: calc(100svh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-link::after {
  display: none;
}

.site-header:has(.mobile-menu.is-open) {
  z-index: 1001;
}

#hero-parallax.hero-bg {
  background-position: center top;
}

@media (max-width: 1023px) {
  #hero-parallax.hero-bg {
    background-size: cover !important;
    background-position: center 20%;
  }

  #services,
  #bio,
  #experience,
  #evaluation,
  #pricing,
  #coverage,
  #reviews {
    scroll-margin-top: 72px;
  }
}

@media (max-width: 640px) {
  #hero-parallax.hero-bg {
    background-position: center 15%;
  }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.btn-shimmer {
  background: linear-gradient(90deg, #715539 0%, #8c6d4f 50%, #715539 100%);
  background-size: 200% auto;
  transition: all 0.3s ease;
}

.btn-shimmer:hover {
  animation: shimmer 2s infinite linear;
}

.parallax-target {
  transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.service-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  background-color: #FAF9F6;
  border-color: #A68966;
}

.service-link span {
  transition: transform 0.3s ease;
}

.service-card:hover .service-link span {
  transform: translateX(6px);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 8px 12px;
  z-index: 99999;
  color: #1e1b18;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

#services,
#bio,
#experience,
#evaluation,
#pricing,
#coverage,
#reviews {
  scroll-margin-top: 90px;
}

/* Google reviews — live API carousel styled for new theme */
.overall-rating {
  text-align: center;
  margin-bottom: 40px;
  display: none;
}

.overall-score-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.overall-star-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.overall-score {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: #715539;
  font-weight: 400;
  line-height: 1;
}

.overall-stars {
  color: #f4b400;
  font-size: 1.2rem;
  margin: 4px 0 10px;
  letter-spacing: 2px;
}

.overall-count {
  font-size: 0.75rem;
  color: #5f5e5b;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.google-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  color: #715539;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #D9D2C5;
}

.google-link:hover {
  text-decoration-color: #715539;
}

.reviews-carousel-wrap {
  max-width: 720px;
  margin: 0 auto;
  touch-action: pan-y;
  cursor: grab;
}

.reviews-carousel-wrap.is-dragging {
  cursor: grabbing;
}

.reviews-carousel {
  position: relative;
  min-height: 220px;
}

.review-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
}

.review-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
}

.review-card {
  background: #fff;
  padding: 36px 40px;
  border: 1px solid rgba(217, 210, 197, 0.35);
  box-shadow: 0 4px 16px rgba(113, 85, 57, 0.06);
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 180px;
}

.review-stars {
  color: #f4b400;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.review-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: #715539;
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card.is-clickable {
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  cursor: pointer;
}

.review-card.is-clickable:hover {
  border-color: #A68966;
  box-shadow: 0 12px 28px rgba(113, 85, 57, 0.12);
  transform: translateY(-2px);
}

.review-read-more {
  display: none;
  align-self: center;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #715539;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-read-more.is-visible { display: inline-block; }

.review-google-hint {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: #81756b;
  margin-top: 2px;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.review-modal.is-open { display: flex; }

.review-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.review-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(80vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: 0.5rem;
  padding: 36px 40px 32px;
  border: 1px solid rgba(217, 210, 197, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.review-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(113, 85, 57, 0.1);
  color: #1e1b18;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.review-modal-stars {
  color: #f4b400;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-align: center;
}

.review-modal-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #715539;
  line-height: 1.75;
  font-style: italic;
  text-align: center;
  margin: 0 0 24px;
}

.review-modal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(217, 210, 197, 0.25);
}

.review-modal-google-link {
  font-size: 0.85rem;
  color: #715539;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(217, 210, 197, 0.2);
}

.review-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: #333333;
}

.review-date {
  font-size: 0.75rem;
  color: #81756b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.review-date::before {
  content: '·';
  margin-right: 16px;
  color: rgba(217, 210, 197, 0.8);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dot {
  width: 48px;
  height: 4px;
  border-radius: 0;
  border: none;
  background: rgba(217, 210, 197, 0.35);
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dot.active {
  background: #715539;
}

#reviews-loading {
  text-align: center;
  color: #81756b;
  padding: 40px;
  font-style: italic;
}

/* Accessibility widget */
#access-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  background: #715539;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  border: 2px solid white;
}

#access-btn:hover { transform: scale(1.1); }

#access-menu {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 9999;
  background: white;
  border: 1px solid #d2c4b9;
  padding: 15px;
  border-radius: 0.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  width: 200px;
}

#access-menu h4 {
  margin: 0 0 10px;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  color: #1e1b18;
}

.access-option {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 5px;
  background: #faf2ed;
  border: 1px solid #d2c4b9;
  cursor: pointer;
  text-align: left;
  font-family: Manrope, sans-serif;
  font-size: 14px;
}

.access-option:hover { background: #efe7e2; }
.access-active { background-color: #715539; color: white; }

html.access-large-text { font-size: 125% !important; }

/* Assumption: Tailwind utility classes keep light backgrounds unless explicitly overridden. */
html.access-high-contrast,
html.access-high-contrast body {
  background-color: #000 !important;
  color: #fff !important;
}

html.access-high-contrast main,
html.access-high-contrast section,
html.access-high-contrast header,
html.access-high-contrast footer,
html.access-high-contrast nav,
html.access-high-contrast aside,
html.access-high-contrast article {
  background-color: #000 !important;
  background-image: none !important;
}

html.access-high-contrast [class*="gradient"] {
  background-image: none !important;
  background-color: transparent !important;
}

/* Hero background only — editorial images use <img> and must stay visible. */
html.access-high-contrast .parallax-target:not(img) {
  background-image: none !important;
  background-color: #000 !important;
}

html.access-high-contrast .bg-background,
html.access-high-contrast .bg-clinical-linen,
html.access-high-contrast .bg-white,
html.access-high-contrast [class*="bg-background"],
html.access-high-contrast [class*="bg-clinical-linen"],
html.access-high-contrast [class*="bg-white"] {
  background-color: #000 !important;
}

html.access-high-contrast header,
html.access-high-contrast footer,
html.access-high-contrast .service-card,
html.access-high-contrast .review-card,
html.access-high-contrast .appointment-modal-panel,
html.access-high-contrast .maternity-modal-panel,
html.access-high-contrast .content-panel {
  background-color: #000 !important;
  border-color: #fff !important;
}

html.access-high-contrast h1,
html.access-high-contrast h2,
html.access-high-contrast h3,
html.access-high-contrast h4,
html.access-high-contrast h5,
html.access-high-contrast h6,
html.access-high-contrast p,
html.access-high-contrast li,
html.access-high-contrast span,
html.access-high-contrast label,
html.access-high-contrast td,
html.access-high-contrast th,
html.access-high-contrast blockquote,
html.access-high-contrast small,
html.access-high-contrast strong,
html.access-high-contrast em,
html.access-high-contrast .material-symbols-outlined {
  color: #fff !important;
  text-shadow: none !important;
}

html.access-high-contrast header a:not(.btn-shimmer):not([class*="bg-primary"]),
html.access-high-contrast footer a:not(.btn-shimmer):not([class*="bg-primary"]),
html.access-high-contrast main a:not(.btn-shimmer):not([class*="bg-primary"]) {
  color: #7dd3fc !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

html.access-high-contrast a:hover {
  color: #fff !important;
}

html.access-high-contrast .btn-shimmer,
html.access-high-contrast a.btn-shimmer.bg-primary,
html.access-high-contrast button.bg-primary {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}

html.access-high-contrast .btn-shimmer span,
html.access-high-contrast a.btn-shimmer.bg-primary span {
  color: #000 !important;
}

html.access-high-contrast .bg-metallic-bronze,
html.access-high-contrast [class*="bg-metallic-bronze"] {
  background-color: #fff !important;
}

html.access-high-contrast .bg-primary:not(.btn-shimmer) {
  background-color: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
}

html.access-high-contrast img {
  opacity: 1 !important;
  filter: none !important;
}

html.access-high-contrast [class*="border"] {
  border-color: #fff !important;
}

html.access-high-contrast [class*="opacity"] {
  opacity: 1 !important;
}

html.access-high-contrast input,
html.access-high-contrast textarea,
html.access-high-contrast select {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

html.access-high-contrast #access-menu {
  background: #000 !important;
  border: 2px solid #fff !important;
}

html.access-high-contrast #access-menu h4 {
  color: #fff !important;
}

html.access-high-contrast .access-option {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

html.access-high-contrast .access-option.access-active {
  background: #fff !important;
  color: #000 !important;
}

html.access-high-contrast #access-btn {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

html.access-high-contrast.access-links a {
  background: transparent !important;
  color: #7dd3fc !important;
}

html.access-high-contrast a:focus-visible,
html.access-high-contrast button:focus-visible,
html.access-high-contrast input:focus-visible,
html.access-high-contrast textarea:focus-visible,
html.access-high-contrast select:focus-visible,
html.access-high-contrast #access-btn:focus-visible,
html.access-high-contrast .access-option:focus-visible {
  outline: 2px solid #7dd3fc !important;
  outline-offset: 2px;
}

html.access-links a {
  text-decoration: underline !important;
  background: yellow !important;
  color: black !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
#access-btn:focus-visible,
.access-option:focus-visible {
  outline: 2px solid #715539;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .parallax-target,
  .service-card,
  .btn-shimmer {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .review-card { padding: 28px 22px; }
  .review-modal-panel { padding: 32px 22px 28px; }
  .overall-score { font-size: 3rem; }
  .overall-star-icon { width: 40px; height: 40px; }
}
