/* EC CUBE — /graphic (hero แบบหน้าแรก + sections) */

/* ---------- Typography: Prompt เหมือนหน้าแรก ---------- */
body.ec26-body.gfx-prompt-font {
  --font-display: "Prompt", sans-serif;
  --font-body: "Prompt", sans-serif;
  font-family: "Prompt", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
body.gfx-prompt-font h1,
body.gfx-prompt-font h2,
body.gfx-prompt-font h3,
body.gfx-prompt-font h4,
body.gfx-prompt-font h5,
body.gfx-prompt-font h6,
body.gfx-prompt-font .brand,
body.gfx-prompt-font .nav-link,
body.gfx-prompt-font .btn,
body.gfx-prompt-font .kicker,
body.gfx-prompt-font .port-filter button,
body.gfx-prompt-font .svc-link {
  font-family: "Prompt", sans-serif;
}

/* ---------- Hero space (เหมือน index / hero-legacy) ---------- */
.gfx-page-hero.hero-section--space {
  position: relative;
  background-color: #070b14;
  min-height: clamp(440px, 52vw, 620px);
  overflow: hidden;
}
.gfx-page-hero .gfx-hero-content {
  position: relative;
  padding: clamp(40px, 6vw, 56px) 0 clamp(72px, 9vw, 100px);
  z-index: 1;
}
.gfx-page-hero .gfx-hero-container {
  position: relative;
  z-index: 2;
}
.gfx-space-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: "Prompt", sans-serif;
  font-size: 14px;
  color: rgba(200, 218, 248, .85);
  margin-bottom: 20px;
}
.gfx-space-breadcrumb a { color: #dbe7ff; }
.gfx-space-breadcrumb a:hover { color: #fff; }
.gfx-space-breadcrumb span { color: rgba(151, 160, 214, .9); }

.gfx-space-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.gfx-page-hero .hero-space-title {
  color: #f5f8ff;
  font-family: "Prompt", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.28;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 42px rgba(120, 170, 255, .22);
}
.gfx-page-hero .hero-space-sub {
  display: block;
  margin-top: 8px;
  color: #dbe7ff;
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.35;
}
.gfx-page-hero .hero-space-lead {
  color: rgba(226, 234, 255, .92);
  font-family: "Prompt", sans-serif;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.65;
  max-width: 34rem;
  margin-bottom: 20px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.gfx-page-hero .hero-space-lead strong { color: #fff; font-weight: 600; }

.gfx-space-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 24px;
}
.gfx-page-hero .hero-space-label {
  font-family: "Prompt", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #c8daf8;
  margin-right: 4px;
}
.gfx-service-chip {
  display: inline-block;
  font-family: "Prompt", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #f0f5ff;
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  transition: background .2s, color .2s, border-color .2s;
}
.gfx-service-chip:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
}

.gfx-space-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.gfx-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.gfx-stat-num {
  display: block;
  font-family: "Prompt", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.1;
  color: #f5f8ff;
  text-shadow: 0 0 28px rgba(120, 170, 255, .35);
  font-variant-numeric: tabular-nums;
}
.gfx-hero-stats div small {
  display: block;
  margin-top: 6px;
  color: rgba(200, 218, 248, .78);
  font-family: "Prompt", sans-serif;
  font-size: 13px;
}

.gfx-space-visual {
  text-align: center;
}
@media (min-width: 992px) {
  .gfx-space-visual { text-align: right; }
}
.gfx-page-hero .hero-space-stack {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 520px);
  max-width: 100%;
}
@media (min-width: 992px) {
  .gfx-page-hero .hero-space-stack { align-items: flex-end; }
}
.gfx-page-hero .hero-space-scene {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.gfx-page-hero .hero-space-mascot {
  width: min(68%, 360px);
  max-width: 94%;
  margin-top: clamp(-26%, -10vw, -140px);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .35));
}

