/* ============================================================
   Xtreme Fitness — Landing Page
   โทนสี: ดำ #0b0b0d / แดง #e8232d / ขาว — อิงจากป้ายประกาศของยิม
   ============================================================ */

:root {
  --black: #0b0b0d;
  --black-2: #131316;
  --black-3: #1b1b20;
  --red: #e8232d;
  --red-dark: #b3121b;
  --red-light: #ff4a52;
  --white: #ffffff;
  --gray: #a5a5ad;
  --line-green: #06c755;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Kanit', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.center { text-align: center; margin-top: 2rem; }
.desktop-only { display: block; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(232, 35, 45, .4);
}
.btn-red:hover { box-shadow: 0 10px 26px rgba(232, 35, 45, .55); }

.btn-outline {
  border-color: rgba(255, 255, 255, .35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--red); color: var(--red-light); }

.btn-line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(6, 199, 85, .35);
}
.btn-line:hover { background: #05b34c; }

.btn-block { width: 100%; }

.line-icon { width: 1.35em; height: 1.35em; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 11, 13, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, .6); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .15);
}
.logo-x { color: var(--red); font-size: 1.2em; }
.logo-thin { font-weight: 300; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 500;
}
.nav-links > a:not(.btn) { position: relative; padding: .3rem 0; color: var(--white); }
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s;
}
.nav-links > a:not(.btn):hover::after { width: 100%; }

.nav-line { padding: .5rem 1.1rem; font-size: .92rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(232, 35, 45, .12), transparent 55%),
    var(--black);
}

