/* /assets/css/style.css */
:root {
  --bg: #f8f7ff;
  --bg-soft: #f2f8ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #22304a;
  --muted: #66728a;
  --border: rgba(108, 99, 255, 0.14);
  --primary: #6c63ff;
  --primary-dark: #554bd6;
  --secondary: #34c8b5;
  --accent: #ff8fab;
  --shadow: 0 16px 48px rgba(77, 84, 170, 0.14);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1120px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(108, 99, 255, 0.16), transparent 28%),
    radial-gradient(circle at left 20%, rgba(52, 200, 181, 0.15), transparent 25%),
    linear-gradient(180deg, #fcfbff 0%, #f7fbff 100%);
  color: var(--text);
  line-height: 1.8;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.soft-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.76));
  backdrop-filter: blur(10px);
}

.page-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.16), rgba(255,255,255,0.16)),
    linear-gradient(90deg, rgba(108,99,255,0.025) 1px, transparent 1px),
    linear-gradient(rgba(108,99,255,0.025) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 255, 0.76);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(108, 99, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  font-size: 0.85rem;
  color: var(--muted);
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
}

.hero {
  padding-top: 4rem;
}

.hero-grid,
.booking-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.08);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero h1,
.section-head h2 {
  line-height: 1.35;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  max-width: 12ch;
}

.hero p,
.section-head p,
.service-card p,
.schedule-card p,
.clinic-card p,
.booking-summary p,
.faq-item p,
.site-footer p {
  color: var(--muted);
}

.hero-actions,
.schedule-actions,
.form-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.82rem 1.3rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #7d7aff);
  color: #fff;
  box-shadow: 0 12px 30px rgba(108, 99, 255, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(108, 99, 255, 0.12);
  color: var(--primary-dark);
}

.btn-small {
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}

.hero-metrics,
.card-grid,
.schedule-grid,
.clinic-grid {
  display: grid;
  gap: 1rem;
}

.hero-metrics {
  margin-top: 1.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-metrics article,
.service-card,
.schedule-card,
.clinic-card,
.booking-summary,
.faq-item,
.doctor-card,
.booking-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-metrics article {
  padding: 1rem;
}

.hero-metrics strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.93rem;
}

.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: auto -20% 75% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 143, 171, 0.18);
  filter: blur(12px);
}

.doctor-card {
  padding: 2rem;
  text-align: center;
}

.avatar-wrap {
  display: flex;
  justify-content: center;
}

.avatar-circle {
  width: 112px;
  height: 112px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(108,99,255,0.18), rgba(52,200,181,0.18));
  border: 1px solid rgba(108,99,255,0.12);
  margin-bottom: 1rem;
}

.avatar-circle span {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.feature-list,
.schedule-list,
.footer-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.feature-list li,
.schedule-list li,
.footer-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(108, 99, 255, 0.1);
}

.feature-list li:last-child,
.schedule-list li:last-child,
.footer-list li:last-child {
  border-bottom: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.align-right {
  margin-inline: 0 auto;
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.clinic-card {
  padding: 1.4rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 18px;
  background: rgba(108, 99, 255, 0.09);
  margin-bottom: 1rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  border: 1px solid rgba(108, 99, 255, 0.14);
  background: rgba(255,255,255,0.78);
  color: var(--text);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all .2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(52,200,181,0.18));
  color: var(--primary-dark);
  border-color: rgba(108, 99, 255, 0.24);
}

.schedule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-card {
  padding: 1.35rem;
}

.schedule-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag,
.time-chip {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.tag {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-dark);
}

.time-chip {
  background: rgba(52, 200, 181, 0.12);
  color: #17887b;
}

.booking-form {
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
}

label span {
  font-weight: 700;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(108, 99, 255, 0.14);
  background: rgba(255,255,255,0.82);
  border-radius: 16px;
  min-height: 50px;
  padding: 0.85rem 1rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea {
  resize: vertical;
  min-height: 132px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(108, 99, 255, 0.44);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.08);
}

.full-width {
  margin-top: 1rem;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

.booking-summary {
  padding: 1.5rem;
}

.result-empty {
  color: var(--muted);
  padding: 1rem;
  border-radius: 18px;
  background: rgba(108,99,255,0.06);
}

.result-card {
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(108,99,255,0.08), rgba(52,200,181,0.08));
  border: 1px solid rgba(108,99,255,0.1);
}

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

.result-card li {
  padding: 0.45rem 0;
}

.clinic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clinic-card a {
  display: inline-flex;
  margin-top: 0.9rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.15rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  padding-bottom: 2rem;
  border-top: 1px solid rgba(108, 99, 255, 0.08);
}

.footer-grid {
  align-items: start;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(108, 99, 255, 0.1);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .booking-grid,
  .footer-grid,
  .card-grid,
  .schedule-grid,
  .clinic-grid,
  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .booking-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    inset-inline: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(108, 99, 255, 0.12);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4rem 0;
  }

  .hero h1 {
    max-width: none;
  }

  .card-grid,
  .schedule-grid,
  .clinic-grid,
  .form-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: 76px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .doctor-card,
  .booking-form,
  .booking-summary,
  .service-card,
  .schedule-card,
  .clinic-card,
  .faq-item {
    border-radius: 20px;
  }
}
