/* ═══════════════════════════════════════════
   نبض – Nabd Medical Home Care
   style.css
═══════════════════════════════════════════ */

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

:root {
  --blue:       #29ABE2;
  --blue-dark:  #1A87B8;
  --blue-deep:  #0E5A7A;
  --green:      #8DC63F;
  --green-dark: #6FA82E;
  --mint:       #EAF7FF;
  --mint-green: #F0FAE8;
  --white:      #FFFFFF;
  --off-white:  #F7FBFE;
  --text:       #1A2B30;
  --muted:      #5A7A82;
  --border:     #D4EBF5;
  --shadow:     0 4px 24px rgba(41,171,226,.10);
  --shadow-lg:  0 12px 48px rgba(41,171,226,.18);
}

html { scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; background: var(--white); color: var(--text); direction: rtl; }

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 74px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 46px; width: auto; }
.nav-logo-text { line-height: 1; }
.nav-logo-name { font-size: 1.5rem; font-weight: 900; color: var(--blue-deep); }
.nav-logo-sub { font-size: .7rem; color: var(--muted); font-weight: 500; display: block; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none; color: var(--text);
  font-size: .9rem; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--mint); color: var(--blue-dark); }
.nav-cta { background: var(--blue) !important; color: white !important; border-radius: 24px !important; padding: 9px 22px !important; }
.nav-cta:hover { background: var(--blue-dark) !important; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(41,171,226,.35); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue-deep); border-radius: 2px; }

/* ── PAGES ── */
.page { display: none; padding-top: 74px; min-height: 100vh; }
.page.active { display: block; }

