/* ============================================================
   HOIVA HEALTH — landing page styles
   Palette and type match the established brand: deep sage +
   warm oak, Cormorant Garamond + Jost. Background color is
   matched exactly to the logo's own backdrop.
   ============================================================ */

:root {
  --sage: #4E7265;
  --sage-dark: #34493F;
  --oak: #C8A97A;
  --oak-light: #E7D9BC;
  --ink: #1C2420;

  --font-display: "Cormorant Garamond", serif;
  --font-body: "Jost", sans-serif;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

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

/* ============================================================
   Landing page (index.html)
   ============================================================ */

body.landing-body {
  background: #577267;
  min-height: 100vh;
}

.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.landing-inner {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
}

.landing-logo {
  width: 120px;
  height: auto;
  margin-bottom: 0.25rem;
}

.landing-wordmark {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #F5F1E6;
  margin-top: -0.6rem;
}

.landing-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  color: #F5F1E6;
  margin: 0;
}

.landing-subhead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: #F5F1E6;
  opacity: 0.88;
  max-width: 30rem;
  margin: 0;
}

.landing-badge {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oak);
  border: 1px solid rgba(200, 169, 122, 0.55);
  padding: 0.6em 1.3em;
  border-radius: 100px;
  margin: 0;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  background: var(--oak);
  color: #1D2620;
  padding: 0.9em 2.2em;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 0.4rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.landing-cta:hover {
  background: var(--oak-light);
  transform: translateY(-1px);
}
.landing-cta:focus-visible {
  outline: 2px solid #F5F1E6;
  outline-offset: 3px;
}

.photo-cycle {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1.75rem;
  border: 1px solid rgba(245, 241, 230, 0.18);
}

.photo-cycle-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: photoCycle 24s infinite;
}
.photo-cycle-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(87, 114, 103, 0.32);
}
.photo-cycle-slide:nth-child(1) { animation-delay: 0s; }
.photo-cycle-slide:nth-child(2) { animation-delay: 6s; }
.photo-cycle-slide:nth-child(3) { animation-delay: 12s; }
.photo-cycle-slide:nth-child(4) { animation-delay: 18s; }

@keyframes photoCycle {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  21%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-cycle-slide {
    animation: none !important;
    opacity: 0 !important;
  }
  .photo-cycle-slide:first-child {
    opacity: 1 !important;
  }
}

@media (max-width: 480px) {
  .landing-logo { width: 96px; }
}
