/* Shared layout only; homepage illustrations and sections stay in home.css. */
:root {
  --paper: #fbf9f5;
  --white: #fff;
  --ink: #29203a;
  --body: #5c5365;
  --purple: #53249b;
  --purple-deep: #3c186e;
  --lav: #f1eaf8;
  --lav-light: #f2ebfb;
  --orange: #f9ede1;
  --line: #ded5e4;
  --wrap: 1240px;
  --nav: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 16px/1.85 Vazirmatn,
    Tahoma,
    Arial,
    sans-serif;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #7f48d3;
  outline-offset: 5px;
}

::selection {
  background: #e1cafb;
  color: #36155b;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--wrap), calc(100% - 104px));
  margin-inline: auto;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.ico-sm {
  width: 18px;
  height: 18px;
}

.btn {
  min-height: 52px;
  padding: 10px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-weight: 720;
  font-size: 1rem;
  line-height: 1.45;
  white-space: nowrap;
  transition:
    background 0.24s,
    color 0.24s,
    border 0.24s,
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-main {
  background: var(--purple);
  color: white;
  box-shadow: 0 8px 20px #53249b26;
}

.btn-main:hover {
  background: var(--purple-deep);
  box-shadow: 0 11px 25px #53249b38;
}

.btn-quiet {
  background: transparent;
  border-color: #c9b8de;
  color: var(--purple);
}

.btn-quiet:hover {
  background: #f0e7fb;
  border-color: #9b7ec2;
}

.btn-white {
  background: var(--white);
  color: var(--purple);
}

.btn-white:hover {
  background: #f3e8ff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-weight: 750;
  width: fit-content;
}

.text-link .icon {
  transition: transform 0.28s var(--ease);
}

.text-link:hover .icon {
  transform: translateX(-4px);
}

.skip-link {
  position: fixed;
  top: 10px;
  right: 14px;
  transform: translateY(-150%);
  z-index: 20;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
}

.skip-link:focus {
  transform: none;
}

.utility {
  background: #eee5f8;
  border-bottom: 1px solid #e7ddf3;
  color: #4b3267;
}

.utility-inner {
  min-height: 37px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 610;
}

.utility a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.utility a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9;
  background: #fbf9f5f2;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e9e1ea;
}

.nav-row {
  min-height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  line-height: 1.45;
}

.brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--purple);
  color: var(--white);
  box-shadow: inset 0 0 0 1px #ffffff36;
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.6;
}

.brand-name {
  display: block;
  font-weight: 900;
  font-size: 1.31rem;
  letter-spacing: -0.055em;
}

.brand-note {
  display: block;
  font-size: 1rem;
  color: var(--body);
  font-weight: 540;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.35vw, 36px);
  font-weight: 650;
  font-size: 1rem;
  color: #494053;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
}

.nav-links a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.23s;
}

.nav-links a:hover:after,
.nav-links a:focus-visible:after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.nav-actions .btn {
  min-height: 44px;
  padding-inline: 17px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--purple);
}

.booking {
  border: none;
  border-radius: 27px;
  background: var(--paper);
  color: var(--ink);
  width: min(460px, calc(100% - 28px));
  padding: 26px;
  box-shadow: 0 25px 80px #2f184c55;
  max-height: calc(100% - 26px);
  overflow: auto;
}

.booking[open] {
  animation: dialog-in 0.38s var(--ease) both;
}

.booking::backdrop {
  background: #2b163c77;
  backdrop-filter: blur(5px);
}

.booking h2 {
  font-size: 1.85rem;
  font-weight: 850;
  letter-spacing: -0.06em;
  margin-top: 12px;
}

.booking p {
  font-size: 1rem;
  color: var(--body);
  margin-top: 6px;
}

.booking-actions {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.booking-close {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--purple);
}

.booking-close .icon {
  transform: rotate(45deg);
}


