/* IGMedConnect modern enhancement layer — 2026-09-14 */
:root {
  --igmc-bg: #f5f8fb;
  --igmc-surface: #ffffff;
  --igmc-surface-soft: #eef6fb;
  --igmc-text: #102033;
  --igmc-muted: #5f6f82;
  --igmc-brand: #0b6fa4;
  --igmc-brand-strong: #07577f;
  --igmc-accent: #0eaa91;
  --igmc-navy: #0b2033;
  --igmc-border: rgba(16, 32, 51, .09);
  --igmc-shadow-sm: 0 8px 24px rgba(15, 35, 55, .08);
  --igmc-shadow-md: 0 18px 45px rgba(15, 35, 55, .13);
  --igmc-radius-sm: 12px;
  --igmc-radius: 18px;
  --igmc-radius-lg: 26px;
  --igmc-ease: cubic-bezier(.2,.75,.25,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--igmc-text);
  background-color: var(--igmc-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body {
  font-family: "Noto Sans Arabic", "Inter", Arial, sans-serif !important;
}
h1, h2, h3, h4, h5, h6,
.logo, .brand, .section-title, .page-title {
  font-family: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: -.025em;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .logo {
  font-family: "Noto Sans Arabic", "Inter", sans-serif !important;
  letter-spacing: 0;
}
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
section { scroll-margin-top: 96px; }

/* Navigation */
nav:not(.navigation) {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .3s ease, background-color .3s ease, transform .3s ease;
}
nav:not(.navigation).igmc-scrolled { box-shadow: 0 8px 30px rgba(8, 30, 48, .16); }
.nav-container { max-width: 1320px !important; padding-inline: clamp(1rem, 3vw, 2rem); }
.logo { font-weight: 800 !important; }
.nav-links a, .selected-lang { font-weight: 600 !important; letter-spacing: -.01em; }
.nav-links a { position: relative; }
@media (min-width: 769px) {
  .nav-links > li > a::after {
    content: "";
    position: absolute;
    left: 50%; right: 50%; bottom: -.35rem;
    height: 2px; border-radius: 999px;
    background: currentColor;
    transition: left .25s ease, right .25s ease;
    opacity: .75;
  }
  .nav-links > li > a:hover::after,
  .nav-links > li > a:focus-visible::after { left: 10%; right: 10%; }
}
.mega-menu-content, .lang-dropdown {
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 18px 50px rgba(4, 18, 30, .22) !important;
  border-radius: 14px !important;
  overflow: hidden;
}
.menu-toggle { border-radius: 10px; }
.menu-toggle:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(14,170,145,.42) !important;
  outline-offset: 3px;
}

/* Hero and page headers */
.carousel-header, .page-header, header.hero, .hero-section {
  isolation: isolate;
}
.carousel-header::after, .page-header::after, header.hero::after, .hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,31,50,.02), rgba(8,31,50,.16));
  z-index: 1;
}
.header-content, .page-header-content, .hero-content { position: relative; z-index: 2; }
.header-content h1, .page-header h1, .hero-content h1 {
  text-wrap: balance;
  line-height: 1.05 !important;
}
.header-content p, .page-header p, .hero-content p { text-wrap: pretty; }

/* Buttons */
.btn, .btn-contact, .cta-button, .whatsapp-button,
button[type="submit"], input[type="submit"] {
  border-radius: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
  transition: transform .2s var(--igmc-ease), box-shadow .2s ease, filter .2s ease !important;
  box-shadow: 0 9px 22px rgba(6, 93, 137, .16);
}
.btn:hover, .btn-contact:hover, .cta-button:hover, .whatsapp-button:hover,
button[type="submit"]:hover, input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 93, 137, .24);
  filter: saturate(1.05);
}
.btn:active, .btn-contact:active, .cta-button:active, .whatsapp-button:active,
button[type="submit"]:active { transform: translateY(0); }

