/* Sort Flow: Bloom Puzzle — meadow green, petal pink, trellis wood */

:root {
  --meadow: #e8f5e9;
  --meadow-deep: #c8e6c9;
  --leaf: #558b2f;
  --leaf-deep: #33691e;
  --bloom: #e91e8c;
  --bloom-deep: #c2185b;
  --bloom-soft: #f8bbd0;
  --amber: #ffb74d;
  --amber-deep: #f57c00;
  --lavender: #b39ddb;
  --terra: #6d4c41;
  --ink: #1b3a2f;
  --ink-soft: rgba(27, 58, 47, 0.72);
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(85, 139, 47, 0.14);
  --radius: 22px;
  --radius-pill: 999px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --leading-body: 1.72;
  --leading-title: 1.22;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--meadow);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: var(--leading-title);
  font-weight: 700;
}

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

a {
  color: var(--leaf-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

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

/* Ambient meadow */
.meadow-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(233, 30, 140, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 183, 77, 0.12), transparent 50%),
    linear-gradient(180deg, var(--meadow) 0%, var(--meadow-deep) 100%);
}

.petal {
  position: absolute;
  border-radius: 50% 0 50% 50%;
  opacity: 0.35;
  filter: blur(1px);
}

.petal--1 {
  width: 120px;
  height: 120px;
  top: 12%;
  left: 8%;
  background: var(--bloom-soft);
  transform: rotate(-25deg);
}

.petal--2 {
  width: 90px;
  height: 90px;
  top: 45%;
  right: 6%;
  background: rgba(179, 157, 219, 0.45);
  transform: rotate(40deg);
}

.petal--3 {
  width: 70px;
  height: 70px;
  bottom: 18%;
  left: 14%;
  background: rgba(255, 183, 77, 0.4);
  transform: rotate(15deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--bloom);
  outline-offset: 2px;
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

.btn--xl {
  padding: 1rem 1.75rem;
  font-size: 1.1rem;
}

.btn--block {
  width: 100%;
}

.btn--bloom {
  background: linear-gradient(135deg, var(--bloom) 0%, var(--bloom-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.35);
}

.btn--bloom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(233, 30, 140, 0.4);
}

.btn--leaf {
  background: var(--white);
  color: var(--leaf-deep);
  border: 2px solid rgba(85, 139, 47, 0.35);
}

.btn--leaf:hover {
  background: var(--meadow-deep);
  transform: translateY(-1px);
}

/* Vine nav */
.vine-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232, 245, 233, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(85, 139, 47, 0.12);
  transition: box-shadow 0.25s ease;
}

.vine-nav.is-scrolled {
  box-shadow: var(--shadow);
}

.vine-nav__creep {
  width: 100%;
  height: 12px;
  display: block;
  margin-bottom: -4px;
}

.vine-nav__bar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vine-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.vine-nav__brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vine-nav__brand img {
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(27, 58, 47, 0.15);
}

.vine-nav__links {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 1.5rem;
}

.vine-nav__links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.vine-nav__links a:hover {
  color: var(--bloom-deep);
}

.vine-nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vine-nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.vine-nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-sheet {
  position: fixed;
  inset: 0 0 auto 0;
  top: 72px;
  z-index: 99;
  background: var(--white);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.nav-sheet[hidden] {
  display: none !important;
}

.nav-sheet a {
  font-weight: 600;
  color: var(--ink);
  padding: 0.35rem 0;
}

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

  .vine-nav__burger {
    display: none;
  }

  .nav-sheet {
    display: none !important;
  }
}

/* Hero */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.hero__banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.hero__banner img {
  width: 100%;
  object-fit: cover;
}

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

.hero__kicker {
  font-weight: 600;
  color: var(--bloom-deep);
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  margin: 0 0 1rem;
}

.hero h1 span {
  color: var(--leaf);
}

.hero__lead {
  color: var(--ink-soft);
  margin: 0 0 1rem;
  max-width: 36rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__phone {
  position: relative;
  margin: 0;
  max-width: 320px;
  justify-self: center;
}

.hero__phone img {
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(27, 58, 47, 0.22);
  border: 4px solid var(--white);
}

.hero__pot-rim {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 14px;
  background: var(--terra);
  border-radius: 0 0 12px 12px;
  opacity: 0.85;
}

.hero__pollen {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.5;
  z-index: -1;
}

.hero__pollen--left {
  top: 10%;
  left: -10%;
  background: var(--bloom-soft);
}

.hero__pollen--right {
  bottom: 20%;
  right: -15%;
  background: rgba(255, 183, 77, 0.55);
}

@media (min-width: 920px) {
  .hero__garden {
    grid-template-columns: 1fr minmax(260px, 340px);
  }

  .hero__phone {
    justify-self: end;
  }
}

/* Section head */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--leaf);
  margin: 0 0 0.5rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin: 0;
}

.section-head h2 span {
  color: var(--bloom-deep);
}

.section-head__lead {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

/* Pot features */
.pot-features {
  padding: 3.5rem 1.25rem 4rem;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 40%, transparent);
}

.pot-features__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.pot-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pot-card__rim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--terra);
  opacity: 0.75;
}

.pot-card--rose .pot-card__rim {
  background: linear-gradient(90deg, var(--bloom), var(--bloom-deep));
}

.pot-card--sage .pot-card__rim {
  background: linear-gradient(90deg, var(--leaf), var(--leaf-deep));
}

.pot-card--lavender .pot-card__rim {
  background: linear-gradient(90deg, var(--lavender), #7e57c2);
}

.pot-card--amber .pot-card__rim {
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
}

.pot-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--meadow);
  color: var(--leaf-deep);
  margin-bottom: 1rem;
}

.pot-card--rose .pot-card__icon {
  background: var(--bloom-soft);
  color: var(--bloom-deep);
}

.pot-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.pot-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

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

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

/* Trellis screens */
.trellis {
  padding: 3rem 1.25rem 4.5rem;
}

.trellis__frame {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.trellis__lattice {
  width: 100%;
  height: 48px;
  margin-bottom: -20px;
  position: relative;
  z-index: 2;
}

.trellis__row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1.5rem 0.5rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hang-shot {
  flex: 0 0 min(220px, 42vw);
  margin: 0;
  scroll-snap-align: center;
  position: relative;
  padding-top: 28px;
}

.hang-shot--b,
.hang-shot--d {
  transform: translateY(12px);
}

.hang-shot__twine {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 32px;
  background: linear-gradient(180deg, var(--terra), #a1887f);
  transform: translateX(-50%);
  border-radius: 2px;
}

.hang-shot__frame {
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 16px 36px rgba(109, 76, 65, 0.18);
}

.hang-shot__frame img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  width: 100%;
}

@media (min-width: 1100px) {
  .trellis__row {
    justify-content: center;
    overflow-x: visible;
  }

  .hang-shot {
    flex: 0 0 200px;
  }
}

/* Download */
.download {
  padding: 2rem 1.25rem 4rem;
}

.download__bed {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  border: 2px solid rgba(85, 139, 47, 0.15);
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(27, 58, 47, 0.12);
}

.download h2 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.download__lead {
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.download p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 1.25rem;
}

.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer__brand img {
  border-radius: 10px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.footer__links a:hover {
  color: var(--bloom-soft);
}

.footer__copy {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* Modal */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 47, 0.55);
}

.modal__panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.2);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: var(--meadow);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__bloom {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--bloom-soft), var(--bloom));
  transform: rotate(-45deg);
}

.modal__panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.modal__panel p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}