/* ==========================================================================
   FruitStack — components.css
   Header, navigation, buttons, cards, product seals, footer, forms.
   ========================================================================== */

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background-color .18s ease,
              border-color .18s ease, color .18s ease;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 2px 6px rgba(108,92,231,.24), 0 12px 26px rgba(108,92,231,.24);
}
.btn--primary:hover {
  background: var(--purple-600);
  color: #fff;
  box-shadow: 0 4px 10px rgba(108,92,231,.28), 0 20px 40px rgba(108,92,231,.3);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover { border-color: var(--purple-300); color: var(--ink); box-shadow: var(--sh-2); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-800); color: #fff; }

.btn--on-ink {
  background: rgba(255,255,255,.07);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}
.btn--on-ink:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.36); }

.btn--sm { padding: 11px 18px; font-size: .9rem; }
.btn--lg { padding: 17px 30px; font-size: 1.02rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Text link with a moving arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .97rem;
  color: var(--purple-700);
  text-decoration: none;
}
.arrow-link svg { transition: transform .22s ease; }
.arrow-link:hover svg { transform: translateX(4px); }
.section--ink .arrow-link { color: var(--teal); }

/* --- Header / navigation ------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250,251,255,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(11,16,32,.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 112px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--brand-gap, 16px);
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand svg {
  width: var(--brand-mark, 68px);
  height: var(--brand-mark, 68px);
}
.brand-word {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--brand-word, 2.48rem);
  letter-spacing: -.032em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-pill);
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--mist); color: var(--ink); }
.nav-links a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
  background: var(--mist);
}
.nav-cta { flex: none; margin-left: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle:hover { border-color: var(--purple-300); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  padding: 18px var(--gutter) 40px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, transform .24s ease, visibility .24s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav__top { display: flex; align-items: center; min-height: 60px; }
.mobile-nav .brand { --brand-mark: 46px; --brand-word: 1.6rem; --brand-gap: 12px; }
.mobile-nav__close {
  margin-left: auto;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink);
}
.mobile-nav__links { margin-top: 26px; display: flex; flex-direction: column; }
.mobile-nav__links a {
  padding: 17px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav__links a[aria-current='page'] { color: var(--purple); }
.mobile-nav__foot { margin-top: 32px; display: grid; gap: 16px; }
.mobile-nav__foot .btn { justify-content: center; }

@media (max-width: 1240px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .site-header .brand { --brand-mark: 46px; --brand-word: 1.6rem; --brand-gap: 12px; }
  .nav { min-height: 84px; }
}
@media (max-width: 380px) {
  .site-header .brand { --brand-mark: 40px; --brand-word: 1.38rem; }
}

/* --- Cards --------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.4vw, 34px);
  box-shadow: var(--sh-1);
  transition: transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .24s ease, border-color .24s ease;
}
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--purple-100); }
.card--flat { box-shadow: none; }
.card--ink {
  background: var(--ink-800);
  border-color: rgba(255,255,255,.09);
  color: #fff;
  box-shadow: none;
}

.card__title { font-size: var(--t-h3); margin-bottom: 12px; }
.card__body { color: var(--fg-muted); }

/* Capability list with seed markers */
.caps { margin-top: 22px; display: grid; gap: 11px; }
.caps li {
  position: relative;
  padding-left: 20px;
  font-size: .94rem;
  color: var(--gray-700);
}
.caps li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
  opacity: .55;
}
.caps li:nth-child(2)::before { background: var(--teal); }
.caps li:nth-child(3)::before { background: var(--orange); }
.section--ink .caps li { color: rgba(255,255,255,.74); }

/* Grid helpers */
.grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --- Solution icon (minimal, drawn from the seed-grid grammar) ----------- */

.sol-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--mist);
  color: var(--purple);
  margin-bottom: 22px;
}
.sol-icon svg { width: 24px; height: 24px; }
.sol-icon--teal { background: var(--teal-100); color: var(--teal-700); }
.sol-icon--orange { background: var(--orange-100); color: var(--orange-700); }

/* --- Product seals (one shared grammar, per-product accent) -------------- */

