﻿/* =========================================================================
   Homepage — Mid-America Garden inspired storefront layout
   Loaded after site.css, only on index.html (body.home)
   ========================================================================= */

body.home {
  --ink: #1f2a22;
  --ink-soft: #33402f;
  --body: #4f5a52;
  --muted: #79857b;
  --line: #e8e4db;
  --line-soft: #f0ede6;
  --wash: #f7f6f1;
  --sage: #eef1e8;
  --gold: #b08a5a;
  --gutter: clamp(20px, 4.4vw, 56px);
  --shadow: 0 22px 48px -34px rgba(31, 42, 34, 0.55);

  padding-top: 0;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.home main { display: block; }
body.home main > section { width: 100%; max-width: none; margin: 0; padding: 0; }

/* section rhythm (re-applied with higher specificity than the reset above) */
body.home main > section.intro { padding: clamp(18px, 2.4vw, 34px) 0 clamp(46px, 5.2vw, 74px); }
body.home main > section.section { padding-block: clamp(46px, 5.2vw, 78px); }
body.home main > section.join-band { padding-block: clamp(44px, 5.4vw, 76px); }

body.home .wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

body.home a:focus-visible,
body.home button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  padding: 12px 20px; background: var(--ink); color: #fff; font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

.kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ------------------------------------------------------------------ hero */
.hero-band {
  position: relative;
  width: 100%;
  height: clamp(330px, 41vw, 620px);
  overflow: hidden;
  background: #dde1d6;
}
.hero-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(72px, 12.5vw, 190px);
  display: block;
  pointer-events: none;
}
.hero-tag {
  position: absolute;
  z-index: 2;
  left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  bottom: calc(clamp(72px, 12.5vw, 190px) + 2px);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(24, 34, 27, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

/* ----------------------------------------------------------------- intro */
.intro {
  background: #fff;
  padding: clamp(18px, 2.4vw, 34px) 0 clamp(48px, 6vw, 84px);
}
.intro h1 {
  margin: 0;
  max-width: 22em;
  font-family: var(--font-serif);
  font-size: clamp(27px, 3.1vw, 44px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.intro h1 em { font-style: normal; color: #5c6f5b; }
.intro-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 64px);
  max-width: 1040px;
  margin-top: clamp(20px, 2.6vw, 30px);
}
.intro-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 2;
  color: var(--body);
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn-solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-solid:hover { background: #0f1712; border-color: #0f1712; transform: translateY(-1px); }
.btn-line { border-color: #d9d4c7; color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.intro-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px);
  margin: clamp(34px, 4vw, 52px) 0 0;
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line);
}
.intro-stats dt {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1;
  color: var(--ink);
}
.intro-stats dt span { font-size: 0.42em; color: var(--gold); }
.intro-stats dd { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* -------------------------------------------------------------- sections */
.section { padding-block: clamp(52px, 6.2vw, 92px); }
.section.wash { background: var(--wash); }
.section.sage { background: var(--sage); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 38px);
}
.sec-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.5vw, 33px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.sec-lead {
  max-width: 46em;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--body);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid #d7d2c5;
  color: var(--ink);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--gold); border-color: var(--gold); }
.link-arrow .arrow { transition: transform 0.25s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------- products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product:hover {
  transform: translateY(-4px);
  border-color: #dcd6c7;
  box-shadow: var(--shadow);
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f2efe8;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.product:hover .product-media img { transform: scale(1.04); }
.product-class {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 16px;
}
.product h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.product-en {
  margin: 3px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-meta {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.product-award {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  line-height: 1.6;
  color: #8a6a3e;
}
.product-award .star { color: var(--gold); margin-right: 5px; }
.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 14px;
  border: 1px solid #e2ddd1;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.product:hover .product-cta { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------------- seedlings */
.line-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
.line-card {
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 1.2vw, 16px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.line-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.line-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; display: block; }
.line-tag { margin-top: 10px; font-size: 10px; letter-spacing: 0.14em; color: var(--gold); }
.line-name {
  margin: 5px 0 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
}
.line-color { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.lines-note { margin: 20px 0 0; font-size: 11.5px; line-height: 1.8; color: var(--muted); max-width: 68em; }

/* ---------------------------------------------------------------- method */
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(30px, 4.4vw, 68px);
  align-items: start;
}
.method h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.5vw, 33px);
  font-weight: 500;
  line-height: 1.5;
}
.method h2 em { font-style: normal; color: #5c6f5b; }
.method-lead { max-width: 34em; margin: 16px 0 0; font-size: 14px; line-height: 1.95; color: var(--body); }

.steps { list-style: none; margin: clamp(22px, 2.6vw, 32px) 0 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  padding: 16px 0;
  border-top: 1px solid #dfe3d7;
}
.steps li:last-child { border-bottom: 1px solid #dfe3d7; }
.steps .num { font-family: var(--font-serif); font-size: 12.5px; letter-spacing: 0.12em; color: var(--gold); padding-top: 3px; }
.steps h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.steps p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--body); }

.cycle {
  padding: clamp(20px, 2.6vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 40px -38px rgba(31, 42, 34, 0.6);
}
.cycle-kicker { margin: 0 0 6px; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.cycle-title { margin: 0 0 22px; font-family: var(--font-serif); font-size: 19px; font-weight: 400; }
.cycle-row { margin-bottom: 18px; }
.cycle-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--body);
}
.cycle-row-top b { font-family: var(--font-serif); font-size: 17px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.cycle-bar { position: relative; height: 5px; border-radius: 3px; background: #eeeae0; overflow: hidden; }
.cycle-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 100%); background: #c9cabf; }
.cycle-bar i.gold { background: var(--gold); }
.cycle-foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12px; line-height: 1.8; color: var(--muted); }
.cycle-foot b { color: #8a6a3e; font-weight: 500; }
.cycle .btn { margin-top: 20px; }

/* --------------------------------------------------------------- classes */
.class-grid2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
.class-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 10px;
  background: #26312a;
  color: #fff;
  text-decoration: none;
}
.class-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1); }
.class-tile:hover img { transform: scale(1.05); }
.class-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 23, 18, 0.2) 0%, rgba(16, 23, 18, 0) 26%, rgba(16, 23, 18, 0.55) 74%, rgba(16, 23, 18, 0.88) 100%);
}
.tile-abbr {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  background: rgba(16, 23, 18, 0.35);
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
}
.tile-info { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 13px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.tile-info strong { display: block; font-size: 15px; font-weight: 500; }
.tile-info em { display: block; margin-top: 3px; font-style: normal; font-size: 11px; color: rgba(255, 255, 255, 0.78); }
.class-foot { margin: 20px 0 0; font-size: 11.5px; line-height: 1.85; color: var(--muted); max-width: 72em; }

/* ----------------------------------------------------------------- field */
.field-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.92fr 0.92fr;
  gap: clamp(12px, 1.6vw, 20px);
  align-items: start;
}
.field-item { display: block; text-decoration: none; color: inherit; }
.field-item:nth-child(2) { margin-top: clamp(0px, 2.4vw, 30px); }
.field-media { display: block; overflow: hidden; border-radius: 10px; height: clamp(300px, 31vw, 430px); }
.field-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.field-item:hover img { transform: scale(1.03); }
.field-cap { display: flex; align-items: baseline; gap: 9px; margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.field-cap b { flex: 0 0 auto; font-family: var(--font-serif); font-size: 13px; font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------------------ join */
.join-band {
  padding-block: clamp(44px, 5.4vw, 76px);
  background: #fff;
}
.join-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: center;
  padding: clamp(26px, 3.6vw, 52px);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.join-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.5;
}
.join-lead { margin: 12px 0 22px; font-size: 14px; line-height: 1.9; color: var(--body); max-width: 32em; }
.join-links { border-top: 1px solid var(--line); }
.join-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.25s ease, padding 0.25s ease;
}
.join-links a span.arrow { color: var(--gold); }
.join-links a:hover { color: var(--gold); padding-left: 6px; }

