/* Thrivelink Health — Brand Website */
:root {
  --deep-blue: #0B3D91;
  --deep-blue-dark: #082d6d;
  --deep-blue-light: #1565C0;
  --green: #27AE60;
  --green-light: #2ECC71;
  --green-dark: #1E8449;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --light-gray: #F1F5F9;
  --text: #1E293B;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --danger: #DC2626;
  --shadow: 0 4px 20px rgba(11,61,145,0.08);
  --shadow-lg: 0 12px 40px rgba(11,61,145,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--white); color: var(--text); line-height: 1.6; overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-gray); }
::-webkit-scrollbar-thumb { background: var(--deep-blue); border-radius: 3px; }

/* === HEADER === */
.header {
  position: fixed; top:0; left:0; right:0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: all 0.3s ease;
}
.header-inner {
  max-width: 1200px; margin:0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.header-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.header-logo .logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--deep-blue), var(--green));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; font-weight: 800;
}
.header-logo .logo-text-group { display: flex; flex-direction: column; }
.header-logo .logo-name {
  font-size: 20px; font-weight: 800; color: var(--deep-blue);
  letter-spacing: -0.5px; line-height: 1.2;
}
.header-logo .logo-tag {
  font-size: 10px; color: var(--green); font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.header-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px; text-decoration: none;
  color: var(--text-light); font-size: 14px; font-weight: 500;
  transition: all 0.2s; border: none; background: none; cursor: pointer;
}
.nav-link:hover { color: var(--deep-blue); background: rgba(11,61,145,0.04); }
.nav-link.active { color: var(--deep-blue); background: rgba(11,61,145,0.08); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm); border: none;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-light));
  color: white; box-shadow: 0 4px 12px rgba(11,61,145,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(11,61,145,0.35); }
.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: white; box-shadow: 0 4px 12px rgba(39,174,96,0.25);
}
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(39,174,96,0.35); }
.btn-outline {
  background: transparent; color: var(--deep-blue); border: 1.5px solid var(--deep-blue);
}
.btn-outline:hover { background: rgba(11,61,145,0.04); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.mobile-menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: none; background: var(--light-gray); font-size: 18px; cursor: pointer; align-items: center; justify-content: center; }

/* === MOBILE NAV === */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
  background: white; z-index: 1001; box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  transition: right 0.3s ease; padding: 80px 24px 24px; overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav .nav-link { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
.mobile-nav .btn { width: 100%; margin-top: 16px; justify-content: center; }

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--deep-blue) 0%, #0a2d6b 40%, var(--green-dark) 100%);
  position: relative; overflow: hidden; padding: 100px 24px 80px;
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(39,174,96,0.15) 0%, transparent 70%); border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); border-radius: 50%;
}
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  padding: 8px 18px; border-radius: 30px; font-size: 13px; color: rgba(255,255,255,0.9);
  margin-bottom: 28px; border: 1px solid rgba(255,255,255,0.15);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 800; color: white;
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 .highlight { color: var(--green-light); }
.hero p {
  font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.85);
  max-width: 560px; margin-bottom: 36px; line-height: 1.6;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta .btn { padding: 14px 28px; font-size: 15px; }
.hero-cta .btn-outline { border-color: rgba(255,255,255,0.4); color: white; }
.hero-cta .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* === SLIDESHOW === */
.slideshow-wrap { margin-top: 48px; position: relative; }
.slideshow-container {
  position: relative; overflow: hidden; border-radius: var(--radius);
  height: 280px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
  display: flex; align-items: center; justify-content: center;
}
.slide.active { opacity: 1; }
.slide-content { text-align: center; color: white; padding: 40px; max-width: 600px; }
.slide-content i { font-size: 40px; margin-bottom: 16px; color: var(--green-light); }
.slide-content h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.slide-content p { font-size: 15px; opacity: 0.85; margin: 0; }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); color: white; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; backdrop-filter: blur(4px);
}
.slide-nav:hover { background: rgba(255,255,255,0.3); }
.slide-nav.prev { left: 16px; }
.slide-nav.next { right: 16px; }
.slide-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.3s; border: none; }
.slide-dot.active { background: white; width: 24px; border-radius: 4px; }

/* === HERO STATS === */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px; max-width: 600px;
}
.hero-stat {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
  border-radius: var(--radius-sm); padding: 20px; border: 1px solid rgba(255,255,255,0.1);
}
.hero-stat .num { font-size: 28px; font-weight: 800; color: white; }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

/* === SECTIONS === */
.section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(11,61,145,0.08); color: var(--deep-blue);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: var(--text); margin-bottom: 12px; }
.section-header p { font-size: 17px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* === PREVIEW CARDS (for index page) === */
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.preview-card {
  background: white; border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--deep-blue); }
