/* =========================================================
   The Percentage App — Booking Engine
   styles.css  ·  www.thepercentageapp.com
   ---------------------------------------------------------
   Standalone stylesheet. Shares the visual language of the
   Percentage Tickets site but is an independent file — edit
   freely without affecting any other property.
   Palette: light stone / near-black / red. Font: Inter.
   ========================================================= */

:root {
  --bg: #f3f1ef;
  --bg-soft: #faf8f6;
  --dark: #121212;
  --dark-2: #1b1b1b;
  --red: #ff2b36;
  --red-light: #ff4d57;
  --text: #161616;
  --muted: #6f6f6f;
  --border: rgba(0,0,0,0.08);
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 18px;
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

h1,h2,h3,h4 {
  font-family: 'Inter', sans-serif;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.03em;
}

img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

section {
  padding: 100px 0;
}

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

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 600;
}

.section-title {
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.05em;
  max-width: 700px;
  margin-bottom: 24px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 620px;
  font-size: 17px;
}

.dark .section-subtitle {
  color: rgba(255,255,255,0.72);
}

/* ---------- buttons ---------- */
.btn-row {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 26px;
  border-radius: 0;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--white);
  background: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--red-light);
}

.btn.secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}

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

/* ---------- header / nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.logo img {
  width: auto;
  max-height: 56px;
  border-radius: 0;
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--red);
}

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

.hero-content{
  padding-top:12px;
}

.hero-content p{
  max-width:620px;
  font-size:18px;
  line-height:1.75;
  color:rgba(0,0,0,0.66);
  margin-bottom:34px;
}

.hero-visual{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
}
/* ===================== HERO TITLE ===================== */

.hero h1{
  font-size:clamp(58px, 6.5vw, 92px);
  line-height:.94;
  letter-spacing:-0.055em;
  font-weight:800;
  max-width:720px;
  margin-bottom:26px;
}

.hero h1 span{
  color:var(--red);
  display:block;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.stat h3 {
  font-size: 32px;
  margin-bottom: 6px;
}

.stat p {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- ecosystem grid ---------- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 18px;
  margin-top: 60px;
}

.eco-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.eco-card h4 {
  font-size: 24px;
  margin-bottom: 8px;
}

.eco-card p {
  font-size: 14px;
  color: var(--muted);
}

/* On dark sections, ecosystem cards invert for contrast */
.dark .eco-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  color: var(--white);
}

.dark .eco-card p {
  color: rgba(255,255,255,0.7);
}

/* ---------- two-column rows ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

/* ---------- logo chips ---------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
}

.logo-chip {
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
}

/* ---------- feature list ---------- */
.feature-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-item div:last-child {
  font-size: 16px;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 9px;
  flex-shrink: 0;
}

/* ---------- dashboard / card group ---------- */
.dashboard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px;
  margin-top: 40px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 20px;
}

.dashboard-card {
  background: rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: 14px;
}

.dashboard-card strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* ---------- case study (kept for reuse) ---------- */
.case-study {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  margin-top: 60px;
}

