/* Optical X — Services page (services.html / services-en.html), 2026-12-02 */


:root{
  --cream:#F8F4EE;
  --cream-2:#FBF8F3;
  --paper:#FFFcf8;
  --ink:#2B1E12;
  --ink-2:#3A2A14;
  --muted:#5C4F3D;
  --muted-2:#7A6C5A;
  --gold:#94703F;
  --gold-light:#C4A273;
  --teal:#4A7C75;
  --teal-soft:#E7EFED;
  --gold-soft:#F3EBDD;
  --border:#E6DDD0;
  --border-strong:#D6C9B6;
  --shadow:0 18px 40px rgba(43,30,18,.07);
  --radius:14px;
  --radius-sm:10px;
  --nav-h:76px;
  --max:1120px;
  --serif:"Playfair Display","Prompt",Georgia,serif;
  --sans-en:"Plus Jakarta Sans","Prompt",system-ui,sans-serif;
  --sans-th:"Sarabun","Prompt","Noto Sans Thai",system-ui,sans-serif;
  --ui:"Prompt","Plus Jakarta Sans",system-ui,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
ul{list-style:none}

body{
  background:var(--cream);
  color:var(--ink);
  font-family:var(--sans-en);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:clip;
}
html[lang="th"] body{
  font-family:var(--sans-th);
  line-height:1.75;
}

.wrap{width:min(var(--max), calc(100% - 48px));margin-inline:auto}
@media (max-width:720px){.wrap{width:min(var(--max), calc(100% - 32px))}}

/* ── Nav ── */
.nav{
  position:sticky;top:0;z-index:40;
  background:rgba(248,244,238,.92);
  backdrop-filter:saturate(1.2) blur(14px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  width:min(var(--max), calc(100% - 48px));
  margin-inline:auto;
  min-height:var(--nav-h);
  display:flex;align-items:center;gap:28px;
}
.brand{
  display:flex;flex-direction:column;gap:1px;flex:none;
  letter-spacing:.18em;
}
.brand-word{
  font-family:var(--serif);
  font-size:18px;font-weight:500;color:var(--ink-2);
  line-height:1;
}
.brand-word em{font-style:italic;color:var(--gold);font-weight:500;margin-left:1px}
.brand-sub{
  font-family:var(--ui);
  font-size:8.5px;font-weight:500;letter-spacing:.22em;
  color:var(--muted-2);text-transform:uppercase;
}
.nav-links{display:flex;align-items:center;gap:22px;margin-left:8px;flex:1}
.nav-links a{
  font-family:var(--ui);
  font-size:13.5px;font-weight:400;color:var(--muted);
  letter-spacing:.01em;
}
html[lang="th"] .nav-links a{font-size:14.5px}
.nav-links a:hover{color:var(--ink)}
.nav-links a.is-current{color:var(--ink);font-weight:500}
.nav-links a.is-current::after{
  content:"";display:block;height:1px;background:var(--gold-light);margin-top:4px;
}
.nav-right{display:flex;align-items:center;gap:12px;margin-left:auto}

.lang{
  display:flex;align-items:center;
  border:1px solid var(--border-strong);
  border-radius:999px;padding:3px;background:var(--cream-2);
}
.lang a{
  font-family:var(--ui);font-size:11px;font-weight:600;letter-spacing:.08em;
  color:var(--muted);padding:5px 9px;border-radius:999px;line-height:1;
}
.lang a.is-on{background:var(--ink-2);color:var(--cream)}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--ui);font-weight:500;letter-spacing:.02em;
  border-radius:999px;border:1px solid transparent;
  cursor:pointer;transition:background .2s, color .2s, border-color .2s, transform .15s;
  white-space:nowrap;
}
.btn-primary{
  background:var(--ink-2);color:var(--cream);
  padding:12px 22px;font-size:14px;
}
.btn-primary:hover{background:var(--ink)}
.btn-ghost{
  background:transparent;color:var(--ink-2);
  border-color:var(--border-strong);
  padding:11px 20px;font-size:14px;
}
.btn-ghost:hover{border-color:var(--ink-2)}
.btn svg{width:16px;height:16px;flex:none}

.nav-cta{padding:10px 16px;font-size:13px}
.nav-ham{
  display:none;width:40px;height:40px;border:0;background:transparent;
  cursor:pointer;padding:10px;flex-direction:column;justify-content:center;gap:5px;
}
.nav-ham span{display:block;height:1.5px;background:var(--ink-2);border-radius:2px}

