/* ==========================================================================
   8TH AVENUE DENTAL — DESIGN SYSTEM (2026 Redesign)
   Brand color is fixed per client requirement: #585C8C
     --brand        #585C8C  primary — buttons, CTAs, links, accents
     --brand-dark   #454877  hover / active state
     --brand-deep   #33355A  headings on light bg, footer background
     --brand-tint   #EFEEF7  soft lavender-tinted neutral background
     --brand-pale   #F8F7FC  near-white lavender background
     --warm         #FBFBF9  warm white
     --ink          #2B2B38  body copy / charcoal
     --ink-soft     #666877  muted copy
     --line         #E4E2EE  hairline borders
   Type: Plus Jakarta Sans (display) / DM Sans (body) — per brief
   Logo: client's real existing logo asset (images/logo.png) — not recreated
   ========================================================================== */

:root {
  --brand: #585C8C;
  --brand-dark: #454877;
  --brand-deep: #33355A;
  --brand-tint: #EFEEF7;
  --brand-pale: #F8F7FC;
  --warm: #FBFBF9;
  --ink: #2B2B38;
  --ink-soft: #666877;
  --line: #E4E2EE;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 50px -25px rgba(51, 53, 90, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(51, 53, 90, 0.25);
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-size-base: 16.5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html.reduce-motion, html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--warm);
  font-size: var(--font-size-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--brand-deep);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--ink-soft); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container-xl { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-pad { padding: 92px 0; }
@media (max-width: 767px) { .section-pad { padding: 60px 0; } }
.bg-tint { background: var(--brand-tint); }
.bg-pale { background: var(--brand-pale); }
.bg-deep { background: var(--brand-deep); color: #fff; }
.bg-deep p { color: rgba(255,255,255,0.72); }
.bg-deep h2, .bg-deep h3 { color: #fff; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand-deep); color: #fff;
  padding: 12px 20px; z-index: 2000; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Eyebrow */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--brand); display: inline-block; }
.bg-deep .eyebrow { color: #C6C6E6; }
.bg-deep .eyebrow::before { background: #C6C6E6; }

/* Buttons */
.btn-primary-dental {
  background: var(--brand); color: #fff; border: none; padding: 15px 30px; border-radius: 100px;
  font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 10px;
  transition: transform .35s var(--ease), background .3s ease, box-shadow .3s ease;
  box-shadow: 0 14px 30px -14px rgba(88,92,140,0.65);
}
.btn-primary-dental:hover { background: var(--brand-dark); transform: translateY(-2px); color: #fff; }

.btn-outline-dental {
  background: transparent; color: var(--brand-deep); border: 1.5px solid var(--line);
  padding: 14px 28px; border-radius: 100px; font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 10px; transition: all .3s var(--ease);
}
.fc-ctas .btn-outline-dental{
  color: #fff;
}
.btn-outline-dental:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.bg-deep .btn-outline-dental { color: #fff; border-color: rgba(255,255,255,0.32); }
.bg-deep .btn-outline-dental:hover { background: #fff; color: var(--brand-deep); }

.link-arrow {
  color: var(--brand); font-weight: 700; font-size: 0.95rem; display: inline-flex;
  align-items: center; gap: 6px; transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: 11px; color: var(--brand-dark); }
#services .tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr)!important;
    gap: 22px;
    margin-top: 46px;
}
/* ---------- Utility / announcement bar ---------- */
.announce-bar { background: var(--brand-deep); color: rgba(255,255,255,0.88); font-size: 0.8rem; padding: 9px 0; }
.announce-bar .container-xl { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.announce-left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.announce-bar a { font-weight: 700; color: #fff; }
.announce-bar .emergency-link { color: #E8B4B4; font-weight: 700; }
@media (max-width: 700px) { .announce-esp { display: none; } }
@media (max-width: 560px) { .announce-reviews { display: none; } }

/* Language selector */
.lang-select { position: relative; }
.lang-btn { background: none; border: none; color: inherit; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.lang-menu {
  position: absolute; top: 100%; right: 0; background: #fff; border-radius: 10px; padding: 6px;
  box-shadow: var(--shadow-card); min-width: 130px; display: none; z-index: 99999; margin-top: 8px;
}
.lang-menu.open { display: block; }
.lang-menu button { width: 100%; text-align: left; padding: 8px 12px; border-radius: 6px; border: none; background: none; color: var(--ink); font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--brand-tint); }
.lang-menu button[aria-selected="true"] { color: var(--brand); }

/* ---------- Header / mega menu ---------- */
.site-header {
  background: rgba(251, 251, 249, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900;
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(51,53,90,0.4); }
.site-header .container-xl { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; gap: 20px; }

.brand-mark { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark img { height: 56px; width: auto; }

.main-nav { display: flex; gap: 2px; flex-wrap: nowrap; }
.main-nav > li { position: relative; list-style: none; }
.main-nav > li > a, .main-nav > li > button.nav-toggle {
  font-weight: 600; font-size: 0.85rem; color: var(--brand-deep); padding: 9px 9px;
  display: flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer;
  border-radius: 8px; font-family: inherit; white-space: nowrap;
}
.main-nav > li > a:hover, .main-nav > li > button.nav-toggle:hover,
.main-nav > li.open > button.nav-toggle { background: var(--brand-tint); color: var(--brand-dark); }
.main-nav .chev { transition: transform .25s ease; }
.main-nav > li.open .chev { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-soft); padding: 10px; min-width: 240px;
  display: none; margin-top: 8px; z-index: 60;
}
.dropdown-panel.open { display: block; }
.dropdown-panel a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.dropdown-panel a:hover, .dropdown-panel a:focus-visible { background: var(--brand-tint); color: var(--brand-dark); }
.dropdown-panel .panel-note { padding: 8px 14px 4px; font-family: 'IBM Plex Mono'; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); opacity: 0.7; }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-deep); font-size: 0.92rem; }
.header-phone svg { color: var(--brand); }

.hamburger { display: none; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--brand-deep); margin: 5px 0; }

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .header-phone span.txt { display: none; }
  .hamburger { display: block; }
}

.mobile-drawer {
  position: fixed; inset: 0; background: var(--brand-deep); z-index: 1100;
  transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; padding: 22px 26px; overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .close-drawer { align-self: flex-end; background: none; border: none; color: #fff; font-size: 1.8rem; }
.mobile-drawer details { border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-drawer summary { color: #fff; font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 1.15rem; padding: 14px 0; cursor: pointer; list-style: none; display:flex; justify-content:space-between; align-items:center; }
.mobile-drawer summary::-webkit-details-marker { display: none; }
.mobile-drawer .sub-links { display: flex; flex-direction: column; padding: 0 0 14px 10px; gap: 10px; }
.mobile-drawer .sub-links a { color: rgba(255,255,255,0.78); font-weight: 600; font-size: 0.95rem; }
.mobile-drawer > a { color: #fff; font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 1.15rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-drawer .drawer-call { color: #C6C6E6 !important; border: none !important; }

/* ---------- Quick action bar (desktop) ---------- */
.quick-actions { background: var(--brand-tint); border-bottom: 1px solid var(--line); }
.quick-actions .container-xl { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding-top: 12px; padding-bottom: 12px; }
.qa-item { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.83rem; color: var(--brand-deep); background: #fff; border: 1px solid var(--line); padding: 9px 16px; border-radius: 100px; transition: all .25s ease; }
.qa-item:hover { border-color: var(--brand); color: var(--brand); }
.qa-item svg { color: var(--brand); flex-shrink: 0; }

/* ---------- Mobile-only sticky top strip ---------- */
.mobile-quick-strip { display: none; }
@media (max-width: 767px) {
  .announce-bar, .quick-actions { display: none; }
  .mobile-quick-strip {
    display: flex; gap: 8px; padding: 10px 14px; background: var(--brand-tint);
    border-bottom: 1px solid var(--line);
  }
  .mobile-quick-strip a { flex: 1; justify-content: center; text-align: center; padding: 10px 12px; font-size: 0.70rem; white-space: nowrap; }
}

/* ---------- Video hero ---------- */
.video-hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.video-hero .hero-bg-video, .video-hero .hero-bg-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.video-hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(51,53,90,0.88) 0%, rgba(51,53,90,0.62) 45%, rgba(51,53,90,0.30) 100%); z-index: 1; }
.video-hero .container-xl { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.video-hero .hero-content { max-width: 60%; }
.video-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin: 14px 0 20px; }
.video-hero .hero-lead { color: rgba(255,255,255,0.82); font-size: 1.06rem; max-width: 480px; margin-bottom: 30px; }
.video-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.video-hero .trust-row { display: flex; flex-wrap: wrap; gap: 24px; }
.video-hero .trust-item { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.85rem; color: #fff; }
.video-hero .trust-item .stars { color: #E7C873; letter-spacing: 1px; }
.video-hero .video-caption {
  position: absolute; bottom: 14px; right: 20px; z-index: 2; font-family: 'IBM Plex Mono';
  font-size: 0.6rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.55);
}
.video-hero .eyebrow{
  color: #fff;
}
.video-hero .eyebrow:before{
  background: #fff
}
.video-hero .btn-outline-dental{
  background: #fff;
}
.video-hero .btn-outline-dental:hover{
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
@media (max-width: 767px) { .video-hero { min-height: 560px; } }

/* ---------- Welcome / intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 991px) { .intro-grid { grid-template-columns: 1fr; gap: 36px; } }
.intro-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4/3.3; box-shadow: var(--shadow-card); background: var(--brand-tint); }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Services (image showcase) ----------.svc-info-box
.services-showcase { display: grid; grid-template-columns: 0.55fr 1.15fr; gap: 40px; margin-top: 44px; align-items: start; }
@media (max-width: 900px) { .services-showcase { grid-template-columns: 1fr; } }

.services-image-panel {
  position: sticky; top: 100px; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/4.6; box-shadow: var(--shadow-soft);
}
@media (max-width: 900px) { .services-image-panel { position: relative; top: 0; aspect-ratio: 4/2.8; } }
.services-image-panel img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.services-image-panel img.fading { opacity: 0; }
.services-image-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(51,53,90,0.05) 0%, rgba(20,21,38,0.88) 100%); }
.services-image-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.services-image-caption .eyebrow { margin-bottom: 8px; }
.services-image-caption h3 { color: #fff; margin-bottom: 10px; }

.services-content-panel { min-width: 0; }
.service-list-grid-single { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* ---------- Services (categorized) ---------- */
.service-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 34px; }
.service-tab { padding: 11px 18px; border-radius: 100px; border: 1.5px solid var(--line); font-weight: 700; font-size: 0.85rem; color: var(--ink); background: #fff; cursor: pointer; transition: all .25s ease; }
.service-tab:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.service-tab[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 10px 22px -12px rgba(88,92,140,0.6); }
.service-panel { display: none; animation: fadeInPanel .35s ease; }
.service-panel.active { display: block; }
@keyframes fadeInPanel { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.service-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .service-list-grid { grid-template-columns: 1fr; } }
.service-row {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff;
  border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 14px;
  transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.service-row:hover { border-color: var(--brand); border-left-color: var(--brand); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.service-row .sr-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .3s ease;
}
.service-row:hover .sr-icon { background: var(--brand); color: #fff; }
.service-row .sr-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.service-row span.sr-name { font-weight: 700; color: var(--brand-deep); font-size: 0.98rem; }
.service-row .sr-desc { font-size: 0.82rem; color: var(--ink-soft); }
.service-row .sr-arrow { color: var(--brand); flex-shrink: 0; transition: transform .3s var(--ease); }
.service-row:hover .sr-arrow { transform: translateX(4px); }

/* ---------- Doctors ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
@media (max-width: 767px) { .doctors-grid { grid-template-columns: 1fr; } }
.doctor-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform .4s var(--ease); }
.doctor-card:hover { transform: translateY(-5px); }
.doctor-photo {   overflow: hidden;
    background: var(--brand-tint);
    height: 400px; }
.doctor-photo img { width: 100%; height: 100%; object-position: top; object-fit: contain;}
.doctor-body { padding: 24px 26px 28px; }
.doctor-body .dr-role { font-family: 'IBM Plex Mono'; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; display: block; }
.doctor-body h3 { margin-bottom: 8px; }
.doctor-body p { font-size: 0.9rem; margin-bottom: 14px; }
.doctors-team-cta { text-align: center; margin-top: 34px; }

/* ---------- Reviews ---------- */
.placeholder-tag { font-family: 'IBM Plex Mono'; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); opacity: 0.65; }

.reviews-grid-new { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; margin-top: 44px; align-items: stretch; }
@media (max-width: 900px) { .reviews-grid-new { grid-template-columns: 1fr; } }

.rating-summary {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 38px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: var(--shadow-card);
  justify-content: center;
}
.rating-summary .rating-number { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 3.2rem; color: var(--brand-deep); line-height: 1; }
.rating-summary p { font-size: 0.85rem; }

.review-featured-new {
  background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 130%); color: #fff;
  border-radius: 24px; padding: 44px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.review-featured-new .quote-mark { position: absolute; top: 24px; right: 28px; color: #fff; }
.review-featured-new .stars { color: #E7C873; letter-spacing: 3px; margin-bottom: 18px; display: block; }
.review-featured-new .rf-quote { font-family: 'Plus Jakarta Sans'; font-size: 1.35rem; font-weight: 600; line-height: 1.5; margin-bottom: 22px; color: #fff; max-width: 480px; }
.review-featured-new .rf-name { font-weight: 700; margin-bottom: 3px; }
.review-featured-new .rf-meta { color: rgba(255,255,255,0.62); font-size: 0.85rem; }

/* ---------- Office gallery ---------- */
.gallery-grid-new { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 14px; margin-top: 44px; }
@media (max-width: 900px) { .gallery-grid-new { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 130px; } }
@media (max-width: 600px) { .gallery-grid-new { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }
.gallery-item-new { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.gallery-item-new img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.gallery-item-new:hover img { transform: scale(1.08); }
.gallery-grid-new .g1 { grid-column: span 2; grid-row: span 2; }
.gallery-grid-new .g6 { grid-column: span 2; grid-row: span 1; }
@media (max-width: 900px) {
  .gallery-grid-new .g1 { grid-column: span 3; grid-row: span 2; }
  .gallery-grid-new .g6 { grid-column: span 3; grid-row: span 1; }
}
@media (max-width: 600px) {
  .gallery-grid-new .g1 { grid-column: span 2; grid-row: span 2; }
  .gallery-grid-new .g6 { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 767px) { .g1, .g4, .g6 { grid-column: span 2; } }

/* ---------- Technology ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 46px; }
@media (max-width: 900px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tech-grid { grid-template-columns: 1fr; } }
.tech-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s ease, transform .3s var(--ease); }
.tech-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.tech-card .tech-img { aspect-ratio: 4/2.7; overflow: hidden; background: var(--brand-tint); }
.tech-card .tech-img img { width: 100%; height: 100%; object-fit: cover; }
.tech-card .tech-body { padding: 20px 20px 24px; }
.tech-card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.tech-card p { font-size: 0.86rem; margin: 0; }

/* ---------- Savings plan ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 34px 30px; text-align: center; transition: all .3s ease; }
.plan-card.featured { border-color: var(--brand); box-shadow: var(--shadow-card); position: relative; }
.plan-card.featured::before { content: "Most Popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 5px 16px; border-radius: 100px; letter-spacing: 0.03em; }
.plan-card h3 { font-size: 1.05rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.plan-price { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 2.3rem; color: var(--brand-deep); margin: 12px 0 4px; }
.plan-price span { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.plan-note { font-size: 0.82rem; margin-bottom: 22px; }

/* ---------- Offers ---------- */
.offers-grid {  display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 46px;}
@media (max-width: 767px) { .offers-grid { grid-template-columns: 1fr; } }
.offer-card { border: 1.5px solid var(--brand); border-radius: var(--radius); padding: 36px 32px; background: linear-gradient(160deg, #fff, var(--brand-pale)); }
.offer-card .offer-tag { font-family: 'IBM Plex Mono'; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; display: block; }
.offer-card .offer-amount { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 2.3rem; color: var(--brand-deep); line-height: 1; margin-bottom: 6px; }
.offer-card .offer-desc { font-size: 0.94rem; margin-bottom: 22px; }

/* ---------- Location / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; margin-top: 44px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-map { border-radius: var(--radius); overflow: hidden; min-height: 340px; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.contact-row strong { display: block; color: var(--brand-deep); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 130%); color: #fff; border-radius: 32px; padding: 76px 50px; text-align: center; margin: 0 24px; }
.final-cta h2 { color: #fff; max-width: 620px; margin: 0 auto 16px; }
.final-cta p { color: rgba(255,255,255,0.78); max-width: 500px; margin: 0 auto 32px; }
.final-cta .fc-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 575px) { .final-cta { padding: 40px 20px; margin: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,0.65); padding: 72px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 0.8fr; gap: 34px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: 'IBM Plex Mono'; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.62); font-size: 0.88rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 24px; font-size: 0.8rem; }
.footer-bottom a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 46px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
html.reduce-motion .reveal { opacity: 1; transform: none; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; }

/* ==========================================================================
   ACCESSIBILITY WIDGET
   ========================================================================== */
.a11y-toggle {
  position: fixed; right: 22px; bottom: 22px; z-index: 1200; width: 54px; height: 54px;
  border-radius: 50%; background: var(--brand-deep); color: #fff; border: none;
  box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
@media (max-width: 767px) { .a11y-toggle { bottom: 82px; right: 16px; width: 48px; height: 48px; } }
.a11y-panel {
  position: fixed; right: 22px; bottom: 86px; z-index: 1200; width: 300px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); padding: 20px;
  display: none; max-height: 70vh; overflow-y: auto;
}
@media (max-width: 767px) { .a11y-panel { bottom: 140px; right: 16px; } }
.a11y-panel.open { display: block; }
.a11y-panel h2 { font-size: 1rem; margin-bottom: 4px; }
.a11y-panel .a11y-sub { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 16px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.a11y-row:first-of-type { border-top: none; }
.a11y-row span { font-size: 0.87rem; font-weight: 600; color: var(--ink); }
.a11y-btn-group { display: flex; gap: 6px; }
.a11y-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--brand-deep); }
.a11y-btn[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.a11y-reset { width: 100%; margin-top: 14px; padding: 10px; border-radius: 8px; border: 1.5px solid var(--line); background: none; font-weight: 700; cursor: pointer; color: var(--ink); }

/* Applied accessibility states */
html.a11y-large { font-size: 118%; }
html.a11y-xlarge { font-size: 132%; }
html.a11y-contrast body { background: #000; color: #fff; }
html.a11y-contrast .site-header, html.a11y-contrast .bg-pale, html.a11y-contrast .bg-tint,
html.a11y-contrast section, html.a11y-contrast .doctor-card, html.a11y-contrast .review-card,
html.a11y-contrast .tech-card, html.a11y-contrast .service-row { background: #000 !important; color: #fff !important; }
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast h4,
html.a11y-contrast p, html.a11y-contrast a, html.a11y-contrast span { color: #fff !important; }
html.a11y-contrast a, html.a11y-contrast .btn-primary-dental, html.a11y-contrast .btn-outline-dental { border: 1.5px solid #FFE066 !important; color: #FFE066 !important; background: #000 !important; }
html.a11y-grayscale { filter: grayscale(100%); }
html.a11y-highlight-links a { background: #FFE066 !important; color: #000 !important; text-decoration: underline !important; padding: 1px 3px; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3 { font-family: Arial, Helvetica, sans-serif !important; }


.video-hero .video-caption{
  display: none;
}
@media (max-width: 767px) {
  .header-actions a.btn-primary-dental{
    display: none;
  }
  .eyebrow{
    font-size: 0.60rem;
  }
  .video-hero h1{
    font-size: clamp(1.6rem, 4.2vw, 3.4rem);
    line-height: 1.4
  }
  .btn-primary-dental{
    padding: 15px 20px;
    font-size: 0.80rem;
  }
  .video-hero .trust-row{
    display: none;
  }
  .video-hero .container-xl {
    padding-top: 50px;
    padding-bottom: 50px;
}
}
.lang-select button a{
  display: flex;
    vertical-align: middle;
    justify-content: center;
}
.lang-select button a span{
  margin-top: 5px;
    margin-left: 6px;
}
.lang-menu a
{

  color :#333;
}
.main-nav > li > button.nav-toggle.active-page { background: var(--brand-tint); color: var(--brand-dark); }
.svc-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; display: inline-block; }

/* ---- Title banner ---- */
.svc-title-banner { position: relative; padding: 148px 0 84px; text-align: center; overflow: hidden; }
.svc-title-banner .stb-bg { position: absolute; inset: 0; background: url('https://www.8thavenuedental.com/client/images/office.jpg') center/cover no-repeat; }
.svc-title-banner .stb-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(51,53,90,0.90), rgba(88,92,140,0.82)); }
.svc-title-banner .container-xl { position: relative; z-index: 2; }
.svc-title-banner h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.stb-crumb { font-size: 0.9rem; color: rgba(255,255,255,0.78); font-weight: 600; }
.stb-crumb a { color: #fff; }
.stb-crumb span { margin: 0 8px; color: rgba(255,255,255,0.5); }

/* ---- Service intro split ---- */
.svc-intro { padding: 88px 0 74px; }
.svc-intro-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .svc-intro-grid { grid-template-columns: 1fr; gap: 22px; } }
.svc-intro h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0; }
.svc-intro-grid p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* ---- Icon card grid ---- */
.svc-cards { padding: 66px 0 90px; }
.svc-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .svc-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-cards-grid { grid-template-columns: 1fr; } }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s ease; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.svc-card.highlight { background: var(--brand); border-color: var(--brand); }
.svc-card.highlight .svc-card-title, .svc-card.highlight p { color: #fff; }
.svc-card.highlight .svc-icon { background: rgba(255,255,255,0.2); color: #fff; }
.svc-card.highlight .svc-divider { background: rgba(255,255,255,0.28); }
.svc-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.svc-card-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--brand-deep); margin-bottom: 16px; }
.svc-divider { width: 100%; height: 1px; background: var(--line); margin-bottom: 16px; }
.svc-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 22px; }
.svc-read-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.86rem; color: var(--brand); }
.svc-card.highlight .svc-read-more { color: #fff; }
.arrow-circle { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; color: var(--brand); transition: all .25s ease; flex-shrink: 0; }
.svc-card.highlight .arrow-circle { background: rgba(255,255,255,0.22); color: #fff; }
.svc-card:hover .arrow-circle { background: var(--brand); color: #fff; }
.svc-card.highlight:hover .arrow-circle { background: #fff; color: var(--brand); }

/* ---- Stats band ---- */
.svc-stats { background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 130%); padding: 56px 0; }
.svc-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .svc-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
.svc-stat { text-align: center; color: #fff; position: relative; }
.svc-stat:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,0.22); }
@media (max-width: 760px) { .svc-stat:nth-child(2n)::after { display: none; } }
.svc-stat-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: #fff; }
.svc-stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.9rem; line-height: 1; margin-bottom: 6px; }
.svc-stat-label { font-size: 0.84rem; color: rgba(255,255,255,0.82); font-weight: 600; }

/* ---- Why choose us split ---- */
.svc-why { padding: 0; }
.svc-why-grid { display: grid; grid-template-columns: 0.8fr 1fr 0.85fr; gap: 40px; align-items: start; }
@media (max-width: 980px) { .svc-why-grid { grid-template-columns: 1fr; } }
.svc-why-image { position: relative; border-radius: var(--radius); aspect-ratio: 4/4; }
.svc-why-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; border: 1px solid #ebebeb;}
.svc-why-callbox { position: relative; top: 22px; background: var(--brand); color: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow-soft); }
.cb-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.svc-why-callbox p { color: rgba(255,255,255,0.9); font-size: 0.85rem; margin-bottom: 8px; }
.cb-phone { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.15rem; }
.cb-phone a { color: #fff; }

.svc-why-copy h2 { margin-bottom: 16px;
    margin-top: 5px; }
.svc-why-copy > p { margin-bottom: 8px; }
.svc-feature-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.svc-feature-row:last-of-type { border-bottom: 1px solid var(--line); }
.svc-feature-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.svc-feature-row h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; color: var(--brand-deep); margin-bottom: 4px; margin-top:1px; }
.svc-feature-row p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.svc-why-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.svc-why-aside { display: flex; flex-direction: column; gap: 18px; }
.svc-info-box {background: var(--brand-pale);
    border-radius: var(--radius);
    padding: 20px; }
.svc-info-box.alt { background: var(--brand-pale); }
.svc-info-box h4 { font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--brand-deep);
    margin-bottom: 10px;
    font-size: 1rem;
    margin-top: 0; }
.svc-info-box p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.svc-info-box p a { color: var(--brand); font-weight: 700; }

.svc-testimonial { background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 130%); border-radius: var(--radius); padding: 28px; color: #fff; }
.svc-testimonial .stars { color: #E7C873; letter-spacing: 2px; display: block; margin-bottom: 12px; }
.svc-testimonial p { color: #fff; font-size: 0.93rem; line-height: 1.55; margin-bottom: 18px; }
.svc-testimonial-who { display: flex; align-items: center; gap: 12px; }
.svc-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.82rem; flex-shrink: 0; }
.svc-testimonial-who strong { display: block; font-size: 0.9rem; }
.svc-testimonial-who span { font-size: 0.78rem; color: rgba(255,255,255,0.7); }


/* ================================================================
   INNER / INFO PAGES — v3 components (about, services index,
   technology, team, doctors, reviews, savings plan, offers,
   before/after gallery, new patients, contact/appointment forms,
   disclaimers). Built on css/style.css design tokens.
   ================================================================ */

/* ---- Centered page lead ---- */
.page-lead { max-width: 720px; margin: 0 auto; text-align: center; }
.page-lead p { margin-top: 16px; color: var(--ink-soft); }

/* ---- Services index cards (services.html) ---- */
.svc-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .svc-index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-index-grid { grid-template-columns: 1fr; } }
.svc-link-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s ease; }
.svc-link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.svc-link-card .svc-icon { margin-bottom: 20px; }
.svc-link-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.svc-link-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 18px; }
.svc-link-card .link-arrow { margin-top: auto; }

/* ---- Doctor bio pages ---- */
.doc-bio-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: start; }
@media (max-width: 900px) { .doc-bio-grid { grid-template-columns: 1fr; gap: 34px; } }
.doc-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-card); background: var(--brand-tint); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-bio-copy h2 { margin-bottom: 18px; }
.doc-bio-copy p { color: var(--ink-soft); margin-bottom: 14px; line-height: 1.75; }
.doc-credential { background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 130%); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin-top: 24px; }
.doc-credential h4 { color: #fff; margin-bottom: 8px; }
.doc-credential p { color: rgba(255,255,255,0.85); margin: 0; }
.doc-photo-stack { display: flex; flex-direction: column; gap: 16px; }

/* ---- Team grid (meet-our-team) ---- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 46px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .4s var(--ease); }
.team-card:hover { transform: translateY(-5px); }
.team-img { aspect-ratio: 1/1; overflow: hidden; background: var(--brand-tint); }
.team-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-body { padding: 22px 24px 26px; }
.team-body h3 { font-size: 1.08rem; margin-bottom: 4px; }
.team-role { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; display: block; }
.team-bio { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---- Before / After gallery ---- */
.ba-set { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 700px) { .ba-set { grid-template-columns: 1fr; } }
.ba-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-card); }
.ba-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-label { position: absolute; top: 16px; left: 16px; background: var(--brand-deep); color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 14px; border-radius: 100px; }

/* ---- Reviews page ---- */
.review-share { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; text-align: center; margin-top: 46px; }
.review-share h2 { margin-bottom: 10px; }
.review-share .stars { color: #E7C873; letter-spacing: 3px; font-size: 1.6rem; display: block; margin-bottom: 20px; }
.review-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
@media (max-width: 900px) { .review-list { grid-template-columns: 1fr; } }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.review-card .stars { color: #E7C873; letter-spacing: 2px; display: block; margin-bottom: 12px; }
.review-card p { font-size: 0.92rem; line-height: 1.6; margin-bottom: 16px; }
.review-card .review-who { font-weight: 700; color: var(--brand-deep); font-size: 0.88rem; display: block; }
.review-card .review-meta { color: var(--ink-soft); font-size: 0.78rem; }

/* ---- Forms (appointment / contact) ---- */
.svc-form { background: #585c8c;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 38px;
    box-shadow: var(--shadow-card); }
.svc-form p{
    color: #fff;
    margin: 5px 0;
}
.svc-form h2 { margin-bottom: 8px; }
.svc-form .form-lead { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 28px; }
.svc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .svc-form-grid { grid-template-columns: 1fr; } .svc-form{padding: 30px 20px;} }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-label {
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
}
.form-note {
    font-size: 0.8rem;
    color: #fff;
}
.svc-form-wrap span.wpcf7-list-item-label {
       font-size: 12px;
    line-height: 16px;
}
.form-label span { color: var(--brand); }
.form-input, .form-select, .form-textarea { border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 8px 12px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    width: 100%;
    transition: border-color .2s ease; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--brand); }
.form-textarea { min-height: 100px; resize: vertical; }
.svc-form .btn-primary-dental { margin-top: 24px; border: none; cursor: pointer; }
.form-hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 16px; }

/* ---- New patient page ---- */
.np-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
@media (max-width: 900px) { .np-grid { grid-template-columns: 1fr; } }
.np-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.np-card .svc-icon { margin: 0 auto 18px; }
.np-card h3 { font-size: 1.02rem; margin-bottom: 10px; }
.np-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 18px; }
.np-card.highlight { background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 130%); border-color: transparent; color: #fff; }
.np-card.highlight h3, .np-card.highlight p { color: #fff; }
.np-card.highlight .svc-icon { background: rgba(255,255,255,0.2); color: #fff; }

/* ---- Savings plan guidelines ---- */
.svc-prose { max-width: 820px; margin: 0 auto; }
.svc-prose h2 { margin: 40px 0 14px; }
.svc-prose h2:first-child { margin-top: 0; }
.svc-prose h3 { margin: 26px 0 10px; font-size: 1.05rem; }
.svc-prose p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; }
.svc-prose ul, .svc-prose ol { color: var(--ink-soft); line-height: 1.75; padding-left: 22px; margin-bottom: 16px; }
.svc-prose li { margin-bottom: 8px; }
.svc-prose a { color: var(--brand); font-weight: 700; }
.svc-prose .contact-block { background: var(--brand-pale); border-radius: var(--radius); padding: 26px; margin-top: 36px; }
.guidelines-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
@media (max-width: 700px) { .guidelines-list { grid-template-columns: 1fr; } }
.guide-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; display: flex; gap: 14px; align-items: flex-start; }
.guide-item svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.guide-item p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---- Offers page band ---- */
.offer-band { background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 130%); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; margin-top: 42px; }
.offer-band h3 { color: #fff; margin-bottom: 10px; }
.offer-band p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 22px; }

/* ================================================================
   Additions for inner info pages (v2)
   ================================================================ */

/* ---- About gallery mosaic spans ---- */
.gallery-grid-new .g2, .gallery-grid-new .g3, .gallery-grid-new .g4, .gallery-grid-new .g5, .gallery-grid-new .g7, .gallery-grid-new .g8 { grid-column: span 2; grid-row: span 1; }
@media (max-width: 900px) { .gallery-grid-new .g2, .gallery-grid-new .g3, .gallery-grid-new .g4, .gallery-grid-new .g5, .gallery-grid-new .g7, .gallery-grid-new .g8 { grid-column: span 3; } }
@media (max-width: 600px) { .gallery-grid-new .g2, .gallery-grid-new .g3, .gallery-grid-new .g4, .gallery-grid-new .g5, .gallery-grid-new .g7, .gallery-grid-new .g8 { grid-column: span 2; } }

/* ---- Team photos ---- */
.team-photo { aspect-ratio: 1/1; overflow: hidden; background: var(--brand-tint); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---- Before / After gallery extras ---- */
.ba-set { grid-template-columns: 1fr auto 1fr; }
@media (max-width: 700px) { .ba-set { grid-template-columns: 1fr; } .ba-arrow { transform: rotate(90deg); } }
.ba-arrow { display: flex; align-items: center; justify-content: center; color: var(--brand); }
.ba-photo { height: 100%; }
.ba-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-label-after { background: var(--brand); }
.ba-caption { text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 26px; }

/* ---- Reviews extras ---- */
.review-rating { margin-bottom: 22px; }
.review-big { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--brand-deep); display: block; }
.review-stars { display: flex; gap: 4px; justify-content: center; margin: 12px 0 6px; }

/* ---- Forms extras ---- */

@media (max-width: 620px) { .svc-form { grid-template-columns: 1fr; } }
.svc-form-wrap { max-width: 800px; margin: 48px auto 0; }
.form-field-full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form-actions .btn-primary-dental { margin-top: 0;
    border: 1px solid #fff; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); }

/* ---- Contact page extras ---- */
.contact-info h2 { margin: 8px 0 14px; }
.contact-info > p { color: var(--ink-soft); margin-bottom: 26px; }
.contact-block { margin-top: 26px; }
.contact-block h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.contact-block p { color: var(--ink-soft); line-height: 1.6; margin: 0; }
.contact-block a { color: var(--brand); font-weight: 700; }
.map-wrap { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---- Offers / savings plan aliases ---- */
.offer-price { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 2.3rem; color: var(--brand-deep); line-height: 1; margin-bottom: 6px; }
.plan-featured { border-color: var(--brand); box-shadow: var(--shadow-card); position: relative; }
.plan-featured::before { content: "Most Popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 5px 16px; border-radius: 100px; letter-spacing: 0.03em; }
/* ================================================================
   BLOG — index + article layout.
   Reuses the .svc-* shell (title banner, kicker, cards, CTA bands)
   from css/services-v3.css and every color/type token from
   css/style.css. Header and footer are untouched.
   ================================================================ */

.main-nav > li > a.active-page { background: var(--brand-tint); color: var(--brand-dark); }

/* ---- Shared meta bits ---- */
.blg-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-tint);
  padding: 6px 12px; border-radius: 100px; font-weight: 500;
}
.blg-chip.solid { background: var(--brand); color: #fff; }
.blg-chip.muted { background: var(--brand-pale); color: var(--ink-soft); border: 1px solid var(--line); }
.blg-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 0.82rem; color: var(--ink-soft); justify-content: space-between; }
.blg-meta-item { display: inline-flex; align-items: center; gap: 7px; }
.blg-meta-item svg { color: var(--brand); flex-shrink: 0; }

/* ---- Page banner ---- */
.blg-banner { padding: 148px 0 74px; text-align: center; position: relative; overflow: hidden; }
.blg-banner .bbg-bg { position: absolute; inset: 0; background: url('https://www.8thavenuedental.com/client/images/office.jpg') center/cover no-repeat; }
.blg-banner .bbg-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(51,53,90,0.92), rgba(88,92,140,0.84)); }
.blg-banner .container-xl { position: relative; z-index: 2; }
.blg-banner h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.blg-banner .bbg-lead { color: rgba(255,255,255,0.82); max-width: 620px; margin: 18px auto 0; }
.blg-banner .stb-crumb { font-size: 0.9rem; color: rgba(255,255,255,0.78); font-weight: 600; }
.blg-banner .stb-crumb a { color: #fff; }
.blg-banner .stb-crumb span { margin: 0 8px; color: rgba(255,255,255,0.5); }
.blg-banner .blg-banner-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---- Intro strip under banner (index) ---- */
.blg-lede { padding: 74px 0 60px; }
.blg-lede .page-lead p { max-width: 660px; margin-left: auto; margin-right: auto; }

/* ---- Featured post ---- */
.blg-featured-wrap { padding-bottom: 76px; }
.blg-featured {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  overflow: hidden; box-shadow: var(--shadow-soft);
}
@media (max-width: 900px) { .blg-featured { grid-template-columns: 1fr; } }
.blg-featured-media { position: relative; min-height: 340px; background: var(--brand-tint); }
@media (max-width: 900px) { .blg-featured-media { min-height: 240px; aspect-ratio: 16/10; } }
.blg-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.blg-featured-badge {
  position: absolute; top: 20px; left: 20px; background: var(--brand-deep); color: #fff;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 8px 16px; border-radius: 100px;
}
.blg-featured-body { padding: 44px 42px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 600px) { .blg-featured-body { padding: 30px 24px; } }
.blg-featured-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 16px 0 14px; }
.blg-featured-body h2 a { color: inherit; }
.blg-featured-body > p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 22px; }
.blg-featured-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }

/* ---- Author byline ---- */
.blg-author { display: flex; align-items: center; gap: 12px; }
.blg-author .blg-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.86rem;
}
.blg-author .blg-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.blg-author strong { display: block; font-size: 0.92rem; color: var(--brand-deep); font-weight: 700; }
.blg-author span { font-size: 0.79rem; color: var(--ink-soft); }

/* ---- Category filter ---- */
.blg-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding-bottom: 26px;
}
.blg-filter-bar h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 0; }
.blg-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.blg-filter {
  padding: 10px 18px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 700; font-size: 0.83rem; color: var(--ink); cursor: pointer;
  font-family: inherit; transition: all .25s var(--ease);
}
.blg-filter:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.blg-filter[aria-pressed="true"] {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 10px 22px -12px rgba(88,92,140,0.6);
}
.blg-filter-count { font-size: 0.82rem; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; }

/* ---- Index body: post grid + sticky aside ---- */
.blg-index { padding: 62px 0 90px; }
.blg-index-grid { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
@media (max-width: 1020px) { .blg-index-grid { grid-template-columns: 1fr; gap: 46px; } }
.blg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 620px) { .blg-grid { grid-template-columns: 1fr; } }
.blg-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.blg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.blg-card.is-hidden { display: none; }
.blg-card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--brand-tint); position: relative; }
.blg-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blg-card:hover .blg-card-media img { transform: scale(1.06); }
.blg-card-media .blg-chip { position: absolute; top: 14px; left: 14px; background: #fff; box-shadow: var(--shadow-card); }
.blg-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.blg-card-body h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 10px; }
.blg-card-body h3 a { color: inherit; }
.blg-card-body > p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 18px; }
.blg-card .blg-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
/*.blg-card .link-arrow { margin-top: 18px; }*/
.blg-card-pending { opacity: 0.72; }
.blg-card-pending .blg-card-body h3 { color: var(--ink-soft); }
.blg-empty { display: none; padding: 50px 0; text-align: center; color: var(--ink-soft); grid-column: 1 / -1; }
.blg-empty.show { display: block; }