.case-main {
  background: linear-gradient(135deg, #1b0f0d, #3a1c1f);
  color: white;
  padding: 42px;
  border-radius: 18px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}

.metric-box {
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.metric-box h3 {
  font-size: 44px;
}

/* ---------- final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 140px 0;
  background: linear-gradient(180deg, #3a0b0d, #170909);
  color: white;
}

.final-cta h2 {
  font-size: clamp(54px, 7vw, 92px);
  max-width: 900px;
  margin: 0 auto 26px;
}

/* ---------- footer ---------- */
footer {
  padding: 70px 0;
  background: #140908;
  color: rgba(255,255,255,0.7);
}

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

.footer-grid h4 {
  color: white;
  margin-bottom: 18px;
  font-size: 24px;
}

.footer-grid a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
  transition: color 0.25s ease;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-grid p {
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- FAQ ---------- */
.faq-section {
  background: var(--bg-soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
  margin-top: 50px;
}

.faq-item {
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

.faq-item h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.faq-item p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- language toggle (kept for future bilingual use) ---------- */
.lang-toggle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.18);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 0;
  cursor: pointer;
  transition: 0.25s ease;
  line-height: 1;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.lang-toggle:hover {
  border-color: var(--red);
  color: var(--red);
}

.lang-toggle .lt-sep {
  opacity: 0.4;
}

.lang-toggle .lt-en,
.lang-toggle .lt-th {
  transition: 0.25s ease;
  opacity: 0.45;
}

html[lang="en"] .lang-toggle .lt-en {
  opacity: 1;
  color: var(--red);
}

html[lang="th"] .lang-toggle .lt-th {
  opacity: 1;
  color: var(--red);
}

/* ---------- Thai typography ---------- */
html[lang="th"] body {
  line-height: 1.7;
}

html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] h4 {
  line-height: 1.15;
}

/* ---------- responsive ---------- */
@media(max-width: 980px) {

  .hero-grid,
  .two-col,
  .case-study,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-grid,
  .dashboard-grid,
  .metrics-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 64px;
  }

  .lang-toggle {
    display: inline-flex;
  }
}

@media(max-width: 768px) {

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

@media(max-width: 640px) {

  .container {
    width: calc(100% - 28px);
  }

  section {
    padding: 70px 0;
  }

  .hero h1,
  .section-title,
  .final-cta h2 {
    font-size: 46px;
  }

  .ecosystem-grid,
  .dashboard-grid,
  .metrics-grid,
  .stats {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   PREMIUM HOSPITALITY ENHANCEMENTS
========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 105px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,43,54,0.08), transparent 35%),
    radial-gradient(circle at bottom left, rgba(0,0,0,0.05), transparent 40%);
  pointer-events: none;
}

.hero h1 span {
  color: var(--red);
}

.hero-grid {
  position: relative;
  z-index: 2;
}

/* ===================== TRUST BAR ===================== */

.trust-bar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:42px;
}

.trust-bar span{
  padding:10px 16px;
  border:1px solid rgba(0,0,0,0.06);
  background:rgba(255,255,255,0.55);

  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.12em;

  color:rgba(0,0,0,0.58);

  border-radius:10px;

  backdrop-filter:blur(8px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 36px;
}

.hero-metrics div {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 16px;
}

.hero-metrics strong {
  display: block;
  font-size: 38px;
  line-height: 1;
}

.hero-metrics span {
  font-size: 13px;
  color: var(--muted);
}

.hero-secondary-btn {
  color: #241614 !important;
  border-color: #241614 !important;
}

.hero-visual img {
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.16);
}

.glass-card {
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.86);
}

.floating-review {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 280px;
  padding: 24px;
  background: #121212;
  color: white;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.floating-review p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.floating-review strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.problem-section {
  background: white;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}

.problem-card {
  background: var(--bg-soft);
  padding: 34px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
}

.problem-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.flow-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 70px;
  flex-wrap: wrap;
}