/* ---------------------------------------------------------------- footer */
body.home footer {
  margin-top: 0;
  padding: clamp(46px, 5.4vw, 72px) 0 26px;
  background: #1c2620;
  color: rgba(255, 255, 255, 0.72);
}
body.home footer .footer-wrapper {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 52px);
}
body.home footer .footer-brand .brand {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
}
body.home footer .footer-brand p { max-width: 26em; font-size: 13px; line-height: 1.95; color: rgba(255, 255, 255, 0.55); }
body.home footer .footer-col h4 { margin: 0 0 16px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.9); }
body.home footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
body.home footer .footer-col li { margin-bottom: 10px; }
body.home footer .footer-col a { color: rgba(255, 255, 255, 0.58); font-size: 13px; text-decoration: none; transition: color 0.2s ease; }
body.home footer .footer-col a:hover { color: #fff; }
body.home footer .footer-pending { color: rgba(255, 255, 255, 0.38); font-size: 13px; }
body.home footer .footer-bottom {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: 1fr; }
  .class-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-item:nth-child(3) { display: none; }
  .join-card { grid-template-columns: 1fr; }
  body.home footer .footer-wrapper { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .intro-body { grid-template-columns: 1fr; gap: 14px; }
  .intro h1 { font-size: clamp(24px, 5.6vw, 32px); }
  .intro-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .hero-band { height: clamp(300px, 56vw, 420px); }
  .hero-tag { font-size: 11px; }
  .field-item:nth-child(2) { margin-top: 0; }
}

@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
  .line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-grid2 { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field-item:nth-child(3) { display: block; }
  .sec-head { align-items: flex-start; }
  .intro-actions .btn { flex: 1 1 auto; justify-content: center; }
  body.home footer .footer-wrapper { grid-template-columns: 1fr; gap: 26px; }
  body.home footer .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  body.home *, body.home *::before, body.home *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
