:root {
  --pd-ink: #12302C;
  --pd-ink-soft: #4C6864;
  --pd-paper: #F5FAF9;
  --pd-surface: #FFFFFF;
  --pd-line: #DCEAE7;
  --pd-accent: #0F9C8E;
  --pd-accent-dark: #0B6E64;
  --pd-accent-soft: #E1F4F1;
  --pd-warm: #E28B3C;
}

.pd-root, body.pd-root { background: var(--pd-paper); color: var(--pd-ink); font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif; }

/* Logo image already carries the brand name — hide the redundant text title
   Astra prints next to it. The header bar's background still spans the full
   width, but its content (logo/menu) sits in a centered, inset container —
   like the reference site's header — instead of touching the screen edges. */
.ast-site-identity .site-title { display: none; }
.site-header .ast-container { max-width: 1600px; margin: 0 auto; padding-left: 2.5rem; padding-right: 2.5rem; }
.main-header-bar { min-height: auto !important; padding-top: 1rem; padding-bottom: 1rem; }
/* Astra lays the logo/menu out as a native CSS Grid row ("has-sides, no-center")
   sized to fit its content by default. Stretch that grid to the container's
   full width and space its two columns apart, instead of forcing display:flex
   (which broke the grid and left the menu shrink-wrapped near the logo). */
.main-header-bar .ast-builder-grid-row { width: 100%; justify-content: space-between; align-items: center; }
.ast-site-identity { display: flex; align-items: center; }
.ast-desktop-header-navigation .main-header-menu { display: flex; align-items: center; }
/* Astra's default content container caps Elementor pages at ~1200px even
   when a section is set to "Full Width" — Elementor's full_width layout is
   only 100% of ITS PARENT, not the viewport. Unbox that parent, but only on
   pages actually built with Elementor (home/about/services/contact), so
   blog posts keep a readable line width. */
.elementor-page #content.site-content > .ast-container { max-width: none; padding: 0; }
/* Blog single posts: match the ~1140px content width used on the marketing
   pages (Services etc.), and hide Astra's default comment form (kept off —
   replaced by share buttons / related posts / booking section below). */
.single-post #content.site-content > .ast-container { max-width: 1140px; }
.single-post #comments,
.single-post .comments-area { display: none; }
.custom-logo-link img { max-height: 48px; width: auto; }
.pd-root h1, .pd-root h2, .pd-root h3, .pd-root h4 { font-family: "Fraunces", Georgia, serif; color: var(--pd-ink); }

