/* GroceryX — Family delivery redesign
   Direction: morning market freshness — garden green, soft mist, citrus warmth */

:root {
  --green-deep: #0c4a32;
  --green: #147a4e;
  --green-soft: #dceee4;
  --mist: #f3f7f4;
  --leaf: #1f8f5f;
  --citrus: #d4a017;
  --citrus-deep: #b8860b;
  --ink: #1a2420;
  --ink-soft: #3d4f46;
  --muted: #5c6e64;
  --white: #ffffff;
  --line: rgba(12, 74, 50, 0.12);
  --shadow: 0 24px 60px rgba(12, 74, 50, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

*,
*::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.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--green-deep);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 0.25rem;
}

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

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ——— Header ——— */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}

.brand-mark span {
  color: var(--citrus);
}

.brand-footer .brand-mark {
  font-size: 1.6rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

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

.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.call-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #6dffb0;
  box-shadow: 0 0 0 4px rgba(109, 255, 176, 0.25);
  animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(109, 255, 176, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(109, 255, 176, 0); }
}

@media (min-width: 880px) {
  .nav-links { display: flex; }
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("../img/hero_banner_bg.png") right center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.06) translate(-1%, -0.5%); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 42, 28, 0.82) 0%, rgba(8, 42, 28, 0.52) 42%, rgba(8, 42, 28, 0.18) 72%, rgba(8, 42, 28, 0.08) 100%),
    linear-gradient(to top, rgba(8, 42, 28, 0.45) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  animation: rise 0.9s var(--ease) both;
}

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.85rem;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.0625rem;
  font-weight: 350;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
  max-width: 34ch;
}

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

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.35rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover {
  background: #e6b01f;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-secondary {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green);
}

.btn-secondary:hover {
  background: var(--green-soft);
}

.btn-lg {
  padding: 1.05rem 1.75rem;
  font-size: 1rem;
}

/* ——— Trust strip ——— */

.trust-strip {
  padding: 1.75rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-row {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.trust-row p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.trust-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.2rem;
}

@media (min-width: 720px) {
  .trust-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
  }
}

/* ——— Sections ——— */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-head.align-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin-bottom: 0.75rem;
  color: var(--green-deep);
}

.section-head p {
  color: var(--muted);
  font-size: 1.0625rem;
}

.section-head-light h2 {
  color: var(--white);
}

.section-head-light p {
  color: rgba(255, 255, 255, 0.78);
}

/* ——— Steps ——— */

.steps {
  display: grid;
  gap: 2rem;
  counter-reset: none;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.step {
  position: relative;
  padding-top: 0.5rem;
  animation: rise 0.8s var(--ease) both;
}

.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.2s; }

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green-soft);
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--green-deep);
}

.step p {
  color: var(--muted);
  font-size: 0.9875rem;
}

/* ——— Fresh categories ——— */

.section-fresh {
  background:
    linear-gradient(160deg, #0c4a32 0%, #147a4e 55%, #0f5c3a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-fresh::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.18), transparent 65%);
  pointer-events: none;
}

.fresh-grid {
  position: relative;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

@media (min-width: 700px) {
  .fresh-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .fresh-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fresh-grid li {
  padding: 1.75rem 1.25rem 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 700px) {
  .fresh-grid li {
    padding: 2rem 1.5rem 2rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .fresh-grid li:nth-child(2n) {
    padding-right: 0;
    padding-left: 1.5rem;
    border-right: none;
  }
}

@media (min-width: 980px) {
  .fresh-grid li {
    padding: 2rem 1.75rem 0.25rem 0;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .fresh-grid li:nth-child(2n) {
    padding-left: 0;
    padding-right: 1.75rem;
  }

  .fresh-grid li:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.fresh-grid h3 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.fresh-grid p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

/* ——— Family promise ——— */

.family-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .family-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.promise-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.promise-list li {
  display: grid;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--citrus);
}

.promise-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-deep);
}

.promise-list span {
  color: var(--muted);
  font-size: 0.975rem;
}

.family-visual {
  margin: 0;
  display: flex;
  justify-content: center;
  animation: floaty 6s ease-in-out infinite;
}

.family-visual img {
  width: min(100%, 420px);
  filter: drop-shadow(0 28px 40px rgba(12, 74, 50, 0.18));
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ——— Order / share ——— */

.section-share {
  background: var(--white);
  padding-top: 0;
}

.share-panel {
  background:
    linear-gradient(135deg, var(--green-soft) 0%, #eef6f1 50%, #f7faf8 100%);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.share-panel::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(20, 122, 78, 0.12), transparent 70%);
  pointer-events: none;
}

.share-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.share-nudge {
  position: relative;
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.share-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.75rem;
}

.share-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.share-links a:hover {
  color: var(--green-deep);
  border-bottom-color: var(--green);
}

.app-row {
  position: relative;
  display: flex;
  justify-content: center;
}

.app-row img {
  height: 42px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.app-row a:hover img {
  opacity: 1;
}

/* ——— Footer ——— */

.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 22ch;
  line-height: 1.6;
}

.footer-grid h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.85rem;
}

.footer-grid ul {
  display: grid;
  gap: 0.45rem;
}

.footer-grid a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-legal a,
.footer-copy {
  font-size: 0.8rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.15rem 0 1.5rem;
  text-align: center;
}

.footer-copy p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ——— Mobile polish ——— */

@media (max-width: 560px) {
  .hero {
    min-height: 92vh;
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  .hero-brand {
    font-size: 2.6rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .share-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media,
  .family-visual,
  .call-dot,
  .hero-content,
  .step {
    animation: none !important;
  }
}
