/* =========================================================
   Dr. Amir Zargar (D.D.S.) - Bilingual RTL/LTR Zero-Scroll UI
   Unified Orbiting Light Affordance + Interactive Service Guides
   ========================================================= */

:root {
  --bg-page: #f3f6fa;
  --bg-surface: rgba(255, 255, 255, 0.94);
  --bg-tile: rgba(219, 232, 245, 0.92);
  --bg-tile-hover: #c9dff4;
  --tile-border: #9ec1e2;
  --navy-dark: #102a43;
  --navy-banner: #132c46;
  --primary-blue: #1d6fa5;
  --accent-cyan: #1882c4;
  --orbit-glow: rgba(24, 130, 196, 0.72);
  --text-main: #18232f;
  --text-secondary: #4a5968;
  --text-muted: #5f7183;
  --border-light: #dce3eb;
  --shadow-soft: 0 10px 26px rgba(16, 42, 67, 0.08);
  --radius-lg: 20px;
  --radius-md: 15px;
  --radius-sm: 11px;
  --transition: 0.22s ease;
}

@property --orbit-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes orbitLightSpin {
  0% {
    --orbit-angle: 0deg;
  }
  100% {
    --orbit-angle: 360deg;
  }
}

/* Unified Slow Orbiting Light Effect for ALL Interactive Buttons & Cards */
.interactive-orbit {
  position: relative;
  isolation: isolate;
}

.interactive-orbit::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.8px;
  background: conic-gradient(
    from var(--orbit-angle),
    transparent 0deg,
    transparent 250deg,
    rgba(56, 189, 248, 0.45) 295deg,
    rgba(24, 130, 196, 0.95) 330deg,
    rgba(125, 211, 252, 0.85) 348deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: orbitLightSpin 7.5s linear infinite;
}

.interactive-orbit:hover::before,
.interactive-orbit:focus-visible::before {
  animation-duration: 3.5s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: 'Inter', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 24px;
}