.flow-card {
  flex: 1;
  min-width: 220px;
  padding: 34px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.flow-card span {
  display: inline-block;
  color: var(--red);
  margin-bottom: 18px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.flow-card h3 {
  font-size: 28px;
  margin-bottom: 14px;
}

.flow-arrow {
  font-size: 34px;
  color: rgba(255,255,255,0.4);
}

.integrations-section {
  background: linear-gradient(180deg, #faf8f6 0%, #f3f1ef 100%);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
  margin-top: 60px;
}

.integration-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.integration-card h3 {
  margin-bottom: 24px;
  font-size: 34px;
}

.logos-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.logos-inline span {
  background: var(--bg-soft);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.roi-card {
  background: rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 42px;
  border: 1px solid rgba(255,255,255,0.08);
}

.roi-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.roi-line strong {
  font-size: 34px;
  color: white;
}

.roi-card p {
  margin-top: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.dashboard-card,
.eco-card,
.problem-card,
.integration-card,
.flow-card,
.metric-box,
.faq-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dashboard-card:hover,
.eco-card:hover,
.problem-card:hover,
.integration-card:hover,
.flow-card:hover,
.metric-box:hover,
.faq-item:hover {
  transform: translateY(-6px);
}

@media(max-width: 980px) {

  .hero-metrics,
  .integration-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-arrow {
    display: none;
  }
}
/* ===================== WHY US ===================== */

.why-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
  margin-top:60px;
}

.why-card{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:24px;
  padding:42px;
  transition:all .35s ease;
}

.why-card:hover{
  transform:translateY(-6px);
  border-color:rgba(255,255,255,0.18);
}

.why-card span{
  display:inline-block;
  margin-bottom:18px;
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#ff4b57;
}

.why-card h3{
  font-size:34px;
  margin-bottom:16px;
}

.why-card p{
  color:rgba(255,255,255,0.72);
  line-height:1.7;
}
/* ===================== MOBILE SECTION ===================== */

.mobile-section{
  background:#faf8f5;
}

.mobile-mockup{
  text-align:center;
}

.mobile-mockup img{
  max-width:420px;
  width:100%;
  border-radius:38px;
  box-shadow:0 30px 80px rgba(0,0,0,0.18);
}
/* ===================== CLIENT LOGOS ===================== */

.client-logos{
  margin-top:42px;
  padding-top:28px;
  border-top:1px solid rgba(0,0,0,0.08);
}

.client-logos span{
  display:block;
  margin-bottom:18px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:rgba(0,0,0,0.45);
  font-weight:600;
}

.logo-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:28px;
}

.logo-row img{
  height:24px;
  width:auto;
  border-radius:0;
  opacity:.55;
  filter:grayscale(1);
  transition:all .3s ease;
}

.logo-row img:hover{
  opacity:.9;
}

/* ===================== TESTIMONIAL SLIDER ===================== */

.testimonial-section{
  overflow:hidden;
}

.testimonial-controls{
  display:flex;
  justify-content:flex-end;
  gap:12px;

  margin-top:40px;
  margin-bottom:24px;
}

.testimonial-arrow{
  width:54px;
  height:54px;

  border-radius:50%;

  border:1px solid rgba(255,255,255,0.12);

  background:rgba(255,255,255,0.06);

  color:white;

  font-size:22px;

  cursor:pointer;

  transition:all .25s ease;
}

.testimonial-arrow:hover{
  background:var(--red);
  border-color:var(--red);

  transform:translateY(-2px);
}

.testimonial-slider{
  display:flex;
  gap:28px;

  overflow-x:auto;
  overflow-y:hidden;

  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;

  -webkit-overflow-scrolling:touch;

  padding:0 24px 20px;

  scrollbar-width:none;
}

.testimonial-slider::-webkit-scrollbar{
  display:none;
}

.testimonial-card{
  flex:0 0 420px;

  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);

  border-radius:28px;

  padding:42px;

  display:flex;
  flex-direction:column;

  scroll-snap-align:start;

  transition:all .3s ease;
}

.testimonial-card:hover{
  transform:translateY(-6px);
  border-color:rgba(255,255,255,0.18);
}

.testimonial-property{
  display:block;

  margin-bottom:18px;

  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.12em;

  color:#ff4b57;
  font-weight:600;
}

.testimonial-card p{
  color:rgba(255,255,255,0.76);

  line-height:1.8;

  margin-bottom:28px;
}

.testimonial-author{
  margin-top:auto;

  border-top:1px solid rgba(255,255,255,0.08);

  padding-top:18px;
}

.testimonial-author strong{
  display:block;
  margin-bottom:6px;
}

.testimonial-author span{
  color:rgba(255,255,255,0.5);
  font-size:14px;
}

/* MOBILE */

@media(max-width:768px){

  .testimonial-controls{
    display:none;
  }

  .testimonial-card{
    flex:0 0 88%;
    padding:34px;
  }

}

/* ===================== PRICING ===================== */

.pricing-section{
  background:#faf8f6;
}

.pricing-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:32px;
  margin-top:70px;
}

.pricing-card{
  position:relative;
  background:white;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:28px;
  padding:48px;
  box-shadow:0 20px 60px rgba(0,0,0,0.06);
  transition:all .35s ease;
}

.pricing-card:hover{
  transform:translateY(-8px);
}

.pricing-card.featured{
  border:2px solid var(--red);
}

.pricing-badge{
  position:absolute;
  top:24px;
  right:24px;
  background:var(--red);
  color:white;
  padding:8px 14px;
  border-radius:999px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:700;
}

.pricing-label{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--red);
  margin-bottom:18px;
  font-weight:700;
}

.pricing-card h3{
  font-size:42px;
  line-height:1;
  margin-bottom:24px;
}

.pricing-price{
  font-size:64px;
  font-weight:800;
  letter-spacing:-0.05em;
  margin-bottom:20px;
}

.pricing-copy{
  color:var(--muted);
  line-height:1.8;
  margin-bottom:30px;
}

.pricing-features{
  display:grid;
  gap:14px;
  margin-bottom:34px;
}

.pricing-features div{
  position:relative;
  padding-left:22px;
}

.pricing-features div::before{
  content:"•";
  position:absolute;
  left:0;
  color:var(--red);
}

