/* ===========================================================
   Tour Around TH — Thailand DMC
   Palette: deep emerald + warm gold + ivory
   =========================================================== */

:root{
  --emerald-900:#06281f;
  --emerald-800:#0a3a2c;
  --emerald-700:#0e4a38;
  --emerald-600:#13624a;
  --gold:#c9a24b;
  --gold-soft:#d9bd7c;
  --ivory:#f7f4ec;
  --ivory-2:#efe9dc;
  --ink:#16201c;
  --muted:#5c6b63;
  --line:rgba(11,61,46,.12);
  --white:#ffffff;
  --shadow:0 18px 50px -20px rgba(6,40,31,.35);
  --radius:16px;
  --maxw:1180px;
  --serif:"Cormorant Garamond", Georgia, serif;
  --sans:"Manrope","Noto Sans Thai",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

/* Thai language: switch primary font for better script rendering */
html[lang="th"]{ --sans:"Noto Sans Thai","Manrope",system-ui,sans-serif; }
html[lang="th"] body{ letter-spacing:0; }

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--ivory);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  font-weight:400;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow{
  display:inline-block;
  font-size:.78rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--gold);
  margin-bottom:18px;
}
.eyebrow--light{ color:var(--gold-soft); }

.section__title{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(2rem,4vw,3.1rem);
  line-height:1.1;
  letter-spacing:-.01em;
  color:var(--emerald-900);
}
.section__intro{
  margin-top:18px;
  max-width:620px;
  color:var(--muted);
  font-size:1.05rem;
}
html[lang="th"] .section__title{ font-family:var(--sans); font-weight:700; line-height:1.25; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5em;
  padding:.85em 1.6em;
  border-radius:999px;
  font-weight:600;
  font-size:.92rem;
  letter-spacing:.01em;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--lg{ padding:1.05em 2.1em; font-size:1rem; }
.btn--full{ width:100%; }
.btn--gold{
  background:linear-gradient(135deg,var(--gold),#b98f38);
  color:#1c1405;
  box-shadow:0 12px 28px -12px rgba(201,162,75,.7);
}
.btn--gold:hover{ transform:translateY(-2px); box-shadow:0 18px 34px -12px rgba(201,162,75,.85); }
.btn--ghost{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.5);
}
.btn--ghost:hover{ background:rgba(255,255,255,.12); border-color:#fff; }

/* ---------- Top bar ---------- */
.topbar{
  background:var(--emerald-900);
  color:rgba(255,255,255,.78);
  font-size:.8rem;
}
.topbar__inner{ display:flex; align-items:center; justify-content:space-between; height:40px; }
.topbar__note{ letter-spacing:.02em; }
.topbar__actions{ display:flex; align-items:center; gap:18px; }
.topbar__link{ color:rgba(255,255,255,.78); }
.topbar__link:hover{ color:#fff; }
.langswitch{ display:flex; gap:2px; background:rgba(255,255,255,.08); border-radius:999px; padding:3px; }
.langswitch__btn{
  border:0; background:transparent; color:rgba(255,255,255,.7);
  font-size:.72rem; font-weight:600; letter-spacing:.06em;
  padding:4px 10px; border-radius:999px; cursor:pointer; font-family:inherit;
  transition:.2s;
}
.langswitch__btn:hover{ color:#fff; }
.langswitch__btn.is-active{ background:var(--gold); color:#1c1405; }

/* ---------- Header ---------- */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(247,244,236,.85);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .3s;
}
.header.is-scrolled{ box-shadow:0 6px 24px -16px rgba(6,40,31,.4); }
.header__inner{ display:flex; align-items:center; justify-content:space-between; height:74px; }

.brand{ display:flex; align-items:center; gap:12px; }
.brand__mark{
  width:46px; height:46px; border-radius:50%;
  object-fit:contain; display:block;
  background:transparent;
}
.brand__text{ display:flex; flex-direction:column; line-height:1.05; }
.brand__name{ font-family:var(--serif); font-weight:600; font-size:1.25rem; color:var(--emerald-900); }
.brand__sub{ font-size:.66rem; letter-spacing:.28em; text-transform:uppercase; color:var(--gold); font-weight:600; }

.nav{ display:flex; gap:34px; }
.nav a{
  font-size:.92rem; font-weight:500; color:var(--ink);
  position:relative; padding:4px 0; transition:color .2s;
}
.nav a::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background:var(--gold); transition:width .25s;
}
.nav a:hover{ color:var(--emerald-700); }
.nav a:hover::after{ width:100%; }

.header__cta{ display:flex; align-items:center; gap:14px; }

.navtoggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px; }
.navtoggle span{ width:24px; height:2px; background:var(--emerald-900); border-radius:2px; transition:.3s; }

/* ---------- Hero ---------- */
.hero{ position:relative; color:#fff; overflow:hidden; }
.hero__bg{
  position:absolute; inset:0;
  background:url("https://images.unsplash.com/photo-1528181304800-259b08848526?auto=format&fit=crop&w=1900&q=80") center/cover no-repeat;
  transform:scale(1.05);
}
.hero__overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(6,40,31,.55) 0%, rgba(6,40,31,.55) 40%, rgba(6,40,31,.82) 100%),
    radial-gradient(120% 80% at 15% 10%, rgba(6,40,31,.35), transparent 60%);
}
.hero__inner{ position:relative; padding:120px 24px 90px; max-width:860px; }
.hero__title{
  font-family:var(--serif); font-weight:600;
  font-size:clamp(2.6rem,6vw,4.6rem); line-height:1.04;
  letter-spacing:-.015em; margin-bottom:24px;
}
html[lang="th"] .hero__title{ font-family:var(--sans); font-weight:700; line-height:1.25; font-size:clamp(2rem,5vw,3.4rem); }
.hero__lead{ font-size:1.15rem; max-width:640px; color:rgba(255,255,255,.9); margin-bottom:36px; }
.hero__actions{ display:flex; flex-wrap:wrap; gap:14px; }

.hero__stats{
  position:relative;
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:24px;
  padding:28px 24px 70px;
}
.stat{ display:flex; flex-direction:column; gap:6px; }
.stat__num{
  font-family:var(--serif); font-weight:600; font-size:2.6rem; line-height:1;
  color:#fff;
}
.stat__num span{ color:var(--gold); }
.stat__label{ font-size:.86rem; color:rgba(255,255,255,.72); letter-spacing:.02em; }
html[lang="th"] .stat__num{ font-family:var(--sans); }

/* ---------- Sections ---------- */
.section{ padding:96px 0; }
.section--alt{ background:var(--ivory-2); }
.section__head{ max-width:720px; margin-bottom:54px; }

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

.feature{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:34px 30px;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.feature:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:rgba(201,162,75,.5); }
.feature__icon{
  width:52px; height:52px; border-radius:13px;
  display:grid; place-items:center; margin-bottom:20px;
  font-size:1.4rem; color:var(--gold);
  background:linear-gradient(135deg,rgba(19,98,74,.1),rgba(201,162,75,.12));
}
.feature h3{ font-family:var(--serif); font-size:1.5rem; font-weight:600; color:var(--emerald-900); margin-bottom:10px; }
.feature p{ color:var(--muted); font-size:.98rem; }
html[lang="th"] .feature h3{ font-family:var(--sans); font-weight:700; font-size:1.2rem; }

/* Services */
.service{
  background:var(--white);
  border-radius:var(--radius);
  padding:32px 30px;
  border:1px solid var(--line);
  position:relative;
  overflow:hidden;
  transition:transform .3s, box-shadow .3s;
}
.service::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
  background:linear-gradient(var(--gold),var(--emerald-600));
  transform:scaleY(0); transform-origin:top; transition:transform .35s;
}
.service:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.service:hover::before{ transform:scaleY(1); }
.service h3{ font-family:var(--serif); font-size:1.45rem; font-weight:600; color:var(--emerald-900); margin-bottom:10px; }
.service p{ color:var(--muted); font-size:.98rem; }
html[lang="th"] .service h3{ font-family:var(--sans); font-weight:700; font-size:1.18rem; }