.app-viewport {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: var(--bg-page);
  background-image:
    linear-gradient(180deg, rgba(244, 247, 250, 0.62) 0%, rgba(244, 247, 250, 0.82) 100%),
    url('../assets/clinic-bg.webp');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

/* ---------------- Header ---------------- */
.site-header {
  flex-shrink: 0;
  padding-top: clamp(10px, 2vh, 22px);
  padding-bottom: clamp(6px, 1vh, 14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding-bottom: 6px;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  font-weight: 700;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background-color: var(--accent-cyan);
}

.brand-and-lang {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--navy-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(16, 42, 67, 0.05);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.lang-switch-btn:hover {
  background-color: var(--navy-banner);
  border-color: var(--navy-banner);
  color: #ffffff;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.tooth-logo-img {
  width: clamp(36px, 4.5vh, 48px);
  height: clamp(36px, 4.5vh, 48px);
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.brand-name {
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.brand-sub .line {
  display: inline-block;
  width: 22px;
  height: 1px;
  background-color: #9bb8d3;
}

/* ---------------- Main Stage & Views ---------------- */
.main-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(6px, 1vh, 12px);
}

.view-panel {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
}

.view-panel.is-active {
  display: flex;
}

/* ---------------- Hero Section (Desktop Grid) ---------------- */
.hero-grid {
  height: 100%;
  max-height: 760px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto auto auto auto;
  grid-template-areas:
    "heading media"
    "desc media"
    "actions media"
    "features features"
    "banner banner";
  column-gap: 40px;
  align-content: space-between;
  align-items: center;
}

.hero-heading-group {
  grid-area: heading;
  align-self: end;
}

.hero-title {
  font-size: clamp(1.85rem, 3.5vw, 2.9rem);
  font-weight: 800;
  color: #161d24;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-degree {
  margin-top: 6px;
  font-size: clamp(1.08rem, 1.85vw, 1.4rem);
  font-weight: 500;
  color: #36414d;
}

.accent-bar {
  display: block;
  width: 72px;
  height: 3.5px;
  margin-top: clamp(10px, 1.8vh, 18px);
  border-radius: 99px;
  background-color: var(--accent-cyan);
}

.hero-media {
  grid-area: media;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.portrait-card {
  width: 100%;
  max-width: clamp(280px, 39vh, 405px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  line-height: 0;
}

.portrait-card img {
  width: 100%;
  height: auto;
  max-height: 46vh;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
}

.hero-description-group {
  grid-area: desc;
}

.hero-desc {
  font-size: clamp(0.94rem, 1.35vw, 1.05rem);
  font-weight: 400;
  color: #2f3a45;
  line-height: 1.75;
}

.mobile-only-desc {
  display: none;
}

/* Quick Action Tiles */
.quick-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-self: start;
}

.action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(11px, 1.6vh, 16px) 6px;
  background: linear-gradient(180deg, #e7f1fa 0%, #d8e9f8 100%);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius-md);
  color: var(--navy-dark);
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.05);
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.action-tile:hover {
  background: linear-gradient(180deg, #d7e8f7 0%, #c4ddf4 100%);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(24, 130, 196, 0.14);
}

.tile-icon svg {
  width: 29px;
  height: 29px;
  color: var(--primary-blue);
}

.tile-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-dark);
}

/* 3 Pillars Feature Row */
.features-strip {
  grid-area: features;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(4px, 1vh, 10px);
}

.feature-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 10px;
}

.feature-icon {
  margin-bottom: 6px;
  color: var(--accent-cyan);
}

.feature-icon svg {
  width: clamp(24px, 3.2vh, 32px);
  height: clamp(24px, 3.2vh, 32px);
}

.feature-title {
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  font-weight: 700;
  color: #1d2630;
}

.feature-sub {
  margin-top: 2px;
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  font-weight: 400;
  color: var(--text-muted);
}

.feature-divider {
  width: 1px;
  height: 44px;
  background-color: var(--border-light);
}

/* Clinic Dark Navy Banner */
.clinic-banner {
  grid-area: banner;
  background-color: var(--navy-banner);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: clamp(11px, 1.6vh, 16px) 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 24px rgba(19, 44, 70, 0.15);
}

.appointment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background-color: #f4f7fa;
  color: var(--navy-banner);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: transform var(--transition), background-color var(--transition);
}

.appointment-btn:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

.appointment-btn.dark-variant {
  background-color: var(--navy-banner);
  color: #ffffff;
  width: 100%;
  margin-top: auto;
}

.appointment-btn.dark-variant:hover {
  background-color: var(--accent-cyan);
}

.appointment-btn svg {
  width: 20px;
  height: 20px;
}

.banner-info-item.centered-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.48;
  color: #e2eaf2;
}

.banner-text strong {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1px;
}

.banner-text span {
  font-weight: 400;
}

.banner-divider {
  width: 1px;
  height: 46px;
  background-color: rgba(255, 255, 255, 0.2);
}

/* ---------------- Sub-Pages Common ---------------- */
.sub-page-inner {
  height: 100%;
  max-height: 740px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.8vh, 20px);
}

.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sub-title-group {
  display: flex;
  flex-direction: column;
}

.sub-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-title {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: var(--navy-dark);
}

.tab-pills {
  display: flex;
  align-items: center;
  background-color: var(--bg-tile);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
  border: 1px solid var(--border-light);
}

.tab-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: 8px;
  transition: all var(--transition);
}

.tab-pill.is-active {
  background-color: var(--navy-banner);
  color: #ffffff;
  font-weight: 700;
}

.back-home-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--navy-dark);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color var(--transition);
}

.back-home-btn:hover {
  background-color: var(--bg-tile-hover);
}

.about-tab-content {
  display: none;
}

.about-tab-content.is-active {
  display: block;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.about-bio-card,
.about-highlights-card,
.contact-main-card,
.contact-form-card {
  background-color: var(--bg-surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.4vh, 24px);
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.05);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.about-bio-card h3,
.about-highlights-card h3,
.contact-main-card h3,
.contact-form-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.about-bio-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.credentials-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 4px;
}

