/* ============================================================
   INNER PAGES — shared styles (hero, breadcrumb, content blocks)
   ============================================================ */
.section-soft { background: var(--bg-soft); }
.lead-muted { color: var(--muted); font-size: 17px; }
.center-cta { text-align: center; margin-top: 48px; }
.grad-text-cube { background: var(--grad-cube); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--space-grad);
  background-image: linear-gradient(rgba(10,14,42,.6), rgba(10,14,42,.82)), url('../assets/space-bg.png');
  background-size: cover; background-position: center;
  padding: 64px 0 70px;
}
.page-hero .hero-stars { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(2px 2px at 15% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 65% 18%, #cfe, transparent), radial-gradient(2px 2px at 85% 55%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 75%, #fef, transparent);
  animation: twinkle 4s ease-in-out infinite; }
.page-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: #97A0D6; margin-bottom: 18px; }
.breadcrumb a { color: #B9C6FF; } .breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #6973A8; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; color: #fff; }
.page-hero p { color: #C7CEF5; font-size: 18px; margin-top: 16px; max-width: 620px; }
.page-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.page-hero-pic { position: relative; display: grid; place-items: center; }
.page-hero-pic img { width: 80%; max-width: 260px; animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 24px 40px rgba(0,0,0,.4)); }

/* ---------- Generic content ---------- */
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.prose-grid.rev .prose-pic { order: -1; }
.prose h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin: 14px 0 16px; }
.prose p { color: var(--muted); font-size: 16.5px; margin-bottom: 14px; }
.prose ul.ticks { display: grid; gap: 12px; margin-top: 20px; }
.prose ul.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; }
.prose ul.ticks svg { width: 22px; height: 22px; color: #22C55E; flex: none; margin-top: 2px; }
.prose-pic { border-radius: var(--radius-lg); overflow: hidden; background: var(--space-grad); padding: 30px; box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.prose-pic img { border-radius: 14px; }

/* ---------- Detail service blocks ---------- */
.detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 54px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.detail-block:nth-child(even) .db-text { order: 2; }
.detail-block .db-pic { border-radius: var(--radius-lg); aspect-ratio: 4/3; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.detail-block .db-pic svg { width: 84px; height: 84px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); }
.db-text .chip { margin-bottom: 14px; }
.db-text h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.db-text p { color: var(--muted); font-size: 16px; margin: 12px 0 16px; }
.db-text ul { display: grid; gap: 9px; }
.db-text ul li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; }
.db-text ul svg { width: 19px; height: 19px; color: var(--blue); flex: none; margin-top: 3px; }

/* ---------- Comparison pricing table ---------- */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.cmp { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
.cmp th, .cmp td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.cmp thead th { background: var(--space-grad); color: #fff; font-family: var(--font-display); }
.cmp thead th .pp { font-size: 13px; color: #B9C6FF; font-weight: 400; display: block; }
.cmp thead th .pa { font-size: 24px; font-weight: 800; }
.cmp thead th.feat { position: relative; }
.cmp thead th.feat::before { content: 'ยอดนิยม'; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 10px; background: var(--grad-warm); color: #3a2400; padding: 2px 10px; border-radius: 999px; }
.cmp tbody td:first-child, .cmp tbody th:first-child { text-align: left; font-weight: 500; color: var(--text); font-family: var(--font-body); }
.cmp tbody tr:nth-child(even) td { background: var(--bg-soft); }
.cmp .yes { color: #22C55E; } .cmp .no { color: #C9CEDF; }
.cmp .yes svg, .cmp .no svg { width: 20px; height: 20px; }
.cmp tfoot td { padding: 22px 20px; }
.cmp tfoot .btn { width: 100%; max-width: 200px; }

/* ---------- Simple card grids ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: transform .25s; }
.mini-card:hover { transform: translateY(-6px); }
.mini-ico { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.mini-ico svg { width: 27px; height: 27px; }
.mini-card h3 { font-size: 18px; } .mini-card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* ---------- About: company info, hub links ---------- */
.company-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.company-info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.company-info-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}
.company-dl { display: grid; gap: 16px; }
.company-dl > div { display: grid; gap: 4px; }
.company-dl dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.company-dl dd {
  font-size: 16px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}
.company-dl a { color: var(--blue); }
.company-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.company-note a { color: var(--blue); font-weight: 600; }
.about-values-grid { grid-template-columns: repeat(4, 1fr); }
.about-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.about-hub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .25s, border-color .2s, box-shadow .2s;
}
.about-hub-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 92, 252, .45);
  box-shadow: var(--shadow-lg);
}
.about-hub-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.about-hub-card p {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
  line-height: 1.5;
}
.about-hub-more {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--blue);
}
.prose a { color: var(--blue); font-weight: 500; }
.prose a:hover { color: var(--purple); }

/* ---------- About: stats, team, values ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 20px; text-align: center; box-shadow: var(--shadow); }
.stat-box b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 42px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box span { color: var(--muted); font-size: 15px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-ava { aspect-ratio: 1; border-radius: var(--radius-lg); display: grid; place-items: center; box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.team-ava img { width: 70%; }
.team-card h3 { font-size: 18px; } .team-card span { color: var(--blue); font-size: 14px; font-weight: 600; font-family: var(--font-display); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.contact-form h2 { font-size: 26px; margin-bottom: 6px; }
.contact-form .fdesc { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.field { margin-bottom: 18px; } .field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 14.5px; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font-body); font-size: 15px; background: var(--bg-soft); transition: border .2s, background .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--purple); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 10px; }
.form-note a { color: var(--blue); font-weight: 600; }
.form-ok {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  font-weight: 600;
  font-size: 15px;
}
.form-ok svg { width: 22px; height: 22px; flex: none; color: #16a34a; }
.contact-submit { width: 100%; }
.field-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.field-captcha label span { font-family: var(--font-body); font-weight: 700; color: var(--purple); }
.field-captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field-captcha-row input { max-width: 120px; }
.captcha-refresh { font-size: 13px; color: var(--blue); font-weight: 600; text-decoration: none; }
.captcha-refresh:hover { text-decoration: underline; }
.field-error { color: #dc2626; font-size: 13px; margin-top: 6px; }
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid { border-color: #ef4444; background: #fff5f5; }
.form-alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.form-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.contact-map-wrap { margin-top: 40px; }
.contact-about-link { margin-top: 8px; font-size: 14px; }
.contact-about-link a { color: var(--blue); font-weight: 600; }
.info-line { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.info-line:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.contact-quick-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, color .2s;
}
.contact-quick-links a:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
  color: var(--purple);
}
.contact-info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.info-card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.info-card .ic svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 17px; } .info-card p { color: var(--muted); font-size: 15px; margin-top: 3px; } .info-card a { color: var(--blue); }
.info-line { background: var(--space-grad); border: 0; color: #fff; align-items: center; }
.info-line h3 { color: #fff; } .info-line p { color: #B9C6FF; }
.info-line .qr { width: 86px; height: 86px; border-radius: 12px; background: #fff; padding: 6px; flex: none; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 21/8; background: var(--bg-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- News page (legacy — ใช้ blog-page-grid ใน blog-section-component.css) ---------- */
.news-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.blog-page-section .head { text-align: center; margin-bottom: 40px; }
.blog-page-section .head p { color: var(--muted); max-width: 640px; margin: 12px auto 0; }

/* ---------- Portfolio filter ---------- */
.port-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.port-filter button { font-family: var(--font-display); font-weight: 500; font-size: 14.5px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: .2s; }
.port-filter button:hover { border-color: var(--purple); color: var(--purple); }
.port-filter button.active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pf-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; position: relative; cursor: pointer; display: block; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg, 0 18px 40px rgba(10,14,42,.14)); }
.pf-card .pf-bg { position: absolute; inset: 0; display: grid; place-items: end start; padding: 22px; color: #fff; }
.pf-card .pf-bg .t { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.pf-card .pf-bg .s { font-size: 13px; opacity: .85; margin-top: 4px; }
.pf-card--image .pf-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,14,42,.82) 0%, rgba(10,14,42,.2) 48%, transparent 72%); pointer-events: none; }
.pf-card--image .pf-bg > * { position: relative; z-index: 1; }
.pf-tag { position: absolute; top: 14px; left: 14px; font-family: var(--font-display); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.28); padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(4px); z-index: 2; }