.seal {
  width: 44px; height: 44px;
  flex: none;
  color: var(--purple);
}
.seal svg { width: 100%; height: 100%; }
.seal--lg { width: 58px; height: 58px; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.2vw, 30px);
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: inherit;
  transition: transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .24s ease, border-color .24s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: color-mix(in srgb, currentColor 22%, var(--line));
  color: inherit;
}
.product-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product-card__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.product-card__tm { font-size: .62em; vertical-align: super; opacity: .5; font-weight: 600; }
.product-card__desc { color: var(--fg-muted); font-size: .96rem; }
.product-card__tags {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 7px;
}
.tag {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xs);
  padding: 5px 8px;
}

/* Accent classes drive the seal colour and hover border for each product */
.acc-lime        { color: #4fa83d; }
.acc-coconut     { color: #2f7ad0; }
.acc-guava       { color: #d94f7a; }
.acc-papaya      { color: #e07b21; }
.acc-breadfruit  { color: #6f8a3c; }
.acc-soursop     { color: #2f9c8a; }
.acc-starfruit   { color: #c9a415; }
.acc-passion     { color: #8b52c9; }
.acc-pineapple   { color: #d68a12; }
.acc-tamarind    { color: #a06a3d; }
.acc-mango       { color: #e0761c; }

/* --- Footer -------------------------------------------------------------
   A white card on the page field, closed by an oversized ghosted wordmark
   that is clipped by the bottom of the page.
   ------------------------------------------------------------------------ */

.site-footer {
  --fs-radius: clamp(20px, 2.6vw, 36px);
  --fs-ghost: clamp(3rem, 15.5vw, 11.5rem);
  background: var(--soft);
  padding-bottom: 0;
}

.footer-slab {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--fs-radius);
  box-shadow: var(--sh-2);
  padding: clamp(30px, 4vw, 60px) clamp(24px, 3.4vw, 58px) clamp(20px, 2.2vw, 30px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.28fr);
  gap: clamp(30px, 5vw, 76px);
  padding-bottom: clamp(28px, 3.2vw, 44px);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }

/* Brand block */
.footer-brand .brand { color: var(--ink); }
.footer-note {
  margin-top: 22px;
  font-size: .96rem;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 46ch;
}

/* Link columns */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 36px);
}
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px 20px; } }

.footer-col h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.018em;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 13px; }
.footer-col li { font-size: .95rem; color: var(--gray-600); }
.footer-col a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: .95rem;
  transition: color .18s ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-col .footer-email { word-break: break-word; }

/* Bottom bar */
.footer-bottom {
  padding-top: clamp(18px, 2vw, 26px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  font-size: .9rem;
  color: var(--gray-600);
}
.footer-legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.footer-legal a { color: var(--gray-700); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--ink); }
@media (max-width: 680px) { .footer-legal { margin-left: 0; } }

/* Ghosted wordmark, clipped by the foot of the page */
.footer-ghost-wrap {
  overflow: hidden;
  height: calc(var(--fs-ghost) * .64);
  margin-top: clamp(16px, 2.4vw, 34px);
  pointer-events: none;
}
.footer-ghost {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-ghost);
  line-height: .84;
  letter-spacing: -.055em;
  text-align: center;
  color: var(--gray-100);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

/* --- Forms --------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: .89rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.field .opt {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--r-sm);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-500); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(108,92,231,.14);
}
.field input[type='file'] { padding: 11px 12px; background: var(--gray-50); cursor: pointer; }

.field-error {
  font-size: .84rem;
  color: #c02a3f;
  display: none;
  align-items: center;
  gap: 6px;
}
.field-error::before { content: '\2715'; font-size: .7em; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c02a3f; }
.field.has-error .field-error { display: flex; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 17px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--gray-700);
  line-height: 1.55;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--purple); }

/* Honeypot — visually and semantically removed from the flow */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  font-size: .96rem;
}
.form-status.is-visible { display: block; }
.form-status[data-state='success'] {
  background: var(--status-ok-bg);
  border: 1px solid #b6e5d7;
  color: #085f4a;
}
.form-status[data-state='error'] {
  background: #fdecee;
  border: 1px solid #f3c3ca;
  color: #8e1d2d;
}
.form-status strong { display: block; font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 4px; }