.cred-badge {
  background-color: var(--bg-tile);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.cred-badge-link {
  border-color: var(--tile-border);
  cursor: pointer;
}

.cred-badge-link:hover {
  background-color: var(--bg-tile-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.cred-badge strong {
  font-size: 0.88rem;
  color: var(--accent-cyan);
}

.cred-badge span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.clean-list li {
  position: relative;
  padding-inline-start: 15px;
}

.clean-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.career-card {
  background-color: var(--bg-surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: clamp(14px, 2vh, 20px);
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.career-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
}

.career-date {
  color: var(--accent-cyan);
  background-color: var(--bg-tile);
  padding: 3px 9px;
  border-radius: 6px;
}

.career-loc {
  color: var(--text-muted);
}

.career-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.career-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

/* ---------------- Services View (Interactive 8-Card 2x4 Grid) ---------------- */
.services-stage {
  gap: clamp(10px, 1.6vh, 18px);
}

.services-top-bar {
  align-items: flex-start;
}

.services-title-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.services-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.title-side-line {
  display: inline-block;
  width: clamp(44px, 6vw, 76px);
  height: 2.5px;
  border-radius: 99px;
  background-color: var(--accent-cyan);
}

.services-main-heading {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 800;
  color: #161d24;
  line-height: 1.2;
}

.services-subtitle {
  font-size: clamp(0.84rem, 1.2vw, 0.98rem);
  font-weight: 500;
  color: var(--text-secondary);
}

.services-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.8vh, 18px);
}

.srv-card {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(196, 214, 232, 0.95);
  border-radius: 18px;
  padding: clamp(12px, 1.9vh, 18px) 12px;
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  gap: clamp(5px, 0.8vh, 8px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.srv-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 28px rgba(24, 130, 196, 0.14);
}

.srv-icon svg {
  width: clamp(40px, 5.2vh, 52px);
  height: clamp(40px, 5.2vh, 52px);
}

.srv-card h2 {
  font-size: clamp(0.82rem, 1.12vw, 0.94rem);
  font-weight: 800;
  color: #18232f;
  line-height: 1.32;
}

.srv-card p {
  font-size: clamp(0.72rem, 1vw, 0.81rem);
  color: var(--text-secondary);
  line-height: 1.48;
  max-width: 215px;
}

.srv-more-badge {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-blue);
  background-color: #eaf3fb;
  padding: 3px 10px;
  border-radius: 99px;
  transition: background-color var(--transition), color var(--transition);
}

.srv-card:hover .srv-more-badge {
  background-color: var(--navy-banner);
  color: #ffffff;
}

/* Service Educational Detail Modal */
.service-detail-card {
  max-width: 560px;
}

.service-detail-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-height: 58vh;
  overflow-y: auto;
  padding-inline-end: 4px;
}

.service-detail-body h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-top: 4px;
}

.service-detail-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-detail-body li {
  position: relative;
  padding-inline-start: 16px;
}

.service-detail-body li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}

.service-detail-footer {
  margin-top: 16px;
}

/* ---------------- Contact View ---------------- */
.contact-coordinated-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.contact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip {
  background-color: var(--bg-tile);
  color: var(--accent-cyan);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}

.contact-tiles-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.c-tile {
  background-color: var(--bg-tile);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background-color var(--transition), transform var(--transition);
}

.c-tile:hover {
  background-color: var(--bg-tile-hover);
  transform: translateY(-2px);
}

.c-tile-title {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.c-tile strong {
  font-size: 0.88rem;
  color: var(--navy-dark);
  font-weight: 700;
}

.contact-navy-box {
  margin-top: auto;
  background-color: var(--navy-banner);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-navy-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: #dce6f0;
}

.c-navy-row strong {
  color: #ffffff;
  font-size: 0.78rem;
}

.c-navy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.navy-pill-btn {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background-color var(--transition);
}

.navy-pill-btn:hover {
  background-color: var(--accent-cyan);
}

/* Booking Trigger Card on Contact Page */
.booking-trigger-card {
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 16px;
}

.trigger-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 300px;
}

