/* =====================================================
   نوش آوا | Noshava Biomedical — Shared Stylesheet
   Used by every page (index + subpages)
===================================================== */

:root {
  --navy: #0B2E4A;
  --navy-dark: #071e30;
  --teal: #0EA5A0;
  --teal-light: #3FBFB9;
  --sand: #F6F8F9;
  --white: #FFFFFF;
  --text-main: #0A1420;
  --text-muted: #57697A;
  --line: #DCE4EA;

  --font-fa: 'Vazirmatn', sans-serif;
  --font-en: 'Manrope', sans-serif;

  --container: 1240px;
  --radius: 12px;
  --shadow: 0 10px 40px -10px rgba(11, 46, 74, 0.14);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-fa);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); }
html[lang="fa"] body, html[lang="ar"] body { font-family: var(--font-fa); }

h1, h2, h3, h4 { margin: 0 0 1rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1.5rem; color: var(--text-muted); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ================= UTILITIES ================= */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.grid { display: grid; gap: 2rem; }

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

.section { padding: 90px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 720px; margin: 0 auto 50px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-primary { background: var(--teal); color: white; border-color: var(--teal); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-ghost { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-light { background: white; color: var(--navy); border-color: white; }
.btn-light:hover { background: transparent; color: white; }

/* ================= UTILITY BAR ================= */
.utility-bar { background: var(--navy-dark); color: rgba(255,255,255,0.7); font-size: 0.85rem; padding: 8px 0; }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.utility-links { display: flex; gap: 20px; flex-wrap: wrap; }
.utility-links a:hover { color: var(--teal-light); }
.lang-switch { display: flex; gap: 6px; }
.lang-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7);
  padding: 3px 10px; font-size: 0.78rem; border-radius: 20px; cursor: pointer; transition: var(--transition);
}
.lang-btn.active, .lang-btn:hover { background: var(--teal); border-color: var(--teal); color: white; }

/* ================= HEADER ================= */
.main-header {
  position: sticky; top: 0; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  z-index: 1000; padding: 15px 0;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo svg { width: 32px; height: 32px; fill: var(--teal); flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; flex-wrap: wrap; }
.nav-links a { font-weight: 500; color: var(--navy); position: relative; font-size: 0.95rem; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; inset-inline-start: 0; width: 0; height: 2px;
  background: var(--teal); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

@media (max-width: 992px) {
  .nav-links {
    position: fixed; inset-inline-start: 0; top: 0; height: 100vh; width: min(320px, 80vw);
    background: white; flex-direction: column; padding: 100px 30px 30px; gap: 22px;
    transform: translateX(110%); transition: transform 0.35s ease; box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }
  html[dir="rtl"] .nav-links { transform: translateX(-110%); }
  .nav-links.open { transform: translateX(0); }
  .mobile-toggle { display: block; z-index: 1100; }
  .utility-bar .utility-links:first-child { display: none; }
}
@media (max-width: 560px) {
  .utility-bar { font-size: 0.72rem; }
}

/* ================= HERO (home) ================= */
.hero { position: relative; padding: 70px 0 110px; background: linear-gradient(135deg, #F6F8F9 0%, #E8EEF2 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.hero-content h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); color: var(--navy); margin-bottom: 1.4rem; }
.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: relative; background: var(--navy); border-radius: 20px; padding: 40px;
  box-shadow: 0 20px 60px rgba(11, 46, 74, 0.3); color: white; min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual svg { width: 100%; height: auto; }
.pulse-line { stroke: var(--teal-light); stroke-width: 3; fill: none; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawPulse 3s linear infinite alternate; }
@keyframes drawPulse { 0% { stroke-dashoffset: 1000; opacity: 0; } 50% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.mechanism-part { transition: transform 1.5s ease-in-out; transform-origin: center; }
.hero-visual:hover .mechanism-part { transform: scale(1.05); }

/* ================= PAGE HERO (subpages) ================= */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white; padding: 60px 0 70px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset-inline-end: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(14,165,160,0.25), transparent 70%);
}
.breadcrumb { font-size: 0.85rem; opacity: 0.75; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--teal-light); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); color: white; max-width: 800px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 700px; font-size: 1.05rem; margin-bottom: 0; }

/* ================= PILLARS / GRID CARDS ================= */
.pillars-grid, .cert-grid, .value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; margin-top: 40px; }
.pillar-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); transition: var(--transition); background: white; }
.pillar-card:hover { border-color: var(--teal); transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar-icon { width: 50px; height: 50px; background: var(--sand); color: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pillar-icon svg { width: 24px; height: 24px; }

/* ================= DARK PRODUCT / FEATURE SECTION ================= */
.dark-section { padding: 100px 0; background: var(--navy); color: white; }
.dark-section .eyebrow { color: var(--teal-light); }
.dark-section h2 { color: white; }
.dark-section p { color: rgba(255,255,255,0.8); }
.product-grid, .card-grid-dark { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 50px; }
.product-card, .dark-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 30px; transition: var(--transition); }
.product-card:hover, .dark-card:hover { background: rgba(255,255,255,0.1); border-color: var(--teal); }
.product-card h3, .dark-card h3 { color: white; font-size: 1.3rem; }
.product-link { color: var(--teal-light); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; }

/* ================= TWO COLUMN ================= */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col.reverse { direction: ltr; } /* used to visually swap order if needed */
.two-col img, .two-col svg { border-radius: var(--radius); }

/* ================= STATS ================= */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; text-align: center; margin-top: 40px; }
.stat-card { padding: 20px; }
.stat-number { font-size: 2.6rem; font-weight: 800; color: var(--navy); display: block; }
.dark-section .stat-number { color: var(--teal-light); }
.stat-label { color: var(--text-muted); font-size: 0.95rem; }
.dark-section .stat-label { color: rgba(255,255,255,0.7); }

