/* ==================================================
   Medical Trading Website - Pure HTML5 & CSS3
   Direction: RTL | Language: Arabic
   ================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary-blue: #48b7df;
  --primary-blue-dark: #1793c2;
  --light-blue: #eaf8fd;
  --primary-green: #80d8b0;
  --primary-green-dark: #35a974;
  --light-green: #effbf5;
  --white: #ffffff;
  --text-dark: #17313b;
  --text-muted: #5d747d;
  --border-color: #dbeef5;
  --shadow-soft: 0 16px 40px rgba(23, 49, 59, 0.10);
  --shadow-card: 0 10px 30px rgba(23, 49, 59, 0.08);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --container: 1200px;
  --header-height: 82px;
  --font-arabic: Cairo, Tajawal, "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ---------- Reset & Base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  direction: rtl;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 52%, var(--white) 100%);
  line-height: 1.8;
  padding-top: var(--header-height);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--primary-green);
  outline-offset: 3px;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section-padding {
  padding: 88px 0;
}

.white-section {
  background-color: var(--white);
}

.soft-section {
  background: linear-gradient(135deg, var(--light-blue), var(--white) 55%, var(--light-green));
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue-dark);
  background-color: var(--light-blue);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading h2,
.hero-content h1,
.page-hero h1 {
  line-height: 1.35;
  color: var(--text-dark);
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}

.section-heading p,
.hero-content p,
.page-hero p,
.info-panel p,
.service-card p,
.feature-card p {
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-blue-dark);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  color: var(--primary-green-dark);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary-blue-dark);
}

/* ---------- Header & Navbar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(23, 49, 59, 0.06);
  z-index: 100;
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--light-blue), var(--light-green));
  border: 1px solid var(--border-color);
}

.brand-text {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--primary-blue-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-dark);
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--light-blue);
  color: var(--primary-blue-dark);
}

.nav-links a.active {
  box-shadow: inset 0 0 0 1px var(--border-color);
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(128, 216, 176, 0.25), transparent 28%),
    radial-gradient(circle at 15% 30%, rgba(72, 183, 223, 0.20), transparent 32%),
    linear-gradient(135deg, var(--white) 0%, var(--light-blue) 48%, var(--white) 100%);
}

.hero-grid,
.split-grid,
.contact-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  max-width: 780px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.12rem;
  max-width: 680px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  min-height: 420px;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: linear-gradient(135deg, var(--white), var(--light-blue), var(--light-green));
  box-shadow: var(--shadow-soft);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(72, 183, 223, 0.22), rgba(128, 216, 176, 0.26)),
    repeating-linear-gradient(45deg, var(--white), var(--white) 14px, var(--light-blue) 14px, var(--light-blue) 28px);
}

/* ---------- Cards & Stats ---------- */
.stats-grid,
.cards-grid,
.services-grid-large {
  display: grid;
  gap: 22px;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.feature-card,
.service-card,
.info-panel,
.contact-form,
.contact-info {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.stat-card {
  padding: 28px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--primary-blue-dark);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card span {
  color: var(--text-muted);
  font-weight: 700;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.five-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card,
.service-card {
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-soft);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  color: var(--white);
  border-radius: 16px;
  font-weight: 900;
  margin-bottom: 18px;
}

.feature-card h3,
.service-card h3,
.service-card h2,
.info-panel h2,
.contact-form h2,
.contact-info h2 {
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.45;
}

.service-card h2 {
  font-size: 1.18rem;
}

.services-grid-large {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rich-card {
  min-height: 260px;
}

/* ---------- Page Hero & Content ---------- */
.page-hero {
  padding: 86px 0 74px;
  background: linear-gradient(135deg, var(--light-blue), var(--white) 58%, var(--light-green));
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 720px;
  margin-inline: auto;
}

.content-grid {
  align-items: stretch;
}

.info-panel {
  padding: 34px;
}

.content-grid .info-panel:first-child {
  grid-column: 1 / -1;
}

.highlight-panel {
  background: linear-gradient(135deg, var(--light-blue), var(--white));
}

.green-panel {
  background: linear-gradient(135deg, var(--light-green), var(--white));
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 72px 0;
  background-color: var(--white);
}

.cta-box {
  text-align: center;
  padding: 56px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.cta-box h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.cta-box p {
  margin-bottom: 26px;
  opacity: 0.94;
}

/* ---------- Contact ---------- */
.contact-grid {
  align-items: start;
}

.contact-form,
.contact-info {
  padding: 34px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text-dark);
  background-color: #fbfdfe;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(72, 183, 223, 0.14);
  outline: none;
}

.info-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-item strong,
.info-item span {
  display: block;
}

.info-item span {
  color: var(--text-muted);
}

.map-placeholder {
  margin-top: 24px;
  min-height: 260px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(72, 183, 223, 0.16), rgba(128, 216, 176, 0.20)),
    repeating-linear-gradient(-45deg, var(--white), var(--white) 16px, var(--light-blue) 16px, var(--light-blue) 32px);
  border: 1px dashed var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary-blue-dark);
  font-weight: 800;
  padding: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 38px;
}

.footer-brand {
  display: inline-block;
  color: var(--primary-green);
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer h3 {
  margin-bottom: 14px;
  color: var(--white);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  text-align: center;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Responsive Breakpoints ---------- */
@media (min-width: 1400px) {
  :root { --container: 1320px; }
  .hero-content h1 { font-size: 4.6rem; }
}

@media (max-width: 1200px) {
  :root { --container: 1100px; }
  .five-cards,
  .services-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  body { padding-top: 112px; }
  .site-header { height: auto; }
  .navbar {
    min-height: 112px;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }
  .hero-grid,
  .split-grid,
  .contact-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid,
  .five-cards,
  .services-grid-large,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .section-padding { padding: 64px 0; }
  .nav-links {
    justify-content: center;
    gap: 4px;
  }
  .nav-links a {
    padding: 8px 12px;
    font-size: 0.94rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .cards-grid,
  .five-cards,
  .services-grid-large,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual,
  .hero-image {
    min-height: 300px;
  }
}

@media (max-width: 576px) {
  :root { --header-height: 96px; }
  body { padding-top: 128px; }
  .container {
    width: min(100% - 24px, var(--container));
  }
  .brand-logo {
    width: 46px;
    height: 46px;
  }
  .brand-text {
    font-size: 1.05rem;
  }
  .nav-links a {
    font-size: 0.88rem;
    padding: 7px 10px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .stat-card,
  .feature-card,
  .service-card,
  .info-panel,
  .contact-form,
  .contact-info {
    padding: 22px;
  }
  .page-hero {
    padding: 60px 0 52px;
  }
}
