/* ========================================
   MEDIUNIFY — Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0f1b2d;
  --navy-light: #1a2d4a;
  --teal: #14917a;
  --teal-dark: #0e7a66;
  --teal-light: #b2dfdb;
  --medical-blue: #2563eb;
  --soft-gray: #f4f6f8;
  --warm-white: #fafbfc;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --card-shadow: 0 4px 24px -4px rgba(15, 27, 45, 0.08);
  --card-shadow-hover: 0 12px 40px -8px rgba(15, 27, 45, 0.15);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--warm-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* ========================================
   Utilities
   ======================================== */
.gradient-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.gradient-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #1c2e50 50%, #253b5e 100%);
}
.gradient-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--medical-blue) 100%);
}
.text-gradient-teal {
  background: linear-gradient(135deg, var(--teal), var(--medical-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.shadow-card {
  box-shadow: var(--card-shadow);
}
.shadow-card-hover {
  box-shadow: var(--card-shadow-hover);
}
.bg-soft-gray {
  background-color: var(--soft-gray);
}
.bg-warm-white {
  background-color: var(--warm-white);
}
.text-navy {
  color: var(--navy) !important;
}
.text-teal {
  color: var(--teal) !important;
}
.text-muted-custom {
  color: var(--text-muted);
}
.bg-teal-10 {
  background-color: rgba(20, 145, 122, 0.1);
}
.border-teal {
  border-color: var(--teal) !important;
}

/* ========================================
   Section Badge
   ======================================== */
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-badge-light {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
.section-badge-teal {
  background: rgba(20, 145, 122, 0.1);
  color: var(--teal);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
  transition: all 0.3s ease;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}
.navbar:not(.scrolled) .navbar-brand,
.navbar:not(.scrolled) .nav-link {
  color: rgba(255,255,255,0.85) !important;
}
.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
  color: var(--teal-light) !important;
}
.navbar.scrolled .nav-link {
  color: var(--text-dark) !important;
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--teal) !important;
}
.navbar.scrolled .navbar-brand {
  color: var(--navy) !important;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 1rem !important;
}
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  margin-right: 8px;
}
.btn-cta-nav {
  background: linear-gradient(135deg, var(--teal), var(--medical-blue));
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-cta-nav:hover {
  opacity: 0.9;
  transform: scale(1.03);
  color: #fff;
}

/* ========================================
   Buttons
   ======================================== */
.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--medical-blue));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
}
.btn-teal:hover {
  opacity: 0.9;
  transform: scale(1.03);
  color: #fff;
  box-shadow: 0 8px 24px rgba(20,145,122,0.3);
}
.btn-outline-light-custom {
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-outline-light-custom:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-weight: 600;
  transition: opacity 0.3s;
}
.btn-whatsapp:hover {
  opacity: 0.9;
  color: #fff;
}

/* ========================================
   Hero
   ======================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 40px;
  width: 300px;
  height: 300px;
  background: rgba(20, 145, 122, 0.1);
  border-radius: 50%;
  filter: blur(80px);
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 80px;
  right: 40px;
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  filter: blur(80px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 560px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}
.hero-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
}
.hero-stats .divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}
.hero-img-wrapper {
  position: relative;
}
.hero-img-wrapper::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(20,145,122,0.2), rgba(37,99,235,0.2));
  filter: blur(24px);
}
.hero-img-wrapper img {
  position: relative;
  border-radius: 16px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

@media (max-width: 991px) {
  .hero-title { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-stats .divider { display: none; }
}

/* ========================================
   Cards
   ======================================== */
.card-custom {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  transition: all 0.3s;
  height: 100%;
}
.card-custom:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(20, 145, 122, 0.2);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: #fff;
}
.card-icon-teal {
  background: rgba(20, 145, 122, 0.1);
  color: var(--teal);
}
.card-icon-gradient {
  background: linear-gradient(135deg, var(--teal), var(--medical-blue));
  color: #fff;
}
.card-title-custom {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.card-learn-more {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
  margin-top: 1rem;
}
.card-learn-more:hover {
  gap: 10px;
  color: var(--teal-dark);
}

/* Dark card variant (for navy bg) */
.card-dark {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.75rem;
  transition: background 0.3s;
  height: 100%;
}
.card-dark:hover {
  background: rgba(255,255,255,0.1);
}

/* ========================================
   Info Block
   ======================================== */
.info-block {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(20, 145, 122, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.info-value {
  font-weight: 500;
  color: var(--text-dark);
}

/* ========================================
   Quote Block
   ======================================== */
.quote-block {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--teal);
}
.highlight-block {
  background: linear-gradient(135deg, rgba(20,145,122,0.05), rgba(37,99,235,0.05));
  border: 1px solid rgba(20,145,122,0.2);
  border-radius: 16px;
  padding: 2rem 2.5rem;
}

/* ========================================
   Sections spacing
   ======================================== */
.section-padding {
  padding: 5rem 0;
}
@media (min-width: 992px) {
  .section-padding { padding: 7rem 0; }
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}
.section-title-light {
  color: #fff;
}
@media (min-width: 992px) {
  .section-title { font-size: 2.8rem; }
}

/* ========================================
   Feature list dots
   ======================================== */
.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ========================================
   Contact Form
   ======================================== */
.form-control-custom {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control-custom:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,145,122,0.15);
  outline: none;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}
.footer h5 {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--teal-light);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

/* ========================================
   Back to top
   ======================================== */
.btn-back-top {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.btn-back-top:hover {
  background: var(--teal);
}

/* ========================================
   Animations
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Small patient cards */
.patient-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: box-shadow 0.3s;
  height: 100%;
}
.patient-card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* ========================================
   MediUnify logo color refinement
   ======================================== */
:root {
  --navy: #06333a;
  --navy-light: #07545b;
  --teal: #00b8b8;
  --teal-dark: #009999;
  --teal-light: #8ff3ef;
  --medical-blue: #00d0c7;
  --soft-gray: #f0fbfb;
  --warm-white: #ffffff;
  --text-dark: #123033;
  --text-muted: #5f7377;
  --border-color: #d9f2f2;
  --card-shadow: 0 4px 24px -4px rgba(0, 153, 153, 0.12);
  --card-shadow-hover: 0 12px 40px -8px rgba(0, 184, 184, 0.2);
}
.gradient-hero {
  background: radial-gradient(circle at 85% 20%, rgba(0,208,199,0.22), transparent 32%), linear-gradient(160deg, #06333a 0%, #07545b 52%, #00a9a9 100%);
}
.gradient-navy {
  background: linear-gradient(135deg, #06333a 0%, #07545b 100%);
}
.gradient-teal,
.btn-teal,
.btn-cta-nav,
.card-icon-gradient {
  background: linear-gradient(135deg, #00b8b8 0%, #00d0c7 100%);
}
.text-gradient-teal {
  background: linear-gradient(135deg, #8ff3ef, #00d0c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-right: 8px;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}
.footer-logo {
  width: 40px;
  height: 40px;
}
.info-value a,
.footer a {
  color: inherit;
}
.info-value a:hover,
.footer a:hover {
  color: var(--teal);
}
.showcase-card {
  background: #fff;
  border: 1px solid rgba(0,184,184,0.18);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 12px;
  overflow: hidden;
}
.showcase-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
.phone-showcase {
  max-height: 720px;
  overflow: hidden;
}
.mini-feature {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0,184,184,0.16);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}
.mini-feature i {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background: rgba(0,184,184,0.1);
  color: var(--teal-dark);
  font-size: 1.25rem;
}
.mini-feature strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-heading);
  margin-bottom: 0.4rem;
}
.mini-feature span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
