/*
Theme Name: Salamati Healthcare
Theme URI: https://salamatihealthcare.com
Author: Salamati Healthcare Consultancy
Description: Custom bilingual WordPress theme migrated from the Salamati Healthcare Consultancy Next.js website.
Version: 1.0.0
Text Domain: salamati-healthcare
*/

:root {
  --brand-primary: #2C8CCF;
  --brand-accent: #C83A36;
  --brand: #2C8CCF;
  --brand-dark: #1f6698;
  --accent: #C83A36;
  --brand-secondary: #4A9FD8;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(15, 23, 42, .08);
  --font-body: Roboto, Arial, sans-serif;
  --font-heading: Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(44, 140, 207, 0.12), transparent 30rem),
    radial-gradient(circle at 90% 5%, rgba(200, 58, 54, 0.08), transparent 28rem),
    #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.rtl { direction: rtl; text-align: right; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section-pad { padding-block: clamp(42px, 5.5vw, 76px); }
.glass {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(22px);
}
.site-header {
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav { position: relative; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; color: #020617; }
.brand img { max-height: 56px; max-width: 150px; width: auto; object-fit: contain; }
.brand-mark {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 18px; background: var(--brand-primary); color: #fff; font-weight: 900;
}
.menu { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.menu a {
  display: inline-flex; min-height: 40px; align-items: center;
  border-radius: 999px; padding: 8px 16px; color: #475569; font-weight: 600; font-size: 14px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.menu a:hover, .menu .current-menu-item > a { background: var(--brand-primary); color: #fff; transform: translateY(-1px); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.social-inline { display: flex; align-items: center; gap: 10px; }
.social-dot {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: #334155; font-size: 12px; font-weight: 900;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: transform .2s ease, color .2s ease, background .2s ease, border .2s ease, box-shadow .2s ease;
}
.social-dot:hover { transform: translateY(-5px) scale(1.12); color: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.18); }
.social-linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.social-facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-instagram:hover { background: #E4405F; border-color: #E4405F; }
.social-whatsapp:hover { background: #25D366; border-color: #25D366; }
.button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; border-radius: 999px; padding: 0 20px;
  border: 1px solid transparent; background: var(--brand-primary); color: #fff;
  font-weight: 700; font-size: 14px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 20px 34px rgba(15,23,42,.15);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 22px 46px rgba(44, 140, 207, .26); }
.button.secondary { background: rgba(255,255,255,.75); color: var(--ink); border-color: var(--line); box-shadow: none; }
.mobile-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.hero { position: relative; overflow: hidden; background: transparent; }
.hero-grid { display: grid; min-height: calc(100vh - 80px); grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: center; gap: 48px; padding-block: 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; border: 1px solid rgba(21, 94, 239, 0.18);
  background: rgba(255, 255, 255, 0.7); padding: 8px 12px;
  color: var(--brand-accent); font-size: .78rem; letter-spacing: 0;
  text-transform: uppercase; font-weight: 700;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); letter-spacing: 0; margin: 0; color: #020617; }
.hero h1 { margin-top: 24px; max-width: 896px; font-size: clamp(48px, 6.5vw, 72px); line-height: 1.02; font-weight: 900; }
.hero-text { margin-top: 24px; color: #475569; font-size: clamp(18px, 2vw, 20px); line-height: 1.6; max-width: 672px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-media { position: relative; min-height: 420px; }
.hero-media::before { content: ""; position: absolute; inset: -20px; border-radius: 32px; background: linear-gradient(135deg, rgba(59,130,246,.2), #fff, rgba(20,184,166,.2)); filter: blur(32px); }
.hero-card {
  position: relative; overflow: hidden; border-radius: 32px; min-height: 420px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.72); background: rgba(255,255,255,.74); padding: 12px; backdrop-filter: blur(22px);
}
.hero-card img { width: 100%; min-height: 420px; aspect-ratio: 4 / 3; border-radius: 24px; object-fit: cover; transition: transform .7s ease; }
.hero-card:hover img { transform: scale(1.05); }
.inner-hero .container-page:not(.hero-grid) { min-height: 420px; display: grid; align-content: center; padding-block: 72px; }
.inner-hero h1 { max-width: 1040px; font-size: clamp(48px, 7vw, 96px); line-height: 1.02; font-weight: 900; margin-top: 24px; }
.metric-card {
  position: absolute; left: 28px; right: 28px; bottom: 28px;
  border-radius: 24px; background: rgba(255,255,255,.82); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6); padding: 20px; box-shadow: 0 24px 48px rgba(15,23,42,.12);
}
.metric-card strong { display: block; font-size: 14px; margin-bottom: 16px; color: #020617; }
.metric-bar { height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.metric-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1664ff, #0fb9a7); transition: width 1.1s ease; }
.trusted { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.7); padding-block: 32px; }
.trusted-grid { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; text-align: left; }
.trusted-title { color: #64748b; font-size: 14px; line-height: 1.45; text-transform: uppercase; font-weight: 700; }
.logo-row { display: grid; grid-template-columns: repeat(5, minmax(120px,1fr)); gap: 12px; }
.logo-pill { min-height: 58px; border: 1px solid var(--line); border-radius: 18px; display: grid; place-items: center; color: #8aa0bd; font-weight: 900; background: rgba(255,255,255,.8); }
.section-header { max-width: 768px; margin: 0 auto; text-align: center; }
.section-header h2 { margin-top: 20px; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; font-weight: 900; }
.section-header p { margin: 20px auto 0; max-width: 720px; color: #475569; font-size: 18px; line-height: 1.75; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: stretch; gap: 20px; margin-top: 48px; }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: flex; min-height: 225px; height: 100%; flex-direction: column;
  border: 1px solid var(--line); border-radius: 24px;
  background: #fff; padding: 24px; box-shadow: 0 1px 3px rgba(15,23,42,.06);
  transition: transform .28s ease, box-shadow .28s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 80px rgba(15,23,42,.12); }
.icon { width: 36px; height: 36px; color: #2563eb; margin-bottom: 24px; }
.card h3 { margin-top: 8px; font-size: 24px; line-height: 1.18; font-weight: 900; text-align: left; }
.cards-grid:not(.service-grid):not(.offer-grid) .card h3 { text-align: center; }
.card p { color: #475569; line-height: 1.75; font-size: 16px; }
.card-label {
  margin: 22px 0 0;
  color: #94a3b8 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 700;
  text-transform: uppercase;
}
.card-link {
  margin-top: auto;
  display: inline-flex;
  padding-top: 22px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
}
.service-grid .card h3 { margin-top: 8px; font-size: 24px; text-align: left; }
.offer-card h3 { margin-top: 16px; font-size: 30px; line-height: 1.13; text-align: left; }
.offer-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: #1d4ed8;
  font-weight: 700;
}
.offer-bottom strong { color: #020617; font-size: 20px; }
.testimonial-card { min-height: 280px; }
.testimonial-card p:first-child { font-size: 18px; line-height: 1.75; }
.stats-band { background: #020617; color: #fff; border-radius: 32px; padding: 32px; box-shadow: 0 24px 80px rgba(15,23,42,.18); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 24px; background: rgba(255,255,255,.05); }
.stat-number { font-size: clamp(36px, 5vw, 52px); font-weight: 900; }
.stat p { color: #cad5e8; line-height: 1.5; }
.cta { margin-block: clamp(42px, 5.5vw, 76px); border-radius: 32px; padding: clamp(32px, 5vw, 64px); background: linear-gradient(135deg, #172052, #155c56); color: #fff; box-shadow: 0 24px 80px rgba(15,23,42,.18); }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(36px, 5vw, 72px); line-height: 1.05; font-weight: 900; margin-top: 24px; }
.cta p { color: #dbe5f4; font-size: 20px; line-height: 1.6; }
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); gap: 34px; }
.footer-title { font-weight: 1000; margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; color: #5d697a; }
.copyright { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); color: #748096; font-size: 14px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.is-visible .card:nth-child(2), .cards-grid .reveal:nth-child(2) { transition-delay: .05s; }
.is-visible .card:nth-child(3), .cards-grid .reveal:nth-child(3) { transition-delay: .1s; }
.is-visible .card:nth-child(4), .cards-grid .reveal:nth-child(4) { transition-delay: .15s; }
.archive-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 50px; }
.archive-list.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.archive-list.offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-page { max-width: 920px; margin: 0 auto; color: #475569; font-size: 19px; line-height: 1.8; }
.content-page h2 { margin: 44px 0 16px; color: #020617; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; font-weight: 900; }
.content-page h3 { margin: 32px 0 12px; color: #020617; font-size: 28px; line-height: 1.2; font-weight: 900; }
.content-page p { margin: 0 0 22px; }
.content-page ul, .content-page ol { margin-block: 22px; padding-inline-start: 28px; }
.article-image { overflow: hidden; margin-bottom: 36px; border-radius: 28px; box-shadow: var(--shadow); }
.article-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.input, .textarea, input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; font: inherit;
}
textarea { min-height: 140px; }

@media (max-width: 980px) {
  .menu, .nav-actions { display: none; }
  .mobile-toggle { display: grid; place-items: center; }
  .nav.is-open .menu { display: grid; position: absolute; left: 0; right: 0; top: 82px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); animation: navDrop .24s ease both; }
  .hero-grid, .cta-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-media, .hero-card, .hero-card img { min-height: 360px; }
  .metric-card { position: static; margin-top: -80px; }
  .cards-grid, .service-grid, .offer-grid, .archive-list, .archive-list.service-grid, .archive-list.offer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .trusted-grid { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(2,1fr); }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .container-page { width: min(100% - 28px, 1180px); }
  .section-pad { padding: 66px 0; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: 52px; }
  .section-header h2 { font-size: 42px; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta { padding: 34px; border-radius: 30px; }
}