.preview-card i { font-size: 32px; color: var(--deep-blue); margin-bottom: 16px; }
.preview-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.preview-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.preview-card .read-more { color: var(--deep-blue); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.preview-card .read-more:hover { gap: 10px; }

/* === ABOUT PAGE === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-content h3 { font-size: 28px; font-weight: 700; margin-bottom: 16px; color: var(--deep-blue); }
.about-content p { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.value-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--off-white); border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.value-item .v-letter {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--deep-blue), var(--green));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.value-item .v-text { font-size: 13px; font-weight: 600; color: var(--text); }
.about-visual {
  background: linear-gradient(135deg, var(--deep-blue), var(--green));
  border-radius: var(--radius); padding: 40px; min-height: 400px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: white; text-align: center; position: relative; overflow: hidden;
}
.about-visual i { font-size: 64px; margin-bottom: 20px; opacity: 0.9; }
.about-visual h4 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.about-visual p { font-size: 15px; opacity: 0.9; line-height: 1.6; }

/* === SERVICES PAGE === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card {
  background: white; border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--deep-blue); }
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--deep-blue), var(--green));
}
.service-card i { font-size: 28px; color: var(--deep-blue); margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* === PLATFORM SECTION === */
.platform-section { background: linear-gradient(135deg, var(--off-white), #E8F5E9); position: relative; overflow: hidden; }
.platform-section::before {
  content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(39,174,96,0.1) 0%, transparent 70%);
}
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.platform-features { display: flex; flex-direction: column; gap: 16px; }
.platform-feature {
  display: flex; gap: 16px; padding: 20px; background: white;
  border-radius: var(--radius-sm); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.platform-feature i { font-size: 24px; color: var(--deep-blue); flex-shrink: 0; margin-top: 2px; }
.platform-feature h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.platform-feature p { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.platform-visual {
  background: linear-gradient(135deg, var(--deep-blue), var(--green-dark));
  border-radius: var(--radius); padding: 40px; color: white;
  display: flex; flex-direction: column; justify-content: center; min-height: 400px;
}
.platform-visual h3 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.platform-visual p { font-size: 15px; opacity: 0.9; line-height: 1.7; margin-bottom: 24px; }
.platform-visual .platform-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* === CONTACT PAGE === */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 48px; }
.contact-card {
  background: white; border-radius: var(--radius); padding: 28px;
  border: 1.5px solid var(--border); text-align: center;
  transition: all 0.3s; cursor: pointer; text-decoration: none; color: var(--text);
  display: block;
}
.contact-card:hover { border-color: var(--deep-blue); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.contact-card i { font-size: 28px; color: var(--deep-blue); margin-bottom: 12px; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.contact-card p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.contact-card .cc-action {
  display: inline-block; padding: 8px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--deep-blue); background: rgba(11,61,145,0.08);
}
.contact-card:hover .cc-action { background: var(--deep-blue); color: white; }

.contact-form-section {
  background: white; border-radius: var(--radius); padding: 40px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.contact-form-section h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.contact-form-section > p { font-size: 14px; color: var(--text-light); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px; color: var(--text);
  background: var(--off-white); transition: all 0.2s; font-family: inherit;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--deep-blue); box-shadow: 0 0 0 3px rgba(11,61,145,0.1);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* === FOOTER === */
.footer {
  background: linear-gradient(135deg, #0a1f4a, var(--deep-blue-dark));
  color: white; padding: 60px 24px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo {
  font-size: 22px; font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(90deg, white, var(--green-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 16px; }
.footer-brand .footer-tagline { font-size: 13px; color: var(--green-light); font-weight: 600; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: white; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a {
  display: block; color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; margin-bottom: 10px; transition: all 0.2s;
}
.footer-col a:hover { color: white; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom .footer-links { display: flex; gap: 20px; }
.footer-bottom .footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; }
.footer-bottom .footer-links a:hover { color: white; }

/* === FAB CHAT === */
.fab-chat {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: white; border: none; font-size: 20px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(39,174,96,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.fab-chat:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(39,174,96,0.5); }
.chat-widget {
  position: fixed; bottom: 90px; right: 24px; z-index: 899;
  width: 360px; max-width: calc(100vw - 48px); height: 480px;
  background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); display: none; flex-direction: column;
  overflow: hidden;
}
.chat-widget.open { display: flex; }
.chat-header {
  background: linear-gradient(135deg, var(--deep-blue), var(--green));
  color: white; padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
.chat-header i { font-size: 20px; }
.chat-header h4 { font-size: 15px; font-weight: 700; }
.chat-header p { font-size: 12px; opacity: 0.8; }
.chat-header .ch-close { margin-left: auto; background: none; border: none; color: white; font-size: 18px; cursor: pointer; }
.chat-body { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.chat-msg.bot { background: var(--light-gray); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-light)); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-footer input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; outline: none; }
.chat-footer input:focus { border-color: var(--deep-blue); }
.chat-footer button { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--green); color: white; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* === TOAST === */
.toast-container { position: fixed; top: 90px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 14px 20px; border-radius: var(--radius-sm); color: white; font-size: 14px;
  font-weight: 500; box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease;
  display: flex; align-items: center; gap: 10px; max-width: 360px;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--deep-blue-light); }
@keyframes toastIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 40px; }
  .about-grid, .platform-grid { grid-template-columns: 1fr; }
  .about-visual, .platform-visual { min-height: 300px; }
  .services-grid, .preview-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .chat-widget { width: calc(100vw - 32px); right: 16px; bottom: 80px; }
  .fab-chat { bottom: 16px; right: 16px; }
  .section { padding: 60px 20px; }
  .slideshow-container { height: 320px; }
}
