/* ==========================================================================
   home.css — ส่วนต่างๆ ของหน้าแรก
   ========================================================================== */

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 84px; overflow: hidden; background: #fff; }

/* พื้นหลังรูปเต็ม Hero จางลงทางซ้าย (ขาวสนิททางซ้ายที่มีข้อความ, เห็นรูปชัดขึ้นทางขวา) */
.hero__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .55) 22%, rgba(255, 255, 255, .18) 42%, rgba(255, 255, 255, 0) 60%),
    url("../img/hero-bg.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero__text { max-width: 580px; }

.hero__media { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__media-glow {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(47, 143, 224, .26), rgba(47, 143, 224, 0) 72%);
  filter: blur(4px);
  pointer-events: none;
}
.hero__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 24px 36px rgba(17, 52, 110, .22));
  animation: hero-media-in .8s var(--ease) both;
}
@keyframes hero-media-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; }
}

@media (min-width: 1024px) {
  .hero { padding: 56px 0 40px; }
  .hero__grid { grid-template-columns: .92fr 1.15fr; gap: 20px; }
  .hero__text { max-width: none; }
  .hero__media img { max-width: none; }
}

.hero__title {
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.16;
  margin-bottom: 20px;
}
.hero__title span { display: block; }
.hero__title .is-accent {
  color: var(--c-primary);
  background: linear-gradient(90deg, var(--c-primary), var(--c-sky));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__desc { max-width: 540px; font-size: 17.5px; color: var(--c-muted); }

/* แถวข้อมูลย่อย ก่อนปุ่ม CTA */
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.hero__fact-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--c-tint);
  color: var(--c-primary);
}
.hero__fact-icon svg { width: 22px; height: 22px; }
.hero__facts strong { display: block; font-size: 17px; color: var(--c-navy); line-height: 1.3; }
.hero__facts span span { font-size: 13px; color: var(--c-muted); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__cta .btn { min-width: 200px; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--c-navy-2); }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--c-open); }

/* ---------- Offerings (เลือกงานพิมพ์) ---------- */
.offering-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.offering-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--c-text);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.offering-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bcd2ee; color: var(--c-text); }
.offering-card > .ph { aspect-ratio: 4 / 3; height: auto; border: 0; border-radius: 0; }
.offering-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.offering-card__body h3 { margin: 0 0 6px; font-size: 17px; color: var(--c-navy); }
.offering-card__body p { margin: 0 0 12px; font-size: 13.5px; color: var(--c-muted); line-height: 1.55; }
.offering-card__body .link-arrow { margin-top: auto; font-size: 13.5px; }

/* ---------- Why us ---------- */
.why-split { grid-template-columns: .8fr 1.4fr; align-items: start; }
.why-split .section-title { margin-bottom: 14px; }
.why-split .section-lead { margin-bottom: 26px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.why-item .icon-badge { width: 42px; height: 42px; background: var(--c-tint); }
.why-item h3 { margin: 0; font-size: 15px; }
.why-item p { margin: 0; font-size: 12.5px; color: var(--c-muted); line-height: 1.5; }

/* ---------- Main product (NCR) ---------- */
.ncr__subtitle { font-size: clamp(18px, 2vw, 22px); color: var(--c-navy-2); margin-bottom: 14px; }
.ncr__text { color: var(--c-muted); }
.ncr__specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.spec-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--c-tint);
  color: var(--c-navy-2);
  font-size: 13.5px;
  font-weight: 700;
}
.ncr__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ncr__media { aspect-ratio: 4 / 3.4; }

/* ---------- สเปกกระดาษต่อเนื่อง (ดูจบในหน้าเดียว) ---------- */
.ncr-spec {
  margin-top: 64px;
  padding: 36px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-tint-2);
}
.ncr-spec__head { margin-bottom: 24px; }
.ncr-spec__head h3 { margin: 0 0 4px; font-size: 20px; }
.ncr-spec__head p { margin: 0; font-size: 14px; color: var(--c-muted); }

.size-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.size-card {
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}
.size-card .icon-badge { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px; }
.size-card .icon-badge svg { width: 20px; height: 20px; }
.size-card h4 { margin: 0 0 4px; font-size: 15.5px; color: var(--c-navy); }
.size-card p { margin: 0; font-size: 13px; color: var(--c-muted); line-height: 1.55; }

.ncr-spec__ply {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}
.ply-fan { position: relative; flex: none; width: 110px; height: 130px; }
.ply-fan span {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: var(--c);
  box-shadow: 0 8px 16px rgba(17, 52, 110, .12);
}
.ply-fan span:nth-child(1) { transform: rotate(-9deg) translateX(-16px); }
.ply-fan span:nth-child(2) { transform: rotate(0deg); z-index: 1; }
.ply-fan span:nth-child(3) { transform: rotate(9deg) translateX(16px); }
.ncr-spec__ply-text h4 { margin: 0 0 6px; font-size: 17px; }
.ncr-spec__ply-text p { margin: 0; font-size: 14px; color: var(--c-muted); max-width: 60ch; }
.paper-colors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--c-navy-2); }
.paper-colors li { display: inline-flex; align-items: center; gap: 6px; }
.paper-colors i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .1); }

