/* Profile pages share the directory's three collection palettes. */
@font-face { font-family: "Asnaf UI"; src: url("../fonts/IRANSansWeb_FaNum.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Asnaf UI"; src: url("../fonts/IRANSansWeb_FaNum_Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Asnaf UI"; src: url("../fonts/IRANSansWeb_FaNum_Bold.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
.profile-page {
  --tone: #087e74; --tone-dark: #07695f; --wash: #eaf7f3; --soft: #d1eee4;
  --art-main: #16958a; --art-light: #d6f3e9; --art-shade: #9ad4c5; --art-white: #fff; --art-shadow: #064e49;
  --primary: var(--tone); --foreground: #172c46; --muted-foreground: #617084; --border: #e3e9f0;
  background: #fbfcfe; color: var(--foreground); font-family: "Asnaf UI", sans-serif; font-weight: 400;
  padding-bottom: 3rem;
}
.profile-theme--biz { --tone: #b84a28; --tone-dark: #943a20; --wash: #fff2e9; --soft: #ffe0cb; --art-main: #ef754b; --art-light: #ffe7d6; --art-shade: #f5b79c; --art-shadow: #8c3417; }
.profile-theme--web { --tone: #2858df; --tone-dark: #2449b4; --wash: #edf2ff; --soft: #dce6ff; --art-main: #3965e6; --art-light: #e0e9ff; --art-shade: #afc3ff; --art-shadow: #14357c; }
.profile-page #top { max-width: 1280px; padding-top: 1.5rem; }
.profile-page [id] { scroll-margin-top: 7rem; }
.profile-page :is(#overview, #about, #contact, #location, #hours, #nearby, #similar, #services, #gallery, #video, #preview) { scroll-margin-top: 9.5rem; }
.profile-page aside .lg\:sticky { top: 9.5rem; }
.profile-page [hidden] { display: none !important; }
.profile-page a:focus-visible, .profile-page button:focus-visible, .profile-page summary:focus-visible, .profile-page [role="button"]:focus-visible { outline: 3px solid #172c46; outline-offset: 4px; }
.profile-page svg { flex-shrink: 0; }
.detail-hero { display: grid; grid-template-columns: 1.2fr 1fr; position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--soft); border-radius: 28px; background: linear-gradient(115deg, var(--soft), var(--wash) 52%, #fff 115%); min-height: 390px; }
.detail-hero__copy { align-self: center; min-width: 0; padding: 2.7rem 2.8rem 2.7rem 1rem; position: relative; z-index: 2; }
.detail-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; color: var(--tone-dark); font-size: .76rem; font-weight: 500; }
.detail-dot { width: 7px; height: 7px; border-radius: 50%; background: #edb340; box-shadow: 0 0 0 4px #edb34024; margin-inline-end: .15rem; }
.detail-eyebrow__separator { opacity: .35; }
.detail-hero h1 { margin: 1rem 0 .65rem; font-family: var(--font-display); font-size: clamp(1.8rem, 2.8vw, 2.7rem); line-height: 1.55; font-weight: 900; color: #172c46; overflow-wrap: anywhere; }
.detail-subtitle { text-align: right; color: var(--tone-dark); font-size: .78rem; margin: 0 0 .65rem; overflow-wrap: anywhere; }
.detail-lead { font-size: .85rem; color: #586979; line-height: 2; margin: 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.detail-meta > span { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; border: 1px solid #ffffffc9; background: #ffffffa8; border-radius: 9px; padding: .4rem .65rem; font-size: .72rem; color: var(--tone-dark); overflow-wrap: anywhere; }
.detail-meta bdi { min-width: 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.5rem; }
.profile-page .detail-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .75rem 1.05rem; border-radius: 11px; font-size: .79rem; line-height: 1.6; font-weight: 700; background: #fff; color: var(--tone-dark); border: 1px solid var(--soft); transition: background .16s, transform .16s; }
.profile-page .detail-button--primary { color: #fff; background: var(--tone); border-color: var(--tone); box-shadow: 0 5px 12px color-mix(in srgb, var(--tone) 15%, transparent); }
.profile-page .detail-button:hover { transform: translateY(-2px); background: var(--soft); }
.profile-page .detail-button--primary:hover { background: var(--tone-dark); }
.detail-share { display: grid; place-items: center; background: transparent; color: var(--tone-dark); width: 46px; height: 46px; border: 1px solid color-mix(in srgb, var(--tone) 24%, transparent); border-radius: 11px; cursor: pointer; }
.detail-share:hover { background: #fff; }
.detail-visual { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem 2rem 3rem; }
.detail-orbit { position: absolute; width: 310px; height: 310px; border: 1px solid #ffffffb0; border-radius: 50%; background: #ffffff35; }
.detail-orbit::before { content: ""; position: absolute; inset: -24px; border: 1px dashed color-mix(in srgb, var(--tone) 15%, transparent); border-radius: 50%; }
.detail-art { position: relative; width: min(100%, 370px); transform: rotate(-3deg); }
.detail-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 12px color-mix(in srgb, var(--tone) 12%, transparent)); }
.detail-spark { position: absolute; color: #e9ad36; font-size: 2rem; z-index: 1; line-height: 1; }
.detail-spark--one { top: 14%; left: 16%; transform: rotate(15deg); }
.detail-spark--two { bottom: 25%; right: 9%; font-size: 1.1rem; color: var(--tone); }
.detail-note { display: flex; align-items: center; gap: .6rem; position: absolute; top: 12%; right: 3%; padding: .65rem .85rem; background: #ffffffed; border: 1px solid #fff; border-radius: 13px; box-shadow: 0 10px 25px #172c4608; transform: rotate(4deg); }
.detail-note > span { display: grid; place-items: center; width: 34px; height: 34px; background: var(--wash); color: var(--tone); border-radius: 10px; }
.detail-note small, .detail-identity small { display: block; color: #617084; font-size: .62rem; margin-bottom: .25rem; }
.detail-note strong { display: block; font-size: .73rem; font-weight: 700; }
.detail-identity { position: absolute; bottom: 9%; left: 10%; right: 12%; display: flex; gap: .75rem; align-items: center; padding: .8rem; background: #ffffffed; border: 1px solid #fff; border-radius: 17px; box-shadow: 0 12px 28px #172c460a; }
.detail-identity__mark { position: relative; width: 50px; height: 50px; display: grid; place-items: center; flex: none; background: var(--wash); color: var(--tone); border-radius: 12px; overflow: hidden; }
.detail-identity__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.detail-identity > div { flex: 1; min-width: 0; }
.detail-identity strong { display: block; text-align: right; font-size: .85rem; font-weight: 700; overflow-wrap: anywhere; line-height: 1.7; }
.detail-identity__arrow { color: var(--tone); background: var(--wash); display: grid; place-items: center; border-radius: 50%; width: 30px; height: 30px; flex: none; }
.detail-shortcuts { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: 1rem .2rem; margin: .5rem 0 .1rem; }
.detail-shortcuts > span { color: #718091; font-size: .7rem; margin-inline-end: .6rem; }
.profile-page .detail-shortcuts a { color: #3e536a; font-size: .73rem; padding: .65rem .85rem; border: 1px solid #e3e9f0; border-radius: 9px; background: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.profile-page .detail-shortcuts a:hover { background: var(--wash); border-color: var(--soft); color: var(--tone-dark); }
.profile-page .detail-columns { margin-top: .65rem; align-items: start; }
.profile-page .detail-columns > * { min-width: 0; }
.profile-page .content-card { border: 1px solid #e3e9f0; border-radius: 22px; box-shadow: 0 5px 20px #172c4603; background: #fff; }
.profile-page .section-kicker { font-size: .72rem; color: var(--tone-dark); display: flex; align-items: center; gap: .5rem; }
.profile-page .section-kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #edb340; }
.profile-page .section-title { color: #172c46; font-size: 1.45rem; line-height: 1.7; }
.profile-page .about-copy { font-size: .88rem; line-height: 2.25; color: #536579; }
.profile-page .about-more { color: var(--tone-dark); min-height: 44px; }
.profile-page .trust-strip { background: var(--wash); border-color: var(--soft); padding: 1.15rem 1.6rem; gap: 1rem; }
.profile-page .trust-icon { background: #fff; color: var(--tone); border-radius: 12px; }
.profile-page .membership-chip { background: #fff; color: var(--tone-dark); font-size: .68rem; }
.profile-page .stat-card { background: #f6f8fc; border: 0; border-radius: 14px; padding: 1rem; align-items: start; }
.profile-page .stat-card:nth-child(3n + 2) { background: #fff7e7; }
.profile-page .stat-card:nth-child(3n) { background: var(--wash); }
.profile-page .stat-card > svg { color: var(--tone); }
.profile-page .stat-card small { color: #6b7787; font-size: .68rem; }
.profile-page .stat-card strong { color: #243d58; font-size: .85rem; line-height: 1.8; }
.profile-page .contact-card { background: linear-gradient(150deg, #fff 22%, var(--wash)); border-color: var(--soft); position: relative; overflow: hidden; }
.profile-page .contact-card::before { content: ""; position: absolute; top: 0; right: 24px; width: 50px; height: 4px; background: var(--tone); border-radius: 0 0 4px 4px; }
.profile-page .info-icon { width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid var(--soft); color: var(--tone); }
.profile-page .info-copy { min-width: 0; }
.profile-page .info-copy a { overflow-wrap: anywhere; }
.profile-page .secret-hit { min-height: 44px; }
.profile-page .secret-hit:not(.is-open) { background: var(--wash); border: 1px solid var(--soft); box-shadow: none; border-radius: 9px; }
.profile-page .secret-hint { color: var(--tone-dark); background: var(--wash); border: 0; border-radius: inherit; }
.profile-page .cta { border-radius: 11px; min-height: 46px; font-family: inherit; font-size: .8rem; }
.profile-page a.cta.cta-primary { background: var(--tone); color: #fff; box-shadow: none; }
.profile-page a.cta.cta-primary:hover { background: var(--tone-dark); }
.profile-page a.cta.cta-secondary { color: var(--tone-dark); border: 1px solid var(--soft); background: #fff; }
.profile-page a.cta.cta-map { background: var(--wash); border-color: var(--soft); color: var(--tone-dark); }
.profile-page .location-pills span { background: var(--wash); border: 1px solid var(--soft); color: var(--tone-dark); border-radius: 8px; }
.profile-page .map-panel { background-color: #edf5f1; border-block: 1px solid #dce8e2; }
.profile-page .notice-box { border-radius: 16px; background: #fff8e8; border: 1px solid #f5e9ca; color: #76591e; }
.profile-page .notice-box--soft { background: #f2f6fb; border-color: #e3e9f0; color: #536579; }
.profile-page .service-card { background: var(--wash); border: 1px solid var(--soft); border-radius: 16px; box-shadow: none; }
.profile-page .service-icon { color: var(--tone); background: #fff; border-radius: 12px; }
.profile-page .service-label { color: var(--tone-dark); }
.profile-page .gallery-item { border-radius: 15px; }
.profile-page .detail-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.profile-page .nearby-row { position: relative; border: 1px solid #e7edf2; border-radius: 14px; background: #fafbfd; padding: 1rem .85rem; gap: .65rem; transition: background .16s, border-color .16s; }
.profile-page .nearby-row:hover { background: var(--wash); border-color: var(--soft); }
.profile-page .nearby-row h3 { white-space: normal; font-size: .78rem; line-height: 1.9; overflow-wrap: anywhere; }
.profile-page .nearby-row p { font-size: .67rem; line-height: 1.9; white-space: normal; overflow-wrap: anywhere; }
.profile-page .nearby-mark { width: 35px; height: 35px; background: var(--wash); color: var(--tone); border-radius: 10px; }
.profile-page .arrow-link { background: transparent; color: var(--tone); border: 0; width: 30px; min-width: 30px; }
.profile-page .arrow-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.profile-page .site-badges { gap: .6rem; margin-top: 1rem; }
.profile-page .site-badges span { background: var(--wash); color: var(--tone-dark); border: 1px solid var(--soft); border-radius: 9px; padding: .55rem .8rem; font-size: .74rem; }
.detail-preview { overflow: hidden; }
.detail-preview summary { cursor: pointer; display: flex; align-items: center; gap: .8rem; padding: 1.35rem 1.5rem; list-style: none; }
.detail-preview summary::-webkit-details-marker { display: none; }
.detail-preview summary > span:nth-child(2) { flex: 1; min-width: 0; }
.detail-preview summary strong { display: block; font-size: .9rem; }
.detail-preview summary small { display: block; font-size: .72rem; color: #617084; margin-top: .35rem; }
.detail-preview__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--wash); color: var(--tone); }
.detail-preview__plus { color: var(--tone); font-size: 1.6rem; line-height: 1; }
.detail-preview[open] .detail-preview__plus { transform: rotate(45deg); }
.profile-page .detail-preview .site-stage { height: 340px; min-height: 0; margin: 0 1rem; border: 1px solid var(--soft); border-radius: 12px; box-shadow: none; }
.profile-page .detail-preview .site-stage__bar { background: #f1f5ff; color: #334b7a; box-shadow: inset 0 -1px 0 var(--soft); }
.profile-page .detail-preview .site-stage__live { position: absolute; inset: 2.55rem 0 0; height: auto; margin: 0; }
.profile-page .detail-preview .site-stage__boot { color: var(--tone-dark); background: var(--wash); }
.detail-preview__hint { font-size: .73rem; line-height: 2; color: #617084; padding: 1rem 1.5rem; margin: 0; }
.profile-page .detail-preview__hint a { display: inline-flex; align-items: center; gap: .35rem; color: var(--tone-dark); text-decoration: underline; }
.profile-page .page-dock { width: min(480px, calc(100% - 24px)); margin-inline: auto; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 0; padding: 5px; border: 1px solid var(--soft); border-radius: 16px; background: #fff; box-shadow: 0 8px 30px #172c4620; transform: translateY(calc(100% + 24px)); visibility: hidden; }
.profile-page .page-dock.is-in { transform: none; visibility: visible; }
.profile-page nav.page-dock a.dock-jump { color: #617084; min-height: 46px; border-radius: 11px; font-size: .75rem; padding-inline: .5rem; gap: .4rem; }
.profile-page nav.page-dock a.dock-jump.is-on, .profile-page nav.page-dock a.dock-jump:hover { background: var(--wash); color: var(--tone-dark); box-shadow: none; }
@media (max-width: 1023px) {
  .detail-hero { grid-template-columns: 1.15fr 1fr; min-height: 360px; }
  .detail-hero__copy { padding: 2rem 1.8rem 2rem .5rem; }
  .detail-hero h1 { font-size: 2rem; }
  .detail-visual { padding: 1rem 1rem 2.5rem; }
  .detail-orbit { width: 235px; height: 235px; }
  .detail-note { right: 0; top: 9%; }
  .detail-identity { left: 6%; right: 6%; bottom: 10%; }
  .profile-page .detail-columns { gap: 1.2rem; }
  .profile-page .detail-columns > aside { grid-row: 1; }
  .profile-page .detail-columns > aside > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
  .profile-page .detail-columns > aside > div > * { margin: 0; }
  .profile-page .detail-columns > aside > div > :only-child { grid-column: 1 / -1; }
  .profile-page #hours { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .profile-page #top { padding: 1rem 1rem 0; }
  .detail-hero { grid-template-columns: 1fr; border-radius: 22px; background: linear-gradient(155deg, #fff -20%, var(--wash) 38%, var(--soft)); }
  .detail-hero__copy { padding: 1.6rem 1.3rem .4rem; }
  .detail-hero h1 { font-size: 1.85rem; line-height: 1.6; margin-top: .8rem; }
  .detail-eyebrow { font-size: .68rem; gap: .5rem; }
  .detail-lead { font-size: .78rem; }
  .detail-meta { margin-top: .8rem; gap: .4rem; }
  .detail-meta > span { font-size: .66rem; padding: .35rem .55rem; }
  .detail-actions { gap: .5rem; margin-top: 1.1rem; }
  .profile-page .detail-button { font-size: .72rem; padding: .65rem .75rem; }
  .detail-share { width: 44px; height: 44px; }
  .detail-visual { min-height: 250px; padding: .25rem 1.5rem 2.5rem; margin-top: .25rem; }
  .detail-art { width: 260px; }
  .detail-orbit { width: 205px; height: 205px; }
  .detail-note { top: 14%; right: 5%; padding: .5rem .6rem; }
  .detail-note small { font-size: .55rem; }
  .detail-note strong { font-size: .65rem; }
  .detail-note > span { width: 29px; height: 29px; }
  .detail-identity { bottom: 6%; left: 8%; right: 8%; padding: .65rem; }
  .detail-identity__mark { width: 39px; height: 39px; border-radius: 9px; }
  .detail-identity strong { font-size: .77rem; }
  .detail-spark--one { top: 12%; left: 14%; font-size: 1.6rem; }
  .detail-shortcuts { flex-wrap: nowrap; overflow-x: auto; padding: .85rem 0; gap: .4rem; margin: .3rem 0; scrollbar-width: thin; }
  .detail-shortcuts > span { display: none; }
  .profile-page .detail-shortcuts a { flex: none; font-size: .68rem; padding: .6rem .7rem; }
  .profile-page .detail-columns > aside > div { grid-template-columns: minmax(0, 1fr); }
  .profile-page .content-card { border-radius: 18px; }
  .profile-page .content-card.p-6, .profile-page #overview > .p-6 { padding: 1.3rem; }
  .profile-page .section-title { font-size: 1.35rem; }
  .profile-page .trust-strip { padding: 1rem 1.2rem; flex-wrap: wrap; }
  .profile-page .trust-strip strong { font-size: .78rem; }
  .profile-page .trust-strip .text-xs { font-size: .68rem; }
  .profile-page .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-page .stat-card { padding: .9rem; }
  .profile-page .detail-related { grid-template-columns: minmax(0, 1fr); }
  .profile-page .nearby-row { min-height: 83px; }
  .detail-preview summary { padding: 1.2rem; }
  .detail-preview summary strong { font-size: .82rem; }
  .detail-preview summary small { font-size: .66rem; }
  .profile-page .detail-preview .site-stage { height: 260px; margin-inline: .75rem; }
  .detail-preview__hint { padding: 1rem; }
  .profile-page nav.page-dock a.dock-jump { font-size: .65rem; gap: .2rem; }
}
@media (max-width: 359px) {
  .detail-hero__copy { padding-inline: 1rem; }
  .detail-hero h1 { font-size: 1.65rem; }
  .detail-actions .detail-button { flex: 1 1 auto; }
  .detail-identity { left: 5%; right: 5%; }
  .detail-identity__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-page *, .profile-page *::before, .profile-page *::after { scroll-behavior: auto; animation: none; transition: none; }
}