/* ── HERO ── */
.hero {
  background: linear-gradient(140deg, var(--blue-deep) 0%, var(--blue-dark) 50%, var(--blue) 100%);
  min-height: calc(100vh - 74px);
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 80px 5%;
}
.hero-dots {
  position: absolute; inset: 0; opacity: .06;
  background-image: radial-gradient(circle at 2px 2px, white 1.5px, transparent 0);
  background-size: 38px 38px;
}
.hero-green-blob {
  position: absolute; top: -80px; left: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(141,198,63,.25) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(141,198,63,.18); border: 1px solid rgba(141,198,63,.45);
  color: #B8E068; font-size: .82rem; font-weight: 700;
  padding: 7px 16px; border-radius: 20px; margin-bottom: 28px;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px;
  background: #B8E068; border-radius: 50%;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; color: white; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: #B8E068; }
.hero p { font-size: 1.08rem; color: rgba(255,255,255,.82); line-height: 1.9; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* hero visual */
.hero-visual {
  position: absolute; left: 4%; top: 50%; transform: translateY(-50%);
  width: 440px; opacity: .13; pointer-events: none;
}
.pulse-line {
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: draw 3.4s ease-out forwards infinite;
}
@keyframes draw {
  0%   { stroke-dashoffset: 1200; opacity: 0; }
  15%  { opacity: 1; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--green); color: white;
  font-family: 'Cairo', sans-serif; font-weight: 800; font-size: .97rem;
  padding: 14px 32px; border-radius: 30px; border: none; cursor: pointer;
  text-decoration: none; transition: all .25s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(141,198,63,.4);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(141,198,63,.45); }
.btn-outline {
  background: transparent; color: white;
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .97rem;
  padding: 13px 32px; border-radius: 30px; border: 2px solid rgba(255,255,255,.4);
  cursor: pointer; text-decoration: none; transition: all .25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,.09); }
.btn-full { width: 100%; font-size: 1rem; padding: 14px; justify-content: center; border-radius: 12px; }

/* ── STATS ── */
.stats-strip { background: white; box-shadow: var(--shadow); display: flex; justify-content: center; flex-wrap: wrap; }
.stat-item { flex: 1; min-width: 200px; padding: 32px 24px; text-align: center; border-left: 1px solid var(--border); }
.stat-item:last-child { border-left: none; }
.stat-num { font-size: 2.2rem; font-weight: 900; color: var(--blue); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 6px; font-weight: 600; }

/* ── SECTIONS ── */
section { padding: 90px 5%; }
.section-label {
  font-size: .78rem; font-weight: 800; letter-spacing: 2px;
  color: var(--green); text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after { content: ''; flex: 1; max-width: 36px; height: 2px; background: var(--green); border-radius: 1px; }
.section-title { font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 900; color: var(--blue-deep); line-height: 1.25; margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--muted); line-height: 1.9; max-width: 600px; }
.centered { text-align: center; }
.centered .section-label { justify-content: center; }
.centered .section-label::after { display: none; }
.centered .section-sub { margin: 0 auto; }

/* ── SERVICE CARDS ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(255px,1fr)); gap: 22px; margin-top: 52px; }
.service-card {
  background: white; border: 1.5px solid var(--border); border-radius: 20px;
  padding: 34px 26px; transition: all .28s; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: -30px; right: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  transition: transform .3s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--blue); }
.service-card:hover::after { transform: scale(1.4); }
.service-icon { width: 62px; height: 62px; border-radius: 16px; background: var(--mint); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.75rem; }
.service-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 10px; }
.service-card p { font-size: .88rem; color: var(--muted); line-height: 1.8; }
.learn-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .88rem; font-weight: 700; color: var(--blue); text-decoration: none; }

/* ── WHY US ── */
.why-section { background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark)); }
.why-section .section-title { color: white; }
.why-section .section-sub { color: rgba(255,255,255,.75); }
.why-section .section-label { color: #B8E068; }
.why-section .section-label::after { background: #B8E068; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(238px,1fr)); gap: 24px; margin-top: 48px; }
.why-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 28px 22px; }
.why-icon { font-size: 2rem; margin-bottom: 14px; }
.why-card h4 { font-size: 1.05rem; font-weight: 800; color: white; margin-bottom: 8px; }
.why-card p { font-size: .87rem; color: rgba(255,255,255,.7); line-height: 1.8; }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(295px,1fr)); gap: 26px; margin-top: 48px; }
.blog-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); transition: all .28s; background: white; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-thumb { height: 190px; display: flex; align-items: center; justify-content: center; font-size: 3.8rem; }
.blog-body { padding: 22px; }
.blog-tag { font-size: .74rem; font-weight: 800; letter-spacing: .8px; color: var(--blue); background: var(--mint); padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.blog-card p { font-size: .86rem; color: var(--muted); line-height: 1.8; }
.blog-meta { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .79rem; color: var(--muted); }

/* ── FEATURED BLOG ── */
.featured-blog { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; background: var(--mint); border-radius: 22px; overflow: hidden; margin-top: 48px; }
.featured-blog-img { height: 360px; display: flex; align-items: center; justify-content: center; font-size: 7.5rem; }
.featured-blog-content { padding: 48px; }
.featured-blog-content h2 { font-size: 1.55rem; font-weight: 900; color: var(--blue-deep); margin: 12px 0 14px; line-height: 1.4; }
.featured-blog-content p { color: var(--muted); font-size: .92rem; line-height: 1.9; }

/* ── ABOUT ── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.about-image {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-green) 100%);
  border-radius: 24px; height: 480px;
  display: flex; align-items: center; justify-content: center; font-size: 7rem;
  position: relative; overflow: hidden;
}
.about-image::before { content: ''; position: absolute; bottom: -40px; left: -40px; width: 200px; height: 200px; border-radius: 50%; border: 22px solid rgba(41,171,226,.10); }
.about-image::after  { content: ''; position: absolute; top: -30px; right: -30px; width: 150px; height: 150px; border-radius: 50%; border: 18px solid rgba(141,198,63,.12); }
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.about-feat { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--off-white); }
.about-feat-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 12px; background: var(--mint); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.about-feat h5 { font-size: .93rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 3px; }
.about-feat p { font-size: .83rem; color: var(--muted); line-height: 1.7; }

/* ── TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(215px,1fr)); gap: 24px; margin-top: 48px; }
.team-card { text-align: center; padding: 30px 18px; border: 1px solid var(--border); border-radius: 18px; transition: all .28s; background: white; }
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--mint); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 2.3rem; border: 3px solid var(--border); }
.team-card h4 { font-size: .97rem; font-weight: 800; color: var(--blue-deep); }
.team-card p { font-size: .83rem; color: var(--muted); margin-top: 4px; }

/* ── CONTACT ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info h3 { font-size: 1.5rem; font-weight: 900; color: var(--blue-deep); margin-bottom: 14px; }
.contact-info p { font-size: .93rem; color: var(--muted); line-height: 1.9; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--mint); border-radius: 13px; }
.contact-detail-icon { width: 42px; height: 42px; min-width: 42px; background: var(--blue); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.contact-detail h5 { font-size: .83rem; font-weight: 800; color: var(--muted); margin-bottom: 2px; }
.contact-detail p { font-size: .93rem; font-weight: 700; color: var(--blue-deep); }
.contact-form { background: white; border: 1px solid var(--border); border-radius: 24px; padding: 38px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.35rem; font-weight: 900; color: var(--blue-deep); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .83rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'Cairo', sans-serif; font-size: .9rem; color: var(--text);
  background: var(--off-white); outline: none; transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); background: white; }
.form-group textarea { height: 115px; resize: vertical; }

/* ── NOTICE BANNER ── */
.notice-banner {
  background: linear-gradient(90deg, #FFFBEA, #FFF5CC);
  border: 1px solid #EDD898; border-radius: 12px;
  padding: 15px 20px; margin: 28px 5% 0;
  display: flex; align-items: center; gap: 12px;
  font-size: .87rem; color: #7A5A00; font-weight: 600;
}

/* ── INNER PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark));
  padding: 68px 5% 56px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: radial-gradient(circle at 2px 2px, white 1.5px, transparent 0);
  background-size: 34px 34px;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 900; color: white; position: relative; }
.page-hero p { font-size: 1.02rem; color: rgba(255,255,255,.8); margin-top: 10px; position: relative; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; align-items: center; margin-bottom: 18px; font-size: .84rem; color: rgba(255,255,255,.55); position: relative; }
.breadcrumb a { color: #B8E068; text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* ── SERVICES DETAIL ── */
.service-detail-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(290px,1fr)); gap: 28px; margin-top: 48px; }
.service-detail-card { background: white; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: all .28s; }
.service-detail-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.sdc-header { padding: 34px 26px; text-align: center; }
.sdc-icon { font-size: 3.2rem; margin-bottom: 10px; }
.sdc-header h2 { color: white; font-size: 1.35rem; font-weight: 900; }
.sdc-header p { color: rgba(255,255,255,.75); font-size: .87rem; margin-top: 5px; }
.sdc-body { padding: 26px; }
.sdc-features { list-style: none; margin-bottom: 22px; }
.sdc-features li { padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text); }
.sdc-features li:last-child { border-bottom: none; }
.sdc-features li::before { content: '✓'; color: var(--green); font-weight: 900; font-size: .95rem; }

