/* Olive Farm marketing — matches auth chrome (#00A651) + platform Inter */

:root {
  --landing-accent: #00a651;
  --landing-accent-hover: #008f45;
  --landing-ink: #0f1a12;
  --landing-muted: rgba(255, 255, 255, 0.88);
  --landing-wash: #f0fdf4;
  --landing-surface: #ffffff;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --header-h: 4rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--landing-ink);
  background: var(--landing-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--landing-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Header (minimal; brand still dominates hero) ── */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  height: var(--header-h);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.brand-mark--footer {
  color: var(--landing-ink);
  text-shadow: none;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 0.65rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease,
    transform 160ms var(--ease-out);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn--compact {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--landing-accent);
  color: #fff;
  border-color: var(--landing-accent);
}

.btn--primary:hover {
  background: var(--landing-accent-hover);
  border-color: var(--landing-accent-hover);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

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

/* ── Hero (one composition, full-bleed) ── */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

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

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: hero-drift 28s var(--ease-out) infinite alternate;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 20, 12, 0.45) 0%,
      rgba(8, 20, 12, 0.25) 35%,
      rgba(8, 20, 12, 0.72) 78%,
      rgba(8, 20, 12, 0.88) 100%
    ),
    linear-gradient(90deg, rgba(8, 20, 12, 0.55) 0%, rgba(8, 20, 12, 0.15) 55%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 1.25rem 4.5rem;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero__headline {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.96);
}

.hero__support {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--landing-muted);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__ctas--ready .btn--primary {
  animation: cta-glow 1.8s var(--ease-out) 1;
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 166, 81, 0);
  }
  40% {
    box-shadow: 0 10px 28px rgba(0, 166, 81, 0.35);
  }
}

/* Entrance */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.7s var(--ease-out) forwards;
}

.reveal--delay-1 {
  animation-delay: 0.12s;
}

.reveal--delay-2 {
  animation-delay: 0.22s;
}

.reveal--delay-3 {
  animation-delay: 0.34s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__image {
    animation: none;
    transform: scale(1.04);
  }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__ctas--ready .btn--primary {
    animation: none;
  }

  .btn {
    transition: none;
  }
}

/* ── About (single purpose, below fold) ── */
.about {
  background: var(--landing-wash);
  padding: 4.5rem 1.25rem;
}

.about__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.about h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.about p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #334155;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(15, 26, 18, 0.08);
  padding: 1.75rem 1.25rem;
  background: #fff;
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer__note {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.site-footer__note a {
  color: var(--landing-accent);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__note a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .site-nav .btn--ghost {
    display: none;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__ctas .btn {
    width: 100%;
  }
}