.pd-eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--pd-accent); margin: 0 0 0.6rem; }
.pd-eyebrow--light { color: #BEEEE6; }

.pd-btn { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none !important; font-size: 0.95rem; border: 2px solid transparent; transition: transform .15s ease, opacity .15s ease; }
.pd-btn:hover { transform: translateY(-1px); }
.pd-btn--solid { background: var(--pd-accent); color: #fff; }
.pd-btn--solid:hover { background: var(--pd-accent-dark); }
.pd-btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }
.pd-btn--ghost:hover { background: rgba(255,255,255,0.22); }
.pd-btn--outline { background: transparent; color: var(--pd-accent-dark); border-color: var(--pd-accent); }
.pd-btn--outline:hover { background: var(--pd-accent-soft); }

/* Hero — sits inside an Elementor section; the section's own Background
   Image (editable via Edit with Elementor → click the Hero section → Style)
   shows through. A light neutral (not teal-tinted) scrim, darkest at the
   bottom where the text sits, keeps the photo itself clearly visible. */
.pd-hero { background: linear-gradient(180deg, rgba(10,20,18,.25), rgba(10,20,18,.55) 75%); padding: 5rem 1.5rem; text-align: center; }
.pd-hero__inner { max-width: 780px; margin: 0 auto; }
.pd-hero .pd-hero__title { font-size: clamp(2rem, 4.5vw, 2.9rem); color: #fff; line-height: 1.15; margin: 0 0 1rem; text-wrap: balance; }
.pd-hero__sub { color: #E4F6F2; font-size: 1.08rem; max-width: 56ch; margin: 0 auto 1.8rem; }
.pd-hero__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* Commitments */
.pd-commit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.pd-commit-card { background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 14px; padding: 1.6rem; text-align: center; }
.pd-commit-card .dashicons { font-size: 2rem; width: 2rem; height: 2rem; color: var(--pd-accent); }
.pd-commit-card h3 { font-size: 1.1rem; margin: 0.7rem 0 0.4rem; }
.pd-commit-card p { color: var(--pd-ink-soft); font-size: 0.92rem; margin: 0; }

/* Stats band — grid with equal-width columns so the 4 numbers spread
   evenly across the section instead of clustering at a fixed padding. */
.pd-stats-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.pd-stat { text-align: center; padding: 0 1rem; }
.pd-stat__number { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--pd-accent-dark); line-height: 1; }
.pd-stat__label { margin-top: 0.5rem; font-size: 0.85rem; color: var(--pd-ink-soft); }
.pd-stat__divider { width: 1px; height: 48px; background: var(--pd-line); justify-self: center; }
@media (max-width: 640px) {
  .pd-stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .pd-stat { padding: 0 0.5rem; }
  .pd-stat__divider { display: none; }
}

/* Services */
.pd-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.pd-service-grid--wide { max-width: 1160px; }
.pd-service-card { display: block; background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 14px; overflow: hidden; text-decoration: none !important; color: var(--pd-ink); transition: border-color .15s ease, transform .15s ease; }
.pd-service-card:hover { border-color: var(--pd-accent); transform: translateY(-2px); }
.pd-service-card__media { position: relative; aspect-ratio: 4/3; background: var(--pd-accent-soft); overflow: hidden; }
.pd-service-card__media img { width: 100% !important; height: 100% !important; object-fit: cover; }
.pd-service-card__icon { position: absolute; left: 0.9rem; bottom: 0.9rem; width: 2.2rem; height: 2.2rem; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; background: var(--pd-surface); color: var(--pd-accent-dark); border-radius: 8px; box-shadow: 0 4px 10px rgba(11,58,52,0.15); }
.pd-service-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.pd-service-card h4 { font-size: 1.02rem; margin: 0 0 0.4rem; }
.pd-service-card p { color: var(--pd-ink-soft); font-size: 0.88rem; margin: 0; }
.pd-view-all { text-align: center; margin-top: 1.8rem; }

/* Doctors */
.pd-doctor-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: 1160px; margin: 0 auto 1.8rem; padding: 0 1.5rem; flex-wrap: wrap; }
.pd-doctor-head__title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; max-width: 32ch; }
.pd-carousel-nav { display: flex; gap: 0.6rem; flex: none; }
.pd-carousel-arrow { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--pd-line); background: var(--pd-surface); color: var(--pd-accent-dark); font-size: 1.1rem; cursor: pointer; transition: background .15s ease; }
.pd-carousel-arrow:hover { background: var(--pd-accent-soft); }
.pd-doctor-track { display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.3rem 1.5rem 1rem; scroll-snap-type: x mandatory; justify-content: center; }
.pd-doctor-card { flex: 0 0 260px; scroll-snap-align: start; border-radius: 16px; overflow: hidden; position: relative; background: var(--pd-ink); }
.pd-doctor-card__photo { position: relative; width: 100%; aspect-ratio: 3/4; background: var(--pd-accent-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-doctor-card__photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.pd-doctor-card__photo .dashicons { font-size: 3rem; width: 3rem; height: 3rem; color: var(--pd-accent); }
.pd-doctor-card__name { background: var(--pd-surface); padding: 0.9rem 1rem; font-weight: 700; font-size: 0.98rem; }
.pd-doctor-card__name span { display: block; font-weight: 500; font-size: 0.82rem; color: var(--pd-ink-soft); margin-top: 0.15rem; }

/* Testimonials */
.pd-testi-track { display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.5rem 1.5rem 1rem; scroll-snap-type: x mandatory; justify-content: center; max-width: 1080px; margin: 0 auto; }
.pd-testi-card { flex: 0 0 300px; scroll-snap-align: start; background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 14px; padding: 1.4rem; }
.pd-testi-card__stars { color: var(--pd-warm); letter-spacing: 0.1em; }
.pd-testi-card p { font-style: italic; color: var(--pd-ink); margin: 0.6rem 0; }
.pd-testi-card__name { font-size: 0.85rem; color: var(--pd-ink-soft); font-weight: 600; }

/* Before / After — tabbed "Smile transformations" gallery */
.pd-ba-wrap { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.pd-ba-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; }
.pd-ba-tab { padding: .7rem 1.4rem; border: none; border-bottom: 3px solid var(--pd-line); background: var(--pd-surface); color: var(--pd-ink); font-family: inherit; font-weight: 700; font-size: .92rem; border-radius: 8px 8px 0 0; cursor: pointer; transition: background .15s ease, color .15s ease; }
.pd-ba-tab:hover { background: var(--pd-accent-soft); }
.pd-ba-tab.is-active { background: linear-gradient(90deg, var(--pd-accent-dark), var(--pd-accent)); color: #fff; border-bottom-color: transparent; }
.pd-ba-viewer { border: 3px solid var(--pd-accent); border-radius: 10px; overflow: hidden; }
.pd-ba-slider { position: relative; width: 100%; aspect-ratio: 3/2; overflow: hidden; cursor: ew-resize; user-select: none; touch-action: none; background: var(--pd-paper); }
.pd-ba-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.pd-ba-img--after { clip-path: inset(0 0 0 50%); }
.pd-ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; transform: translateX(-50%); pointer-events: none; }
.pd-ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(18,48,44,.15); }
.pd-ba-grip { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(11,58,52,.28); pointer-events: none; }
.pd-ba-grip svg { width: 16px; height: 16px; }
.pd-ba-nav { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.3rem; }
.pd-ba-arrow { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--pd-line); background: var(--pd-surface); color: var(--pd-accent-dark); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background .15s ease; }
.pd-ba-arrow:hover { background: var(--pd-accent-soft); }
.pd-ba-case-label { font-weight: 700; color: var(--pd-ink); font-size: .95rem; min-width: 12ch; text-align: center; }

