﻿/* =========================================================
   Heim Health — main.css
   Light theme | Accent: #0891b2
   ========================================================= */

/* --- Variables --- */
:root {
  --bg: #f8fafa;
  --surface: #ffffff;
  --text: #1a2e2e;
  --text-muted: #4a6a6a;
  --accent: #0891b2;
  --accent-dark: #0670a0;
  --border: rgba(0,0,0,0.08);
  --radius: 12px;
  --gap: 3em;
  --sidebar-w: 0px;
  --funding-bar-h: 0px;
  --nav-height: 4.5em;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.9;
}

img { max-width: 100%; height: auto; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --- */
h1 { font-size: 3.6rem; font-weight: 700; line-height: 1.1; color: var(--text); }
h2 { font-size: 2.5rem; font-weight: 700; line-height: 1.3; color: var(--text); }
h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.4; color: var(--text); }
h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.5; color: var(--text); }
p, li { font-size: 1.1rem; line-height: 1.9; }
.label, .tag, .meta { font-size: 0.9rem; }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2em; }
.section { padding: 6em 0; }
.section-sm { padding: 4em 0; }
.section-header { text-align: center; margin-bottom: 3em; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 1em auto 0; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3em; align-items: center; }

/* --- Funding Bar --- */
#funding-bar { color: #fff !important; }

/* --- Navbar --- */
.site-navbar {
  position: fixed;
  top: var(--funding-bar-h, 0px);
  left: 0;
  right: 0;
  width: 100%;
  min-height: 4.5em;
  z-index: 9999;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2.5em;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.site-navbar .navbar-brand { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.site-navbar .navbar-brand svg { display: block; }

.nav-menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  gap: 0;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  height: 4.5em;
  padding: 0 1.2em;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.current a { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 0.5em;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

#page-wrapper { padding-top: 4.5em; }

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.85em 2.2em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.8em 2.2em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* --- Hero --- */
#hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--bg);
  padding: 8em 4em 6em;
  position: relative;
  overflow: hidden;
}

#hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-main.jpg') center top / cover no-repeat;
  z-index: 0;
}
#hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
}

#hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6em;
  align-items: center;
}

#hero .hero-label {
  color: var(--accent);
  font-size: 0.72em;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5em;
  font-weight: 600;
}

#hero h1 { color: var(--text); margin-bottom: 0.8em; }

#hero .hero-tagline {
  color: var(--text-muted);
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 480px;
}

#hero .hero-right p {
  color: var(--text-muted);
  font-size: 0.95em;
  line-height: 1.9;
  margin-bottom: 2.5em;
}

#hero .hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
}

/* --- Funding Bar on index --- */
.funding-notice {
  background: rgba(8,145,178,0.08);
  border: 1px solid rgba(8,145,178,0.2);
  border-radius: var(--radius);
  padding: 1.5em 2em;
  display: flex;
  align-items: center;
  gap: 1.5em;
  margin-bottom: 2em;
}
.funding-notice .funding-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: 4px;
  white-space: nowrap;
}
.funding-notice p { margin: 0; font-size: 0.9em; color: var(--text-muted); }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--accent);
  color: #fff;
  padding: 3em 2em;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.stat-item .stat-label {
  font-size: 0.88em;
  opacity: 0.88;
  margin-top: 0.4em;
}

/* --- Features Grid --- */
.features-section { background: var(--surface); }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 8px 32px rgba(8,145,178,0.1); transform: translateY(-2px); }
.feature-card .icon {
  width: 64px;
  height: 64px;
  background: rgba(8,145,178,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5em;
  font-size: 1.6em;
  color: var(--accent);
}
.feature-card h3 { margin-bottom: 0.8em; font-size: 1.2rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95em; }

/* --- Section alt bg --- */
.section-alt { background: var(--surface); }

/* --- Platform feature rows --- */
.platform-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
  padding: 4em 0;
  border-bottom: 1px solid var(--border);
}
.platform-feature:last-child { border-bottom: none; }
.platform-feature.reverse { direction: rtl; }
.platform-feature.reverse > * { direction: ltr; }
.platform-feature .feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}
.platform-feature .feature-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}
.platform-feature .feature-text h3 { margin-bottom: 1em; }
.platform-feature .feature-text p { color: var(--text-muted); }
.platform-feature .feature-text ul { list-style: none; padding: 0; margin-top: 1em; }
.platform-feature .feature-text ul li {
  padding: 0.4em 0 0.4em 1.8em;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95em;
}
.platform-feature .feature-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- How it works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2.5em;
  counter-reset: step;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  position: relative;
}
.step-num {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(8,145,178,0.15);
  line-height: 1;
  margin-bottom: 1em;
}
.step-card h3 { margin-bottom: 0.6em; font-size: 1.2rem; }
.step-card p { color: var(--text-muted); font-size: 0.95em; }

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2em;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
}
.testimonial-card blockquote {
  color: var(--text-muted);
  font-size: 0.95em;
  line-height: 1.8;
  margin-bottom: 1.5em;
  border: none;
  padding: 0;
}
.testimonial-card .cite {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9em;
}
.testimonial-card .cite span { color: var(--text-muted); font-weight: 400; }

/* --- CTA Section --- */
.cta-section {
  background: var(--accent);
  color: #fff;
  padding: 5em 2em;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 0.8em; }