/* Sticky aside */
.blg-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 1020px) { .blg-aside { position: static; } }
.blg-aside-box { background: var(--brand-pale); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.blg-aside-box.accent { background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 130%); border-color: transparent; color: #fff; }
.blg-aside-box.accent h3, .blg-aside-box.accent h4 { color: #fff; }
.blg-aside-box.accent p { color: rgba(255,255,255,0.82); }
.blg-aside-box h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; font-weight: 500; }
.blg-aside-box.accent h4 { color: #C6C6E6; }
.blg-aside-box.accent .btn-outline-dental { color: #fff; border-color: rgba(255,255,255,0.34); }
.blg-aside-box.accent .btn-outline-dental:hover { background: #fff; color: var(--brand-deep); }
.blg-aside-box p { font-size: 0.9rem; line-height: 1.65; margin-bottom: 16px; }
.blg-aside-box p:last-child { margin-bottom: 0; }
.blg-topic-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.blg-topic-list button {
  font-family: inherit; font-size: 0.82rem; font-weight: 600; color: var(--brand-deep);
  background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 8px 15px; cursor: pointer;
  transition: all .25s var(--ease);
}
.blg-topic-list button:hover { border-color: var(--brand); color: var(--brand); }
.blg-mini-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.blg-mini-list li { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.blg-mini-list li:first-child { border-top: none; padding-top: 0; }
.blg-mini-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--brand);
  background: var(--brand-tint); border-radius: 8px; width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.blg-mini-list a { font-weight: 600; font-size: 0.9rem; color: var(--brand-deep); line-height: 1.45; display: block; }
.blg-mini-list a:hover { color: var(--brand); }
.blg-mini-list span { font-size: 0.76rem; color: var(--ink-soft); }

/* ---- Newsletter ---- */
.blg-news { padding: 0 0 90px; }
.blg-news-card {
  background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 130%);
  border-radius: 26px; padding: 46px; color: #fff; display: grid;
  grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 860px) { .blg-news-card { grid-template-columns: 1fr; padding: 34px 26px; gap: 24px; } }
.blg-news-card h2 { color: #fff; margin-bottom: 12px; }
.blg-news-card p { color: rgba(255,255,255,0.8); margin: 0; }
.blg-news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.blg-news-form input {
  flex: 1 1 220px; border: 1.5px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.1);
  border-radius: 100px; padding: 14px 20px; font: inherit; color: #fff;
}
.blg-news-form input::placeholder { color: rgba(255,255,255,0.62); }
.blg-news-form input:focus { outline: none; border-color: #fff; }
.blg-news-form .btn-news {
  background: #fff; color: var(--brand-deep); border: none; cursor: pointer;
  padding: 14px 28px; border-radius: 100px; font-weight: 700; font-size: 0.92rem; font-family: inherit;
  transition: transform .3s var(--ease), background .3s ease;
}
.blg-news-form .btn-news:hover { background: var(--brand-pale); transform: translateY(-2px); }
.blg-news-note { font-size: 0.78rem; color: rgba(255,255,255,0.62); margin-top: 12px; }

/* ================================================================
   SINGLE BLOG POST
   ================================================================ */

/* ---- Reading progress ---- */
.blg-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--brand); width: 0; z-index: 1500; transition: width .12s linear; }
html.reduce-motion .blg-progress { display: none; }

/* ---- Article header ---- */
.blg-post-head { padding: 132px 0 54px; }
.blg-post-head .stb-crumb a { color: var(--brand); }
.blg-post-head .stb-crumb span { margin: 0 8px; color: var(--ink-soft); opacity: 0.6; }
.blg-post-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 18px 0 20px; max-width: 900px; }
.blg-post-head .blg-post-deck { font-size: 1.06rem; color: var(--ink-soft); max-width: 760px; line-height: 1.75; }
.blg-post-byline {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
}

/* Share row */
.blg-share { display: flex; align-items: center; gap: 9px; }
.blg-share > span { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-right: 4px; }
.blg-share a, .blg-share button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--brand-deep); cursor: pointer;
  transition: all .25s var(--ease); padding: 0;
}
.blg-share a:hover, .blg-share button:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.blg-share button.is-copied { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- Article layout ---- */
.blg-article-wrap { padding: 20px 0 90px; }
.blg-article-grid { display: grid; grid-template-columns: 1fr 320px; gap: 52px; align-items: start; }
@media (max-width: 1020px) { .blg-article-grid { grid-template-columns: 1fr; gap: 44px; } }
.blg-article { min-width: 0; }

.blg-hero-img {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/8.4;
  box-shadow: var(--shadow-card); background: var(--brand-tint); margin-bottom: 40px;
}
.blg-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.blg-hero-img figcaption { padding: 0; }
.blg-hero-img figcaption, .blg-figure figcaption {
  font-size: 0.78rem; color: var(--ink-soft); padding-top: 10px; line-height: 1.5;
}

/* ---- Prose ---- */
.blg-prose { max-width: 760px; }
.blg-prose > p { color: var(--ink-soft); line-height: 1.8; font-size: 1.02rem; margin-bottom: 18px; }
.blg-prose > ul:not(.blg-list), .blg-prose > ol { color: var(--ink-soft); line-height: 1.8; font-size: 1.02rem; padding-left: 22px; margin-bottom: 20px; }
.blg-prose > ul:not(.blg-list) li, .blg-prose > ol li { margin-bottom: 9px; }
.blg-avoid > p { color: var(--ink-soft); line-height: 1.8; font-size: 1.02rem; margin-bottom: 18px; }
.blg-avoid > p:last-child { margin-bottom: 0; }
.blg-prose a { color: var(--brand); font-weight: 700; }
.blg-prose h2 { font-size: clamp(1.5rem, 2.7vw, 2rem); margin: 52px 0 18px; scroll-margin-top: 110px; }
.blg-prose h3 { font-size: clamp(1.15rem, 1.9vw, 1.35rem); margin: 38px 0 14px; scroll-margin-top: 110px; }
.blg-prose h2:first-child, .blg-prose h3:first-child { margin-top: 0; }
.blg-prose strong { color: var(--brand-deep); }

/* Callout for the practice line */
.blg-note {
  background: var(--brand-pale); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 26px 0;
}
.blg-note p { color: var(--ink-soft); margin: 0; line-height: 1.7; font-size: 0.96rem; }
.blg-note p strong { color: var(--brand-deep); }

/* Icon lists — avoid (warning) vs recommended (check) */
.blg-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.blg-list li {
  display: flex; gap: 13px; align-items: flex-start; color: var(--ink-soft);
  line-height: 1.65; font-size: 0.98rem;
}
.blg-list .blg-list-ico {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
}
.blg-list.warn .blg-list-ico { background: #FBEDED; color: #B4524F; }
.blg-list.safe .blg-list-ico { background: var(--brand-tint); color: var(--brand); }
.blg-list-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-deep); margin: 24px 0 12px; font-weight: 500;
}
.blg-list-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 8px; }
@media (max-width: 700px) { .blg-list-columns { grid-template-columns: 1fr; gap: 18px; } }
.blg-list-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: #fff; }
.blg-list-panel.warn { background: #FDF7F7; border-color: #F0DEDD; }
.blg-list-panel h4 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 16px; }
.blg-list-panel.warn h4 { color: #9E4744; }
.blg-list-panel.safe h4 { color: var(--brand-deep); }
.blg-list-panel .blg-list { margin-bottom: 0; }

/* Avoid-item blocks */
.blg-avoid { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 30px; }
.blg-avoid:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.blg-avoid-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.blg-avoid-ico {
  width: 46px; height: 46px; border-radius: 14px; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.blg-avoid-head h3 { margin: 0; }

/* Recovery table */
.blg-table-wrap { overflow-x: auto; margin: 26px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.blg-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.blg-table caption { caption-side: top; text-align: left; padding: 20px 24px 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.blg-table th, .blg-table td { padding: 16px 24px; text-align: left; font-size: 0.94rem; }
.blg-table thead th { background: var(--brand-tint); color: var(--brand-deep); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.02em; }
.blg-table tbody tr + tr { border-top: 1px solid var(--line); }
.blg-table tbody th { font-weight: 700; color: var(--brand-deep); width: 34%; }
.blg-table td { color: var(--ink-soft); }
.blg-table tbody tr:hover { background: var(--brand-pale); }

/* Alert callout — when to call */
.blg-alert { background: #FDF7F7; border: 1px solid #F0DEDD; border-radius: var(--radius); padding: 30px; margin: 26px 0; }
.blg-alert-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.blg-alert-head .blg-alert-ico { width: 42px; height: 42px; border-radius: 50%; background: #FBEDED; color: #B4524F; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.blg-alert-head h3 { margin: 0; color: #8F403D; }
.blg-alert .blg-list .blg-list-ico { background: #FBEDED; color: #B4524F; }
.blg-alert-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid #F0DEDD; }
.blg-alert-foot p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 14px; }
.blg-alert-foot .blg-call-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.blg-call-link {
  display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: #fff;
  padding: 13px 24px; border-radius: 100px; font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 12px 24px -14px rgba(88,92,140,0.65); transition: all .3s var(--ease);
}
.blg-call-link:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }

/* FAQ */
.blg-faq { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.blg-faq details + details { border-top: 1px solid var(--line); }
.blg-faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1rem; color: var(--brand-deep); transition: background .25s ease;
}
.blg-faq summary::-webkit-details-marker { display: none; }
.blg-faq summary:hover { background: var(--brand-pale); }
.blg-faq summary .faq-ico {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .3s var(--ease);
}
.blg-faq details[open] summary .faq-ico { transform: rotate(45deg); background: var(--brand); color: #fff; }
.blg-faq .faq-answer { padding: 0 26px 24px; }
.blg-faq .faq-answer p { color: var(--ink-soft); line-height: 1.75; margin: 0; }
.blg-faq .faq-num { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--brand); margin-right: 10px; }

/* Article footer / disclaimer */
.blg-disclaimer {
  margin-top: 46px; background: var(--brand-pale); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
}
.blg-disclaimer h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; font-weight: 500; }
.blg-disclaimer p { font-size: 0.87rem; color: var(--ink-soft); margin: 0; line-height: 1.7; }

/* Author card */
.blg-author-card {
  margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; gap: 22px; align-items: flex-start; box-shadow: var(--shadow-card);
}

@media (max-width: 767px){
  .video-hero .hero-content {
    max-width: 100%;
  }
  #services .tech-grid {
    grid-template-columns: repeat(1, 1fr)!important;
  }
  .doctor-photo {
    height: 210px;
  }
}
@media (max-width: 560px) 
{ .container-xl{
  max-width: 100%;
}.blg-author-card { flex-direction: column; } }
.blg-author-card .blg-author-photo {
  width: 92px; height: 92px; border-radius: 20px; overflow: hidden; background: var(--brand-tint); flex-shrink: 0;
}
.blg-author-card .blg-author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.blg-author-card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.blg-author-card .blg-author-role { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); display: block; margin-bottom: 12px; }
.blg-author-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; }

/* ---- Single-post aside ---- */
.blg-post-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 1020px) { .blg-post-aside { position: static; } }
.blg-toc { background: var(--brand-pale); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.blg-toc h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; font-weight: 500; }
.blg-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.blg-toc li { counter-increment: toc; }
.blg-toc a {
  display: block; padding: 9px 0 9px 30px; font-size: 0.87rem; font-weight: 600;
  color: var(--ink-soft); position: relative; line-height: 1.45; transition: color .2s ease;
}
.blg-toc a::before {
  content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 9px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--ink-soft); opacity: 0.6;
}
.blg-toc a:hover { color: var(--brand); }
.blg-toc a.is-active { color: var(--brand); }
.blg-toc a.is-active::before { opacity: 1; color: var(--brand); }