/* Larger type with room to breathe, including the tablet navigation. */
body.neda-site {
  font-size: 18px;
  line-height: 1.95;
  min-width: 0;
}
.neda-site .utility-inner {
  min-height: 42px;
  font-size: 15px;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-block: 5px;
}
.neda-site .brand-name { font-size: 24px; letter-spacing: -.035em; }
.neda-site .brand-note { font-size: 15px; line-height: 1.65; }
.neda-site .nav-links { font-size: 17px; gap: clamp(15px, 2vw, 28px); }
.neda-site .nav-row { min-height: 90px; gap: 22px; }
.neda-site .btn { font-size: 17px; min-height: 50px; white-space: normal; text-align: center; }
.neda-site .nav-actions .btn { min-height: 46px; }
.neda-site .site-header { z-index: 30; }
.neda-site.admin-bar .site-header { top: 32px; }
.neda-site .mobile-contact { display: none; }
.neda-site .booking { margin: auto; }
.neda-site .booking p { font-size: 17px; line-height: 1.9; }
.neda-site .booking-actions .btn { flex-wrap: wrap; gap: 3px 12px; }
.neda-site .booking-close { width: 44px; height: 44px; }
.neda-site .skip-link { z-index: 100; }
.neda-site :where(a,button,input,textarea,select,summary):focus-visible { outline: 3px solid #7f48d3; outline-offset: 4px; }

/* Footer: a shared destination for clinic details and practical reading. */
.neda-site .site-footer {
  border-top: 1px solid var(--line);
  background: #f4eef8;
  padding: 0 0 22px;
  margin-top: 0;
}
.neda-site .footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 50px;
  padding-block: 42px;
  border-bottom: 1px solid #dcd0e8;
}
.neda-site .footer-kicker { display: block; font-size: 16px; font-weight: 600; color: var(--purple); margin-bottom: 9px; }
.neda-site .footer-cta h2 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.5; font-weight: 750; letter-spacing: -.035em; }
.neda-site .footer-cta p { margin-top: 8px; font-size: 17px; color: var(--body); }
.neda-site .footer-cta > .btn { flex: none; padding-inline: 25px; }
.neda-site .footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .7fr .95fr 1.2fr;
  align-items: start;
  gap: 40px;
  padding-block: 44px;
}
.neda-site .footer-grid > * { min-width: 0; }
.neda-site .footer-about > p { margin-top: 18px; color: var(--body); font-size: 17px; line-height: 1.95; }
.neda-site .footer-phones { display: flex; flex-direction: column; align-items: start; gap: 6px; margin-top: 18px; }
.neda-site .footer-phones a { font-size: 20px; font-weight: 650; color: var(--purple); letter-spacing: .01em; line-height: 1.8; }
.neda-site .footer-column h3 { font-size: 18px; font-weight: 700; margin: 5px 0 19px; color: var(--ink); }
.neda-site .footer-links { display: flex; flex-direction: column; align-items: start; gap: 10px; font-size: 16px; line-height: 1.9; color: var(--body); font-weight: 450; }
.neda-site .footer-links a { overflow-wrap: anywhere; }
.neda-site .footer-links a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.neda-site .footer-visit address { font-size: 16px; color: var(--body); margin-bottom: 14px; line-height: 2; }
.neda-site .footer-visit p { font-size: 16px; color: var(--body); margin-top: 5px; }
.neda-site .footer-visit .footer-call-hours { margin-top: 14px; }
.neda-site .footer-map { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 650; color: var(--purple); margin-top: 13px; }
.neda-site #clinic-details { scroll-margin-top: 125px; }
.neda-site .footer-bottom { border-top: 1px solid #dcd0e8; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; }
.neda-site .footer-bottom p,.neda-site .footer-bottom a { font-size: 15px; color: var(--body); }
.neda-site .footer-bottom a { display: inline-flex; align-items: center; gap: 10px; }

/* Inner content stays WordPress content; Elementor controls its own layout. */
.neda-site .neda-main { min-height: 45vh; }
.neda-site .neda-article:not(.neda-article--elementor) { padding-block: 52px 72px; max-width: 1040px; }
.neda-site .neda-page-heading { margin-bottom: 30px; }
.neda-site .neda-page-heading h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.5; font-weight: 750; letter-spacing: -.04em; }
.neda-site .neda-entry:not(.neda-entry--elementor) { font-size: 18px; line-height: 2.05; overflow-wrap: break-word; }
.neda-site .neda-entry:not(.neda-entry--elementor) :where(p,ul,ol,blockquote,figure,table) { margin-block: 0 24px; }
.neda-site .neda-entry:not(.neda-entry--elementor) :where(h2,h3,h4,h5,h6) { margin-block: 36px 14px; line-height: 1.65; }
.neda-site .neda-entry:not(.neda-entry--elementor) h2 { font-size: clamp(25px, 3vw, 34px); }
.neda-site .neda-entry:not(.neda-entry--elementor) h3 { font-size: 24px; }
.neda-site .neda-entry:not(.neda-entry--elementor) h4 { font-size: 21px; }
.neda-site .neda-entry:not(.neda-entry--elementor) :where(h5,h6) { font-size: 19px; }
.neda-site .neda-entry:not(.neda-entry--elementor) a { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.neda-site .neda-entry:not(.neda-entry--elementor) ul { list-style: disc; padding-inline-start: 26px; }
.neda-site .neda-entry:not(.neda-entry--elementor) ol { list-style: decimal; padding-inline-start: 26px; }
.neda-site .neda-entry:not(.neda-entry--elementor) li { margin-block: 8px; }
.neda-site .neda-entry:not(.neda-entry--elementor) blockquote { border-inline-start: 3px solid var(--purple); padding: 18px 24px; background: var(--lav-light); border-radius: 12px; }
.neda-site .neda-entry :where(img,video,iframe) { max-width: 100%; }
.neda-site .neda-entry :where(img,video) { height: auto; }
.neda-site .neda-entry :where(pre,.wp-block-table) { max-width: 100%; overflow-x: auto; }
.neda-site .neda-entry--elementor { padding: 0; }
.neda-site .neda-index { padding-block: 52px 72px; }
.neda-site .neda-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.neda-site .neda-post-card { min-width: 0; background: var(--white); border: 1px solid var(--line); padding: 25px; border-radius: 22px; }
.neda-site .neda-post-card img { width: 100%; aspect-ratio: 1.6; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
.neda-site .neda-post-card h2 { font-size: 24px; line-height: 1.6; margin: 0 0 12px; }
.neda-site .neda-excerpt { font-size: 17px; color: var(--body); }
.neda-site .neda-read-more { display: block; color: var(--purple); font-size: 16px; margin-top: 20px; }
.neda-site .neda-empty { padding-block: 50px; }
.neda-site .neda-empty h1 { font-size: clamp(28px,4vw,42px); }
.neda-site .neda-empty p { margin-bottom: 20px; }
.neda-site .neda-overline { font-size: 22px; color: var(--purple); }
.neda-site .search-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 20px; }
.neda-site :where(.search-field,.search-submit,.comment-form input,.comment-form textarea) { font: inherit; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--white); color: var(--ink); }
.neda-site .search-submit { cursor: pointer; background: var(--purple); color: white; }
.neda-site .navigation.pagination { margin-top: 35px; }
.neda-site .page-numbers,.neda-site .neda-page-links { display: inline-block; padding: 8px 12px; }
.neda-site .page-numbers.current { background: var(--lav); border-radius: 8px; }
.neda-site .neda-comments { margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }

