/* Healorithm — SmartMedics marketing site
   Palette from SmartMedics app.css */

:root {
  --bg: #F5F4EF;
  --panel: #FFFFFF;
  --ink: #1C1B17;
  --ink-2: #56524A;
  --ink-3: #928D81;
  --line: #E5E3DA;
  --line-2: #F0EEE7;
  --brand: #F5B700;
  --brand-hover: #D89F00;
  --brand-tint: #FDF3D2;
  --brand-ink: #2C2400;
  --dark: #211F1B;
  --dark-2: #2C2923;
  --side-ink: #A6A199;
  --shadow: 0 1px 2px rgba(28, 27, 23, 0.04), 0 6px 16px rgba(28, 27, 23, 0.06);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.35rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(33, 31, 27, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-name span {
  color: var(--brand);
}

.logo-product {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--side-ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
  color: var(--side-ink);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav a[aria-current="page"] {
  color: var(--brand);
}

.nav-cta {
  margin-left: 0.5rem !important;
  background: var(--brand) !important;
  color: var(--brand-ink) !important;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
}

.nav-cta:hover {
  background: var(--brand-hover) !important;
  color: var(--brand-ink) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--dark-2);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(33, 31, 27, 0.35) 0%, rgba(33, 31, 27, 0.88) 75%),
    linear-gradient(90deg, rgba(33, 31, 27, 0.75) 0%, rgba(33, 31, 27, 0.25) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
  max-width: 38rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.hero .lead {
  font-size: 1.15rem;
  color: rgba(243, 241, 233, 0.85);
  max-width: 32rem;
}

/* —— Page hero (inner) —— */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(245, 183, 0, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero h1 {
  color: #fff;
}

.page-hero .lead {
  color: var(--side-ink);
  max-width: 36rem;
  font-size: 1.1rem;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p {
  color: var(--side-ink);
}

.section-tint {
  background: var(--brand-tint);
}

.section-panel {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  margin-bottom: 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-ink-2, #6B5600);
  margin-bottom: 0.65rem;
}

.section-dark .section-label {
  color: var(--brand);
}

/* —— Stats —— */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.stat {
  padding: 1.25rem 0;
  border-top: 2px solid var(--brand);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  line-height: 1.1;
}

.section-dark .stat-value {
  color: #fff;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-top: 0.35rem;
}

.section-dark .stat-label {
  color: var(--side-ink);
}

/* —— Cards / grids —— */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-dark {
  background: var(--dark-2);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-dark:hover {
  border-color: var(--brand);
}

.card-dark p {
  color: var(--side-ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--line-2);
  color: var(--ink-2);
}

.card-dark .tag {
  background: rgba(245, 183, 0, 0.12);
  color: var(--brand);
}

/* —— Split —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--line);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

/* —— Feature rows —— */
.feature-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand);
  line-height: 1;
}

/* —— Tech chips —— */
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.9rem;
  color: var(--ink-2);
  font-weight: 500;
}

.section-dark .chip {
  background: var(--dark-2);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--side-ink);
}

/* —— Editions —— */
.edition {
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  height: 100%;
}

.edition.featured {
  border-color: var(--brand);
  background: linear-gradient(165deg, var(--brand-tint) 0%, var(--panel) 45%);
  box-shadow: var(--shadow);
}

.edition .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: var(--brand);
  color: var(--brand-ink);
  margin-bottom: 1rem;
}

.edition h3 {
  font-size: 1.5rem;
}

.edition ul {
  margin-top: 1.25rem;
}

.edition li {
  padding: 0.4rem 0;
  color: var(--ink-2);
  padding-left: 1.25rem;
  position: relative;
}

.edition li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--brand);
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.25rem;
}

.contact-item dd {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.35rem;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: #E7F4E8;
  color: #2E6B33;
  border-radius: 10px;
  margin-top: 1rem;
}

.form-success.is-visible {
  display: block;
}

/* —— CTA band —— */
.cta-band {
  padding: 4rem 0;
  background: var(--dark);
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--side-ink);
  max-width: 28rem;
  margin: 0 auto 1.75rem;
}

/* —— Footer —— */
.site-footer {
  background: #16140F;
  color: var(--side-ink);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-name {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  color: var(--side-ink);
  max-width: 22rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  color: var(--side-ink);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* —— Reveal animation —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Module map —— */
.module-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.module-pill {
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .stats,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .split,
  .contact-grid,
  .footer-grid,
  .module-map {
    grid-template-columns: 1fr;
  }

  .split-media {
    order: -1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--dark);
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
    justify-content: center;
  }

  .stats,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }
}