.gfx-page-hero .hero-space-deco-floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.gfx-page-hero .hero-space-floater {
  position: absolute;
  width: clamp(52px, 7.5vw, 104px);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(80, 140, 255, .45));
}
.gfx-page-hero .hero-space-floater--a {
  top: 16%;
  right: 6%;
  animation: hero-space-drift-a 16s ease-in-out infinite;
}
.gfx-page-hero .hero-space-floater--b {
  bottom: 22%;
  right: 14%;
  animation: hero-space-drift-b 19s ease-in-out infinite;
  animation-delay: -6s;
}

.gfx-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.gfx-hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--text);
  font-family: "Prompt", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .12);
}
.gfx-hero-chip-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-warm);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.gfx-hero-chip--consult { right: 28%; top: 12%; }
.gfx-hero-chip--design { left: 4%; bottom: 18%; }

.animation-float {
  animation: gfx-float-mascot 3s ease-in-out .5s infinite alternate both;
}
.floating-x {
  animation: gfx-float-x 3s linear infinite;
}

@keyframes gfx-float-mascot {
  0% { transform: translateY(0); }
  100% { transform: translateY(16px); }
}
@keyframes gfx-float-x {
  0%, 100% { transform: translateX(24px); }
  50% { transform: translateX(8px); }
}
@keyframes hero-space-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-7deg) scale(1); opacity: .88; }
  50% { transform: translate3d(10px, -20px, 0) rotate(-4deg) scale(.96); opacity: .9; }
}
@keyframes hero-space-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg) scale(1); opacity: .9; }
  66% { transform: translate3d(-22px, 12px, 0) rotate(6deg) scale(.94); opacity: .85; }
}

@media (prefers-reduced-motion: reduce) {
  .gfx-page-hero .hero-space-floater,
  .animation-float,
  .floating-x { animation: none !important; }
}

/* ---------- Service grid & sections ---------- */
.gfx-filter { margin-bottom: 40px; }
.gfx-svc-grid .svc-card {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(30, 120, 230, .25), rgba(124, 92, 252, .2), rgba(236, 28, 141, .15)) border-box;
}
.gfx-svc-grid .svc-card:hover {
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad-brand) border-box;
  box-shadow: var(--shadow-lg), 0 0 30px -8px rgba(124, 92, 252, .35);
}
.gfx-svc-grid .svc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform .4s ease;
}
.gfx-svc-grid .svc-card:hover .svc-thumb img { transform: scale(1.06); }
.gfx-svc-num {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  font-family: "Prompt", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: rgba(255, 255, 255, .22);
  line-height: 1;
}

.gfx-value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.gfx-value-card {
  background: linear-gradient(145deg, #fff, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform .25s, box-shadow .25s;
}
.gfx-value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gfx-value-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.gfx-value-ico svg { width: 24px; height: 24px; }
.gfx-value-card h3 { font-size: 17px; margin-bottom: 6px; }
.gfx-value-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

.gfx-port-preview .port-grid { grid-template-columns: repeat(4, 1fr); }
.gfx-port-cta { text-align: center; margin-top: 36px; }

@media (max-width: 1024px) {
  .gfx-space-grid { grid-template-columns: 1fr; }
  .gfx-space-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .gfx-value-strip { grid-template-columns: 1fr; }
  .gfx-svc-grid.svc-grid { grid-template-columns: repeat(2, 1fr); }
  .gfx-hero-chip { display: none; }
}
@media (max-width: 640px) {
  .gfx-svc-grid.svc-grid { grid-template-columns: 1fr; }
  .gfx-port-preview .port-grid { grid-template-columns: repeat(2, 1fr); }
  .gfx-hero-stats { gap: 20px; }
  .gfx-page-hero .hero-space-floater--a { top: 8%; right: 2%; width: 48px; }
  .gfx-page-hero .hero-space-floater--b { bottom: 30%; right: 4%; width: 44px; }
}