.nav-drawer{
  display:none;border-top:1px solid var(--border);
  background:var(--cream-2);padding:16px 24px 22px;
}
.nav-drawer a{
  display:block;padding:11px 0;
  font-family:var(--ui);font-size:16px;color:var(--ink);
  border-bottom:1px solid var(--border);
}
.nav-drawer .btn{margin-top:16px;width:100%}
.nav-drawer.open{display:block}

/* ── Hero ── */
.hero{
  padding:64px 0 28px;
}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);
  gap:44px;
  align-items:center;
}
.eyebrow{
  display:flex;align-items:center;gap:12px;
  font-family:var(--ui);font-size:11px;font-weight:500;
  letter-spacing:.18em;text-transform:uppercase;color:var(--gold);
  margin-bottom:18px;
}
.eyebrow::before{content:"";width:22px;height:1px;background:var(--gold-light)}

.hero h1{
  font-family:var(--serif);
  font-weight:500;
  color:var(--ink);
  letter-spacing:-.02em;
  line-height:1.16;
  font-size:clamp(32px, 3.35vw, 42px);
  margin-bottom:18px;
}
html[lang="th"] .hero h1{
  font-family:"Prompt",var(--serif);
  font-weight:600;
  letter-spacing:-.01em;
  line-height:1.32;
  font-size:clamp(28px, 3.4vw, 40px);
}
.hero h1 .h1-sub{
  display:block;
  margin-top:8px;
  font-style:italic;
  font-weight:500;
  color:var(--gold);
  letter-spacing:0;
  font-size:.78em;
  line-height:1.35;
}
html[lang="th"] .hero h1 .h1-sub{
  font-style:normal;
  font-weight:500;
  font-size:.78em;
  color:var(--gold);
}

.hero-lead{
  font-size:17px;color:var(--muted);max-width:42ch;
  margin-bottom:26px;line-height:1.7;
}
html[lang="th"] .hero-lead{font-size:17.5px;line-height:1.8;max-width:46ch}

.pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--paper);
  border:1px solid var(--border);
  color:var(--ink-2);
  font-family:var(--ui);
  font-size:13px;font-weight:500;
  padding:8px 13px;border-radius:999px;
  line-height:1.3;
}
html[lang="th"] .pill{font-size:13.5px}
.pill i{
  width:6px;height:6px;border-radius:50%;
  background:var(--teal);display:inline-block;flex:none;
}

.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}

.hero-photo{
  position:relative;
}
.hero-photo figure{
  margin:0;border-radius:18px;overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  background:#ddd;
  aspect-ratio:5/4;
}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center 42%}
.hero-caption{
  position:absolute;left:16px;bottom:16px;
  background:rgba(43,30,18,.78);
  color:var(--cream);
  font-family:var(--ui);font-size:11.5px;font-weight:400;
  letter-spacing:.02em;
  padding:7px 12px;border-radius:999px;
  backdrop-filter:blur(6px);
}

/* ── Sections ── */
.section{padding:72px 0}
.section-alt{background:var(--cream-2);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section-head{max-width:640px;margin-bottom:40px}
.section-head h2{
  font-family:var(--serif);font-weight:500;font-size:clamp(28px, 3vw, 36px);
  letter-spacing:-.02em;line-height:1.25;color:var(--ink);margin-top:6px;
}
html[lang="th"] .section-head h2{
  font-family:"Prompt",var(--serif);font-weight:600;letter-spacing:0;line-height:1.4;
  font-size:clamp(24px, 2.8vw, 32px);
}
.section-head p{margin-top:10px;color:var(--muted);font-size:16.5px;max-width:50ch}
html[lang="th"] .section-head p{line-height:1.8}

/* ── Service cards ── */
.svc-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.svc-card{
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px 28px 24px;
  display:flex;flex-direction:column;gap:12px;
  min-height:100%;
}
.svc-card:hover{border-color:var(--border-strong)}
.svc-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.svc-icon{
  width:44px;height:44px;border-radius:12px;
  background:var(--gold-soft);
  color:var(--gold);
  display:grid;place-items:center;flex:none;
}
.svc-icon svg{width:22px;height:22px}
.svc-num{
  font-family:var(--serif);font-style:italic;font-size:15px;color:var(--gold-light);
}
.svc-card h3{
  font-family:var(--ui);font-weight:600;font-size:18px;letter-spacing:-.01em;
  color:var(--ink);line-height:1.35;
}
html[lang="th"] .svc-card h3{font-family:"Prompt",var(--ui);font-size:18.5px;line-height:1.45}
.svc-card p{color:var(--muted);font-size:15px;line-height:1.65;max-width:42ch}
html[lang="th"] .svc-card p{font-size:15.5px;line-height:1.75}
.svc-fact{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid var(--border);
  font-family:var(--ui);font-size:13.5px;font-weight:500;
  color:var(--gold);line-height:1.45;
}
html[lang="th"] .svc-fact{font-size:14px}

/* ── Stepper ── */
.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  position:relative;
}
.steps::before{
  content:"";
  position:absolute;left:6%;right:6%;top:23px;
  height:1px;background:var(--border-strong);
  z-index:0;
}
.step{position:relative;z-index:1;padding:0 14px 0 0;display:flex;flex-direction:column;gap:14px}
.step-n{
  width:46px;height:46px;border-radius:50%;
  background:var(--cream-2);border:1px solid var(--border-strong);
  display:grid;place-items:center;
  font-family:var(--serif);font-style:italic;font-weight:500;
  font-size:16px;color:var(--gold);
  box-shadow:0 0 0 8px var(--cream-2);
}
.step h3{
  font-family:var(--ui);font-weight:600;font-size:16.5px;color:var(--ink);
  line-height:1.35;max-width:22ch;
}
html[lang="th"] .step h3{font-family:"Prompt",var(--ui);font-size:17px;line-height:1.45}
.step p{color:var(--muted);font-size:14.5px;line-height:1.65;max-width:28ch}
html[lang="th"] .step p{font-size:15px;line-height:1.75}

