/* Shared CSS for all service detail pages
   ใช้ design system เดียวกับ index.html */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:     #F08228;
  --orange-dark:#C96A10;
  --navy:       #1B3A5C;
  --navy-dark:  #0D2540;
  --white:      #FFFFFF;
  --gray-light: #F7F7F7;
  --gray-mid:   #E8E8E8;
  --text-dark:  #1E1E1E;
  --text-mid:   #555555;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 5%; }

/* ── NAVBAR (เหมือน index) ─────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: rgba(27,58,92,0.97);
  backdrop-filter: blur(8px);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { display: block; }
.nav-logo-icon { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-text { color: white; font-size: 15px; font-weight: 600; line-height: 1.3; }
.nav-logo-text span { color: var(--orange); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange); color: white;
  padding: 9px 22px; border-radius: 25px;
  text-decoration: none; font-size: 14px; font-weight: 600;
  transition: all .2s;
}
.nav-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ── SERVICE HERO ────────────────────── */
.service-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, #0A1E35 100%);
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
  color: white;
}
.hero-bg-pattern {
  position: absolute; inset: 0; opacity: .04;
  background-image:
    radial-gradient(circle at 20% 50%, var(--orange) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--orange) 1px, transparent 1px);
  background-size: 60px 60px;
}
.service-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: inline-block;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; font-weight: 500; margin-bottom: 32px;
  transition: color .2s;
}
.breadcrumb:hover { color: var(--orange); }

.hero-icon {
  width: 64px; height: 64px;
  background: rgba(240,130,40,0.15); border: 1px solid rgba(240,130,40,0.4);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); margin-bottom: 24px;
  position: relative;
  animation: icon-glow 3s ease-in-out infinite;
}
@keyframes icon-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(240,130,40,0.15); }
  50%      { box-shadow: 0 0 30px rgba(240,130,40,0.35); }
}
.hero-icon svg { width: 32px; height: 32px; stroke-width: 2; }

.service-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.75); max-width: 750px;
}

/* ── CONTENT SECTIONS ─────────────────── */
.content-section { padding: 90px 0; }
.content-section.gray { background: var(--gray-light); }

.section-header { max-width: 750px; margin-bottom: 50px; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.content-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy); font-weight: 800; line-height: 1.3;
  margin-bottom: 16px;
  position: relative; display: inline-block;
}
.content-section h2::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  border-radius: 2px;
  margin-top: 12px;
}
.section-desc { color: var(--text-mid); font-size: 1.02rem; }

/* ── INCLUDES GRID ────────────────────── */
.includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.include-card {
  background: white; border: 2px solid var(--gray-mid);
  border-radius: 16px; padding: 28px;
}
.include-num {
  font-size: 1.4rem; font-weight: 800; color: var(--orange);
  font-family: 'Inter', sans-serif; margin-bottom: 12px;
}
.include-card h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
  margin-bottom: 10px;
}
.include-card p { color: var(--text-mid); font-size: 0.92rem; }

/* ── TWO COL ──────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.check-list, .step-list { list-style: none; padding: 0; margin-top: 16px; }
.check-list li {
  padding: 14px 0; border-bottom: 1px solid var(--gray-mid);
  color: var(--text-mid); font-size: 0.98rem;
  display: flex; gap: 12px;
}
.check-list li::before {
  content: '✓'; color: var(--orange); font-weight: 700; flex-shrink: 0;
}

.step-list { counter-reset: step; }
.step-list li {
  counter-increment: step;
  padding: 18px 0; border-bottom: 1px solid var(--gray-mid);
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  row-gap: 4px;
  align-items: baseline;
}
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--orange); font-weight: 800;
  font-family: 'Inter', sans-serif; font-size: 1.05rem;
  grid-row: 1 / span 2;
  align-self: start;
  line-height: 1.4;
}
.step-list li strong {
  color: var(--navy); font-weight: 700; font-size: 1rem;
  grid-column: 2;
}
.step-list li span {
  color: var(--text-mid); font-size: 0.93rem; line-height: 1.6;
  grid-column: 2;
}

/* ── PACKAGE SECTION ──────────────────── */
.package-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #FFF8F2 0%, #FFF3E6 100%);
  position: relative; overflow: hidden;
}
.package-section::before {
  content: ''; position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background:
    radial-gradient(circle at 30% 30%, rgba(240,130,40,0.18) 0%, transparent 55%),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(240,130,40,0.05) 22px 24px);
  border-radius: 50%;
  pointer-events: none;
}
.package-section::after {
  content: ''; position: absolute;
  bottom: -100px; left: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(27,58,92,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.package-section .container { position: relative; z-index: 1; }

.package-header { text-align: center; max-width: 800px; margin: 0 auto 50px; }
.package-badge {
  display: inline-block;
  background: var(--orange); color: white;
  padding: 6px 18px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 20px;
  position: relative;
  box-shadow: 0 0 0 0 rgba(240,130,40,0.5);
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,130,40,0.45); }
  50%      { box-shadow: 0 0 0 12px rgba(240,130,40,0); }
}
.package-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy); font-weight: 800; line-height: 1.25; margin-bottom: 16px;
}
.package-header p { color: var(--text-mid); font-size: 1.05rem; }