/* Equipment / Advanced Technology */
.pd-equip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.pd-equip-card { background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 16px; overflow: hidden; }
.pd-equip-card__media { position: relative; aspect-ratio: 16/10; background: var(--pd-accent-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-equip-card__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.pd-equip-card__placeholder { font-size: 2.6rem; width: 2.6rem; height: 2.6rem; color: var(--pd-accent); }
.pd-equip-card__body { padding: 1.5rem 1.6rem 1.7rem; }
.pd-equip-card__title { font-size: 1.2rem; margin: 0 0 0.3rem; color: var(--pd-ink); }
.pd-equip-card__subtitle { font-size: 0.88rem; font-weight: 700; color: var(--pd-accent-dark); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.6rem; }
.pd-equip-card__text { color: var(--pd-ink-soft); font-size: 0.94rem; line-height: 1.6; margin: 0; }

/* Blog */
.pd-blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.pd-blog-card { display: block; background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 14px; overflow: hidden; text-decoration: none !important; color: var(--pd-ink); transition: transform .15s ease; }
.pd-blog-card:hover { transform: translateY(-2px); }
.pd-blog-card__media { position: relative; aspect-ratio: 16/10; background: var(--pd-accent-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-blog-card__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.pd-blog-card__media .dashicons { font-size: 2.4rem; width: 2.4rem; height: 2.4rem; color: var(--pd-accent); }
.pd-blog-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.pd-blog-card__date { font-size: 0.76rem; color: var(--pd-accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.pd-blog-card h4 { font-size: 1.02rem; margin: 0.4rem 0 0.4rem; }
.pd-blog-card p { color: var(--pd-ink-soft); font-size: 0.88rem; margin: 0; }

/* CTA */
.pd-cta { background: var(--pd-accent-dark); color: #fff; text-align: center; padding: 3.5rem 1.5rem; border-radius: 0; }
.pd-cta h2 { color: #fff; margin: 0 0 0.6rem; }
.pd-cta p { color: #DCF3EF; max-width: 56ch; margin: 0 auto 1.6rem; }

/* Clinic info + form */
.pd-clinic-info { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.2rem 0; }
.pd-clinic-info__label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pd-ink-soft); font-weight: 700; }
.pd-clinic-info__value { font-size: 1.05rem; color: var(--pd-ink); }
.pd-clinic-info__value a { color: var(--pd-accent-dark); text-decoration: none !important; }

.pd-clinic-info--compact { flex-direction: row; flex-wrap: wrap; gap: 1.6rem; margin-top: 1rem; }
.pd-clinic-info--compact .pd-clinic-info__label { margin-bottom: 0.15rem; }

.pd-cf7 { background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 16px; padding: 1.5rem; box-shadow: 0 1px 2px rgba(11,58,52,0.05), 0 12px 28px -16px rgba(11,58,52,0.18); }
.pd-cf7 form p { margin: 0 0 0.75rem; }
.pd-cf7 label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--pd-ink); }
.pd-cf7 input[type=text], .pd-cf7 input[type=tel], .pd-cf7 input[type=email], .pd-cf7 input[type=date], .pd-cf7 select, .pd-cf7 textarea {
  width: 100%; border: 1px solid var(--pd-line); border-radius: 8px; padding: 0.6rem 0.8rem; font-family: inherit; font-size: 0.95rem; background: var(--pd-paper); box-sizing: border-box;
}
.pd-cf7 input:focus, .pd-cf7 select:focus, .pd-cf7 textarea:focus { outline: 2px solid var(--pd-accent); outline-offset: 1px; }
.pd-cf7 .pd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 560px) { .pd-cf7 .pd-form-row { grid-template-columns: 1fr; } }
.pd-cf7 input[type=submit] {
  width: 100%; background: linear-gradient(90deg, var(--pd-accent-dark), var(--pd-accent));
  color: #fff; border: none; border-radius: 999px; padding: 0.95rem 1.8rem; font-weight: 700; font-size: 1rem; cursor: pointer; margin-top: 0.3rem;
}
.pd-cf7 input[type=submit]:hover { opacity: 0.92; }
.pd-cf7 .wpcf7-not-valid-tip { color: #C0392B; font-size: 0.8rem; margin-top: 0.3rem; }

/* Flatpickr — dropdown date/time pickers on Appointment Date/Time, tinted
   to match the site accent instead of Flatpickr's default blue. */
.pd-cf7 input[readonly] { background: var(--pd-paper); cursor: pointer; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--pd-accent); border-color: var(--pd-accent); }
.flatpickr-day.today { border-color: var(--pd-accent); }
.flatpickr-day:hover { background: var(--pd-accent-soft); }
.flatpickr-time input:hover, .flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time input:focus, .flatpickr-time .flatpickr-am-pm:focus { background: var(--pd-accent-soft); }
.flatpickr-current-month .flatpickr-monthDropdown-months:hover, .numInputWrapper:hover { background: var(--pd-accent-soft); }
.pd-cf7 .wpcf7-response-output { border-radius: 8px; margin-top: 1rem; }

@media (max-width: 640px) {
  .pd-hero { padding: 3.5rem 1.2rem; }
  .pd-cta { padding: 2.8rem 1.2rem; }
}

/* Footer — Astra's own footer is hidden; this is injected in its place. */
.site-footer { display: none; }
.pd-footer { background: var(--pd-accent-dark); color: #DCF3EF; padding: 4rem 1.5rem 0; }
.pd-footer__grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.pd-footer__logo { max-height: 80px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1.1rem; }
.pd-footer__brand p { margin: 0 0 1.1rem; font-size: 0.9rem; color: #BEEEE6; max-width: 32ch; }
.pd-footer__social { display: flex; gap: 0.7rem; }
.pd-footer__social a { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none !important; font-size: 0.85rem; font-weight: 700; }
.pd-footer__social a:hover { background: var(--pd-warm); }
.pd-footer h5 { color: #fff; font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; margin: 0 0 1.1rem; }
.pd-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.pd-footer ul a { color: #BEEEE6; text-decoration: none !important; font-size: 0.9rem; }
.pd-footer ul a:hover { color: #fff; }
.pd-footer__contact li { display: flex; align-items: flex-start; gap: 0.6rem; color: #BEEEE6; font-size: 0.9rem; }
.pd-footer__contact .dashicons { font-size: 1.1rem; width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; color: var(--pd-warm); flex: none; }
.pd-footer__contact a { color: #BEEEE6; text-decoration: none !important; }
.pd-footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 1.3rem 0; text-align: center; font-size: 0.82rem; color: #9FD8CE; }

@media (max-width: 860px) {
  .pd-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pd-footer__grid { grid-template-columns: 1fr; }
}

/* Blog post: share buttons, related articles, closing booking section */
.pd-share { display: flex; align-items: center; gap: 0.7rem; margin: 2.5rem 0 3rem; padding-top: 1.8rem; border-top: 1px solid var(--pd-line); }
.pd-share__label { font-size: 0.85rem; font-weight: 700; color: var(--pd-ink-soft); margin-right: 0.3rem; }
.pd-share a { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--pd-accent-soft); color: var(--pd-accent-dark); display: flex; align-items: center; justify-content: center; text-decoration: none !important; font-size: 0.85rem; font-weight: 700; }
.pd-share a:hover { background: var(--pd-accent); color: #fff; }

.pd-related { margin: 0 0 3rem; }
.pd-related h3 { font-size: 1.3rem; margin: 0 0 1.3rem; }
.pd-related .pd-blog-grid { max-width: none; padding: 0; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .pd-related .pd-blog-grid { grid-template-columns: 1fr; } }

.pd-post-booking { background: var(--pd-accent-soft); border-radius: 16px; padding: 2.5rem; margin: 0 0 1rem; }
.pd-post-booking .pd-eyebrow { display: block; }
.pd-post-booking h2 { font-size: 1.5rem; margin: 0 0 1.5rem; }
.pd-post-booking__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: start; }
.pd-post-booking .pd-clinic-info--compact { margin-top: 0.9rem; }
@media (max-width: 720px) {
  .pd-post-booking { padding: 1.6rem; }
  .pd-post-booking__grid { grid-template-columns: 1fr; }
}