@media(max-width:1120px) {
  .neda-site .wrap { width: calc(100% - 64px); }
  .neda-site .nav-row { position: relative; min-height: 82px; }
  .neda-site .menu-toggle { display: grid; }
  .neda-site .nav-links { display: none; }
  .neda-site .site-header.menu-open .nav-links { display: grid; position: absolute; top: calc(100% + 1px); right: 0; left: 0; gap: 0; padding: 10px 20px; background: #fffdfb; border: 1px solid var(--line); border-radius: 0 0 20px 20px; box-shadow: 0 15px 30px #2d18362a; font-size: 18px; }
  .neda-site .nav-links a { display: block; padding: 11px 4px; white-space: normal; }
  .neda-site .nav-links li + li { border-top: 1px solid var(--line); }
  .neda-site .nav-links a::after { display: none; }
  .neda-site .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 44px; }
  .neda-site .neda-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:782px) {
  .neda-site.admin-bar .site-header { top: 46px; }
}
@media(max-width:750px) {
  .neda-site .wrap { width: calc(100% - 36px); }
  .neda-site .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
  .neda-site .brand-name { font-size: 22px; }
  .neda-site .brand-note { font-size: 15px; }
  .neda-site .nav-row { min-height: 78px; gap: 12px; }
  .neda-site .header-book { display: none; }
  .neda-site .utility-inner { font-size: 14px; justify-content: space-between; }
  .neda-site .utility .icon { width: 16px; height: 16px; }
  .neda-site .site-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom,0px)); }
  .neda-site .footer-cta { align-items: start; flex-direction: column; gap: 20px; padding-block: 30px; }
  .neda-site .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-block: 30px; }
  .neda-site .footer-about,.neda-site .footer-visit { grid-column: 1 / -1; }
  .neda-site .footer-phones { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
  .neda-site .footer-column h3 { font-size: 17px; }
  .neda-site .footer-links { font-size: 16px; }
  .neda-site .footer-bottom { align-items: start; flex-direction: column; }
  .neda-site .mobile-contact { display: flex; position: fixed; inset: auto 0 0; justify-content: center; padding: 8px 16px calc(8px + env(safe-area-inset-bottom,0px)); z-index: 25; background: #fbf9f5f2; border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .neda-site .mobile-contact .btn { width: min(100%,460px); min-height: 48px; }
  .neda-site .neda-article:not(.neda-article--elementor),.neda-site .neda-index { padding-block: 32px 48px; }
  .neda-site .neda-post-grid { grid-template-columns: 1fr; }
}
@media(max-width:370px) {
  .neda-site .wrap { width: calc(100% - 28px); }
  .neda-site .utility-inner { flex-direction: column; align-items: start; gap: 3px; }
  .neda-site .brand { gap: 8px; }
  .neda-site .brand-name { font-size: 21px; }
  .neda-site .brand-note { font-size: 14px; }
}
@media(prefers-reduced-motion:reduce) {
  body.neda-site *,body.neda-site *::before,body.neda-site *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
