/* ==========================================================================
   JOYBEAN — Homepage styles
   Page-specific layout for the front page (future front-page.php).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 82px) 0 clamp(64px, 7vw, 104px);
  background: radial-gradient(circle at 86% 6%, rgba(228, 33, 27, 0.08), transparent 36%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(228, 33, 27, 0.1), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 1120px;
  margin: 0 0 clamp(36px, 5vw, 54px);
  font-size: clamp(2.5rem, 5.3vw, 4.8rem);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero-highlight {
  display: block;
  color: var(--primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-swiper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9e2da;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  height: 100%;
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(23, 19, 15, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-swiper .swiper-pagination {
  left: auto;
  right: 18px;
  bottom: 20px;
  display: flex;
  width: auto;
  gap: 6px;
}

.hero-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: #fff;
  opacity: 0.55;
  transition: width 0.25s ease, opacity 0.25s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
  width: 26px;
  border-radius: 999px;
  opacity: 1;
}

.hero-content {
  padding-top: 4px;
}

.hero-lead {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.75;
}

.hero-lead p {
  margin: 0 0 12px;
}

.hero-lead p:last-child {
  margin-bottom: 0;
}

.hero-lead strong,
.hero-product-list strong {
  color: var(--ink);
}

.hero-list-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-product-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.hero-product-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-product-list li:hover {
  border-color: #e7d9cd;
  box-shadow: 0 8px 20px rgba(23, 19, 15, 0.05);
}

.hero-product-check {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-product-check::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -62%) rotate(-45deg);
}

.hero-product-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.62;
}

.stats-band {
  padding: clamp(28px, 3.6vw, 44px) 0;
  background: #f6f0e9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat {
  padding: 0 clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
  text-align: center;
}

.hero-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stat strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  color: var(--primary);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.hero-stat em {
  margin-left: 3px;
  color: var(--primary);
  font-style: normal;
  font-size: 0.5em;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-stat .stat-unit {
  font-size: 0.4em;
}

.hero-stat > span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

/* --------------------------------------------------------------------------
   Products
   -------------------------------------------------------------------------- */

.products-section {
  background: var(--surface);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.product-card:hover {
  border-color: #f0c9c5;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.product-card:hover::after {
  transform: scaleX(1);
}

.product-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f2ece6;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px 24px;
}

.product-card-body h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Capabilities
   -------------------------------------------------------------------------- */

.capabilities-section {
  background: var(--bg);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cap-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cap-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cap-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f2ece6;
}

.cap-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cap-card:hover .cap-media img {
  transform: scale(1.04);
}

.cap-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 28px;
}

.cap-body h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.cap-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.cap-body p strong {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Order flow
   -------------------------------------------------------------------------- */

.order-flow {
  padding: clamp(64px, 8vw, 110px) 0;
  background: #f6f0e9;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.order-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.order-card:hover {
  border-color: rgba(228, 33, 27, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.order-no {
  position: absolute;
  top: 12px;
  right: 18px;
  color: #f3eae1;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}

.order-card:hover .order-no {
  color: var(--primary-soft);
}

.order-card h3 {
  position: relative;
  margin: 44px 0 10px;
  padding-right: 72px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.order-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.order-flow .section-cta {
  margin-top: 44px;
}

/* --------------------------------------------------------------------------
   Why choose
   -------------------------------------------------------------------------- */

.why-section {
  background: var(--bg);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.adv-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.adv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.adv-card:hover::before {
  transform: scaleX(1);
}

.adv-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.adv-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.adv-card p strong {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Sustainability
   -------------------------------------------------------------------------- */

.sustainability-section {
  background: var(--surface);
}

.sustain-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  overflow: hidden;
  background: #faf6f1;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.sustain-media {
  min-height: 100%;
}

.sustain-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.sustain-content {
  padding: clamp(32px, 5vw, 64px);
}

.sustain-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.sustain-badges span {
  padding: 7px 14px;
  color: var(--primary);
  background: #fff;
  border: 1px solid #f0d9d6;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.sustain-content h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sustain-content p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.sustain-content .btn {
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 780px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .order-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sustain-panel {
    grid-template-columns: 1fr;
  }

  .sustain-media {
    max-height: 420px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.9rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    padding: 14px 0;
    border-left: 0;
  }

  .hero-stat + .hero-stat {
    border-top: 1px solid var(--line);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .product-grid,
  .cap-grid,
  .adv-grid,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .slide-caption {
    left: 12px;
    bottom: 12px;
  }

  .hero-swiper .swiper-pagination {
    right: 14px;
    bottom: 15px;
  }

  .section-head p {
    font-size: 15.5px;
  }

  .cap-body,
  .adv-card,
  .order-card {
    padding: 24px;
  }

  .sustain-content {
    padding: 28px 24px 32px;
  }

  .sustain-media {
    max-height: 300px;
  }

  .faq-item {
    padding: 0 18px;
  }

  .faq-question {
    font-size: 14.5px;
  }
}

/* --------------------------------------------------------------------------
   Homepage quote form — replaces the closing CTA band
   -------------------------------------------------------------------------- */

.home-quote-section {
  padding: 0 0 clamp(64px, 8vw, 110px);
  background: var(--bg);
  scroll-margin-top: 130px;
}

.home-quote-section .quote-form-card {
  max-width: 780px;
}