.cta-section p { color: rgba(0,0,0,0.60); max-width: 600px; margin: 0 auto 2em; }
.cta-section .btn-white {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  padding: 0.85em 2.5em;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cta-section .btn-white:hover { opacity: 0.9; text-decoration: none; }

/* --- About Page --- */
body.page-about .page-hero,
body.page-solutions .page-hero,
body.page-contact .page-hero,
body.page-team .page-hero,
body.page-resources .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
  z-index: 0;
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.page-hero .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero .page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero .page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248,250,250,0.88);
}
.page-hero .page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 8em 2em 5em;
  text-align: center;
}
.page-hero .hero-label {
  color: var(--accent);
  font-size: 0.75em;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1em;
  display: block;
}
.page-hero h1 { color: var(--text); margin-bottom: 0.8em; font-size: 3rem; }
.page-hero p { color: var(--text-muted); font-size: 1.1em; }

/* Story section */
.spotlight-section { padding: 6em 0; background: var(--surface); }
.spotlight-inner {
  display: flex;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}
.story-img { flex-shrink: 0; width: 45%; }
.story-img img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.story-text { flex: 1; }
.story-text h2 { margin-bottom: 1em; }
.story-text p { color: var(--text-muted); margin-bottom: 1em; }

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.team-card { text-align: center; }
.team-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 1.2em;
  border: 4px solid var(--border);
}
.team-card h3 { margin-bottom: 0.3em; font-size: 1.3rem; }
.team-card .title {
  color: var(--accent);
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.8em;
}
.team-card p { color: var(--text-muted); font-size: 0.95em; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  max-width: 900px;
  margin: 0 auto;
}
.contact-info h3 { color: var(--accent); font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6em; margin-top: 2em; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--text-muted); font-size: 1em; line-height: 1.7; }
.contact-info a { color: var(--accent); }
.contact-message h3 { margin-bottom: 1em; }
.contact-message p { color: var(--text-muted); margin-bottom: 2em; font-size: 1em; }

/* --- Resources (empty shell) --- */
.resources-empty {
  text-align: center;
  padding: 8em 2em;
}
.resources-empty p { color: var(--text-muted); max-width: 500px; margin: 1em auto 2em; }

/* --- Footer --- */
#footer { width: 100%; background: var(--surface); border-top: 1px solid var(--border); }
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3em 4em;
  gap: 3em;
}
#footer h3 { font-size: 1.2rem; margin-bottom: 0.8em; }
#footer h4 { font-size: 1rem; margin-bottom: 1em; color: var(--text); }
#footer p { color: var(--text-muted); font-size: 0.95em; line-height: 1.7; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.6em; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9em; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 0.82em; color: var(--text-muted); margin-top: 1em; }

/* --- Cookie Banner --- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.2em 2em;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; }
.cookie-text strong { font-size: 1rem; color: var(--text); }
.cookie-text p { font-size: 0.88rem; color: var(--text-muted); margin: 0.4em 0 0; line-height: 1.6; }
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 0.8em; flex-shrink: 0; }
#cookie-decline {
  padding: 0.6em 1.4em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
}
#cookie-accept {
  padding: 0.6em 1.4em;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}
#cookie-accept:hover { background: var(--accent-dark); }

/* --- Article typography --- */
.article-body, .post-content { max-width: 720px; margin: 0 auto; }
.article-body p, article p { margin-bottom: 1.4em; line-height: 1.9; }
.article-body h2, article h2 { margin-top: 2.2em; margin-bottom: 0.8em; }
.article-body h3, article h3 { margin-top: 1.8em; margin-bottom: 0.6em; }
.article-body ul, .article-body ol { margin-bottom: 1.4em; padding-left: 1.8em; }
.article-body li, article li { margin-bottom: 0.5em; line-height: 1.85; }

/* --- Investors section --- */
#investors { padding: 5em 0; background: var(--surface); }
#investors .investor-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
#investors .investor-card h3 { margin-bottom: 0.5em; }
#investors .investor-card p { color: var(--text-muted); }
#investors .investor-badge {
  display: inline-block;
  background: rgba(8,145,178,0.1);
  color: var(--accent);
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4em 1em;
  border-radius: 20px;
  margin-bottom: 1.2em;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--funding-bar-h, 0px) + 4.5em);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 9998;
    padding: 1em 0;
  }
  .nav-menu.open li a { height: auto; padding: 0.8em 2em; }
}

@media (max-width: 768px) {
  #hero { padding: 7em 2em 4em; }
  #hero .hero-inner { grid-template-columns: 1fr; gap: 3em; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .platform-feature { grid-template-columns: 1fr; }
  .platform-feature.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2em; }
  .spotlight-inner { flex-direction: column; }
  .story-img { width: 100%; }
  #footer .inner { grid-template-columns: 1fr; padding: 2em; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  body { font-size: 16px; }
  .stats-bar .container { grid-template-columns: repeat(2,1fr); }
  .page-hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .stats-bar .container { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}


.hero-section h1, .hero-section h2,
.page-hero h1, .page-hero h2, .page-hero .page-title {
  color: #ffffff !important;
}
.hero-section p, .hero-section .hero-tagline,
.page-hero p, .page-hero .page-subtitle {
  color: rgba(0,0,0,0.60) !important;
}
.hero-right p { color: rgba(0,0,0,0.60) !important; }

/* Hero text -- white on dark overlay (all pages) */
.hero-section h1, .hero-section h2, .hero-section h3,
.hero-section p, .hero-section span, .hero-section a:not(.btn),
.hero-section .hero-label, .hero-section .hero-tagline,
.hero-right p, .hero-right h1, .hero-right h2,
.page-hero h1, .page-hero h2, .page-hero h3,
.page-hero p, .page-hero span, .page-hero .page-title, .page-hero .page-subtitle,
#hero h1, #hero h2, #hero p,
#banner h1, #banner h2, #banner p {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.hero-section .hero-label { color: #ffffff !important; opacity: 0.9; }