/* ── PROCESS STEPS ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(235px,1fr)); gap: 24px; margin-top: 48px; max-width: 860px; margin-inline: auto; }
.step-card { text-align: center; padding: 34px 24px; background: white; border-radius: 20px; border: 1px solid var(--border); }
.step-circle { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.3rem; font-weight: 900; color: white; }
.step-card h4 { font-size: 1.08rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 10px; }
.step-card p { font-size: .87rem; color: var(--muted); line-height: 1.8; }

/* ── CERTIFICATIONS ── */
.cert-section { background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark)); text-align: center; }
.cert-section .section-title { color: white; }
.cert-section .section-label { color: #B8E068; justify-content: center; }
.cert-section .section-label::after { display: none; }
.cert-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 40px; }
.cert-badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 13px; padding: 20px 30px; color: white; font-weight: 700; font-size: .88rem; }

/* ── CTA SECTION ── */
.cta-section { background: var(--mint); text-align: center; }
.cta-section .section-label { justify-content: center; }
.cta-section .section-label::after { display: none; }
.cta-section .section-sub { margin: 0 auto 34px; }

/* ── FOOTER ── */
footer { background: var(--blue-deep); color: rgba(255,255,255,.75); padding: 58px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-logo img { height: 52px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { font-size: .87rem; line-height: 1.9; margin-top: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-size: .85rem; transition: .2s; }
.footer-social a:hover { background: var(--blue); }
.footer-col h5 { color: white; font-weight: 800; font-size: .93rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .87rem; transition: color .2s; }
.footer-col a:hover { color: #B8E068; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .8rem;
}
.no-emergency { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); padding: 7px 14px; border-radius: 20px; font-size: .78rem; color: rgba(255,255,255,.55); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-layout,
  .contact-layout,
  .featured-blog { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
  .about-image { height: 250px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
