:root {
  --primary: #1e293b;
  --primary-soft: #334155;
  --accent: #b76e79;
  --accent-light: #e8b4bc;
  --accent-dark: #9a4f5a;
  --bg: #faf9f7;
  --bg-alt: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e7e5e4;
  --success: #059669;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px -6px rgba(30,41,59,0.08);
  --shadow-lg: 0 20px 50px -15px rgba(30,41,59,0.12);
  --font: var(--font-body, 'Vazirmatn', Tahoma, sans-serif);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex; align-items: center; gap: 0.7rem;
  font-weight: 800; font-size: 1.15rem; color: var(--primary);
}
.logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(183,110,121,0.35);
}
.logo span { font-size: 0.65rem; font-weight: 500; color: var(--text-muted); display: block; margin-top: -2px; }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  transition: all var(--transition);
}
.nav a:hover, .nav a.active { color: var(--accent-dark); background: rgba(183,110,121,0.08); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem; font-weight: 600;
  border-radius: 12px;
  border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(183,110,121,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(183,110,121,0.4); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--primary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); background: rgba(183,110,121,0.05); }
.btn-white {
  background: white; color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); }

.menu-btn {
  display: none; background: none; border: none; padding: 0.5rem; cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; }

.mobile-nav {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 0 1rem; border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.75rem 1rem; font-weight: 500; border-radius: 10px;
}
.mobile-nav a:hover { background: rgba(183,110,121,0.08); }

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(165deg, #1e293b 0%, #334155 40%, #475569 100%);
  color: white;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(183,110,121,0.25), transparent 50%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem; align-items: center; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  padding: 0.35rem 0.9rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 500; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.25; margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero p { font-size: 1.05rem; opacity: 0.85; max-width: 480px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-img {
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-img img { width: 100%; height: 360px; object-fit: cover; }

/* Features strip */
.features-strip {
  background: white; border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center;
}
.feature-item svg { width: 28px; height: 28px; color: var(--accent); margin: 0 auto 0.5rem; }
.feature-item strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.feature-item span { font-size: 0.8rem; color: var(--text-muted); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-header { text-align: center; margin-bottom: 2.75rem; }
.section-header .label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  color: var(--accent); letter-spacing: 0.04em; margin-bottom: 0.5rem;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; color: var(--primary); }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0.6rem auto 0; font-size: 0.95rem; }

/* Cards */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.service-card {
  background: white; border-radius: var(--radius);
  padding: 1.6rem; border: 1px solid var(--border);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.service-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(183,110,121,0.1); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* Tech capabilities - important for sales */
.tech-section {
  background: linear-gradient(160deg, #1e293b, #0f172a);
  color: white; padding: 4.5rem 0;
}
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem;
}
.tech-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}
.tech-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(232,180,188,0.3); }
.tech-card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(183,110,121,0.2); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.tech-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.tech-card p { font-size: 0.85rem; opacity: 0.75; line-height: 1.6; }

/* Doctors */
.doctors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.doctor-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  display: grid; grid-template-columns: 180px 1fr;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.doctor-card:hover { box-shadow: var(--shadow-lg); }
.doctor-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.doctor-info { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.doctor-info h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.2rem; }
.doctor-info .role { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.6rem; }
.doctor-info p { font-size: 0.875rem; color: var(--text-muted); }

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 24px; padding: 3rem; text-align: center; color: white;
  position: relative; overflow: hidden;
}
.cta-box h2 { font-size: 1.75rem; font-weight: 900; margin-bottom: 0.5rem; }
.cta-box p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 420px; margin-left: auto; margin-right: auto; }

/* Footer */
.footer {
  background: var(--primary); color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.45rem; }
.footer a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 0.75rem;
}

