/* بایومد - Biomed Cloudflare Static Site */
:root {
  --primary: #0077B6;
  --primary-dark: #005f8a;
  --accent: #28a745;
  --accent-hover: #218838;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --text: #222;
  --text-light: #555;
  --border: #e5e5e5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { font-size: 1.6rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
nav a { margin-right: 22px; font-weight: 500; }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 6px; font-weight: 600;
  background: var(--accent); color: #fff !important;
}
.btn:hover { background: var(--accent-hover); }

/* Hero */
.hero { background: linear-gradient(135deg, #f8fbff, #e8f4fc); padding: 70px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.4rem; color: var(--primary); margin-bottom: 12px; line-height: 1.3; }
.hero p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 20px; }

/* Sections */
section { padding: 60px 0; }
.section-title { text-align: center; font-size: 1.9rem; color: var(--primary); margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  text-align: center; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,119,182,.1); }
.card img { height: 160px; object-fit: contain; margin-bottom: 12px; }
.price { color: var(--primary); font-size: 1.25rem; font-weight: 700; margin: 8px 0; }

/* Footer */
footer { background: #1a1a1a; color: #ccc; padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 20px; }
footer a { color: #ccc; }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 16px; font-size: .9rem; }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 1.8rem; }
  nav { display: none; } /* simple, can expand later */
}