@media(max-width:980px){

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

}
.cta-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.cta-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.cta-form-row > * {
  flex: 1;
  min-width: 0;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.cta-form select { color: rgba(255, 255, 255, 0.5); }
.cta-form select:valid { color: #fff; }

.cta-form textarea {
  margin-bottom: 20px;
  resize: vertical;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: #ffb1b3;
  background: rgba(255, 255, 255, 0.1);
}

.cta-form .btn { width: 100%; }

.cta-form-note {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.cta-form-note a { color: #ffb1b3; text-decoration: underline; }

@media (max-width: 600px) {
  .cta-form-row { flex-direction: column; gap: 16px; }
}
/* =========================================================
   RESPONSIVE / MOBILE FIXES  (appended — single source of truth)
   ========================================================= */

/* ---------- mobile nav (hamburger) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 12px 24px 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 16px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a.btn {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }
}

/* ---------- tablet / large-phone band (641–980px) ---------- */
@media (max-width: 980px) {
  /* stop large feature headings from overflowing on narrow widths */
  .pricing-price { font-size: 52px; }
  .pricing-card h3 { font-size: 34px; }
  .integration-card { padding: 32px; }
  .integration-card h3 { font-size: 28px; }
  .why-card { padding: 32px; }
  .why-card h3 { font-size: 28px; }

  /* issue 3: the four "why" boxes stack one-per-row instead of 2-up overflowing */
  .why-grid { grid-template-columns: 1fr; }

  /* issue 2: hero quote sits inline under the image instead of hanging off-screen */
  .hero-visual {
    flex-direction: column;
  }

  .floating-review {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    box-sizing: border-box;
  }

  /* issue 4: breathing room between the PCI/feature list and the image below it */
  #engine .feature-list { margin-bottom: 20px; }

  /* issue 5: breathing room between the testimonial intro and the slider */
  .testimonial-section .section-subtitle { margin-bottom: 16px; }
  .testimonial-slider { margin-top: 16px; }
}

/* ---------- phones (≤640px) ---------- */
@media (max-width: 640px) {

  /* hero spacing + scale */
  .hero { padding: 28px 0 64px; }
  .hero-grid { gap: 40px; }
  .hero-content p { font-size: 16px; line-height: 1.65; margin-bottom: 28px; }
  .hero-metrics { gap: 22px; }
  .hero-metrics strong { font-size: 32px; }

  /* hero CTAs share the row evenly instead of leaving a stray gap */
  .btn-row .btn { flex: 1; text-align: center; }

  /* tame the remaining oversized type so nothing pushes the page wide */
  .pricing-card { padding: 34px; }
  .pricing-price { font-size: 44px; }
  .pricing-card h3 { font-size: 30px; }
  .roi-card { padding: 30px; }
  .roi-line strong { font-size: 26px; }
  .roi-line { flex-wrap: wrap; gap: 4px; }
  .integration-card h3 { font-size: 26px; }
  .why-card h3 { font-size: 26px; }
  .eco-card h4 { font-size: 22px; }
  .faq-item { padding: 26px; }
  .faq-item h3 { font-size: 21px; }
  .flow-card h3 { font-size: 24px; }

  /* prevent the long PMS logo-chip list from feeling cramped */
  .logos-inline span { font-size: 13px; padding: 10px 13px; }

  /* footer stacks cleanly */
  .footer-grid { gap: 32px; }
}

/* ---------- very small phones (≤380px) ---------- */
@media (max-width: 380px) {
  .hero h1, .section-title, .final-cta h2 { font-size: 38px; }
  .hero-metrics strong { font-size: 28px; }
  .btn-row .btn { width: 100%; flex: none; }
}

/* ---------- global guard against horizontal scroll ---------- */
html, body { overflow-x: hidden; }

/* =========================================================
   LANGUAGE SWITCHER  (EN / TH) — lives inside the nav menu
   ========================================================= */

.lang-toggle a { text-decoration: none; color: inherit; }

/* active language highlight is driven by html[lang] (already defined above).
   only the hovered link should react, not the whole container. */
.lang-toggle:hover { border-color: var(--red); color: var(--text); }
.lang-toggle .lt-en:hover,
.lang-toggle .lt-th:hover { opacity: 1; color: var(--red); }

/* DESKTOP: toggle sits in the nav row, pushed to the right of the links */
@media (min-width: 981px) {
  .lang-toggle { margin-left: 10px; }
}

/* MOBILE: toggle appears inside the open hamburger menu.
   It's a full-width-ish row, centered, separated from the links above. */
@media (max-width: 980px) {
  #primary-nav .lang-toggle {
    align-self: center;
    margin-top: 18px;
    padding: 10px 18px;
  }
  /* the auto-close-on-link-click handler also fires for these <a>s, which is
     fine — tapping EN/TH navigates away anyway. */
}

/* guard for dark bars (header is light, so normally unused) */
.dark .lang-toggle { border-color: rgba(255,255,255,0.25); color: var(--white); }