/* ================= TIMELINE / STEPS ================= */
.step-list { display: grid; gap: 24px; margin-top: 40px; }
.step-card { display: flex; gap: 22px; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.step-num { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-en); }
.step-card h3 { margin-bottom: 6px; font-size: 1.15rem; }
.step-card p { margin-bottom: 0; }

/* ================= TEAM / VALUES ================= */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 40px; }
.team-card { text-align: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.team-avatar { width: 90px; height: 90px; border-radius: 50%; background: var(--sand); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.team-card h4 { margin-bottom: 4px; }
.team-role { color: var(--teal); font-size: 0.9rem; font-weight: 600; }

/* ================= CTA BANNER ================= */
.cta-banner {
  background: linear-gradient(120deg, var(--teal) 0%, var(--navy) 100%);
  color: white; border-radius: 20px; padding: 60px; text-align: center; margin: 0 auto;
}
.cta-banner h2 { color: white; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ================= CONTACT FORM ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.92rem; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.98rem; color: var(--text-main); background: var(--sand);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); background: white; box-shadow: 0 0 0 3px rgba(14,165,160,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info-card { background: var(--sand); border-radius: var(--radius); padding: 34px; }
.contact-info-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-row h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-info-row p { margin-bottom: 0; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.success { color: var(--teal); }

/* ================= FOOTER ================= */
footer { background: #051421; color: rgba(255,255,255,0.7); padding: 80px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-brand { color: white; font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; display: block; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.05rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--teal); }
.badges { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.badge { border: 1px solid rgba(255,255,255,0.2); padding: 5px 12px; border-radius: 4px; font-size: 0.8rem; color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; margin: 0; color: rgba(255,255,255,0.6); }

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; text-align: center; }
  .two-col { text-align: start; }
  .contact-grid { text-align: start; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pulse-line, .mechanism-part { animation: none; transition: none; }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal-light); outline-offset: 2px;
}