/* ---------- CTA + FAQ reuse from home.css load both? keep minimal here ---------- */
.cta-sec { position: relative; background: var(--grad-brand); color: #fff; overflow: hidden; padding: 70px 0; }
.cta-stars { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 40%, rgba(255,255,255,.7), transparent), radial-gradient(1.5px 1.5px at 80% 60%, rgba(255,255,255,.6), transparent), radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,.5), transparent); }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; z-index: 2; }
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; color: #fff; }
.cta-inner p { color: rgba(255,255,255,.9); font-size: 18px; margin-top: 12px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-item.open { box-shadow: var(--shadow); border-color: rgba(124,92,252,.4); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 16.5px; }
.faq-q .pm { width: 26px; height: 26px; border-radius: 8px; background: var(--bg-soft); display: grid; place-items: center; flex: none; transition: transform .25s, background .2s; }
.faq-item.open .faq-q .pm { background: var(--grad-brand); transform: rotate(45deg); }
.faq-q .pm svg { width: 15px; height: 15px; color: var(--text); transition: color .2s; }
.faq-item.open .faq-q .pm svg { color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.faq-narrow { max-width: 820px; margin: 0 auto; }

@media (max-width: 920px) {
  .page-hero-inner, .prose-grid, .detail-block, .contact-grid, .company-info-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-hero-pic { display: none; }
  .prose-grid.rev .prose-pic, .detail-block:nth-child(even) .db-text { order: 0; }
  .mini-grid, .stats-row, .team-grid, .pf-grid, .about-values-grid, .about-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mini-grid, .stats-row, .team-grid, .pf-grid, .about-values-grid, .about-hub-grid { grid-template-columns: 1fr; }
  .field.row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; } .cta-btns { justify-content: center; }
}