/* Floating buttons */
.float-btns {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 90;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transition: all var(--transition);
  color: white;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn.bale { background: #00aaff; }
.float-btn.sms { background: #059669; }
.float-btn.phone { background: var(--accent); }

/* Page header for inner pages */
.page-hero {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white; padding: 3rem 0 2.5rem; text-align: center;
}
.page-hero h1 { font-size: 1.9rem; font-weight: 900; margin-bottom: 0.4rem; }
.page-hero p { opacity: 0.8; font-size: 0.95rem; }

/* Booking form */
.booking-steps {
  display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.step-dot {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
  background: #f1f5f9; color: var(--text-muted);
}
.step-dot.active { background: var(--accent); color: white; }
.step-dot.done { background: #d1fae5; color: #065f46; }

.form-card {
  background: white; border-radius: 20px;
  padding: 2rem; border: 1px solid var(--border);
  box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
}
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.35rem; color: var(--primary);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 0.95rem; background: #fafafa;
  transition: all var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); background: white;
  box-shadow: 0 0 0 3px rgba(183,110,121,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { color: #dc2626; font-size: 0.8rem; margin-top: 0.25rem; display: none; }
.form-group.error input, .form-group.error select { border-color: #dc2626; }
.form-group.error .form-error { display: block; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.blog-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; height: 160px; object-fit: cover; }
.blog-card .body { padding: 1.25rem; }
.blog-card .date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.blog-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.4; }

/* Fade */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-img { max-width: 100%; margin-top: 1rem; }
  .hero-img img { height: 240px; }
  .services-grid, .tech-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .doctors-grid { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 140px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .container { padding: 0 1rem; }
}
@media (max-width: 600px) {
  .services-grid, .tech-grid, .blog-grid, .features-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 1fr; }
  .doctor-card img { height: 200px; min-height: 180px; }
  .hero { padding: 2.5rem 0 3rem; }
  .hero h1 { font-size: 1.65rem; }
  .hero p { font-size: 0.95rem; }
  .hero-img img { height: 200px; }
  .page-hero h1 { font-size: 1.5rem; }
  .section-header h2 { font-size: 1.4rem; }
  body { overflow-x: hidden; }
  img { max-width: 100%; height: auto; }
}

/* ===== Professional Responsive Engineering (resume-grade) ===== */
@media (max-width: 960px) {
  .header-inner { gap: 0.75rem; }
  .btn { padding: 0.65rem 1.15rem; font-size: 0.85rem; }
  .hero-ctas { flex-wrap: wrap; gap: 0.65rem; }
}
@media (max-width: 600px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; max-width: 100vw; }
  .container { padding: 0 0.9rem; }
  .logo { font-size: 1rem; }
  .logo-mark { width: 36px; height: 36px; font-size: 1rem; }
  .menu-btn { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .mobile-nav a { padding: 0.9rem 1rem; font-size: 1rem; min-height: 48px; }
  .hero { padding: 2rem 0 2.5rem; }
  .hero h1 { font-size: clamp(1.4rem, 6.5vw, 1.75rem); line-height: 1.35; }
  .hero p { font-size: 0.92rem; max-width: 100%; }
  .hero-img img { height: 190px; border-radius: 16px; }
  .section { padding: 2.75rem 0; }
  .section-header h2 { font-size: 1.3rem; }
  .section-header p { font-size: 0.9rem; }
  .service-card, .feature-card, .blog-card { border-radius: 14px; }
  .form-card { padding: 1.35rem; border-radius: 16px; }
  .form-group input, .form-group select, .form-group textarea {
    padding: 0.8rem 0.9rem; font-size: 16px; /* prevent iOS zoom */
  }
  .btn { min-height: 46px; width: 100%; }
  .hero-ctas .btn { width: auto; flex: 1 1 auto; }
  .cta-box { padding: 1.75rem 1.25rem; border-radius: 18px; }
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer-grid { gap: 1.25rem; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 1.35rem; }
  .services-grid, .features-grid { gap: 0.75rem; }
  .container { padding: 0 0.75rem; }
}

