﻿/* ═══════════════════════════════════════════════
   Thailand U Tour — Base Styles
   Shared across all pages. Page-specific CSS
   lives in each HTML file's <style> block.
   ═══════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────── */
@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeuePro-Regular.woff2') format('woff2'),
       url('../fonts/BebasNeuePro-Regular.woff')  format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeuePro-Bold.woff2') format('woff2'),
       url('../fonts/BebasNeuePro-Bold.woff')  format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Disruptors Script';
  src: url('../fonts/DisruptorsScript-Regular.woff2') format('woff2'),
       url('../fonts/DisruptorsScript-Regular.woff')  format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ── Variables ──────────────────────────────── */
:root {
  --gold:      #FFD300;
  --gold-d:    #e6bf00;
  --bg:        #FFFFFF;
  --alt:       #F8F8F8;
  --ink:       #0a0a0a;
  --body:      #2a2a2a;
  --muted:     #666666;
  --line:      #ececec;
  --shadow-sm: 0 2px 8px  rgba(0,0,0,.04);
  --shadow-md: 0 10px 28px rgba(0,0,0,.08);
  --shadow-lg: 0 28px 60px rgba(0,0,0,.18);
}

/* ── Reset ──────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4, .bebas {
  font-family: 'Bebas Neue', Impact, sans-serif;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .01em;
  font-weight: 400;
  margin: 0;
  line-height: .95;
}
h1 { font-size: clamp(44px, 6.5vw, 104px); }
h2 { font-size: clamp(34px, 4.5vw, 66px); }
h3 { font-size: clamp(21px, 1.75vw, 27px); }
.script {
  font-family: 'Disruptors Script', cursive;
  font-weight: 400;
  font-style: normal;
  color: var(--gold);
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: .01em;
  text-transform: none;
}
p   { margin: 0; color: var(--body); }
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
*   { border-radius: 0 !important; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.alt   { background: var(--alt); }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s ease;
  font-family: 'Inter';
  border-radius: 0;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-out { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-out:hover { background: var(--ink); color: #fff; }
.btn-out-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-out-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ── Navigation (base) ──────────────────────── */
header.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff; }
.nav-inner  { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo       { display: flex; align-items: center; gap: 12px; }
.logo img   { height: 46px; width: auto; }
nav.menu    { display: flex; gap: 36px; align-items: center; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone  { font-family: 'Bebas Neue'; font-size: 20px; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* ── Page header (.ph) ──────────────────────── */
.ph     { padding: 140px 0 56px; background: var(--alt); border-bottom: 1px solid var(--line); }
.ph h1  { font-size: clamp(40px, 5.5vw, 84px); margin-top: 6px; }
.ph .script { font-size: clamp(48px, 5.5vw, 80px); display: block; margin-bottom: 8px; }

/* ── Photo hero (.page-hero) ────────────────── */
.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  margin-top: 76px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 100%);
}
.page-hero-inner { position: relative; z-index: 1; padding: 56px 0 52px; width: 100%; }
.page-hero-inner .script { color: #FFF2B2; font-size: clamp(52px,6vw,88px); display: block; margin-bottom: 4px; }
.page-hero-inner h1      { font-size: clamp(44px,6.5vw,90px); color: #fff; line-height: .95; margin-bottom: 16px; }
.page-hero-inner p       { color: rgba(255,255,255,.7); font-size: 15px; max-width: 520px; }

/* ── Sections ───────────────────────────────── */
section { padding: 80px 0; }
.sec-head {
  margin-bottom: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.sec-head .lt     { max-width: 680px; }
.sec-head .script { font-size: clamp(44px,5vw,72px); display: block; margin-bottom: 6px; }
.sec-head h2      { margin-bottom: 14px; }
.sec-head p       { color: var(--muted); font-size: 16px; max-width: 560px; }

/* ── Tour card ──────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.tour-card {
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.tour-img     { position: relative; height: 240px; overflow: hidden; }
.tour-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.tour-card:hover .tour-img img { transform: scale(1.06); }
.badge-cat  { position: absolute; top: 16px; left: 16px; background: #fff; color: var(--ink); padding: 6px 12px; font-family: 'Inter'; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.badge-fav  { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; background: rgba(255,255,255,.95); display: grid; place-items: center; cursor: pointer; transition: all .2s; border: none; }
.badge-fav:hover { background: var(--gold); }
.badge-time { position: absolute; bottom: 16px; left: 16px; background: var(--ink); color: #fff; padding: 7px 12px; font-family: 'Inter'; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tour-body  { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 14px; }
.tour-body h3   { font-family: 'Bebas Neue'; font-size: 26px; line-height: 1.05; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.1em; }
.tour-body .desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag  { font-size: 11px; padding: 5px 10px; background: var(--alt); color: var(--body); font-weight: 500; letter-spacing: .04em; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); margin-top: auto; }
.price     { font-family: 'Bebas Neue'; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.price .v  { font-size: 34px; color: var(--gold); line-height: 1; white-space: nowrap; }
.price .from { font-family: 'Inter'; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.tour-cta  { display: flex; margin: 0 -24px -24px; border-top: 1px solid var(--line); }
.tour-cta button { flex: 1; padding: 18px; border: none; background: transparent; font-family: 'Inter'; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .2s; color: var(--ink); }
.tour-cta button:first-child { border-right: 1px solid var(--line); }
.tour-cta button.book { background: var(--ink); color: #fff; }
.tour-cta button.book:hover { background: var(--gold); color: var(--ink); }
.tour-cta button.detail:hover { background: var(--alt); }

/* ── Chips & filters ────────────────────────── */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.chip  { padding: 12px 22px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-family: 'Inter'; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { border-color: var(--ink); }
.chip.act { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.act .count { background: var(--gold); color: var(--ink); }
.chip .count { background: var(--alt); color: var(--muted); padding: 2px 8px; font-size: 11px; }

/* ── Tour detail modal ──────────────────────── */
.mb { position: fixed; inset: 0; background: rgba(10,10,10,.6); backdrop-filter: blur(8px); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s; display: flex; justify-content: center; align-items: center; padding: 24px; }
.mb.open { opacity: 1; pointer-events: auto; }
.m { background: #fff; width: min(960px,100%); max-height: 92vh; overflow-y: auto; transform: translateY(40px) scale(.97); opacity: 0; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s; position: relative; }
.mb.open .m { opacity: 1; transform: translateY(0) scale(1); }
.mc { position: absolute; top: 18px; right: 18px; z-index: 5; width: 42px; height: 42px; background: rgba(255,255,255,.96); border: none; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); }
.mc:hover { background: var(--gold); }
.m-gallery      { height: 360px; position: relative; overflow: hidden; background: #111; }
.m-gallery-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.m-gallery-track img { width: 100%; height: 100%; object-fit: cover; flex: none; display: block; }
.m-gallery-btn  { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(255,255,255,.92); border: none; cursor: pointer; display: grid; place-items: center; z-index: 3; transition: background .2s; }
.m-gallery-btn:hover { background: var(--gold); }
.m-gallery-prev { left: 14px; }  .m-gallery-next { right: 14px; }
.m-gallery-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 3; }
.m-gallery-dots span { width: 8px; height: 8px; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.m-gallery-dots span.act { background: #fff; }
.m-body    { padding: 44px; }
.m-body h2 { font-size: 48px; margin-bottom: 8px; }
.m-body .script { font-size: 36px; display: block; margin-bottom: 8px; }
.m-meta    { display: flex; gap: 32px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.m-meta div { display: flex; flex-direction: column; gap: 4px; }
.m-meta .lab { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.m-meta .v   { font-family: 'Bebas Neue'; font-size: 24px; color: var(--ink); letter-spacing: .04em; }
.m-section   { margin-top: 34px; }
.m-section h4 { font-family: 'Bebas Neue'; font-size: 24px; color: var(--ink); letter-spacing: .04em; margin-bottom: 14px; }
.m-section p  { font-size: 15px; line-height: 1.75; color: var(--body); }
.incl    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; margin: 0; }
.incl li { list-style: none; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--body); }
.incl li::before { content: '✓'; width: 24px; height: 24px; background: var(--gold); color: var(--ink); font-weight: 700; display: grid; place-items: center; flex: none; font-size: 13px; }
.pgrid      { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.pcard      { background: var(--alt); padding: 20px; text-align: center; }
.pcard .lab { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.pcard .v   { font-family: 'Bebas Neue'; font-size: 32px; color: var(--ink); line-height: 1; }
.pcard.gold { background: var(--gold); }
.pcard.gold .lab { color: var(--ink); }
.m-cta { margin-top: 34px; width: 100%; padding: 20px; font-size: 14px; }
.m-timeline  { display: flex; flex-direction: column; gap: 0; }
.m-tl-item   { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; position: relative; }
.m-tl-item:not(:last-child)::after { content: ''; position: absolute; left: 36px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.m-tl-time   { flex: none; background: var(--gold); color: var(--ink); font-family: 'Bebas Neue'; font-size: 16px; letter-spacing: .06em; padding: 4px 8px; line-height: 1.25; min-width: 72px; text-align: center; position: relative; z-index: 1; white-space: nowrap; }
.m-tl-dot    { flex: none; width: 10px; height: 10px; background: var(--line); border: 2px solid var(--ink); margin-top: 7px; position: relative; z-index: 1; }
.m-tl-body   { font-size: 14px; color: var(--body); line-height: 1.7; padding-top: 3px; }
.m-plain-desc { font-size: 15px; line-height: 1.75; color: var(--body); }
.m-plain-desc p+p { margin-top: 12px; }

/* ── Booking form modal ─────────────────────── */
.bm { position: fixed; inset: 0; background: rgba(10,10,10,.6); backdrop-filter: blur(8px); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .3s; display: flex; justify-content: center; align-items: center; padding: 24px; }
.bm.open { opacity: 1; pointer-events: auto; }
.bm-box { background: #fff; width: min(520px,100%); max-height: 92vh; overflow-y: auto; transform: translateY(40px); opacity: 0; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s; position: relative; }
.bm.open .bm-box { opacity: 1; transform: translateY(0); }
.bm-head  { padding: 32px 32px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bm-title { font-family: 'Bebas Neue'; font-size: 32px; color: var(--ink); line-height: 1; }
.bm-tour  { display: inline-block; margin-top: 6px; padding: 5px 12px; background: rgba(245,195,0,.2); font-size: 13px; font-weight: 600; color: var(--ink); }
.bm-close { width: 42px; height: 42px; background: var(--alt); border: none; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: background .2s; }
.bm-close:hover { background: var(--gold); }
.bm-body  { padding: 24px 32px 36px; display: flex; flex-direction: column; gap: 14px; }
.f-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-group  { display: flex; flex-direction: column; gap: 6px; }
.f-label  { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.f-input  { padding: 14px 16px; border: 1.5px solid var(--line); font-size: 15px; font-family: 'Inter'; color: var(--ink); background: #fff; outline: none; transition: border-color .2s; width: 100%; }
.f-input:focus { border-color: var(--gold); }
.f-input::placeholder { color: #bbb; }
.f-submit { width: 100%; padding: 18px; background: var(--ink); color: #fff; border: none; font-size: 14px; font-weight: 700; font-family: 'Inter'; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .2s; margin-top: 4px; }
.f-submit:hover:not(:disabled) { background: var(--gold); color: var(--ink); }
.f-submit:disabled { opacity: .55; cursor: not-allowed; }
.f-error   { font-size: 13px; color: #c0392b; padding: 12px 16px; background: #fdf3f3; border: 1px solid #f5c6c6; }
.f-privacy { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.55; }
.bm-success       { padding: 56px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bm-success-icon  { width: 80px; height: 80px; background: var(--gold); display: grid; place-items: center; font-size: 36px; margin: 0 auto; }
.bm-success-title { font-family: 'Bebas Neue'; font-size: 36px; color: var(--ink); }
.bm-success-text  { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 360px; }
.bm-success-btn   { padding: 16px 40px; background: var(--ink); color: #fff; border: none; font-family: 'Inter'; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; margin-top: 8px; transition: background .2s; }
.bm-success-btn:hover { background: var(--gold); color: var(--ink); }

/* ── Footer ─────────────────────────────────── */
footer {
  background: var(--ink) url('../img/dark-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 0 32px;
  position: relative;
}
footer::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.55); pointer-events: none; }
footer .container { position: relative; z-index: 1; }
footer h4 { font-family: 'Bebas Neue'; font-size: 20px; color: #fff; margin-bottom: 20px; letter-spacing: .06em; }
.foot-tagline   { font-size: 14px; color: rgba(255,255,255,.55); max-width: 300px; line-height: 1.7; margin: 14px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.foot-grid a, .foot-grid li { font-size: 14px; color: rgba(255,255,255,.62); line-height: 2.2; display: block; list-style: none; padding: 0; margin: 0; }
.foot-grid a:hover { color: var(--gold); }
.foot-logo     { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.foot-logo img { height: 48px; width: 48px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; }
.foot-logo .lt { font-family: 'Bebas Neue'; font-size: 22px; letter-spacing: .06em; color: #fff; line-height: 1; }
.foot-logo .lt small { display: block; font-family: 'Inter'; font-size: 9px; letter-spacing: .2em; color: rgba(255,255,255,.4); font-weight: 500; margin-top: 3px; }
.copy    { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 14px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: rgba(255,255,255,.65); transition: all .2s; }
.socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media(max-width: 980px) {
  .nav-phone { display: none; }
  nav.menu   { display: none; }
  .nav-burger { display: flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-3    { grid-template-columns: 1fr 1fr; }
  .ph        { padding: 100px 0 44px; }
  .m-body    { padding: 30px; }
  .pgrid, .incl { grid-template-columns: 1fr 1fr; }
  .bm-body, .bm-head { padding-left: 20px; padding-right: 20px; }
}
@media(max-width: 640px) {
  .container { padding: 0 16px; }
  section    { padding: 56px 0; }
  .ph        { padding: 88px 0 36px; }
  .page-hero { min-height: 280px; }
  .page-hero-inner { padding: 40px 0 36px; }
  .page-hero-inner .script { font-size: 44px; }
  .page-hero-inner h1 { font-size: 40px; }
  .grid-3    { grid-template-columns: 1fr; }
  .tour-img  { height: 200px; }
  .sec-head  { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .sec-head .script { font-size: 42px; }
  .pgrid, .incl { grid-template-columns: 1fr; }
  .m-gallery { height: 240px; }
  .m-body    { padding: 20px 16px; }
  .m-body h2 { font-size: 34px; }
  .m-meta    { gap: 16px; }
  .bm        { padding: 0; }
  .bm-box    { width: 100%; max-height: 100vh; }
  .bm-body, .bm-head { padding-left: 16px; padding-right: 16px; }
  .f-row     { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .copy      { flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; }
  .copy-left { gap: 6px; }
  .chips     { gap: 6px; }
  .chip      { padding: 10px 14px; font-size: 12px; }
}
@media(max-width: 480px) {
  .script    { font-size: 38px; }
  .sec-head .script { font-size: 36px; }
  .page-hero-inner .script { font-size: 38px; }
  .page-hero-inner h1 { font-size: 34px; }
  .page-hero-inner p  { font-size: 14px; }
  section    { padding: 44px 0; }
  .sec-head  { margin-bottom: 24px; }
  .ph        { padding: 80px 0 28px; }
  .ph h1     { font-size: 36px; }
  .tour-body h3 { font-size: 22px; }
  .chip      { padding: 8px 12px; font-size: 11px; }
  .m-body    { padding: 16px 14px; }
  .m-body h2 { font-size: 28px; }
  .bm-title  { font-size: 26px; }
  .legal-line { font-size: 10px; }
}
