/* ============================================================
   iCenter Service Lampang — main stylesheet
   ============================================================ */
:root {
  --bg: #0b0f1a;
  --bg-soft: #111827;
  --card: #151c2c;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e5e9f2;
  --muted: #9aa4b8;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --teal: #2dd4bf;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-head: "Kanit", sans-serif;
  --font-body: "Prompt", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; }

.container { width: min(1160px, 92%); margin-inline: auto; }

section { padding: 90px 0; position: relative; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.section-head .eyebrow {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 600; }

.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- scroll progress ---------- */
.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  z-index: 1000;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(11, 15, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #111;
  font-size: 1.1rem;
}

.logo em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #16100a;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35); }

.hamburger {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  z-index: -1;
  animation: blob 14s ease-in-out infinite alternate;
}

.hero::before {
  width: 480px;
  height: 480px;
  background: #f59e0b;
  top: -120px;
  right: -100px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: #0ea5e9;
  bottom: -140px;
  left: -120px;
  animation-delay: -6s;
}

@keyframes blob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 50px) scale(1.15); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 700;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  color: var(--muted);
  margin: 20px 0 32px;
  font-size: 1.05rem;
  max-width: 540px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #16100a;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(245, 158, 11, 0.4); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover { transform: translateY(-3px); border-color: var(--teal); color: var(--teal); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.92rem;
  list-style: none;
}

.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .dot { color: var(--accent); }

.hero-visual { position: relative; }

.hero-visual .frame {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  transition: transform 0.5s;
}

.hero-visual:hover .frame { transform: rotate(0deg) scale(1.01); }

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

.hero-chip {
  position: absolute;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}

.hero-chip strong { display: block; font-size: 0.95rem; }
.hero-chip small { color: var(--muted); }

.chip-1 { top: 8%; left: -6%; }
.chip-2 { bottom: 10%; right: -4%; animation-delay: -2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- brands marquee ---------- */
.brands {
  padding: 26px 0;
  border-block: 1px solid var(--card-border);
  background: var(--bg-soft);
  overflow: hidden;
}

.marquee { display: flex; gap: 64px; width: max-content; animation: marquee 28s linear infinite; }

.brands:hover .marquee { animation-play-state: paused; }

.marquee span {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 64px;
  white-space: nowrap;
}

.marquee span::after { content: "•"; color: var(--accent); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- stats ---------- */
.stats { padding: 70px 0; }

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

.stat {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 16px;
}

.stat b {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--accent-2);
}

.stat p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: var(--shadow);
}

.service-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .thumb img { transform: scale(1.07); }

.service-card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }

.service-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }

.service-card ul { list-style: none; color: var(--muted); font-size: 0.9rem; flex: 1; }

.service-card ul li { padding: 3px 0 3px 20px; position: relative; }

.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.service-card .tag {
  margin-top: 16px;
  align-self: flex-start;
  font-size: 0.8rem;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 999px;
}

/* ---------- extra services ---------- */
.extra { background: var(--bg-soft); border-block: 1px solid var(--card-border); }

.extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.95rem;
  transition: transform 0.25s, border-color 0.25s;
}

.extra-item:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.5); }

.extra-item .ico {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  font-size: 1.2rem;
}

/* ---------- process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 20px;
  position: relative;
  transition: transform 0.25s;
}

.step:hover { transform: translateY(-6px); }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  display: block;
  margin-bottom: 10px;
}

.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.87rem; }

/* ---------- why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: linear-gradient(160deg, var(--card), #101625);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s, border-color 0.25s;
}

.why-card:hover { transform: translateY(-6px); border-color: rgba(245, 158, 11, 0.45); }

.why-card .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--accent-soft);
  margin-bottom: 18px;
}

.why-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- videos ---------- */
.videos { background: var(--bg-soft); border-block: 1px solid var(--card-border); }

.video-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.video-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card);
  min-height: 420px;
  display: grid;
  place-items: center;
}

.video-embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

.video-side h3 { font-size: 1.3rem; margin-bottom: 14px; }
.video-side p { color: var(--muted); margin-bottom: 18px; }

.video-side ul { list-style: none; color: var(--muted); }
.video-side ul li { padding: 6px 0 6px 26px; position: relative; }
.video-side ul li::before { content: "▶"; position: absolute; left: 0; color: var(--accent); font-size: 0.7rem; top: 12px; }

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.team-img {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.team-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.team-copy p { color: var(--muted); margin-bottom: 14px; }

.team-copy .creds { list-style: none; margin-top: 10px; }
.team-copy .creds li { padding: 6px 0 6px 26px; position: relative; }
.team-copy .creds li::before { content: "★"; position: absolute; left: 0; color: var(--accent); }

/* ---------- reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
}

.review::before {
  content: "“";
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.35;
  position: absolute;
  top: 6px;
  left: 18px;
}

.review .stars { color: var(--accent-2); letter-spacing: 3px; margin-bottom: 12px; }
.review p { color: var(--text); font-size: 0.95rem; margin-bottom: 16px; }
.review .who { color: var(--muted); font-size: 0.85rem; }
.review .who b { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.25s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .answer { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }

/* ---------- contact ---------- */
.contact { background: var(--bg-soft); border-top: 1px solid var(--card-border); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: stretch;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px 30px;
}

.contact-card h3 { font-size: 1.3rem; margin-bottom: 20px; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.contact-row:last-of-type { border-bottom: 0; }

.contact-row .ico {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  font-size: 1.2rem;
}

.contact-row b { display: block; font-size: 1rem; }
.contact-row a, .contact-row span { color: var(--muted); font-size: 0.92rem; }
.contact-row a:hover { color: var(--accent-2); }

.contact-cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  min-height: 420px;
}

.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.2) contrast(1.05); }

/* ---------- footer ---------- */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--card-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 { font-size: 1.05rem; margin-bottom: 16px; color: var(--text); }

.footer-grid p, .footer-grid a { color: var(--muted); font-size: 0.9rem; }

.footer-grid ul { list-style: none; }
.footer-grid ul li { padding: 4px 0; }
.footer-grid ul a:hover { color: var(--accent-2); }

.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
}

/* ---------- floating actions ---------- */
.float-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 950;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
  position: relative;
}

.fab:hover { transform: scale(1.1); }

.fab-call { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; animation: pulse 2.2s infinite; }
.fab-fb { background: #1877f2; color: #fff; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- landing pages ---------- */
.service-card h3 a:hover { color: var(--accent-2); }
.service-card .tag:hover { background: rgba(245, 158, 11, 0.3); }

.page-hero { min-height: auto; padding: 150px 0 70px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--accent); }

.model-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.model-chips span {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.cta-strip {
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.15), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.cta-strip h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 10px; }
.cta-strip p { color: var(--muted); margin-bottom: 22px; }
.cta-strip .hero-ctas { justify-content: center; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .hero::after, .hero-chip, .marquee, .fab-call { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { padding-top: 120px; }
  .hero-grid, .team-grid, .video-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .chip-1 { left: 2%; }
  .chip-2 { right: 2%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 70px;
    flex-direction: column;
    background: rgba(11, 15, 26, 0.97);
    padding: 24px 8%;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.3s;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-links.open { transform: translateY(0); }
  .hamburger { display: block; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 10px 14px; }
}

@media (max-width: 560px) {
  section { padding: 64px 0; }
  .why-grid, .reviews-grid, .process-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