.photo-strip{
  margin-top:48px;
  display:grid;grid-template-columns:1.1fr .9fr 1fr;gap:14px;
}
.photo-strip figure{
  margin:0;border-radius:14px;overflow:hidden;
  border:1px solid var(--border);background:#ddd;
  position:relative;
}
.photo-strip img{width:100%;height:230px;object-fit:cover}
.photo-strip figcaption{
  position:absolute;left:12px;bottom:12px;
  background:rgba(43,30,18,.76);color:var(--cream);
  font-family:var(--ui);font-size:11.5px;padding:6px 10px;border-radius:999px;
}

/* ── Info strip ── */
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.info-card{
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px 30px 26px;
}
.info-card h3{
  font-family:var(--serif);font-weight:500;font-size:24px;color:var(--ink);
  margin:6px 0 18px;
}
html[lang="th"] .info-card h3{font-family:"Prompt",var(--serif);font-weight:600;font-size:22px}
.lead-row{
  display:flex;justify-content:space-between;align-items:baseline;gap:16px;
  padding:11px 0;
  border-bottom:1px solid var(--border);
  font-size:15px;
}
.lead-row:last-of-type{border-bottom:0}
.lead-row dt{color:var(--ink-2);font-weight:500;font-family:var(--ui)}
.lead-row dd{color:var(--gold);font-weight:500;text-align:right;white-space:nowrap}
.nowrap{white-space:nowrap}
.visit-list{display:flex;flex-direction:column;gap:12px}
.visit-item{display:flex;gap:12px;align-items:flex-start}
.visit-item svg{width:18px;height:18px;flex:none;color:var(--teal);margin-top:3px}
.visit-item p{color:var(--muted);font-size:15px;line-height:1.55}
.visit-item strong{display:block;color:var(--ink);font-weight:600;font-family:var(--ui);font-size:14.5px;margin-bottom:1px}
.info-card .btn{margin-top:20px}

/* ── FAQ ── */
.faq{display:flex;flex-direction:column;border-top:1px solid var(--border)}
.faq details{border-bottom:1px solid var(--border)}
.faq summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:20px 4px;
  font-family:var(--ui);font-weight:550;font-size:17px;color:var(--ink);
}
html[lang="th"] .faq summary{font-family:"Prompt",var(--ui);font-size:17.5px;line-height:1.45}
.faq summary::-webkit-details-marker{display:none}
.faq .chev{
  width:28px;height:28px;border-radius:50%;border:1px solid var(--border);
  display:grid;place-items:center;flex:none;color:var(--gold);
  transition:transform .2s;
}
.faq details[open] .chev{transform:rotate(45deg)}
.faq .ans{padding:0 8px 22px 0;color:var(--muted);max-width:62ch;font-size:15.5px;line-height:1.75}

/* ── Close CTA ── */
.cta-band{
  background:var(--ink-2);
  color:var(--cream);
  padding:72px 0;
}
.cta-band .eyebrow{color:var(--gold-light)}
.cta-band .eyebrow::before{background:var(--gold-light)}
.cta-band h2{
  font-family:var(--serif);font-weight:500;
  font-size:clamp(28px, 3.2vw, 40px);
  letter-spacing:-.02em;line-height:1.25;
  max-width:18ch;margin-bottom:14px;
}
html[lang="th"] .cta-band h2{
  font-family:"Prompt",var(--serif);font-weight:600;letter-spacing:0;
  line-height:1.4;font-size:clamp(24px, 3vw, 34px);max-width:22ch;
}
.cta-band p{color:rgba(248,244,238,.78);max-width:46ch;margin-bottom:28px;font-size:16.5px}
.cta-band .btn-primary{background:var(--gold);color:var(--ink);border-color:var(--gold)}
.cta-band .btn-primary:hover{background:var(--gold-light)}
.cta-band .btn-ghost{color:var(--cream);border-color:rgba(248,244,238,.28)}
.cta-band .btn-ghost:hover{border-color:var(--cream)}