/* ---------- Destinations ---------- */
.destgrid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-auto-rows:200px;
  gap:18px;
}
.dest{
  position:relative; border-radius:var(--radius); overflow:hidden;
  background:var(--img) center/cover no-repeat, var(--emerald-700);
  display:flex; align-items:flex-end;
  padding:22px; color:#fff; cursor:pointer;
  box-shadow:var(--shadow);
}
.dest::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(6,40,31,0) 30%, rgba(6,40,31,.78) 100%);
  transition:background .35s;
}
.dest:hover::after{ background:linear-gradient(180deg, rgba(6,40,31,.15) 10%, rgba(6,40,31,.85) 100%); }
.dest__name{
  position:relative; z-index:2;
  font-family:var(--serif); font-size:1.6rem; font-weight:600;
  transition:transform .35s;
}
.dest:hover .dest__name{ transform:translateY(-4px); }
html[lang="th"] .dest__name{ font-family:var(--sans); font-weight:700; }
.dest--lg{ grid-column:span 2; grid-row:span 2; }
.dest--wide{ grid-column:span 2; }

/* ---------- Steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.step{ padding-top:18px; border-top:2px solid var(--gold); }
.step__num{ font-family:var(--serif); font-size:2.4rem; font-weight:600; color:var(--gold); }
.step h3{ font-family:var(--serif); font-size:1.5rem; font-weight:600; color:var(--emerald-900); margin:8px 0 8px; }
.step p{ color:var(--muted); }
html[lang="th"] .step h3{ font-family:var(--sans); font-weight:700; font-size:1.2rem; }

/* ---------- CTA band ---------- */
.cta{
  position:relative; color:#fff; text-align:center;
  background:linear-gradient(135deg,var(--emerald-800),var(--emerald-900));
  overflow:hidden;
}
.cta::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(60% 120% at 50% -10%, rgba(201,162,75,.25), transparent 60%);
}
.cta__inner{ position:relative; padding:86px 24px; }
.cta__title{ font-family:var(--serif); font-weight:600; font-size:clamp(2rem,4vw,3rem); margin-bottom:14px; }
html[lang="th"] .cta__title{ font-family:var(--sans); font-weight:700; }
.cta__text{ color:rgba(255,255,255,.82); max-width:560px; margin:0 auto 30px; }

