/* ═══════════════════════════════════════════════════════════════
   lucidact.css — Shared base styles for all Lucidact pages
   Used by: index.html, providers.html, patients.html, partners.html
   ═══════════════════════════════════════════════════════════════ */

/* ─── GOOGLE FONTS ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ─── CSS VARIABLES ──────────────────────────────── */
:root {
  --blue:        #0aafaa;
  --blue-light:  #17c8c2;
  --blue-pale:   #e8fafa;
  --green:       #5bbf3c;
  --green-light: #7dd144;
  --green-pale:  #edfae6;
  --navy:        #072424;
  --navy-mid:    #0d3535;
  --navy-card:   #0f3c3c;
  --slate:       #3d6060;
  --slate-light: #7aa8a8;
  --body-bg:     #ffffff;
  --gray-50:     #f4fafa;
  --gray-100:    #eaf5f5;
  --gray-200:    #cce5e5;
  --text-dark:   #061a1a;
  --text-mid:    #1f4040;
  --text-soft:   #527070;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(10,175,170,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(10,175,170,.12);
  --shadow-lg:   0 10px 40px rgba(10,175,170,.15);
  --font-body:   'DM Sans', sans-serif;
  --font-display:'DM Serif Display', serif;
}

/* ─── RESET & BASE ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--body-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { color: inherit; }

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1 { font-size: clamp(30px, 4.5vw, 52px); line-height: 1.15; font-weight: 400; }
h2 { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2;  font-weight: 400; }
h3 { font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; line-height: 1.35; }
h4 { font-size: 15px; font-weight: 600; }
p  { font-size: clamp(14px, 1.2vw, 17px); }

/* ─── LAYOUT ─────────────────────────────────────── */
.container { width: 92%; max-width: 1240px; margin: 0 auto; }
section { padding: 96px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(10,175,170,.28);
}
.btn-primary:hover { background: #089490; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(10,175,170,.35); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--blue); color: var(--blue);
  padding: 11px 24px; border-radius: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
}
.btn-outline:hover { background: var(--blue-pale); transform: translateY(-1px); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue);
  padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-white:hover { background: var(--blue-pale); transform: translateY(-1px); }

.btn-white-outline {
  display: inline-flex; align-items: center;
  border: 2px solid rgba(255,255,255,.6); color: #fff;
  padding: 11px 24px; border-radius: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-white-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 0; height: 68px; gap: 24px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-mid); font-weight: 500; font-size: 14.5px; padding: 6px 12px; border-radius: 6px; transition: color .15s, background .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); background: var(--blue-pale); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-dark); }
.menu-toggle svg { display: block; }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 16px 0 20px; border-top: 1px solid var(--gray-200); }
.mobile-nav.open { display: flex; }
.mobile-nav a { text-decoration: none; color: var(--text-mid); font-weight: 500; padding: 10px 12px; border-radius: 8px; font-size: 15px; transition: background .15s, color .15s; }
.mobile-nav a:hover { background: var(--blue-pale); color: var(--blue); }
.mobile-nav .mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* ─── SECTION LABELS ─────────────────────────────── */
.section-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-intro { text-align: center; margin-bottom: 56px; }
.section-intro p { max-width: 560px; margin: 10px auto 0; font-size: 17px; }

/* ─── SHARED HERO ELEMENTS ───────────────────────── */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-pale); border: 1px solid rgba(10,175,170,.2);
  color: var(--blue); font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 50px; margin-bottom: 20px; letter-spacing: .3px;
}
.hero-eyebrow::before { content: ''; width: 7px; height: 7px; background: var(--blue-light); border-radius: 50%; display: inline-block; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 32px; font-size: 13px; color: var(--text-soft); flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 5px; }
.hero-trust-item::before { content: '✓'; color: var(--blue); font-weight: 700; }

/* ─── VISUAL BLOCK ───────────────────────────────── */
.visual-block {
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #e0f7f6 0%, #edfaf4 100%);
  display: flex; align-items: center; justify-content: center;
  min-height: 380px; position: relative;
}

/* ─── FEATURE CARDS ──────────────────────────────── */
.feature-card {
  background: var(--body-bg); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(10,175,170,.3); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 8px; color: var(--text-dark); }
.feature-card p  { font-size: 14.5px; color: var(--text-soft); margin: 0; }