/* แถบโค้งแดงมุมจอ — ล้อกับกราฟิกในป้ายประกาศ */
.hero-shape {
  position: absolute;
  width: 60vmin; height: 60vmin;
  background: linear-gradient(135deg, var(--red), var(--red-dark) 60%, #7a0c12);
  z-index: 0;
  filter: drop-shadow(0 0 40px rgba(232, 35, 45, .35));
}
.hero-shape-tl {
  top: -30vmin; left: -30vmin;
  border-radius: 0 0 100% 0;
  transform: rotate(8deg);
}
.hero-shape-br {
  bottom: -32vmin; right: -32vmin;
  border-radius: 100% 0 0 0;
  transform: rotate(8deg);
}

/* ลายจุด dots — ล้อกับป้าย */
.dots {
  position: absolute;
  width: 140px; height: 140px;
  background-image: radial-gradient(rgba(255,255,255,.5) 2px, transparent 2.5px);
  background-size: 16px 16px;
  z-index: 0;
}
.dots-tr { top: 90px; right: 6%; }
.dots-bl { bottom: 60px; left: 5%; }

/* เครื่องหมาย ✕ ประดับ — ล้อกับป้าย */
.x-mark {
  position: absolute;
  font-weight: 800;
  color: var(--red);
  opacity: .85;
  z-index: 0;
  user-select: none;
}
.x1 { top: 22%; left: 8%; font-size: 2.2rem; color: var(--white); opacity: .6; }
.x2 { top: 60%; right: 10%; font-size: 2.8rem; }
.x3 { bottom: 14%; left: 42%; font-size: 1.6rem; color: var(--white); opacity: .4; }

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-logo {
  width: clamp(110px, 18vw, 160px);
  height: clamp(110px, 18vw, 160px);
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.4rem;
  border: 3px solid rgba(255, 255, 255, .18);
  box-shadow: 0 0 50px rgba(232, 35, 45, .45);
}

.hero-kicker {
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: .95rem;
}

.hero-title {
  font-style: italic;
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.line-red { color: var(--red); text-shadow: 0 0 60px rgba(232, 35, 45, .45); }
.line-white { color: var(--white); }

.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 640px;
  font-size: 1.15rem;
  color: #d6d6dc;
  font-weight: 300;
}
.hero-sub strong { color: var(--red-light); font-weight: 600; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.8rem;
}
.badge {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .92rem;
  font-weight: 400;
}
.badge .star { color: #ffb400; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* ---------- Highlights ---------- */
.highlights {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  padding: 2.2rem 0;
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.highlight { display: flex; flex-direction: column; }
.hl-num {
  font-size: 2.2rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
}
.hl-label { font-size: .95rem; opacity: .92; font-weight: 300; }

/* ---------- Sections ทั่วไป ---------- */
.section { padding: 5.5rem 0; }
.section-dark { background: var(--black-2); }

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: .6rem;
}
.section-title em {
  display: block;
  font-style: italic;
  font-weight: 800;
  font-size: .55em;
  letter-spacing: .3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.month-label { color: var(--red-light); }

.section-sub {
  text-align: center;
  color: var(--gray);
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.fine-print {
  text-align: center;
  color: var(--gray);
  font-size: .85rem;
  font-weight: 300;
  margin-top: 2rem;
}

/* ---------- Packages ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.package-card {
  position: relative;
  background: var(--black-3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.package-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 35, 45, .6);
  box-shadow: var(--shadow);
}
.package-card.popular {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(232, 35, 45, .14), var(--black-3) 55%);
}
.package-card .tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .2rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.package-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}
.price { text-align: center; margin: 1rem 0 1.2rem; }
.price .amount {
  font-size: 2.6rem;
  font-weight: 800;
  font-style: italic;
  color: var(--red-light);
}
.price .unit { display: block; color: var(--gray); font-size: .9rem; font-weight: 300; }
.package-card ul { flex: 1; margin-bottom: 1.5rem; }
.package-card li {
  padding: .35rem 0 .35rem 1.6rem;
  position: relative;
  font-weight: 300;
  font-size: .95rem;
  color: #d6d6dc;
}
.package-card li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}

/* ---------- Schedule ---------- */
.day-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.8rem;
}
.day-tab {
  background: var(--black-3);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--white);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  padding: .5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.day-tab:hover { border-color: var(--red); }
.day-tab.active {
  background: var(--red);
  border-color: var(--red);
  font-weight: 600;
}
.day-tab .today-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ffb400;
  margin-left: .4rem;
  vertical-align: middle;
}

.schedule-table-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--black-3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  overflow: hidden;
}
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th {
  background: rgba(232, 35, 45, .15);
  color: var(--red-light);
  font-weight: 600;
  text-align: left;
  padding: .8rem 1.2rem;
  font-size: .95rem;
}
.schedule-table td {
  padding: .75rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-weight: 300;
  font-size: .97rem;
}
.schedule-table td.time { font-weight: 600; color: var(--red-light); white-space: nowrap; }
.schedule-empty {
  padding: 2rem;
  text-align: center;
  color: var(--gray);
  font-weight: 300;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  background: var(--black-3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(232, 35, 45, .55); }
.service-icon { font-size: 2.4rem; margin-bottom: .8rem; }
.service-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.service-card p { color: #c9c9d1; font-weight: 300; font-size: .95rem; }
.service-card.parking { border-color: rgba(232, 35, 45, .45); }

.check-list { margin-bottom: .7rem; }
.check-list li {
  position: relative;
  padding: .2rem 0 .2rem 1.7rem;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--line-green);
  font-weight: 800;
}

/* ---------- Reviews ---------- */
.review-summary { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.review-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.review-score .score {
  font-size: 4rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: var(--white);
}
.review-score .stars { color: #ffb400; font-size: 1.5rem; letter-spacing: .15em; }
.review-count { color: var(--gray); font-weight: 300; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.review-card {
  background: var(--black-3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.review-stars { color: #ffb400; letter-spacing: .12em; }
.review-card p { font-weight: 300; color: #d6d6dc; font-size: .96rem; flex: 1; }
.reviewer { color: var(--gray); font-size: .85rem; font-weight: 300; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-item { margin-bottom: 1.5rem; }
.contact-item h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: .25rem; }
.contact-item p { color: #c9c9d1; font-weight: 300; }
.contact-item a:hover { color: var(--red-light); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow);
  min-height: 420px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

/* ---------- Footer ---------- */
.footer {
  background: #060608;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-inner { text-align: center; }
.footer-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .8rem;
  border: 2px solid rgba(255, 255, 255, .15);
}
.footer-logo { font-size: 1.15rem; display: inline-flex; margin-bottom: .6rem; }
.footer p { color: var(--gray); font-weight: 300; font-size: .9rem; }
.footer .copy { margin-top: .6rem; font-size: .8rem; opacity: .7; }

/* ---------- ปุ่ม LINE ลอย ---------- */
.line-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--line-green);
  color: #fff;
  border-radius: 999px;
  padding: .8rem 1.2rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(6, 199, 85, .45);
  transition: transform .2s, box-shadow .2s;
}
.line-float:hover { transform: scale(1.06); box-shadow: 0 12px 30px rgba(6, 199, 85, .6); }
.line-float svg { width: 26px; height: 26px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .desktop-only { display: none; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 11, 13, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: .5rem 0 1rem;
    transform: translateY(-130%);
    transition: transform .3s ease;
    z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a:not(.btn) {
    padding: .9rem 6%;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
  }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-line { margin: 1rem 6% 0; justify-content: center; }

  .section { padding: 3.8rem 0; }
  .hero { padding-top: 100px; }
  .hero-sub { font-size: 1rem; }
  .dots { width: 90px; height: 90px; }

  .package-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }

  .schedule-table th, .schedule-table td { padding: .65rem .8rem; font-size: .9rem; }

  .line-float-text { display: none; }
  .line-float { padding: .9rem; }
}