/* ---------- Contact ---------- */
.contact{ display:grid; grid-template-columns:1fr 1.1fr; gap:60px; align-items:start; }
.contact__list{ list-style:none; margin-top:34px; display:flex; flex-direction:column; gap:20px; }
.contact__list li{ display:flex; flex-direction:column; gap:3px; }
.contact__list span:first-child{ font-size:.74rem; text-transform:uppercase; letter-spacing:.18em; color:var(--gold); font-weight:600; }
.contact__list a, .contact__list li > span:last-child{ font-size:1.1rem; color:var(--emerald-900); font-weight:500; }
.contact__list a:hover{ color:var(--gold); }

.contact__form{
  background:var(--white); border:1px solid var(--line);
  border-radius:20px; padding:36px; box-shadow:var(--shadow);
}
.field{ margin-bottom:18px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field label{ display:block; font-size:.82rem; font-weight:600; color:var(--emerald-800); margin-bottom:7px; letter-spacing:.01em; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 15px; border:1px solid var(--line);
  border-radius:11px; font-family:inherit; font-size:.95rem; color:var(--ink);
  background:var(--ivory); transition:border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:0; border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,162,75,.18); background:#fff;
}
.field textarea{ resize:vertical; }
.form__note{ margin-top:14px; font-size:.78rem; color:var(--muted); text-align:center; }