/* ─── STEP CARDS (How It Works) ──────────────────── */
.how-it-works { background: var(--navy); }
.how-it-works .section-label    { color: #4dd9d4; }
.how-it-works .section-intro h2 { color: white; }
.how-it-works .section-intro p  { color: var(--slate-light); }
.step-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 32px 28px;
  transition: background .2s, border-color .2s, transform .2s; position: relative;
}
.step-card:hover { background: rgba(10,175,170,.12); border-color: rgba(10,175,170,.4); transform: translateY(-3px); }
.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; margin-bottom: 20px;
}
.step-card h3 { color: #f0fafa; margin-bottom: 8px; font-size: 18px; }
.step-card p  { color: var(--slate-light); font-size: 14.5px; margin: 0; }

/* ─── BORDER CARDS ───────────────────────────────── */
.border-card {
  border-left: 3px solid var(--blue);
  background: var(--gray-50); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin-bottom: 12px;
  transition: border-color .2s, background .2s;
}
.border-card:hover { border-color: var(--blue-light); background: var(--blue-pale); }
.border-card:last-of-type { margin-bottom: 0; }
.border-card strong { color: var(--text-dark); display: block; margin-bottom: 2px; }
.border-card span   { font-size: 14px; color: var(--text-soft); }

/* ─── TRUST SECTION ──────────────────────────────── */
.trust-section { background: white; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }
.trust-badge {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 20px 28px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px; color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s;
}
.trust-badge:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.trust-badge-icon { font-size: 24px; }

/* Pill strips used on multiple pages */
.logo-strip    { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; margin-top: 40px; }
.provider-strip{ display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; margin-top: 40px; }
.partner-strip { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; margin-top: 40px; }

.logo-pill {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px 28px;
  font-weight: 700; font-size: 14px; color: var(--text-soft); letter-spacing: .5px;
}
.provider-pill {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 14px 24px;
  font-weight: 600; font-size: 14px; color: var(--text-soft); letter-spacing: .3px;
}
.partner-chip {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 14px 24px;
  font-weight: 600; font-size: 14px; color: var(--text-soft);
  letter-spacing: .3px; display: flex; align-items: center; gap: 8px;
}

/* ─── CTA BANNER ─────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #089490 0%, #0aafaa 50%, #3da828 100%);
  padding: 80px 0; text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 14px; }
.cta-section p  { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────── */
.footer { background: var(--navy); color: #7aa8a8; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(10,175,170,.25);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 18px;
  transition: background .2s, border-color .2s;
}
.footer-brand-card:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(10,175,170,.45);
}
.footer-brand-logo { display: flex; align-items: center; text-decoration: none; }
.footer-brand-logo img {
  height: 32px;
  width: auto;
  display: block;
  opacity: .95;
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: -.3px;
  white-space: nowrap;
}
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; letter-spacing: .3px; }
.footer-col a { display: block; text-decoration: none; color: #7aa8a8; font-size: 14px; margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: #cdf0ee; }
.footer-col p { font-size: 14px; margin-bottom: 8px; }
.footer-address { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.footer-address-icon { flex-shrink: 0; margin-top: 1px; font-size: 14px; }
.footer-address div p { color: #7aa8a8; font-size: 14px; margin: 0 0 3px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(10,175,170,.12); margin-top: 56px; padding: 20px 0; text-align: center; font-size: 13px; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom-inner p { margin: 0; }
.footer-soc2-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .85;
  transition: opacity .2s;
  flex-shrink: 0;
}
.footer-soc2-badge:hover { opacity: 1; }
.footer-soc2-badge img {
  height: 52px;
  width: auto;
  display: block;
}
.footer-soc2-badge span {
  font-size: 11px;
  font-weight: 700;
  color: #7aa8a8;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .footer-bottom-inner { justify-content: center; }
  .footer-soc2-badge { margin-top: 8px; }
}

/* ─── IFRAME PANEL ───────────────────────────────── */
#iframe-panel {
  position: fixed; inset: 0; z-index: 9999;
  display: none; flex-direction: column; background: white;
}
#iframe-panel.active { display: flex; }
.iframe-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px;
  border-bottom: 1px solid var(--gray-200);
  background: white; flex-shrink: 0;
}
.iframe-topbar-left { display: flex; align-items: center; gap: 12px; }
.iframe-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--text-mid); font-size: 14px; font-weight: 600; padding: 6px 0;
}
.iframe-back-btn svg { width: 18px; height: 18px; }
.iframe-title { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.iframe-logo { display: inline-flex; align-items: center; text-decoration: none; }
.iframe-logo img { height: 34px; width: auto; }
.iframe-loading {
  display: flex; align-items: center; justify-content: center;
  flex: 1; background: var(--gray-50); z-index: 1;
}
.iframe-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#main-iframe { position: absolute; top: 56px; left: 0; right: 0; bottom: 0; border: none; width: 100%; height: calc(100% - 56px); }

/* ─── RESPONSIVE: TABLET ─────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ─── RESPONSIVE: MOBILE ─────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions a { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 400px) {
  .grid-5 { grid-template-columns: 1fr; }
}