.spec-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-navy-2);
  font-size: 13.5px;
  font-weight: 700;
}
.spec-chips svg { width: 16px; height: 16px; color: var(--c-primary); }

/* แถบเน้นสั้นๆ ใต้สเปก */
.ncr-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--c-line);
  font-size: 14px;
  color: var(--c-navy-2);
}
.ncr-highlight li { display: inline-flex; align-items: center; gap: 7px; }
.ncr-highlight svg { width: 18px; height: 18px; color: var(--c-open); }

/* ---------- Form types ---------- */
.form-types { margin-top: 28px; }
.form-types__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.form-types__head h3 { margin: 0; font-size: 20px; }
.form-types__head p { margin: 0; font-size: 14px; color: var(--c-muted); }
.form-types__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-type {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.form-type:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #bcd2ee; }
.form-type__body { flex: 1; min-width: 0; }
.form-type h4 { margin: 0 0 3px; font-size: 15.5px; color: var(--c-navy); }
.form-type p { margin: 0 0 8px; font-size: 13px; color: var(--c-muted); line-height: 1.5; }
.form-type .link-arrow { font-size: 13px; }

/* แบบฟอร์มจำลองด้วย CSS — สีหัวฟอร์มเปลี่ยนตาม --accent */
.mini-form {
  --accent: var(--c-primary);
  flex: none;
  width: 68px;
  aspect-ratio: 4 / 3.3;
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  background: var(--c-tint-2);
}
.mini-form::before {
  content: "";
  display: block;
  width: 58%;
  height: 8px;
  margin-left: auto;
  border-radius: 2px;
  background: var(--accent);
}
.mini-form::after {
  content: "";
  display: block;
  height: calc(100% - 16px);
  margin-top: 6px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 6px, color-mix(in srgb, var(--accent) 22%, #fff) 6px 7px),
    #fff;
}

/* ---------- Other printing ---------- */
.products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Customize ---------- */
.customize .check-list { margin: 22px 0 30px; }
.customize__media { aspect-ratio: 4 / 3; }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.steps::before {
  content: "";
  position: absolute;
  top: 32px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-line), var(--c-primary) 50%, var(--c-line));
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  box-shadow: 0 8px 20px rgba(22, 86, 184, .15);
}
.step__icon svg { width: 26px; height: 26px; }
.step__icon b {
  position: absolute;
  top: -6px; right: -6px;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0 auto; max-width: 26ch; font-size: 14.5px; color: var(--c-muted); }

/* ---------- Portfolio ---------- */
.portfolio { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.portfolio__item { margin: 0; }
.portfolio__media {
  display: block;
  aspect-ratio: 4 / 3;
  height: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--c-line);
  margin-bottom: 12px;
}
.portfolio__media.ph { display: grid; }
.portfolio__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; background: #fff; transition: transform .4s var(--ease); }
.portfolio__item:hover .portfolio__media img { transform: scale(1.05); }
.portfolio__caption { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--c-navy); text-align: center; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.6fr; gap: 56px; align-items: start; }
.faq-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.faq-aside .section-lead { margin-bottom: 24px; }
.faq-aside__media { aspect-ratio: 4 / 3; height: auto; margin-bottom: 20px; border-radius: var(--radius-lg); }
.faq-contact {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--c-tint);
}
.faq-contact h3 { font-size: 17px; margin-bottom: 4px; }
.faq-contact p { font-size: 14px; color: var(--c-muted); }
.faq-contact .btn + .btn { margin-top: 10px; }

.faq__item {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.faq__item + .faq__item { margin-top: 12px; }
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: #bcd2ee; }
.faq__item summary {
  position: relative;
  padding: 17px 56px 17px 20px;
  font-weight: 700;
  color: var(--c-navy);
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%; right: 18px;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-primary);
  font-size: 19px;
  line-height: 1;
  transition: transform .25s, background .25s, color .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.faq__item p { margin: 0; padding: 0 20px 18px; color: var(--c-muted); }

/* ---------- Testimonials ---------- */
.testimonial-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  padding: 26px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.testimonial__quote { margin: 0 0 20px; font-size: 14.5px; line-height: 1.7; color: var(--c-navy-2); font-style: italic; }
.testimonial__by { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; min-height: 0; padding: 0; }
.testimonial__avatar svg { width: 18px; height: 18px; }
.testimonial__by strong { display: block; font-size: 14px; color: var(--c-navy); }
.testimonial__by span { font-size: 12.5px; color: var(--c-muted); }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.clients .ph { min-height: 88px; background: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 48px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-navy-2) 100%);
  color: #cfe0f7;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px; top: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%);
}
.cta-band h2 { margin: 0 0 6px; color: #fff; font-size: clamp(22px, 2.8vw, 30px); }
.cta-band p { margin: 0; }
.cta-band__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band .btn--outline:hover { background: #fff; color: var(--c-primary); }