/* ── Footer ── */
.footer{
  background:#22170E;
  color:rgba(248,244,238,.72);
  padding:48px 0 28px;
  font-size:14px;
}
.footer-grid{
  display:grid;grid-template-columns:1.2fr 1fr 1fr 1.2fr;gap:32px;
  padding-bottom:32px;border-bottom:1px solid rgba(230,221,208,.14);
}
.footer .brand-word{color:var(--cream);font-size:20px}
.footer .brand-sub{color:var(--gold-light)}
.footer h4{
  font-family:var(--ui);font-size:11px;font-weight:500;
  letter-spacing:.16em;text-transform:uppercase;color:var(--gold-light);
  margin-bottom:12px;
}
.footer p,.footer a{line-height:1.7}
.footer a:hover{color:var(--cream)}
.footer-note{
  padding-top:18px;
  font-size:12px;color:rgba(248,244,238,.4);
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
}

/* ── Responsive ── */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr;gap:32px}
  .hero{padding:40px 0 16px}
  .hero-photo figure{aspect-ratio:16/10}
  .svc-grid{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:1fr 1fr;gap:28px 18px}
  .steps::before{display:none}
  .step-n{box-shadow:none}
  .photo-strip{grid-template-columns:1fr 1fr 1fr}
  .photo-strip img{height:180px}
  .info-grid{grid-template-columns:1fr}
}
@media (max-width:820px){
  .nav-links{display:none}
  .nav-ham{display:flex}
  .nav-inner{width:min(var(--max), calc(100% - 32px));gap:12px}
  .nav-cta{display:none} /* keep WhatsApp / LINE in the hero and menu to avoid overflow */
}
@media (max-width:640px){
  :root{--nav-h:64px}
  .hero h1{font-size:30px}
  html[lang="th"] .hero h1{font-size:26px}
  .hero-lead{font-size:16px}
  .section{padding:56px 0}
  .svc-grid{grid-template-columns:1fr;gap:12px}
  .svc-card{padding:22px}
  .steps{grid-template-columns:1fr;gap:0}
  .step{
    display:grid;
    grid-template-columns:46px 1fr;
    grid-template-rows:auto auto;
    column-gap:14px;row-gap:4px;
    padding:0 0 24px;
  }
  .step::before{
    content:"";
    position:absolute;left:22px;top:46px;bottom:0;
    width:1px;background:var(--border-strong);
  }
  .step:last-child::before{display:none}
  .step-n{grid-row:1 / span 2;align-self:start}
  .photo-strip{grid-template-columns:1fr;gap:10px}
  .photo-strip img{height:200px}
  .footer-grid{grid-template-columns:1fr;gap:24px}
  .hero-actions .btn, .cta-band .btn{width:100%}
  .info-card{padding:22px}
  .lead-row{flex-direction:column;align-items:flex-start;gap:3px;padding:12px 0}
  .lead-row dd{text-align:left;white-space:normal}
}


/* ── Additions for the live page ── */
.nav-links a{white-space:nowrap}
.nav-links{gap:18px}
.nav-inner{gap:20px}
@media (max-width:1180px){.nav-cta .btn-label-full{display:none}}
@media (max-width:1060px){.nav-links{display:none}.nav-ham{display:flex}.nav-cta{display:none}}
.skip{position:absolute;left:-9999px;top:0;background:var(--ink-2);color:var(--cream);padding:10px 16px;z-index:100;border-radius:0 0 8px 0}
.skip:focus{left:0}
.footer h2{font-family:var(--ui);font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-light);margin-bottom:12px}
.footer-blurb{margin-top:14px}
.footer a[aria-current="page"]{color:var(--cream)}
.lang a{display:inline-block}
.sticky-bar{display:none}
@media (max-width:820px){
  .sticky-bar{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:60;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:#22170E;border-top:1px solid rgba(230,221,208,.16)}
  .sticky-btn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;border-radius:999px;
    font-family:var(--ui);font-size:15px;font-weight:500;background:var(--cream);color:var(--ink-2)}
  .sticky-btn.sticky-wa,.sticky-btn.sticky-line{background:var(--gold);color:var(--ink)}
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:980px){.footer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.footer-grid{grid-template-columns:1fr}}
