
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 112.5%; }  /* 18px base (up from 16px) — scales all rem values */
:root{
  --primary-color:#8C7B6B;
  --secondary-color:#FBF8F3;
  --accent-color:#C4A87C;
  --text-color:#3B3229;
  --bg-light:#FAF8F5;
  --focus:#C4A87C;
}
body{
  font-family:'Montserrat',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  color:var(--text-color);
  line-height:1.7;
  background:#fff;
  font-weight:400;
  letter-spacing:0.01em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
:focus-visible{ outline:3px solid var(--focus); outline-offset:3px; border-radius:4px; }
.visually-hidden{
  position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; border:0; padding:0; margin:-1px;
}
.skip-link{
  position:absolute; left:-9999px; top:auto; z-index:10000;
  background:#000; color:#fff; padding:.5rem .75rem; border-radius:6px;
}
.skip-link:focus{ left:1rem; top:1rem; }

.container{ max-width:1200px; margin:0 auto; padding:0 20px; }
section{ padding:100px 20px; scroll-margin-top:110px; }

header{
  background:var(--secondary-color);
  padding:1.4rem 0;
  box-shadow:0 1px 0 rgba(196,168,124,.25);
  border-bottom:1px solid rgba(196,168,124,.18);
}
.header-content{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.logo img{ height:60px; width:auto; max-width:320px; object-fit:contain; display:block; }
.header-contact{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:12px 24px; border-radius:6px; font-weight:600; text-decoration:none; transition:all .3s ease;
  letter-spacing:0.04em; font-size:0.95rem; text-transform:uppercase;
}
.btn:where(:hover,:focus-visible){ filter:brightness(.93); }
.btn.book{ background:var(--primary-color); color:#fff; }
.btn.phone{ background:#3a5456; color:#fff; }

nav.site-nav{
  background:rgba(140,123,107,.40);
  backdrop-filter:saturate(120%) blur(10px);
  -webkit-backdrop-filter:saturate(120%) blur(10px);
  position:sticky; top:0; z-index:1000;
  box-shadow:0 2px 8px rgba(0,0,0,.10);
}
.nav-wrap{ display:flex; align-items:center; justify-content:space-between; }
.nav-toggle{
  display:none; background:none; border:2px solid #3B3229; color:#3B3229; padding:.5rem .75rem; border-radius:8px; cursor:pointer; transition:color .3s ease, border-color .3s ease;
}
.nav-content{ width:100%; }
.menu{ list-style:none; display:flex; justify-content:center; gap:24px; padding:0; margin:0; }
.menu > li{ position:relative; white-space:nowrap; }
.menu a{ color:#3B3229; text-decoration:none; display:block; padding:1rem .15rem; font-weight:500; font-size:0.85rem; transition:color .3s ease; letter-spacing:0.05em; text-transform:uppercase; }
.menu a:hover{ color:var(--accent-color); }
nav.site-nav.scrolled .menu a{ color:#fff; }
nav.site-nav.scrolled .menu a:hover{ color:var(--accent-color); }
.dropdown > a::after{ content:" ▾"; font-size:.8em; }
.submenu{
  display:none; position:absolute; top:100%; left:0; min-width:280px;
  background:#fff; border-radius:0 0 8px 8px; box-shadow:0 6px 12px rgba(0,0,0,.2); padding:.35rem 0;
}
.submenu a{ color:var(--text-color); padding:.75rem 1rem; }
.submenu a:hover{ background:var(--bg-light); color:var(--accent-color); }
.dropdown:hover .submenu, .dropdown:focus-within .submenu{ display:block; }

.hero{
  position:relative; min-height:1024px; display:flex; align-items:flex-end; justify-content:center; text-align:center; color:var(--text-color); padding-bottom:2rem;
  border-bottom:none;
  background:
    linear-gradient(to bottom, transparent 70%, rgba(60,45,30,.12) 88%, rgba(60,45,30,.18)),
    url("images/hero/mfd_hero_image.png?v=20260406")
    center center / cover no-repeat;
}
.hero::after{
  content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:120px; height:2px; background:linear-gradient(90deg, transparent, var(--accent-color), transparent);
}
.hero-content{
  background:rgba(255,255,255,.93); border-radius:16px; padding:52px 48px; max-width:860px;
  backdrop-filter:saturate(120%) blur(6px); -webkit-backdrop-filter:saturate(120%) blur(6px);
  border:1px solid rgba(196,168,124,.15);
  box-shadow:0 12px 40px rgba(59,50,41,.08);
}
.hero h1{
  margin:0 0 .75rem; font-size:2.667rem; color:var(--primary-color);
  font-family:'Cormorant Garamond','Georgia',serif; font-weight:600; letter-spacing:0.02em; line-height:1.2;
}
.hero p{ margin:.25rem 0 1rem; font-size:1.15rem; line-height:1.8; font-weight:300; }
.breadcrumbs{ margin:.25rem 0 0; font-size:.9rem; letter-spacing:0.06em; text-transform:uppercase; font-weight:500; }
.breadcrumbs a{ color:var(--primary-color); text-decoration:none; }
.breadcrumbs a:hover{ color:var(--accent-color); }
.breadcrumbs .sep{ margin:0 .35rem; opacity:.4; }

.introduction{ background:var(--secondary-color); }
.section-title{
  font-family:'Cormorant Garamond','Georgia',serif;
  font-size:2.6rem; font-weight:600; color:var(--primary-color); text-align:center; margin-bottom:1rem;
  letter-spacing:0.02em; line-height:1.2;
}
.section-title::after{
  content:''; display:block; width:60px; height:2px; margin:0.75rem auto 0;
  background:linear-gradient(90deg, transparent, var(--accent-color), transparent);
}
.intro-content{ max-width:820px; margin:0 auto; text-align:center; }
.intro-content p{ font-size:1.05rem; line-height:1.9; color:var(--text-color); margin-bottom:18px; font-weight:300; }

.services{ background:var(--bg-light); }
.services-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:28px; margin-top:32px; }
.service-card{
  background:#fff; padding:32px 28px; border-radius:14px; text-align:center;
  box-shadow:0 2px 12px rgba(0,0,0,.05);
  border:1px solid rgba(196,168,124,.12);
  position:relative; overflow:hidden;
}
.service-card::before{
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:40px; height:2px; background:var(--accent-color); opacity:.6;
}
.service-card h3{
  margin:0 0 .6rem; color:var(--primary-color); font-size:1.15rem;
  font-family:'Cormorant Garamond','Georgia',serif; font-weight:600; font-size:1.35rem;
  letter-spacing:0.01em;
}

.doctor{ background:var(--secondary-color); }
.doctor-content{ display:flex; gap:48px; align-items:center; flex-wrap:wrap; }
.doctor-image, .doctor-info{ flex:1 1 320px; }
.doctor-placeholder{ background:#EAE3D8; padding:120px 40px; border-radius:14px; text-align:center; color:var(--primary-color); }
.doctor-info h3{
  color:var(--primary-color); font-size:1.8rem; margin-bottom:.5rem;
  font-family:'Cormorant Garamond','Georgia',serif; font-weight:600; letter-spacing:0.01em;
}
.doctor-info .credentials{
  color:var(--accent-color); font-weight:500; margin:.25rem 0 1.25rem;
  letter-spacing:0.08em; text-transform:uppercase; font-size:.85rem;
}
.doctor-info p{ font-weight:300; line-height:1.85; }
.doctor-info em{
  font-family:'Cormorant Garamond','Georgia',serif; font-size:1.15rem; line-height:1.7;
  color:var(--primary-color); display:block; margin-top:0.5rem;
  padding-left:1.25rem; border-left:2px solid var(--accent-color);
}

/* Affiliations logo bar */
.affiliations{
  margin-top:2.5rem;
  padding-top:2rem;
  border-top:1px solid rgba(140,123,107,0.15);
}
.affiliations-logos{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:2rem 2.5rem;
}
.affiliations-logos img{
  height:48px;
  width:auto;
  opacity:0.7;
  transition:opacity 0.3s ease;
  filter:grayscale(30%);
}
.affiliations-logos img:hover{
  opacity:1;
  filter:grayscale(0%);
}
@media(max-width:600px){
  .affiliations-logos{ gap:1.25rem 1.5rem; }
  .affiliations-logos img{ height:36px; }
}

/* Service page affiliations (smaller, inline) */
.service-affiliations{
  margin-top:1.5rem;
  padding-top:1.25rem;
  border-top:1px solid rgba(140,123,107,0.12);
}
.service-affiliations p{
  font-size:0.8rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--primary-color);
  margin-bottom:0.75rem;
  font-weight:500;
}
.service-affiliations .affiliations-logos{
  justify-content:flex-start;
  gap:1.25rem 1.75rem;
}
.service-affiliations .affiliations-logos img{
  height:36px;
}

.reviews{ background:var(--bg-light); }
.reviews .section-title{
  font-family:'Cormorant Garamond','Georgia',serif;
  font-size:2.6rem; font-weight:600; color:var(--primary-color); text-align:center;
}
.review-cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap:28px; margin-top:32px; }
.review-card{
  background:#fff; padding:28px 26px; border-radius:14px;
  box-shadow:0 2px 12px rgba(0,0,0,.05);
  border:1px solid rgba(196,168,124,.1);
  position:relative;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.review-card::before{
  content:'\201C'; position:absolute; top:12px; left:18px;
  font-family:'Cormorant Garamond','Georgia',serif;
  font-size:3.5rem; color:var(--accent-color); opacity:.25; line-height:1;
}
.review-card:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.review-card p{ font-weight:300; }
.review-date{ font-size:.85rem; color:#9A8E82; letter-spacing:0.03em; }

.contact{ background:var(--primary-color); color:#fff; }
.contact .section-title{ color:#fff; }
.contact .section-title::after{ background:linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); }
.contact .contact-btn{ background:var(--accent-color); color:#fff; }
.contact-content{ display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:32px; }
.contact h3{
  font-family:'Cormorant Garamond','Georgia',serif; font-size:1.4rem; font-weight:500;
  letter-spacing:0.02em; margin-bottom:.75rem;
}

/* Improve readability of textual links in Contact section */
.contact .contact-info p a,
.contact .contact-info p a:visited{
  color:#fff;
  font-weight:700;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.95);
}
.contact .contact-info p a:hover,
.contact .contact-info p a:focus{
  text-decoration-thickness: 3px;
}

.social-links{ display:flex; gap:14px; margin-top:16px; }
.social-links a{ width:48px; height:48px; border-radius:50%; background:#fff; display:inline-flex; align-items:center; justify-content:center; }
.social-links img{ width:24px; height:24px; }
.map-container{ margin-top:28px; border-radius:12px; overflow:hidden; box-shadow:0 4px 12px rgba(0,0,0,.2); }
.map-container iframe{ width:100%; height:400px; border:0; }

@media (max-width: 768px){
  .header-content{ flex-direction:column; align-items:flex-start; }
  .header-contact{ width:100%; }
  .btn{ width:100%; }
  .nav-toggle{ display:inline-block; }
  .menu{ display:none; flex-direction:column; align-items:flex-start; gap:0; }
  nav.site-nav.open .menu{ display:flex; }
  .submenu{ position:static; display:none; box-shadow:none; border-radius:0; background:var(--bg-light); }
  .dropdown.active .submenu{ display:block; }
  .hero h1{ font-size:1.778rem; }
  .hero p{ font-size:1rem; }
  .hero-content{ padding:32px 24px; }
  .section-title{ font-size:2rem; }
}

/* ====== MEDIA MOSAIC (About page) ====== */
.media-mosaic{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
  margin:28px 0;
}
.media-mosaic .ph{
  background:#EAE3D8;
  border-radius:12px;
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7A6B5D;
  font-weight:600;
  text-align:center;
  padding:16px;
}
@media (min-width: 900px){
  .media-mosaic .wide{ grid-column: span 8; }
  .media-mosaic .tall{ grid-column: span 4; }
  .media-mosaic .half{ grid-column: span 6; }
}
@media (max-width: 899px){
  .media-mosaic > *{ grid-column: span 12; }
}

/* ====== PLANS & TABLES ====== */
.plans-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:24px; margin-top:24px;
}
.plan-card{
  background:#fff; border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,.08);
  padding:24px; text-align:left;
}
.plan-card h3{ margin:0 0 .25rem; color:var(--primary-color); }
.plan-card .price{ font-size:1.8rem; font-weight:800; color:var(--accent-color); display:block; margin:.25rem 0 .5rem; }
.plan-card ul{ margin:0; padding-left:1.1rem; }
.plan-card li{ margin:.35rem 0; }
.plan-card .small{ font-size:.9rem; color:#7A6B5D; margin-top:.5rem; }

table.compare{
  width:100%; border-collapse:separate; border-spacing:0; margin-top:20px; overflow:hidden; border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.08); background:#fff;
}
table.compare thead th{
  background:var(--primary-color); color:#fff; padding:12px; text-align:left;
}
table.compare th, table.compare td{ padding:12px; border-bottom:1px solid #e5e7eb; vertical-align:top; }
table.compare tr:last-child td{ border-bottom:0; }
table.compare th[scope="row"]{ background:#f8fafc; width:28%; color:#0f172a; font-weight:700; }

.badge{
  display:inline-block; padding:.25rem .5rem; border-radius:999px; background:#EAE3D8; color:#0f172a; font-weight:600; font-size:.85rem;
}

/* ====== TEAM GRID ====== */
.team-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:24px; margin-top:24px;
}
.team-card{
  background:#fff; border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,.08);
  padding:24px; text-align:left; display:flex; flex-direction:column; align-items:flex-start; gap:14px;
}
.team-card .avatar{
  width:120px; height:120px; border-radius:999px; background:#EAE3D8; display:flex; align-items:center; justify-content:center;
  color:#7A6B5D; font-weight:700; font-size:.95rem;
}
.team-card h3{ margin:0; color:var(--primary-color); }
.team-card .role{ font-weight:700; color:var(--accent-color); }
.team-card ul{ margin:0; padding-left:1.1rem; }
.team-card li{ margin:.35rem 0; }
.team-card .tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.team-card .tag{ background:#f1f5f9; border-radius:999px; padding:.2rem .55rem; font-size:.85rem; font-weight:600; color:#334155; }

/* ====== DOCTOR MINI GALLERY ====== */
.doctor-gallery{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
.doc-photo{
  background:#EAE3D8;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7A6B5D;
  font-weight:700;
  text-align:center;
  padding:16px;
  aspect-ratio: 4 / 3;
}
@media (min-width: 1000px){
  .doctor-gallery{ grid-template-columns: 1fr; }
}

/* ====== OVERVIEW MEDIA LAYOUT ====== */
.overview.two-col{ display:grid; grid-template-columns: 1fr; gap:24px; align-items:start; }
.overview .overview-media{ width:100%; }
.overview .overview-text{ width:100%; }
.overview .overview-media-placeholder{
  background:#EAE3D8; border-radius:12px; padding:16px; min-height:220px;
  display:flex; align-items:center; justify-content:center; text-align:center; color:#7A6B5D; font-weight:700;
}
.overview .overview-media img{ width:100%; height:auto; display:block; border-radius:12px; }
@media (min-width: 900px){
  .overview.two-col{ grid-template-columns: minmax(240px, 380px) 1fr; }
  .overview.two-col.media-right{ grid-template-columns: 1fr minmax(240px, 380px); }
  .overview.two-col.media-right .overview-media{ order:2; }
  .overview.two-col.media-right .overview-text{ order:1; }
}

/* ====== CONTACT APPOINTMENT & INQUIRY ====== */
.appointment { background: var(--bg-light); }
.appointment .grid-2 { display: grid; gap: 32px; }
.appointment .embed-box, .appointment .form-box {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px;
}
.embed-title, .form-title { color: var(--primary-color); margin-bottom: 12px; }
.embed-placeholder .placeholder-tile {
  background:#EAE3D8; border-radius: 10px; padding: 28px; text-align:center; color:#7A6B5D; font-weight:700;
}
.embed-note { margin-top: 12px; }
.form-row { display: grid; gap: 16px; margin-bottom: 12px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.field label { display:block; font-weight:600; margin-bottom:6px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width:100%; border:1px solid #cbd5e1; border-radius:8px; padding:12px; font: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.field-hint { font-size: 0.9rem; color:#64748B; margin-top:6px; }
.field.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-actions { display:flex; align-items:center; gap: 16px; flex-wrap:wrap; margin-top: 8px; }
.form-status { margin-top: 12px; font-weight:600; }
@media (min-width: 900px){
  .appointment .grid-2 { grid-template-columns: 1fr 1fr; }
}

.disclaimer{color:#7A6B5D;font-size:0.95rem;}

/* PHI warning box */
.phi-warning{
  background:#FFF8F0; border:1px solid #E8D5B8; border-left:4px solid var(--accent-color);
  border-radius:6px; padding:16px 20px; margin-bottom:4px;
}
.phi-warning p{font-size:0.92rem;color:var(--text-color);line-height:1.6;margin-bottom:8px;}
.phi-warning p:last-child{margin-bottom:0;}
.phi-warning a{color:var(--primary-color);text-decoration:underline;}

/* Consent checkbox */
.consent-field{margin-top:0;}
.consent-label{display:flex;align-items:flex-start;gap:10px;font-size:0.92rem;color:var(--text-color);line-height:1.5;cursor:pointer;}
.consent-label input[type="checkbox"]{
  margin-top:3px; flex-shrink:0; width:18px; height:18px; accent-color:var(--primary-color); cursor:pointer;
}

/* ====== ONLINE SCHEDULER EMBED ====== */
.scheduler-frame{
  width:100%;
  min-height:720px;
  border:0;
  border-radius:12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.embed-cta{ margin-top: 12px; }
@media (max-width: 600px){
  .scheduler-frame{ min-height: 560px; }
}

/* ====== SCHEDULER BUTTON (no iframe) ====== */
.schedule-cta { display:flex; align-items:center; justify-content:center; }
.schedule-btn { display:block; width:100%; text-align:center; padding:16px 24px; font-size:1.125rem; border-radius:8px; }
@media (min-width: 900px){
  .schedule-cta { justify-content:flex-start; }
  .schedule-btn { width:auto; }
}

/* ====== CONTACT LAYOUT ORDER (schedule left, form right) ====== */
.appointment .grid-2 {
  display: grid;
  grid-template-areas:
    "schedule"
    "form";
  gap: 32px;
}
.appointment .embed-box { grid-area: schedule; }
.appointment .form-box { grid-area: form; }
@media (min-width: 768px){
  .appointment .grid-2 {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
    grid-template-areas: "schedule form";
    column-gap: 32px;
  }
}

/* ====== PROMOTIONS ====== */
.promo-hero-img{
  width:100%;
  height:auto;
  max-height:400px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:2rem;
}
.promo-intro.two-col { display:grid; gap:32px; }
.promo-cta-card { background: var(--secondary-color); border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.promo-cta-title { color: var(--primary-color); margin-bottom: 12px; }
.promo-perks { list-style: none; padding-left: 0; }
.promo-perks li { margin: 8px 0; }
.promo-cta-buttons { display:flex; gap:12px; flex-wrap:wrap; margin-top: 12px; }
.promo-note { margin-top: 8px; color:#7A6B5D; }
.promo-steps { padding-left: 20px; }
.promo-disclaimer { margin-top: 8px; color:#64748B; font-size:0.95rem; }
@media (min-width: 900px){
  .promo-intro.two-col { grid-template-columns: 2fr 1fr; }
}

/* ====== PROMO LIST ALIGNMENT FIX ====== */
.promo-text { text-align: left; }
.promo-list { list-style: disc; list-style-position: outside; margin: 0 0 1rem 1.25rem; padding: 0; }
.promo-list li { margin: 6px 0; text-align: left; }

/* ====== SERVICE CARD HOVER ELEVATION (global) ====== */
.service-card{
  transition: transform 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}
.service-card:hover,
.service-card:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
@media (prefers-reduced-motion: reduce){
  .service-card{ transition: none; }
}

/* ====== BUTTON HOVER ELEVATION (global) ====== */
.btn{
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}
.btn:hover,
.btn:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12), 0 0 0 3px rgba(196,168,124,0.35); /* soft elevation + focus ring */
}
.btn:active{
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
}

/* ====== HOURS LIST ====== */
.hours-list{ margin: 0 0 12px 0; padding-left: 1.1rem; }
.hours-list li{ margin: 4px 0; }

/* ====== BLOG LIST & POST ====== */
.blog-list{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.blog-card{
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.blog-card:hover, .blog-card:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.blog-card-link{ display:block; color: inherit; text-decoration:none; }
.blog-thumb{ aspect-ratio: 16/9; width:100%; overflow:hidden; background:#EAE3D8; }
.blog-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.blog-thumb-placeholder{ background: linear-gradient(180deg,#EAE3D8,#DDD4C6); }
.blog-card-body{ padding: 16px 18px; }
.blog-date{ display:block; font-size:0.95rem; color:#64748B; margin-bottom:6px; }
.blog-title{ font-size:1.2rem; color: var(--primary-color); margin: 0 0 6px 0; }
.blog-excerpt{ color: var(--text-color); margin: 0 0 8px 0; }
.blog-meta{ color:#7A6B5D; font-size:0.95rem; }

/* Single post */
.post .post-media{ margin: 20px 0; }
.post-figure{ margin:0; }
.post-figure .img-ph{ width:100%; height:260px; background:#EAE3D8; border-radius: 10px; }
.post-figure .img-ph.wide{ height:320px; }
.post-content{ font-size:1.05rem; line-height:1.8; }
.post-content h2, .post-content h3{ color: var(--primary-color); margin-top: 1.2em; margin-bottom: .4em; }
.post-content p{ margin: .6em 0; }
.post-content blockquote{
  margin: 1em 0; padding: .6em 1em; border-left: 4px solid var(--accent-color); background: #faf9f7;
  font-style: italic;
}
.post-footer{ margin: 24px 0 8px; display:flex; gap:12px; flex-wrap:wrap; }


/* === Accessibility Enhancements === */
:focus-visible { outline: 3px solid #0ea5e9; outline-offset: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid #0ea5e9; outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #111827; color: #fff; padding: 8px 12px; z-index: 10000; border-radius: 6px; }
.skip-link:focus { left: 12px; }
.site-nav a { text-underline-offset: .15em; }
.site-nav a:hover, .site-nav a:focus { text-decoration: underline; }
.btn { text-underline-offset: .15em; }
.btn:hover, .btn:focus { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.contact .contact-info a { color: #fff; font-weight: 700; text-decoration: underline; }
.contact .contact-info a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Ensure placeholder figures don't show gray boxes when replaced */
.post-figure img { display:block; width:100%; height:auto; border-radius: 12px; }


/* Brand lockup (icon + wordmark) */
.logo .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .brand img { 
	display: 	block;
	height:		48px;
	width:		48px;
	object-fit: contain;
	}
.logo .brand .brand-text {
	font-family: 'Cormorant Garamond','Georgia',serif;
	font-weight: 700;
	font-size: 1.956rem;
	letter-spacing:	0.08em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--text-color, #1E293B);
	}

@media (max-width: 480px){
  .logo .brand .brand-text { font-size: 0.844rem; letter-spacing: 0.04em; }
}

/* Constrain large videos on content sections */
.media-constrained { max-width: 480px; margin: 0 auto; }
.video-responsive { width: 480px; height: auto; display: block; border-radius: 12px; }
@media (max-width: 480px){ .media-constrained { max-width: 100%; } }



/* Mini people gallery inside team cards */
.team-mini { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(120px, 1fr)); 
  gap: 16px; 
  align-items: start; 
  margin: 6px 0 8px; 
}
@media (max-width: 520px){
  .team-mini { grid-template-columns: 1fr; }
}
.team-mini .person { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.team-mini .person .avatar { width: 140px; height: 140px; border-radius: 999px; object-fit: cover; background: #e2e8f0; }
.team-mini .person figcaption { font-weight: 600; color: var(--text-color); font-size: 0.95rem; text-align: center; }

/* === Doctor section enhancements === */
.doctor .doctor-content.side-by-side {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 1.5rem;
  align-items: start;
}
.doctor .doctor-image { display: flex; flex-direction: column; gap: 0.75rem; }
.doctor .doctor-gallery.team-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.doctor .doctor-gallery .person { margin: 0; text-align: center; }
.doctor .doctor-gallery .person .avatar { width: 100%; height: auto; border-radius: 8px; display: block; }
.doctor .doctor-working { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.doctor .doctor-working .work-photo { width: calc(33.333% - 0.333rem); border-radius: 8px; height: auto; display: block; }
@media (max-width: 800px) {
  .doctor .doctor-content.side-by-side { grid-template-columns: 1fr; }
  .doctor .doctor-working .work-photo { width: 32%; }
}
/* hero image on home */
.doctor-hero { max-width: 420px; width: 100%; height: auto; border-radius: 12px; display: block; }

/* === Lead Dentist layout refinements === */
.doctor .doctor-content.side-by-side {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr; /* images left, bio right */
  gap: 1.5rem;
  align-items: start;
}
/* Portrait gallery: three across, circular like staff */
.doctor .doctor-gallery.team-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.doctor .doctor-gallery .person { margin: 0; text-align: center; }
.doctor .doctor-gallery .person .doctor-portrait {
  width: 100%;
  height: auto;           /* preserve original aspect ratio */
  border-radius: 50%;     /* circular mask (no distortion if images are square) */
  display: block;
}
/* Working photos stacked vertically */
.doctor .doctor-working {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.doctor .doctor-working .work-photo {
  width: 100%;  /* fill column width */
  height: auto; /* preserve original aspect ratio */
  display: block;
  border-radius: 8px;
}
@media (max-width: 800px) {
  .doctor .doctor-content.side-by-side { grid-template-columns: 1fr; }
}\n\n/* === Circular portrait icons without distortion === */
.doctor .doctor-gallery .person .doctor-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;   /* force square box */
  object-fit: cover;      /* center-crop to square */
  border-radius: 50%;     /* circular mask */
  display: block;
  height: auto;           /* OK with aspect-ratio for fallback */
}\n

/* === Media centering utility for post-media sections === */
.post-media .post-figure {
  display: flex;
  justify-content: center;
}
.post-media .post-figure video,
.post-media .post-figure iframe {
  max-width: 100%;
  height: auto;
}


/* === Avatar circle hardening === */
.doctor .doctor-gallery.team-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 0.75rem;
  justify-items: center; /* center each avatar tile */
}
.doctor .doctor-gallery .person { margin: 0; text-align: center; }
.doctor .doctor-gallery .person .doctor-portrait {
  width: 140px;          /* explicit square to prevent oval rendering from parent widths */
  height: 140px;         /* keeps it square */
  max-width: 100%;       /* responsive downscale on small screens */
  object-fit: cover;     /* crop to square without distortion */
  border-radius: 50%;    /* perfect circle */
  display: block;
}
@media (max-width: 480px) {
  .doctor .doctor-gallery .person .doctor-portrait { width: 110px; height: 110px; }
}


/* === Robust centering for "Same‑Day Crown Milling" video === */
.post-media .post-figure {
  display: block;              /* neutralize any inherited flex/grid behavior */
  text-align: center;          /* center inline and inline-block children */
  margin: 0 auto;              /* center the figure itself if it shrinks */
}
.post-media .post-figure video,
.post-media .post-figure iframe {
  display: block;
  margin-left: auto;
  margin-right: auto;          /* hard-center the media element */
  max-width: 100%;
  height: auto;
}

/* === Practice brick layout === */
.brick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* reduced tile sizes */
  grid-auto-rows: 10px; /* base row height for masonry effect */
  gap: 0.75rem;
  align-items: start;
  clear: both;
  margin-top: 0.75rem;
}
.brick-item { margin: 0; }
.brick-item img.practice-photo {
  width: 100%; height: auto; display: block; border-radius: 10px;
}
/* span more rows for portrait items to make a brick/masonry feel */
.brick-item.landscape { grid-row: span 18; }
.brick-item.portrait  { grid-row: span 28; }

@media (min-width: 900px) {
  .brick-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 12px; gap: 1rem; }
  .brick-item.landscape { grid-row: span 16; }
  .brick-item.portrait  { grid-row: span 26; }
}

/* === Practice photos: robust grid (no overlap) === */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: start;
  clear: both;
  margin-top: 12px;
}
.practice-grid .practice-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px; /* limit height to avoid huge tall images */
  object-fit: cover; /* will crop gently if container forces height at smaller breakpoints */
  border-radius: 12px;
}
@media (min-width: 1024px) {
  .practice-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }
  .practice-grid .practice-photo { max-height: 460px; }
}

/* === Practice signage hero (standalone under section heading) === */
.practice-hero { margin: 0.5rem 0 1rem 0; text-align: center; }
.practice-hero-img {
  display: block;
  margin: 0 auto;
  width: min(100%, 1100px); /* constrain wide hero */
  height: auto;
  border-radius: 12px;
}
@media (max-width: 600px) {
  .practice-hero-img { width: 100%; }
}

/* === Practice carousel (large view + thumbnail strip) === */
.practice-carousel { margin-top: 0.75rem; }
.pc-view { position: relative; max-width: 1100px; margin: 0 auto 0.75rem; aspect-ratio: 16/9; background:#f5f5f5; border-radius: 12px; overflow: hidden; }
#pc-active { width: 100%; height: 100%; object-fit: cover; display:block; }
.pc-prev, .pc-next { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:999px; border:none; background:rgba(0,0,0,.55); color:#fff; font-size:26px; line-height:44px; cursor:pointer; }
.pc-prev{ left:10px; } .pc-next{ right:10px; } .pc-prev:focus,.pc-next:focus{ outline:2px solid #fff; outline-offset:2px; }
.pc-thumbs{ display:grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap:8px; max-width:1100px; margin:0 auto; }
.pc-thumb{ padding:0; border:2px solid transparent; border-radius:8px; overflow:hidden; background:transparent; cursor:pointer; }
.pc-thumb img{ width:100%; height:90px; object-fit:cover; display:block; }
.pc-thumb.is-active{ border-color:#0ea5e9; } .pc-thumb:focus{ outline:2px dashed #0ea5e9; outline-offset:2px; }
@media (max-width:640px){ .pc-view{ aspect-ratio:4/3; } .pc-thumb img{ height:72px; } }

/* === Services: overview two-column image right === */
.service-overview{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center;margin:1rem 0;}
.service-overview .service-image img{width:100%;height:auto;display:block;border-radius:12px;object-fit:cover;}
@media (max-width: 768px){.service-overview{grid-template-columns:1fr}.service-image{order:-1}}

/* === Services: left layout & narrow variant === */
.service-overview--left{grid-template-columns:1.1fr 1.6fr;}
.service-overview--narrow .service-image img{max-width:520px;margin-left:auto;margin-right:auto;}
@media (max-width: 1024px){ .service-overview--left{grid-template-columns:1fr 1.4fr;} }
@media (max-width: 768px){
  .service-overview--left{grid-template-columns:1fr;}
  .service-overview--narrow .service-image img{max-width:100%;}
  /* On mobile, keep image first, then text */
  .service-overview--left .service-image{order:0}
  .service-overview--left .service-text{order:1}
}

/* === Sources list styling === */
.sources { margin-top: 2rem; }
.sources ul { list-style: disc; padding-left: 1.25rem; }
.sources a { text-underline-offset: 2px; }


/* ====== SITE FOOTER ====== */
.site-footer { background: #1E293B; color: #cbd5e1; padding: 56px 20px 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.footer-col h4 { color: #fff; margin: 0 0 14px; font-size: 1.05rem; font-family:'Cormorant Garamond','Georgia',serif; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; }
.footer-col p, .footer-col li { font-size: 0.92rem; line-height: 1.7; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: #94a3b8; text-decoration: none; transition:color .2s ease; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(196,168,124,.2); text-align: center; font-size: 0.88rem; letter-spacing:0.03em; }
.footer-bottom p { margin: 0; }

/* FAQ accordion */
.faq-section { margin-top: 1rem; }
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--primary-color); font-size: 1.05rem; }
.faq-item summary:hover { color: var(--accent-color); }
.faq-item[open] summary { color: var(--accent-color); }
.faq-item p { padding: 0 0 14px; margin: 0; line-height: 1.7; }

/* Why Choose section */
.why-choose { background: var(--bg-light); }
.why-choose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 20px; }
.why-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.08); text-align: center; }
.why-card h3 { color: var(--primary-color); margin: 0 0 8px; }

/* CTA bar */
.cta-bar { background: var(--accent-color); color: #fff; text-align: center; padding: 48px 20px; }
.cta-bar h2 { color: #fff; margin: 0 0 14px; font-family:'Cormorant Garamond','Georgia',serif; font-weight:600; font-size:2rem; }
.cta-bar .btn { background: #fff; color: var(--primary-color); }

/* Content section */
.content-section { padding: 60px 20px; }
.content-section h3 { color: var(--primary-color); margin-top: 28px; margin-bottom: 12px; font-size: 1.4rem; }
.content-section ul, .content-section ol { line-height: 1.8; margin: 12px 0 20px; }

/* Testimonials grid */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 32px 0; }
.testimonial-card { background: var(--bg-light); padding: 24px; border-radius: 12px; border-left: 4px solid var(--accent-color); }
.testimonial-card p { margin: 0 0 12px; line-height: 1.8; }
.testimonial-card p:last-child { margin: 0; color: var(--primary-color); font-weight: 600; }

/* ====== PREMIUM: Scroll-reveal fade-in animation ====== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Reveal only activates once JS adds the .reveal-ready class to <html> */
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}
html.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  html.reveal-ready .reveal { opacity:1; transform:none; transition:none; }
}

/* ====== PREMIUM: Hero content entrance ====== */
@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(30px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-content {
  animation: heroEntrance 1s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: 0.15s;
}
@media (prefers-reduced-motion: reduce){
  .hero-content { animation: none; }
}

/* ====== PREMIUM: Subtle gold separator between sections ====== */
.introduction + .services,
.services + .doctor,
.doctor + .reviews,
.reviews + .contact {
  position: relative;
}
.introduction + .services::before,
.services + .doctor::before,
.doctor + .reviews::before,
.reviews + .contact::before {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ====== PREMIUM: Doctor hero image refinement ====== */
.doctor-hero {
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(59,50,41,.12);
  border: 1px solid rgba(196,168,124,.15);
}

/* ====== PREMIUM: Map container refinement ====== */
.map-container {
  border: 1px solid rgba(196,168,124,.15);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}

/* ====== PREMIUM: Service card paragraph ====== */
.service-card p { font-weight: 300; line-height: 1.8; color: #5C5147; font-size: 0.95rem; }

/* ====== PREMIUM: Strong text refinement ====== */
.intro-content strong { font-weight: 600; color: var(--primary-color); }

/* ====== LIVE REVIEW CAROUSEL ====== */
.review-carousel-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  padding: 8px 0;
}
/* Soft fade-out on left & right edges */
.review-carousel-wrap::before,
.review-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.review-carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-light), transparent);
}
.review-carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-light), transparent);
}

.review-track {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 28px;
  width: max-content;
  will-change: transform;
  animation: scrollReviews 32s linear infinite;
  -webkit-user-select: none;
  user-select: none;
}
.review-carousel-wrap { cursor: grab; }
.review-carousel-wrap:active { cursor: grabbing; }
@keyframes scrollReviews {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .review-track { animation: none; flex-wrap: wrap; flex-direction: row; width: 100%; justify-content: center; }
  .review-carousel-wrap::before,
  .review-carousel-wrap::after { display: none; }
}

.review-slide {
  flex: 0 0 360px;
  min-width: 360px;
  max-width: 360px;
  background: #fff;
  border-radius: 14px;
  padding: 30px 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  border: 1px solid rgba(196,168,124,.12);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-slide::before {
  content: '\201C';
  position: absolute;
  top: 10px; left: 20px;
  font-family: 'Cormorant Garamond','Georgia', serif;
  font-size: 3.5rem;
  color: var(--accent-color);
  opacity: .2;
  line-height: 1;
}

.review-stars {
  color: var(--accent-color);
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.review-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-color);
  font-weight: 300;
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.review-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.review-author-info {
  display: flex;
  flex-direction: column;
}
.review-author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
}
.review-author-date {
  font-size: 0.82rem;
  color: #9A8E82;
  letter-spacing: 0.02em;
}

/* Google attribution badge */
.review-attribution {
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
  color: #9A8E82;
  letter-spacing: 0.03em;
}
.review-attribution a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}
.review-attribution a:hover {
  color: var(--accent-color);
}
.review-overall {
  text-align: center;
  margin-bottom: 8px;
  font-family: 'Cormorant Garamond','Georgia',serif;
  font-size: 1.15rem;
  color: var(--primary-color);
  font-weight: 500;
}
.review-overall .rating-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
}

@media (max-width: 600px) {
  .review-slide { flex: 0 0 290px; min-width: 290px; max-width: 290px; padding: 24px 20px 20px; }
  .review-carousel-wrap::before,
  .review-carousel-wrap::after { width: 40px; }
}