/* ---------------- Forms & Modals ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(16, 42, 67, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1000;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 45px rgba(16, 42, 67, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.35;
}

.modal-close {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 2px 6px;
}

.modal-address {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}

.map-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-tile);
  color: var(--navy-dark);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.map-choice-btn.primary-call-btn {
  background-color: var(--navy-banner);
  color: #ffffff;
}

.map-choice-btn:hover {
  background-color: var(--accent-cyan);
  color: #ffffff;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group select {
  font-family: inherit;
  font-size: 0.86rem;
  padding: 8px 11px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #f8fafc;
  color: var(--text-main);
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-cyan);
  background-color: #ffffff;
}

.submit-btn {
  margin-top: 4px;
  background-color: var(--navy-banner);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.submit-btn:hover {
  background-color: var(--accent-cyan);
}

/* ---------------- Compact Footer (Visible on All Pages) ---------------- */
.site-footer {
  flex-shrink: 0;
  padding-block: 5px 7px;
  text-align: center;
  border-top: 1px solid rgba(220, 227, 235, 0.7);
  background-color: rgba(244, 247, 250, 0.72);
  backdrop-filter: blur(4px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-sep {
  opacity: 0.45;
}

/* =========================================================
   Mobile Layout
   ========================================================= */
@media (max-width: 820px) {
  .container {
    padding-inline: 12px;
  }

  .site-header {
    padding-top: 8px;
    padding-bottom: 4px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .brand-and-lang {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .main-nav {
    order: 2;
    width: 100%;
  }

  .nav-list {
    justify-content: space-between;
    gap: 6px;
    padding-inline: 4px;
  }

  .nav-link {
    font-size: 0.96rem;
    font-weight: 600;
    padding-bottom: 4px;
  }

  .lang-switch-btn {
    height: 30px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .tooth-logo-img {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 0.94rem;
  }

  .brand-sub {
    font-size: 0.72rem;
  }

  .brand-sub .line {
    width: 18px;
  }

  .main-stage {
    padding-bottom: 4px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto auto auto;
    grid-template-areas:
      "heading"
      "media"
      "desc"
      "features"
      "banner"
      "actions";
    row-gap: 6px;
    align-content: space-between;
  }

  .hero-heading-group {
    align-self: start;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.15;
  }

  .hero-degree {
    font-size: 1.06rem;
    margin-top: 2px;
  }

  .accent-bar {
    width: 54px;
    height: 3px;
    margin-top: 5px;
  }

  .hero-media {
    justify-content: center;
    min-height: 0;
    height: 100%;
  }

  .portrait-card {
    width: 100%;
    max-width: 310px;
    height: 100%;
    max-height: 36dvh;
    border-radius: 10px;
  }

  .portrait-card img {
    width: 100%;
    height: 100%;
    max-height: 36dvh;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 10px;
  }

  .hero-description-group {
    text-align: center;
  }

  .desktop-only-desc {
    display: none;
  }

  .mobile-only-desc {
    display: block;
    font-size: 0.94rem;
    font-weight: 500;
    color: #24303c;
    line-height: 1.48;
  }

  .features-strip {
    padding-block: 2px;
    align-items: flex-start;
  }

  .feature-item {
    padding-inline: 2px;
  }

  .feature-icon {
    margin-bottom: 3px;
  }

  .feature-icon svg {
    width: 24px;
    height: 24px;
  }

  .feature-title {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .feature-sub {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .feature-divider {
    height: 38px;
    margin-top: 4px;
  }

  .clinic-banner {
    padding: 9px 10px;
    gap: 7px;
    border-radius: 13px;
  }

  .appointment-btn {
    padding: 9px 12px;
    font-size: 0.82rem;
    border-radius: 9px;
    gap: 5px;
  }

  .appointment-btn svg {
    width: 16px;
    height: 16px;
  }

  .banner-text {
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .banner-divider {
    height: 36px;
  }

  .quick-actions {
    gap: 8px;
  }

  .action-tile {
    padding: 10px 4px;
    border-radius: 12px;
    gap: 4px;
  }

  .tile-icon svg {
    width: 24px;
    height: 24px;
  }

  .tile-label {
    font-size: 0.82rem;
    font-weight: 700;
  }

  .sub-page-inner {
    gap: 8px;
    justify-content: flex-start;
    padding-top: 2px;
  }

  .sub-header {
    align-items: center;
  }

  .sub-title {
    font-size: 1.12rem;
  }

  .tab-pill {
    font-size: 0.74rem;
    padding: 5px 9px;
  }

  .back-home-btn {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  .services-stage {
    height: 100%;
    max-height: none;
    justify-content: space-between;
    gap: 6px;
  }

  .services-top-bar {
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
  }

  .services-main-heading {
    font-size: 1.28rem;
  }

  .title-side-line {
    width: 32px;
    height: 2.5px;
  }

  .services-subtitle {
    font-size: 0.72rem;
  }

  .services-grid-8 {
    flex: 1;
    min-height: 0;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 7px;
  }

  .srv-card {
    height: 100%;
    padding: 6px 6px;
    border-radius: 13px;
    gap: 2px;
  }

  .srv-icon svg {
    width: 28px;
    height: 28px;
  }

  .srv-card h2 {
    font-size: 0.7rem;
    line-height: 1.24;
  }

  .srv-card p {
    font-size: 0.62rem;
    line-height: 1.32;
  }

  .srv-more-badge {
    font-size: 0.6rem;
    padding: 2px 7px;
  }

  .about-layout,
  .contact-coordinated-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-bio-card,
  .about-highlights-card,
  .contact-main-card,
  .contact-form-card {
    padding: 10px 12px;
    gap: 6px;
  }

  .about-bio-card h3,
  .about-highlights-card h3,
  .contact-main-card h3,
  .contact-form-card h3 {
    font-size: 0.92rem;
  }

  .about-bio-card p {
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .credentials-row {
    gap: 5px;
  }

  .cred-badge {
    padding: 6px;
  }

  .cred-badge strong {
    font-size: 0.74rem;
  }

  .cred-badge span {
    font-size: 0.62rem;
  }

  .clean-list {
    gap: 4px;
    font-size: 0.74rem;
  }

  .career-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .career-card {
    padding: 8px 10px;
    gap: 3px;
  }

  .career-top {
    font-size: 0.68rem;
  }

  .career-card h3 {
    font-size: 0.8rem;
  }

  .career-card p {
    font-size: 0.7rem;
    line-height: 1.42;
  }

  .contact-tiles-3 {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .c-tile {
    padding: 7px 10px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .c-tile-title {
    font-size: 0.72rem;
  }

  .c-tile strong {
    font-size: 0.8rem;
  }

  .contact-navy-box {
    padding: 9px 11px;
    gap: 5px;
  }

  .c-navy-row {
    font-size: 0.68rem;
  }

  .c-navy-row strong {
    font-size: 0.68rem;
  }

  .navy-pill-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .booking-trigger-card {
    padding: 14px;
    gap: 10px;
  }

  .trigger-desc {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .site-footer {
    padding-block: 4px 5px;
  }

  .footer-inner {
    font-size: 0.64rem;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .interactive-orbit::before {
    animation: none;
  }
}


/* Static service-detail articles inside the modal (crawlable HTML, toggled by JS / language) */
.srv-detail[hidden] { display: none; }
.srv-detail-lang { display: none; }
html[lang="fa"] .srv-detail-lang[lang="fa"],
html[lang="en"] .srv-detail-lang[lang="en"] { display: block; }
