/* RP HealthTech Solutions — landing v1 */

:root {
  --bg: #e8f0ea;
  --bg-deep: #d2e0d6;
  --ink: #121a14;
  --muted: #3a4a40;
  --accent: #1a4d32;
  --accent-mid: #2a6b47;
  --accent-soft: #b8d0c0;
  --surface: #f4f8f5;
  --line: rgba(18, 26, 20, 0.12);
  --hero-overlay: linear-gradient(
    105deg,
    rgba(10, 22, 14, 0.88) 0%,
    rgba(10, 22, 14, 0.55) 48%,
    rgba(10, 22, 14, 0.25) 100%
  );
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 68rem;
}

*,
*::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.55;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(640px 380px at 8% 90%, rgba(42, 107, 71, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--accent-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: white;
  padding: 0.5rem 1rem;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--space);
  background: rgba(244, 248, 245, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-lockup img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 50%;
}

.brand-lockup span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--accent);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
  color: #f4f8f5;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    var(--hero-overlay),
    url("assets/hero-stethoscope.png") center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.2%, -0.6%, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--space), var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 32ch;
  color: rgba(244, 248, 245, 0.92);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: rgba(244, 248, 245, 0.78);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.35rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: #f4f8f5;
  color: var(--accent);
}

.btn-primary:hover {
  background: #fff;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #f4f8f5;
  border-color: rgba(244, 248, 245, 0.45);
}

.btn-ghost:hover {
  border-color: #f4f8f5;
  color: #fff;
}

/* —— Sections —— */
.section {
  width: min(100% - 2 * var(--space), var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 5.5rem) 0;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-lead {
  margin: 0 0 1.75rem;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.product-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem 2rem;
}

@media (min-width: 720px) {
  .product-points {
    grid-template-columns: 1fr 1fr;
  }
}

.product-points li {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.product-points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.product-points span {
  color: var(--muted);
  font-size: 0.98rem;
}

.legacy-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 50ch;
}

.deck-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 50ch;
}

.deck-note a {
  font-weight: 600;
  color: var(--accent-mid);
}

/* —— Founder —— */
.founder {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 780px) {
  .founder {
    grid-template-columns: minmax(12rem, 18rem) 1fr;
    gap: 3rem;
  }
}

.founder-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.15) contrast(1.02);
  animation: rise 1s ease-out 0.15s both;
}

.founder-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 48ch;
}

.founder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  font-weight: 600;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-grid p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
}

input,
textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: var(--surface);
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent-mid);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

form .btn {
  justify-self: start;
  margin-top: 0.35rem;
  cursor: pointer;
  border: none;
}

.form-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-status--ok {
  color: var(--ink);
  font-weight: 600;
}

.form-status--error {
  color: #8b2e2e;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--space) 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-media,
  .hero-content,
  .founder-photo {
    animation: none;
  }
}
