:root {
  --primary: #2563eb;
  --secondary: #242424;
  --accent: #cc2a4a;
  --white: #ffffff;
  --bg-slate: #f8fafc;
  --text-slate: #475569;
  --text-dark: #0f172a;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--white);
}

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

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  height: 72px;
  overflow: visible;
}

.navbar .container {
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar .logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.navbar .logo-text {
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
  letter-spacing: -0.02em;
}

.navbar .logo-text span {
  color: var(--primary);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.lang-toggle .active-lang {
  color: white;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 8px 20px;
  border-radius: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.cta-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ── Hero ── */
.hero {
  padding: 80px 0 70px;
  text-align: center;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 60%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.06);
  pointer-events: none;
}

.hero .badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.12;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-slate);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 34px;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: var(--primary);
  color: white;
}

/* ── Sections ── */
section {
  padding: 80px 0;
}

section.alt {
  background: var(--bg-slate);
}

section.dark {
  background: var(--secondary);
  color: white;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 900;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-sub {
  text-align: center;
  color: var(--text-slate);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

section.dark h2 {
  color: white;
}

section.dark .section-sub {
  color: #94a3b8;
}

/* ── Grid & Cards ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 40px -12px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

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

.card p {
  color: var(--text-slate);
  font-size: 0.95rem;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.icon-circle.blue {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.icon-circle.green {
  background: #ecfdf5;
  color: #059669;
}

/* ── Price Table ── */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 40px 0 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.price-table th,
.price-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
}

.price-table thead th {
  background: var(--secondary);
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-table tbody tr {
  background: white;
}

.price-table tbody tr:nth-child(even) {
  background: var(--bg-slate);
}

.price-table tbody td {
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
}

.price-table tbody td:first-child {
  font-weight: 800;
  color: var(--text-dark);
}

/* ── Image Box ── */
.image-box {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.image-box:hover img {
  transform: scale(1.02);
}

/* ── Steps ── */
.step-num {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-item h4 {
  margin: 0 0 4px;
  font-weight: 800;
}

.step-item p {
  font-size: 0.9rem;
  color: var(--text-slate);
  margin: 0;
}

/* ── Tour Cards ── */
.tour-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.tour-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  transition: all 0.35s;
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.tour-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tour-content {
  padding: 24px;
}

.tour-duration {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.tour-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  margin: 16px 0;
}

.tour-price .unit {
  font-size: 0.85rem;
  color: var(--text-slate);
  font-weight: 500;
}

.itinerary-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.itinerary-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-slate);
}

.itinerary-list li::before {
  content: '📍';
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 12px;
  border-radius: 8px;
}

/* ── CTA Banner ── */
.cta-banner {
  text-align: center;
  padding: 80px 0;
  background: var(--secondary);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.cta-banner::before {
  width: 400px;
  height: 400px;
  top: -150px;
  left: -100px;
}

.cta-banner::after {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -50px;
}

.cta-banner h2 {
  color: white;
}

.cta-banner p {
  color: #94a3b8;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .cta-button {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 14px rgba(204, 42, 74, 0.25);
}

.cta-banner .cta-button:hover {
  box-shadow: 0 10px 24px rgba(204, 42, 74, 0.35);
}

/* ── Footer ── */
.footer {
  background: var(--secondary);
  color: white;
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  text-align: center;
  color: #475569;
  font-size: 0.82rem;
}

/* ── Features list ── */
.features-list {
  padding-left: 0;
  list-style: none;
  margin: 20px 0;
}

.features-list li {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-slate);
}

.features-list li strong {
  color: var(--text-dark);
}

.check-icon {
  width: 22px;
  height: 22px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 900;
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  section {
    padding: 48px 0;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .tour-card-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    height: 60px;
  }

  .cta-nav {
    font-size: 0.72rem;
    padding: 7px 14px;
  }

  .lang-toggle {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .nav-links {
    display: none;
  }
}

/* ── Language toggle ── */
[data-lang="TH"] [data-en] {
  display: none;
}

[data-lang="TH"] [data-th] {
  display: inline;
}

[data-lang="EN"] [data-th] {
  display: none;
}

[data-lang="EN"] [data-en] {
  display: inline;
}

/* Block-level lang toggles */
[data-lang="TH"] [data-en-block] {
  display: none !important;
}

[data-lang="TH"] [data-th-block] {
  display: block !important;
}

[data-lang="EN"] [data-th-block] {
  display: none !important;
}

[data-lang="EN"] [data-en-block] {
  display: block !important;
}

/* table elements */
[data-lang="TH"] [data-en-row] {
  display: none !important;
}

[data-lang="TH"] [data-th-row] {
  display: table-row !important;
}

[data-lang="EN"] [data-th-row] {
  display: none !important;
}

[data-lang="EN"] [data-en-row] {
  display: table-row !important;
}