/* =====================================================================
   fmhome.css — FPT Market Homepage
   Scoped to .fmh root. Companion: page-fullhtml.php template.
   WC product grid styles rely on fmarket-shop.css (also enqueued on
   front page when this file loads).
   ===================================================================== */

/* ── Variables ─────────────────────────────────────────────────────── */
.fmh {
  --green:    #2D6A4F;
  --green-l:  #52B788;
  --green-ll: #95D5B2;
  --orange:   #F4A261;
  --orange-d: #E76F51;
  --cream:    #FAFAF6;
  --border:   #E8EDE8;
  --text:     #1a1a2e;
  --muted:    #6b7280;
  font-family: inherit;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.fmh-hero {
  background: linear-gradient(135deg, #0d2818 0%, #1B4332 45%, #2D6A4F 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 24px 130px;
  text-align: center;
  color: #fff;
}

/* floating orb decorations */
.fmh-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149,213,178,.18) 0%, transparent 70%);
  animation: fmh-float 8s ease-in-out infinite;
}
.fmh-hero-orb2 {
  position: absolute;
  bottom: 60px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,183,136,.12) 0%, transparent 70%);
  animation: fmh-float 11s ease-in-out infinite reverse;
  pointer-events: none;
}
@keyframes fmh-float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(20px,-30px) scale(1.08); }
}

/* wave bottom */
.fmh-hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0;
}
.fmh-hero-wave svg { display: block; width: 100%; }

.fmh-hero-inner {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.fmh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  margin-bottom: 28px;
}

.fmh-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
  color: #fff;
}

.fmh-grad {
  background: linear-gradient(90deg, #95D5B2, #B7E4C7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fmh-hero p.lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA row */
.fmh-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.fmh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}

.fmh-btn-primary {
  background: linear-gradient(135deg, #F4A261, #E76F51);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(231,111,81,.42);
}
.fmh-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(231,111,81,.55);
  color: #fff !important;
}

.fmh-btn-outline {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff !important;
}
.fmh-btn-outline:hover {
  background: rgba(255,255,255,.22);
  color: #fff !important;
  transform: translateY(-2px);
}

/* Stats row */
.fmh-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.fmh-stat { text-align: center; }
.fmh-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #95D5B2;
  line-height: 1;
}
.fmh-stat-lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

/* ── USP strip ─────────────────────────────────────────────────────── */
.fmh-usp {
  background: #fff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.fmh-usp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  font-size: .88rem;
  font-weight: 600;
  color: #374151;
  border-right: 1px solid var(--border);
}
.fmh-usp-item:last-child { border-right: none; }
.fmh-usp-item .ico { font-size: 1.3rem; }

/* ── Category nav ──────────────────────────────────────────────────── */
.fmh-catnav {
  background: #fff;
  padding: 14px 24px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.fmh-catpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  background: #f3f4f6;
  color: #374151 !important;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .2s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.fmh-catpill:hover {
  background: var(--green);
  color: #fff !important;
  border-color: var(--green);
}

/* ── Product sections ──────────────────────────────────────────────── */
.fmh-section {
  background: var(--cream);
  padding: 72px 24px;
}
.fmh-section.alt { background: #fff; }

.fmh-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.fmh-section-head {
  text-align: center;
  margin-bottom: 40px;
}
.fmh-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green);
  margin-bottom: 10px;
}
.fmh-section-head h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.fmh-section-head p {
  font-size: .98rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 22px;
  line-height: 1.7;
}
.fmh-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green) !important;
  font-weight: 700;
  text-decoration: none !important;
  font-size: .9rem;
  border-bottom: 2px solid var(--green-ll);
  padding-bottom: 2px;
  transition: all .2s;
}
.fmh-view-all:hover {
  color: #1B4332 !important;
  border-color: var(--green);
}

/* WooCommerce grid reset inside sections */
.fmh .woocommerce ul.products {
  margin: 0 !important;
  padding: 0 !important;
}
.fmh .woocommerce-info,
.fmh .woocommerce-notice {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  background: #f9fafb;
  border-radius: 12px;
}

/* ── Vendor CTA banner ─────────────────────────────────────────────── */
.fmh-vendor {
  background: linear-gradient(135deg, #F4A261 0%, #E76F51 100%);
  padding: 64px 24px;
}
.fmh-vendor-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.fmh-vendor-ico { font-size: 4rem; flex-shrink: 0; }
.fmh-vendor-text { flex: 1; min-width: 260px; }
.fmh-vendor-text h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.fmh-vendor-text p {
  color: rgba(255,255,255,.9);
  font-size: .98rem;
  line-height: 1.65;
  margin: 0;
}
.fmh-vendor .fmh-btn-vendor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  background: #fff;
  color: #E76F51 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
}
.fmh-vendor .fmh-btn-vendor:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.24);
  color: #E76F51 !important;
}

/* ── How it works ──────────────────────────────────────────────────── */
.fmh-howit {
  background: #fff;
  padding: 72px 24px;
}
.fmh-howit-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.fmh-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.fmh-step {
  background: var(--cream);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.fmh-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.fmh-step-num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--green), var(--green-l));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  margin: 0 auto 16px;
}
.fmh-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.fmh-step p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Location ──────────────────────────────────────────────────────── */
.fmh-location {
  background: linear-gradient(135deg, #0d2818 0%, #1B4332 100%);
  padding: 72px 24px;
  text-align: center;
  color: #fff;
}
.fmh-location-inner { max-width: 640px; margin: 0 auto; }
.fmh-location .fmh-eyebrow { color: #95D5B2; }
.fmh-location h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.fmh-location p {
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 28px;
}
.fmh-addr-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
}
.fmh-addr-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: .9rem;
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  gap: 10px;
}
.fmh-location .fmh-btn-outline {
  border-color: rgba(255,255,255,.45);
}
.fmh-location .fmh-btn-outline:hover {
  background: rgba(255,255,255,.18);
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .fmh-hero { padding: 60px 20px 110px; }
  .fmh-usp { flex-direction: column; }
  .fmh-usp-item { border-right: none; border-bottom: 1px solid var(--border); justify-content: center; }
  .fmh-usp-item:last-child { border-bottom: none; }
  .fmh-catnav { justify-content: flex-start; flex-wrap: nowrap; }
  .fmh-vendor-inner { flex-direction: column; text-align: center; }
  .fmh-vendor-ico { font-size: 3rem; }
  .fmh-section { padding: 48px 20px; }
  .fmh-howit { padding: 48px 20px; }
}

@media (max-width: 480px) {
  .fmh-stats { gap: 24px; }
  .fmh-stat-num { font-size: 1.6rem; }
}