.price-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 24px; padding: 40px;
  color: white; text-align: center; max-width: 580px; margin: 0 auto 50px;
  position: relative; overflow: hidden;
}
.price-card::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(240,130,40,0.25) 0%, transparent 70%);
}
.price-card .price-label {
  font-size: 13px; color: rgba(255,255,255,0.65);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 12px; position: relative;
}
.price-card .price {
  font-size: clamp(2.5rem, 5vw, 3.6rem); font-weight: 800;
  color: var(--orange); line-height: 1; font-family: 'Inter', sans-serif;
  margin-bottom: 8px; position: relative;
}
.price-card .price-period {
  color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 16px;
  position: relative;
}
.price-card .price-note {
  font-size: 12px; color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 14px; margin-top: 14px;
  position: relative;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.package-block {
  background: white; border-radius: 16px; padding: 28px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.package-block h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.package-block ul { list-style: none; padding: 0; }
.package-block li {
  padding: 8px 0; color: var(--text-mid); font-size: 0.93rem;
  display: flex; gap: 10px; line-height: 1.55;
}
.package-block li::before {
  content: '•'; color: var(--orange); font-weight: 700;
  flex-shrink: 0;
}
.package-block.highlight { border-top: 4px solid var(--orange); }
.package-block.warning li::before { content: '!'; color: #C96A10; font-weight: 800; }

/* ── CTA ──────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 80px 0; text-align: center; color: white;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240,130,40,0.18) 0%, transparent 70%);
}
.cta-section .container { position: relative; }
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; margin-bottom: 14px;
}
.cta-section p { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.btn-primary {
  display: inline-block;
  background: var(--orange); color: white;
  padding: 16px 40px; border-radius: 30px;
  text-decoration: none; font-weight: 700; font-size: 16px;
  transition: all .25s;
  box-shadow: 0 8px 30px rgba(240,130,40,0.4);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* ── FOOTER ───────────────────────────── */
footer {
  background: #0A1E35; color: rgba(255,255,255,0.5);
  padding: 30px 0; text-align: center; font-size: 14px;
}

/* ── SCROLL PROGRESS BAR ──────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--orange), #FFB05A);
  z-index: 9999;
  transition: width .1s ease-out;
  box-shadow: 0 0 8px rgba(240,130,40,0.5);
}

/* ── REVEAL ON SCROLL ────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── HERO ICON FLOAT ─────────────────── */
.hero-icon { animation: icon-glow 3s ease-in-out infinite, icon-float 5s ease-in-out infinite; }
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── INTERACTIVE EFFECTS ─────────────── */

/* ThaiZain logo — ลอยช้าๆ (passive, ไม่ hover) */
.thaizain-logo {
  animation: thaizain-float 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(27,58,92,0.12));
}
@keyframes thaizain-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* CTA button — shimmer เคลื่อนผ่านเมื่อ hover */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left .6s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(240,130,40,0.4);
}
.btn-primary:hover::after { left: 100%; }

/* section title — เส้นใต้ขยับเมื่อ section เข้า view */
.section-header h2,
.two-col h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.section-header h2::after,
.two-col h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), #FFB05A);
  border-radius: 2px;
  transition: width .8s ease .2s;
}
.section-header.is-visible h2::after,
.two-col > div.is-visible h2::after {
  width: 60px;
}

/* CTA section — pulse subtle ที่ background */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(240,130,40,0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: cta-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.cta-section .container { position: relative; z-index: 1; }

/* ── MOBILE ───────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .training-images { grid-template-columns: 1fr !important; }
  .content-section { padding: 60px 0; }
  .service-hero { padding: 110px 0 60px; }
}