/* ---- Related posts ---- */
.blg-related { padding: 84px 0 90px; background: var(--brand-pale); }
.blg-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.blg-related-head h2 { margin: 0; }

@media (max-width: 767px) {
  .blg-banner { padding: 120px 0 58px; }
  .blg-post-head { padding: 112px 0 40px; }
  .blg-lede { padding: 56px 0 44px; }
}
header.site-header .main-nav > li > button.nav-toggle{
    padding: 11.5px 9px;
}
 
#about{
   background: #f7f7f7;
}
ul.list{
  list-style-type: none;
  padding: 0px;
}
 
ul.list li{
    /*  list-style-type: square;*/
    margin-bottom: 5px;
    color: var(--ink-soft);
    position: relative;
    padding-left: 30px;
}
ul.list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    background: url('../images/check-icon.png') no-repeat;
    width: 20px;
    height: 20px;
}

.page-template-services-inner .section-pad.bg-pale{
  background: none;
}
.page-template-services-inner .blg-mini-list li{
  align-items: center;
}
iframe{
  border-radius: 15px;
    border: 1px solid #000;
}

.office-owl .item img{
  width:100%;height:300px;object-fit:cover;
  border-radius:14px;display:block;
}
.office-owl .owl-nav button{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.9)!important;color:#5b5b8f!important;
  font-size:18px!important;
}
.office-owl .owl-nav .owl-prev{left:-12px}
.office-owl .owl-nav .owl-next{right:-12px}
.office-owl .owl-dots .owl-dot.active span{background:#5b5b8f}
.office-owl{position:relative}