/* Lumbrix — lumbrix.com.py
   Palette from the Manual de Identidad. */

@font-face { font-family: "Mulish"; src: url("../fonts/mulish-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../fonts/mulish-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --green: #3c683b;
  --lime: #90af39;
  --sage: #c8d1a3;
  --soil: #382817;
  --ink: #222221;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Mulish", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 0%, #fff 0%, transparent 60%),
    linear-gradient(to bottom, #f6f4ea 0%, var(--sage) 100%);
}

.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

/* Grass strip along the bottom, behind the content (js/grass.js). */
.grass {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: clamp(80px, 15vh, 140px);
  pointer-events: none;
}
.hero > :not(.grass) { position: relative; }

.logo { width: min(62vw, 280px); height: auto; margin-bottom: 2rem; overflow: visible; cursor: default; }

h1 {
  margin: 0 0 .4rem;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 800;
  color: var(--green);
}

.place {
  display: inline-flex; align-items: center; gap: .35rem;
  margin: 0 0 2.2rem; color: var(--soil); opacity: .75;
  text-decoration: none;
  transition: opacity .2s;
}
.place span {
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .35s ease;
}
.place svg { width: 1.1rem; height: 1.1rem; color: var(--green); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, color .3s;
}
/* colour that sweeps in from the left on hover */
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  transform: translateX(-101%);
  transition: transform .4s cubic-bezier(.65, 0, .35, 1);
}
.btn svg { width: 1.25rem; height: 1.25rem; transition: transform .3s; }

.btn-wa { background: var(--green); color: #fff; }
.btn-wa::before { background: var(--lime); }
.btn-ig { background: #fff; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-ig::before { background: var(--green); }

/* Hover animations (only on devices with a real pointer) */
@media (hover: hover) {
  /* Logo: plant sways from its base, leaves brighten pair by pair,
     letters do a wave. The soil stays put. */
  .plant, .word path { transform-box: fill-box; }
  .plant { transform-origin: 50% 100%; }
  .leaf { transition: fill .35s ease; }

  .logo:hover .plant { animation: sway 1.6s ease-in-out; }
  .logo:hover .leaf { fill: #a3cf35; }
  .logo:hover .l2 { transition-delay: .1s; }
  .logo:hover .l3 { transition-delay: .2s; }
  .logo:hover .word path { animation: wave .6s ease-in-out calc(var(--i) * 60ms); }

  .place:hover { opacity: 1; }
  .place:hover span { background-size: 100% 1px; }
  .place:hover svg { animation: hop .6s ease; }

  .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -8px rgba(60, 104, 59, .55); }
  .btn:hover::before { transform: translateX(0); }
  .btn-ig:hover { color: #fff; }
  .btn-wa:hover svg { animation: ring .6s ease; }
  .btn-ig:hover svg { transform: scale(1.2) rotate(-8deg); }
}

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

@keyframes sway {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-5deg); }
  45% { transform: rotate(4deg); }
  70% { transform: rotate(-2deg); }
  85% { transform: rotate(1deg); }
}
@keyframes wave {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-14%); }
}
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  70% { transform: translateY(1px); }
}
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  20%, 60% { transform: rotate(-14deg); }
  40%, 80% { transform: rotate(14deg); }
}

.site-footer {
  background: var(--soil);
  color: rgba(255,255,255,.7);
  text-align: center;
  font-size: .8rem;
  padding: 1rem;
}
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