/* Modern surfaces/cards */
.service-card, .info-card, .treatment-card, .medicine-card, .product-card,
.testimonial-item, .testimonial-card, .feature-card, .blog-card, .contact-card,
.visa-card, .process-step, .stat-card, .country-card, .category-card,
.faq-item, .comparison-card, .why-card, .step-card, .value-card {
  border-radius: var(--igmc-radius) !important;
  border: 1px solid var(--igmc-border) !important;
  box-shadow: var(--igmc-shadow-sm) !important;
  transition: transform .28s var(--igmc-ease), box-shadow .28s ease, border-color .28s ease !important;
}
.service-card:hover, .info-card:hover, .treatment-card:hover, .medicine-card:hover, .product-card:hover,
.testimonial-item:hover, .testimonial-card:hover, .feature-card:hover, .blog-card:hover, .contact-card:hover,
.visa-card:hover, .process-step:hover, .stat-card:hover, .country-card:hover, .category-card:hover,
.comparison-card:hover, .why-card:hover, .step-card:hover, .value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--igmc-shadow-md) !important;
  border-color: rgba(11,111,164,.18) !important;
}

/* Forms */
form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
form select, form textarea {
  width: 100%;
  border: 1px solid rgba(16,32,51,.13) !important;
  border-radius: 12px !important;
  background: #fff !important;
  min-height: 48px;
  padding: .8rem .95rem !important;
  font: inherit;
  color: var(--igmc-text);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
form textarea { min-height: 140px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus {
  border-color: rgba(11,111,164,.55) !important;
  box-shadow: 0 0 0 4px rgba(11,111,164,.09) !important;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #081c2d 0%, #0c2c45 100%) !important;
  color: rgba(255,255,255,.9);
}
footer a { transition: color .2s ease, opacity .2s ease; }
footer a:hover { color: #71dfce !important; }
.link-unavailable { opacity: .5; cursor: not-allowed; }

/* Floating WhatsApp */
.whatsapp-float {
  box-shadow: 0 12px 30px rgba(22, 163, 74, .28) !important;
  transition: transform .25s var(--igmc-ease), box-shadow .25s ease !important;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03) !important; box-shadow: 0 18px 38px rgba(22,163,74,.35) !important; }

/* Progressive enhancement */
.igmc-scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 99999;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--igmc-accent), #38bdf8);
  box-shadow: 0 0 10px rgba(14,170,145,.3);
  pointer-events: none;
}
.igmc-back-to-top {
  position: fixed; right: 22px; bottom: 92px; z-index: 9998;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8,32,51,.92); color: #fff;
  box-shadow: 0 12px 28px rgba(8,32,51,.22);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  cursor: pointer;
}
.igmc-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.igmc-back-to-top:hover { transform: translateY(-3px); }
.skip-link {
  position: fixed; left: 1rem; top: .75rem; z-index: 100000;
  transform: translateY(-180%);
  background: #fff; color: var(--igmc-navy); padding: .7rem 1rem;
  border-radius: 10px; box-shadow: var(--igmc-shadow-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.js .igmc-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s var(--igmc-ease);
}
.js .igmc-reveal.igmc-visible { opacity: 1; transform: translateY(0); }

/* Responsive polish */
@media (max-width: 768px) {
  .nav-container { padding-inline: 1rem; }
  .header-content, .page-header-content, .hero-content { padding-inline: 1.1rem !important; }
  .carousel-header { min-height: 520px; height: min(76vh, 620px) !important; }
  h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
  h2 { font-size: clamp(1.55rem, 6vw, 2.25rem) !important; }
  .igmc-back-to-top { right: 14px; bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .igmc-reveal { opacity: 1; transform: none; }
}

.igmc-trust-note {
  max-width: 1320px;
  margin: 2rem auto 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(11,111,164,.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,111,164,.06), rgba(14,170,145,.05));
  color: #41566b;
  font-size: .93rem;
  line-height: 1.7;
}
.igmc-trust-note strong { color: var(--igmc-navy); }
@media (max-width: 1360px) { .igmc-trust-note { margin-inline: 1rem; } }