/* ---------- Document upload fields ---------- */
.field--docs{ margin-top:26px; padding-top:22px; border-top:1px solid var(--line); margin-bottom:10px; }
.field__group-label{ display:block; font-size:.92rem; font-weight:700; color:var(--emerald-800); margin-bottom:6px; }
.field__hint{ font-size:.78rem; line-height:1.5; color:var(--muted); margin:0; }
.field input[type="file"]{
  width:100%; padding:10px 12px; border:1px dashed var(--line);
  border-radius:11px; font-family:inherit; font-size:.88rem; color:var(--ink);
  background:var(--ivory); cursor:pointer; transition:border-color .2s, box-shadow .2s, background .2s;
}
.field input[type="file"]:hover{ border-color:var(--gold); }
.field input[type="file"]:focus{ outline:0; border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,162,75,.18); background:#fff; }
.field input[type="file"]:invalid{ border-color:rgba(180,60,60,.5); }
.field input[type="file"]::file-selector-button{
  margin-right:12px; padding:8px 14px; border:0; border-radius:8px;
  font-family:inherit; font-size:.82rem; font-weight:600; color:#fff;
  background:var(--emerald-800); cursor:pointer; transition:background .2s;
}
.field input[type="file"]:hover::file-selector-button{ background:var(--gold); }

/* ---------- Form status message ---------- */
.form__status{ margin-top:14px; font-size:.86rem; line-height:1.5; border-radius:11px; padding:0; }
.form__status:empty{ display:none; }
.form__status.is-info{ padding:12px 14px; background:rgba(201,162,75,.12); color:var(--emerald-800); }
.form__status.is-success{ padding:12px 14px; background:rgba(40,140,90,.12); color:#1f6b46; }
.form__status.is-error{ padding:12px 14px; background:rgba(180,60,60,.1); color:#9a2b2b; }

/* ---------- Footer ---------- */
.footer{ background:var(--emerald-900); color:rgba(255,255,255,.72); }
.footer__inner{ display:grid; grid-template-columns:1.4fr 1fr; gap:50px; padding:70px 24px 50px; }
.footer__brand .brand__name{ color:#fff; }
.footer__brand p{ margin-top:20px; max-width:360px; font-size:.95rem; }
.footer__cols{ display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.footer__cols h4{ color:#fff; font-size:.82rem; text-transform:uppercase; letter-spacing:.16em; margin-bottom:16px; font-weight:600; }
.footer__cols a, .footer__cols span{ display:block; font-size:.92rem; color:rgba(255,255,255,.72); margin-bottom:10px; transition:color .2s; }
.footer__cols a:hover{ color:var(--gold-soft); }
.footer__bar{ border-top:1px solid rgba(255,255,255,.1); }
.footer__barinner{ display:flex; justify-content:space-between; align-items:center; height:60px; font-size:.82rem; color:rgba(255,255,255,.55); }
.footer__credits{ padding:0 0 22px; font-size:.68rem; line-height:1.5; color:rgba(255,255,255,.32); }

/* ---------- Reveal on scroll ---------- */
[data-reveal]{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible{ opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .grid--3{ grid-template-columns:repeat(2,1fr); }
  .contact{ grid-template-columns:1fr; gap:40px; }
  .footer__inner{ grid-template-columns:1fr; gap:36px; }
}
@media (max-width:760px){
  .nav{
    position:fixed; inset:74px 0 auto 0;
    flex-direction:column; gap:0;
    background:var(--ivory);
    border-bottom:1px solid var(--line);
    padding:10px 24px 20px;
    transform:translateY(-120%); transition:transform .35s; box-shadow:var(--shadow);
  }
  .nav.is-open{ transform:translateY(0); }
  .nav a{ padding:14px 0; border-bottom:1px solid var(--line); }
  .navtoggle{ display:flex; }
  .header__cta .btn{ display:none; }
  .grid--3{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
  .hero__stats{ grid-template-columns:repeat(2,1fr); gap:20px 16px; padding-bottom:54px; }
  .destgrid{ grid-template-columns:repeat(2,1fr); grid-auto-rows:160px; }
  .dest--lg{ grid-column:span 2; grid-row:span 1; }
  .dest--wide{ grid-column:span 2; }
  .topbar__note{ display:none; }
  .section{ padding:70px 0; }
}
@media (max-width:420px){
  .hero__stats{ grid-template-columns:1fr 1fr; }
  .field-row{ grid-template-columns:1fr; }
}
