/* Medveta public landing — product & patient first */
html { scroll-behavior: smooth; }

.landing {
  background: var(--paper);
  color: var(--ink);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  color: #f4faf7;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 28, 26, 0.12) 0%, rgba(8, 28, 26, 0.78) 100%),
    radial-gradient(1100px 620px at 72% 8%, #2a9d8f 0%, transparent 58%),
    linear-gradient(135deg, var(--hero-from) 0%, var(--hero-mid) 42%, var(--hero-to) 100%);
  animation: wash-shift 20s ease-in-out infinite alternate;
}

.hero-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg, transparent 0 20px, rgba(255, 255, 255, 0.03) 20px 21px
  );
}

@keyframes wash-shift {
  from { filter: saturate(1); }
  to { filter: saturate(1.12); }
}

.hero-nav,
.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: auto;
  padding-top: 0.5rem;
}

.wordmark { height: 40px; width: auto; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-actions a {
  color: #f4faf7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: background 0.15s;
}

.nav-actions a:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }

.nav-actions a.nav-cta {
  background: var(--teal-bright);
  color: #fff;
}

.nav-actions a.nav-cta:hover { background: #157a6f; }

.hero-copy {
  max-width: 40rem;
  margin-top: clamp(2rem, 6vw, 4rem);
  animation: rise 0.9s ease both;
}

.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.85;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-copy .lede {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.6;
  opacity: 0.92;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

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

.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }

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

/* ── Sections ── */
.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3rem);
}

.section-intro { max-width: 42rem; margin-bottom: 2rem; }

.section-intro h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ── Product cards ── */
.product-section {
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-bright);
  margin-bottom: 0.85rem;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.product-patient .product-icon { background: #e4f5f0; color: #0e6b5e; }
.product-doctor .product-icon { background: #e8f0f8; color: #1a5276; }
.product-desktop .product-icon { background: #f0ebe4; color: #6b5344; }

.product-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-tagline {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-features {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  flex: 1;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.product-features li { margin-bottom: 0.35rem; }

.product-cta { margin-top: auto; }

.product-fallback {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ── Values ── */
.values-section {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line-soft);
}

.value-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--teal);
}

.value-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Directory ── */
.directory-section { background: #fff; }

.directory-search {
  display: block;
  max-width: 420px;
  margin-bottom: 1.5rem;
}

.directory-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.directory-search input:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.hospital-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.hospital-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.hospital-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.hospital-meta {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hospital-link {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.hospital-link:hover { text-decoration: underline; }

.directory-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.directory-empty p { margin: 0 0 0.5rem; }

/* ── Footer ── */
.site-footer {
  background: var(--hero-from);
  color: rgba(244, 250, 247, 0.85);
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo { height: 32px; margin-bottom: 0.65rem; filter: brightness(0) invert(1); opacity: 0.9; }

.footer-brand p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.footer-links a {
  color: #f4faf7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover { text-decoration: underline; }

.footer-bottom {
  max-width: 72rem;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.footer-bottom p { margin: 0; opacity: 0.65; }
.footer-bottom a { color: rgba(244, 250, 247, 0.75); }

.footer-operator {
  opacity: 0.45;
  font-size: 0.78rem;
  text-decoration: none;
  color: #f4faf7;
}

.footer-operator:hover { opacity: 0.75; text-decoration: underline; }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-copy h1 br { display: none; }
  .footer-inner { flex-direction: column; }
}
