/*
Theme Name: Hello Elementor Child – Village Thai
Template: hello-elementor
Version: 5.1.0 (Brand palette — Deep teal + Soft gold)
*/

/* ── Fonts: same files the old Flatsome site served (latin subset only), self-hosted ── */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/playfair-display-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/lato-700.woff2") format("woff2"); }

/* ── Base typography (Flatsome customizer values) ── */
body {
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #F6F2E9;
}
h1, h2, h3, h4, h5, h6, .elementor-heading-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
}
a { color: #E9BA71; }
a:hover { color: #F0CF94; }

/* Flatsome .button: Lato 700, uppercase, .03em tracking, bevel shadow */
.elementor-button {
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.6;
  box-shadow: inset 0 -.1em 0 rgba(0, 0, 0, .15);
}
.vt-shadow .elementor-button { box-shadow: inset 0 -.1em 0 rgba(0,0,0,.15), 0 3px 6px rgba(0,0,0,.23); }
.vt-link-btn .elementor-button { box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }

/* ── Hero: absolutely-positioned <img> behind the content (LCP-friendly "background") ── */
.vt-hero { position: relative; overflow: hidden; padding-inline: max(15px, calc((100% - 1190px) / 2)) !important; }
.vt-hero .vt-hero__bg,
.vt-hero .vt-hero__bg > .elementor-widget-container {
  position: absolute !important; inset: 0; width: 100% !important; height: 100% !important;
  max-width: none; margin: 0; z-index: 0;
}
.vt-hero .vt-hero__bg img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none;
  object-fit: cover; object-position: 36% 49%;
}
.vt-hero .vt-hero__card { position: relative; z-index: 2; }
@media (max-width: 767px) {
  .vt-hero .vt-hero__bg img { object-position: 50% 53%; }
  .vt-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .256); z-index: 1; }
}

/* ── About ── */
.vt-quote, blockquote.vt-quote {
  border-left: 2px solid #E9BA71; font-style: italic; margin: 0 0 1.25em; padding: 0 1.25em 0 1.875em;
}
.vt-quote h4 { font-size: 1.125em; margin: 0; color: #F6F2E9; }

/* ── Services price card checklist (Flatsome .bullet-checkmark) ── */
.vt-checklist { list-style: none; margin: 0; padding: 0; }
.vt-checklist li { position: relative; padding: .45em 0 .45em 1.6em; border-bottom: 1px solid rgba(235,236,227,.17); }
.vt-checklist li::before { content: "✓"; position: absolute; left: 0; color: #E9BA71; font-weight: 700; }

/* ── Gallery: square crops like Flatsome image-cover padding-top:100% ── */
.vt-square img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover;
  box-shadow: 0 3px 6px -4px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23); }

/* ── Testimonials ── */
.vt-avatar img { width: 85px; height: 85px; border-radius: 50%; object-fit: cover; }
.vt-stars { color: #E9BA71; letter-spacing: 2px; margin: 0 0 .5em; }
.vt-review { font-style: italic; line-height: 1.4; text-align: left; }
.vt-review-name { margin: 0; }

/* ── Blog cards ([vt_recent_posts]) ── */
.vt-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.vt-post { display: flex; background: #193842; box-shadow: 0 3px 6px -4px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23);
  transition: box-shadow .3s; }
.vt-post:hover { box-shadow: 0 10px 20px rgba(0,0,0,.19), 0 6px 6px rgba(0,0,0,.22); }
.vt-post__img { flex: 0 0 50%; display: block; }
.vt-post__img img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.vt-post__body { flex: 1; padding: .7em 1.2em 1.4em; text-align: center; align-self: center; font-size: .9em; }
.vt-post__title { font-size: 1.15em; line-height: 1.3; margin: .1em 0; }
.vt-post__title a { color: #F6F2E9; text-decoration: none; }
.vt-post__divider { width: 30px; height: 3px; background: rgba(235,236,227,.17); margin: 1em auto; }
.vt-post p { margin: 0; }
@media (max-width: 767px) { .vt-posts { grid-template-columns: 1fr; } }

/* ══ Header (UAE) — Flatsome: bg #E9BA71, 110px, nav Lato 700 uppercase 17.6px #E9BA71, item margin 0 9px ══
   NOTE: orange on teal is 1.95:1 (fails WCAG). For an accessible variant set
   --vt-nav: #fff and --vt-header-bg: #2A6B68 (white on #2A6B68 = 6.2:1). */
:root { --vt-header-bg: #102C36; --vt-nav: #F6F2E9; --vt-nav-active: #E9BA71; }
/* Sticky header. overflow-x:hidden on html/body (set by Hello/Elementor) turns them into scroll containers,
   which silently disables position:sticky — clip hides overflow the same way without that side effect. */
html, body { overflow-x: clip !important; }
/* UAE wraps everything in #page; any overflow other than visible/clip on it has the same sticky-breaking effect. */
#page { overflow: visible !important; }
/* UAE's own CSS sets #masthead { position: relative } — with our top offset that pushed the header 32px down
   (white strip + header overlapping the page). Higher specificity keeps it sticky. */
body.ehf-header #masthead, #masthead { position: sticky !important; top: 0; z-index: 100; margin: 0 !important; padding: 0 !important; }
body.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar #masthead { top: 46px; } }
@media (max-width: 600px) { body.admin-bar #masthead { top: 0; } } /* WP admin bar stops being fixed below 600px */
/* UAE prints a visually-hidden site title inside #masthead; make sure it never takes up space above the header. */
#masthead > :not(.elementor):not(style):not(script) { display: none !important; }
#masthead .elementor > .e-con:first-child { margin-top: 0 !important; }
.vt-header { background: var(--vt-header-bg) !important; }
.vt-header__logo img { max-height: 104px; width: auto; padding: 3px 0; }
.vt-header__nav .hfe-nav-menu > li > a.hfe-menu-item,
.vt-header__nav .hfe-nav-menu a.hfe-menu-item {
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700; font-size: 17.6px; text-transform: uppercase; color: var(--vt-nav) !important;
  padding: 10px 9px !important;
}
.vt-header__nav .hfe-nav-menu > li.current-menu-item > a.hfe-menu-item,
.vt-header__nav .hfe-nav-menu > li > a.hfe-menu-item:hover { box-shadow: inset 0 -3px 0 var(--vt-nav-active); }
.vt-header__nav .hfe-nav-menu-icon, .vt-header__nav .hfe-nav-menu__toggle { color: var(--vt-nav) !important; }
.vt-header__nav .hfe-nav-menu-icon svg { fill: var(--vt-nav); }
@media (max-width: 1024px) {
  .vt-header__nav nav.hfe-dropdown { background: var(--vt-header-bg); }
  .vt-header__nav nav.hfe-dropdown a.hfe-menu-item { padding: 14px 20px !important; border-top: 1px solid rgba(235,236,227,.17); }
}
.vt-header__social { border-left: 1px solid rgba(235,236,227,.17); padding-left: 12px; }
.vt-social .elementor-social-icon { background: transparent !important; }

/* ══ Footer — base rules (palette ใหม่อยู่ในส่วน Footer ด้านล่าง) ══ */
.vt-footer-h .elementor-heading-title::after {
  content: ""; display: block; width: 30px; height: 1px; background: var(--vt-orange, #E9BA71); margin: 14px 0 4px;
}
.vt-footer a { color: #F6F2E9; }
.vt-footer a:hover { color: #F0CF94; }
.vt-footer-list { list-style: none; margin: 0; padding: 0; }
.vt-footer-list li::before { content: none; }

/* ══ Mobile bottom bar (old wp-bottom-menu: bg #E9BA71, #E9BA71, 12px labels, 30px icons, ≤1024px) ══ */
.vt-bottom-bar { display: none; }
@media (max-width: 1024px) {
  .vt-bottom-bar {
    display: flex; justify-content: space-around; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: #E9BA71; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -5px 10px rgba(235,236,227,.17);
  }
  .vt-bottom-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
    color: #E9BA71; font-size: 12px; text-decoration: none; }
  .vt-bottom-bar svg { width: 30px; height: 30px; fill: currentColor; }
  body { padding-bottom: 80px; }
}

/* ══ Inner pages (converted from Flatsome UX Builder) ══
   Text blocks carry .vt-fs: headings are sized in em of the block, exactly like Flatsome. */
.vt-fs p { margin: 0 0 1.3em; }
.vt-fs p:last-child { margin-bottom: 0; }
.vt-fs h1, .vt-fs h2, .vt-fs h3, .vt-fs h4, .vt-fs h5, .vt-fs h6 { margin: 0 0 .5em; line-height: 1.3; }
.vt-fs h1 { font-size: 1.7em; } .vt-fs h2 { font-size: 1.6em; } .vt-fs h3 { font-size: 1.25em; }
.vt-fs h4 { font-size: 1.125em; } .vt-fs h5 { font-size: 1em; } .vt-fs h6 { font-size: .85em; }
@media (max-width: 767px) {
  .vt-fs h1 { font-size: 1.4em; } .vt-fs h2 { font-size: 1.2em; } .vt-fs h3, .vt-fs h4 { font-size: 1em; }
}
.vt-fs--banner h1 { font-size: 3.5em; } .vt-fs--banner h2 { font-size: 2.9em; } .vt-fs--banner h3 { font-size: 2em; }
.vt-fs--banner h1, .vt-fs--banner h2, .vt-fs--banner h3 { line-height: 1; margin: .2em 0; }
.vt-fs .uppercase { text-transform: uppercase; letter-spacing: .05em; line-height: 1.05; }
.vt-fs ul { margin: 0 0 1.3em 1.3em; padding: 0; }
.vt-fs li.bullet-arrow, .vt-fs li.bullet-checkmark, .vt-fs li.bullet-star { list-style: none; position: relative;
  margin-left: -1.3em; padding: .3em 0 .3em 1.6em; border-bottom: 1px solid rgba(235,236,227,.17); }
.vt-fs li.bullet-arrow::before { content: "›"; position: absolute; left: .3em; color: #E9BA71; font-weight: 700; }
.vt-fs li.bullet-checkmark::before { content: "✓"; position: absolute; left: 0; color: #E9BA71; }
.vt-fs li.bullet-star::before { content: "★"; position: absolute; left: 0; color: #E9BA71; }
.vt-dark, .vt-dark h1, .vt-dark h2, .vt-dark h3, .vt-dark h4, .vt-dark h5, .vt-dark h6 { color: #F6F2E9; }
.vt-dark a { color: #F6F2E9; text-decoration: none; }
.vt-tshadow { text-shadow: 1px 1px 10px rgba(0,0,0,.4), 1px 1px 3px rgba(0,0,0,.3); }
.is-divider { background-color: rgba(235,236,227,.17); display: block; height: 3px; margin: 1em 0; max-width: 30px; width: 100%; }
.vt-dark .is-divider { background-color: rgba(235,236,227,.17); }
.vt-fs .widget-title { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.vt-fs ul.ul-reset, .vt-fs ul.ul-reset ul { list-style: none; margin-left: 0; }
.vt-fs aside { margin-bottom: 1.5em; }
.vt-fs a.button, .vt-single a.button { display: inline-block; padding: 0 1.2em; line-height: 2.4em; border-radius: 6px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; background: #E9BA71; color: #0C242C; text-decoration: none; }
.vt-fs a.button.secondary, .vt-single a.button.secondary { background: transparent; border: 1px solid #E9BA71; color: #F0CF94; }
.vt-hero--page .vt-hero__card { text-align: center; }

/* Accordion (old Flatsome .accordion) as native <details>: no JS, keyboard accessible, indexable */
.vt-acc { border-top: 1px solid rgba(235,236,227,.17); }
.vt-acc:last-of-type { border-bottom: 1px solid rgba(235,236,227,.17); }
.vt-acc summary { cursor: pointer; padding: .6em 2.3em; font-size: 110%; position: relative; list-style: none; }
.vt-acc summary::-webkit-details-marker { display: none; }
.vt-acc summary::before { content: "+"; position: absolute; left: .7em; color: #E9BA71; font-weight: 700; }
.vt-acc[open] summary { color: #E9BA71; font-weight: 700; background: rgba(246,242,233,.03); }
.vt-acc[open] summary::before { content: "−"; }
.vt-acc__body { padding: .5em 2.3em 1em; }

/* Blog list variants for [vt_recent_posts cols="1"] */
.vt-posts--cols-1 { grid-template-columns: 1fr; }
@media (min-width: 1025px) { .vt-posts--cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ══ Single blog post (child theme single.php) ══ */
.vt-single__hero { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: radial-gradient(circle at 70% 40%, rgba(134,95,74,.45), transparent 60%), linear-gradient(160deg, #193842, #0C242C); }
.vt-single__hero-img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; }
.vt-single__hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.vt-single__hero--plain { min-height: 220px; }
.vt-single__hero--plain::after { display: none; }
.vt-single__hero-text { position: relative; z-index: 1; max-width: 900px; padding: 40px 15px; text-align: center; color: #FFFDF8;
  text-shadow: 1px 1px 10px rgba(0,0,0,.4); }
.vt-single__title { color: #FFFDF8; font-size: 2.6rem; line-height: 1.15; margin: 0 0 .2em; }
.vt-single__cat { text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: #E9BA71; margin: 0 0 .5em; font-weight: 700; }
.vt-single__meta { font-size: .9rem; margin: 0; opacity: .9; }
.vt-single__hero-text .is-divider { margin: .8em auto; background: rgba(240,207,148,.6); }
.vt-single__wrap { max-width: 1220px; margin: 0 auto; padding: 50px 15px 30px; display: grid; gap: 40px;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.vt-single__content { font-size: 16px; }
.vt-single__content img { max-width: 100%; height: auto; }
.vt-single__sidebar .vt-widget { margin-bottom: 2em; }
.vt-widget__list { list-style: none; margin: 0; padding: 0; }
.vt-widget__list li { padding: .45em 0; border-bottom: 1px solid rgba(235,236,227,.17); }
.vt-single__cta { background: var(--vt-deep, #193842); padding: 30px 15px; }
.vt-single__cta-inner { max-width: 1220px; margin: 0 auto; background: var(--vt-night, #102C36); border: 1px solid rgba(235,236,227,.17); border-radius: 10px; padding: 20px 30px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.vt-single__cta-inner h3 { color: #F6F2E9; margin: 0; font-size: 2rem; }
@media (max-width: 1024px) { .vt-single__wrap { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .vt-single__title { font-size: 1.8rem; } .vt-single__hero { min-height: 300px; }
  .vt-single__cta-inner h3 { font-size: 1.4rem; } .vt-single__cta-inner .button { width: 100%; text-align: center; } }

/* ══ Flatsome UX Builder markup inside imported post content ══ */
.vt-flatsome .row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.vt-flatsome .row-collapse { margin: 0; }
.vt-flatsome .row-collapse > .col { padding: 0; }
.vt-flatsome .row.align-center { justify-content: center; }
.vt-flatsome .row.align-middle { align-items: center; }
.vt-flatsome .col { position: relative; flex: 0 0 100%; max-width: 100%; padding: 0 15px 30px; }
.vt-flatsome .small-1 { flex-basis: 8.3333%; max-width: 8.3333%; } .vt-flatsome .small-2 { flex-basis: 16.6667%; max-width: 16.6667%; } .vt-flatsome .small-3 { flex-basis: 25.0000%; max-width: 25.0000%; } .vt-flatsome .small-4 { flex-basis: 33.3333%; max-width: 33.3333%; } .vt-flatsome .small-5 { flex-basis: 41.6667%; max-width: 41.6667%; } .vt-flatsome .small-6 { flex-basis: 50.0000%; max-width: 50.0000%; } .vt-flatsome .small-7 { flex-basis: 58.3333%; max-width: 58.3333%; } .vt-flatsome .small-8 { flex-basis: 66.6667%; max-width: 66.6667%; } .vt-flatsome .small-9 { flex-basis: 75.0000%; max-width: 75.0000%; } .vt-flatsome .small-10 { flex-basis: 83.3333%; max-width: 83.3333%; } .vt-flatsome .small-11 { flex-basis: 91.6667%; max-width: 91.6667%; } .vt-flatsome .small-12 { flex-basis: 100.0000%; max-width: 100.0000%; }
@media (min-width: 550px) { .vt-flatsome .medium-1 { flex-basis: 8.3333%; max-width: 8.3333%; } .vt-flatsome .medium-2 { flex-basis: 16.6667%; max-width: 16.6667%; } .vt-flatsome .medium-3 { flex-basis: 25.0000%; max-width: 25.0000%; } .vt-flatsome .medium-4 { flex-basis: 33.3333%; max-width: 33.3333%; } .vt-flatsome .medium-5 { flex-basis: 41.6667%; max-width: 41.6667%; } .vt-flatsome .medium-6 { flex-basis: 50.0000%; max-width: 50.0000%; } .vt-flatsome .medium-7 { flex-basis: 58.3333%; max-width: 58.3333%; } .vt-flatsome .medium-8 { flex-basis: 66.6667%; max-width: 66.6667%; } .vt-flatsome .medium-9 { flex-basis: 75.0000%; max-width: 75.0000%; } .vt-flatsome .medium-10 { flex-basis: 83.3333%; max-width: 83.3333%; } .vt-flatsome .medium-11 { flex-basis: 91.6667%; max-width: 91.6667%; } .vt-flatsome .medium-12 { flex-basis: 100.0000%; max-width: 100.0000%; } }
@media (min-width: 850px) { .vt-flatsome .large-1 { flex-basis: 8.3333%; max-width: 8.3333%; } .vt-flatsome .large-2 { flex-basis: 16.6667%; max-width: 16.6667%; } .vt-flatsome .large-3 { flex-basis: 25.0000%; max-width: 25.0000%; } .vt-flatsome .large-4 { flex-basis: 33.3333%; max-width: 33.3333%; } .vt-flatsome .large-5 { flex-basis: 41.6667%; max-width: 41.6667%; } .vt-flatsome .large-6 { flex-basis: 50.0000%; max-width: 50.0000%; } .vt-flatsome .large-7 { flex-basis: 58.3333%; max-width: 58.3333%; } .vt-flatsome .large-8 { flex-basis: 66.6667%; max-width: 66.6667%; } .vt-flatsome .large-9 { flex-basis: 75.0000%; max-width: 75.0000%; } .vt-flatsome .large-10 { flex-basis: 83.3333%; max-width: 83.3333%; } .vt-flatsome .large-11 { flex-basis: 91.6667%; max-width: 91.6667%; } .vt-flatsome .large-12 { flex-basis: 100.0000%; max-width: 100.0000%; } }
.vt-flatsome .section { position: relative; padding: 30px 0; }
.vt-flatsome .section-bg, .vt-flatsome .fill { position: absolute; inset: 0; }
.vt-flatsome .section-content { position: relative; }
.vt-flatsome .banner { position: relative; width: 100%; padding-top: 300px; margin-bottom: 30px; overflow: hidden; background: #193842; }
.vt-flatsome .banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.vt-flatsome .banner .overlay { position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.vt-flatsome .banner-layers { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vt-flatsome .text-box { position: relative; z-index: 2; max-width: 90%; }
.vt-flatsome .dark, .vt-flatsome .dark h1, .vt-flatsome .dark h2, .vt-flatsome .dark h3, .vt-flatsome .dark h4, .vt-flatsome .dark p { color: #F6F2E9; }
.vt-flatsome .text-center { text-align: center; } .vt-flatsome .text-right { text-align: right; } .vt-flatsome .text-left { text-align: left; }
.vt-flatsome .img { display: block; margin: 0 auto; }
.vt-flatsome .img-inner, .vt-flatsome .box-image { position: relative; overflow: hidden; }
.vt-flatsome .image-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-flatsome .gap-element { display: block; height: 20px; }
.vt-flatsome [data-text-color="primary"] { color: #E9BA71; }
.vt-flatsome [data-text-color="secondary"] { color: #E9BA71; }
.vt-flatsome .alignleft { float: left; margin: 0 1em .5em 0; }
.vt-flatsome .alignright { float: right; margin: 0 0 .5em 1em; }
.vt-flatsome .aligncenter { display: block; margin: 0 auto 1em; }
.vt-flatsome iframe { max-width: 100%; }
.vt-flatsome blockquote { border-left: 2px solid #E9BA71; font-style: italic; margin: 0 0 1.25em; padding: 0 1.25em 0 1.875em; }
.vt-flatsome .icon-box img, .vt-flatsome li img { display: inline-block; vertical-align: middle; width: 30px; height: auto; }

/* ── generated helper classes (object-position / aspect-ratio / overlays) ── */
.vt-op-63-54 img { object-position: 63% 54% !important; }
.vt-ar-70 img { width: 100%; height: auto !important; aspect-ratio: 100 / 70; object-fit: cover; }
.vt-ar-100 img { width: 100%; height: auto !important; aspect-ratio: 100 / 100; object-fit: cover; }
.vt-op-69-0 img { object-position: 69% 0% !important; }
.vt-ov-rgba-0-0-0-0-203::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.203); z-index: 1; pointer-events: none; }
@media (max-width: 767px) { .vt-hero.vt-ov-rgba-0-0-0-0-203::after { background: rgba(0,0,0,0.203); } }
.vt-ar-75 img { width: 100%; height: auto !important; aspect-ratio: 100 / 75; object-fit: cover; }
.vt-ar-65 img { width: 100%; height: auto !important; aspect-ratio: 100 / 65; object-fit: cover; }
.vt-ov-rgba-0-0-0-0-576::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.576); z-index: 1; pointer-events: none; }
@media (max-width: 767px) { .vt-hero.vt-ov-rgba-0-0-0-0-576::after { background: rgba(0,0,0,0.576); } }
.vt-ov-rgba-0-0-0-5::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 1; pointer-events: none; }
@media (max-width: 767px) { .vt-hero.vt-ov-rgba-0-0-0-5::after { background: rgba(0,0,0,.5); } }
.vt-op-0-45 img { object-position: 0% 45% !important; }
.vt-ov-rgba-0-0-0-0-209::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.209); z-index: 1; pointer-events: none; }
@media (max-width: 767px) { .vt-hero.vt-ov-rgba-0-0-0-0-209::after { background: rgba(0,0,0,0.209); } }
.vt-op-0-82 img { object-position: 0% 82% !important; }
.vt-ov-rgba-0-0-0-0-233::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.233); z-index: 1; pointer-events: none; }
@media (max-width: 767px) { .vt-hero.vt-ov-rgba-0-0-0-0-233::after { background: rgba(0,0,0,0.233); } }

/* ═══════════════════════════════════════════════════════════════════════════
   CONCEPT B — "Evening at the Temple"
   Brand primaries: teal #E9BA71 + orange #E9BA71. Everything else is a shade of them.
   This layer sits after the base rules above and wins by order/specificity.
   ═══════════════════════════════════════════════════════════════════════════ */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/cormorant-garamond-600.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/work-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/work-sans-600.woff2") format("woff2"); }

:root {
  /* Brand palette (ชื่อตัวแปรเดิมคงไว้ เพื่อไม่ให้หน้าอื่นพัง) */
  --vt-night: #102C36;      /* Deep teal — page canvas, announcement bar, scrolled nav */
  --vt-deep: #193842;       /* Mid teal — alternate dark sections */
  --vt-footer: #0D2832;     /* Near-black teal — footer */
  --vt-ink: #0C242C;        /* Ink teal — darkest tone */
  --vt-teal: #193842;
  --vt-orange: #E9BA71;     /* Soft gold — buttons, ticker, nav CTA, highlights */
  --vt-orange-lt: #F0CF94;  /* Pale gold — accent hover, italic word, small labels */
  --vt-gold-light: #F4C989; /* Light gold — nav button hover */
  --vt-ivory: #F6F2E9;      /* Warm off-white — body + heading text */
  --vt-white: #FFFDF8;      /* Warm white — on photos */
  --vt-mist: #BFCCD0;       /* Gray-blue — muted text */
  --vt-line: rgba(235, 236, 227, .17); /* hairlines + borders */
  --vt-terra: #865F4A;      /* photo-fallback glow */
  --vt-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --vt-sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --vt-kanok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M0 7h44M76 7h44' stroke='%23E9BA71'/%3E%3Cpath d='M60 1c4 3 7 4 10 6-3 2-6 3-10 6-4-3-7-4-10-6 3-2 6-3 10-6z' fill='none' stroke='%23E9BA71' stroke-width='1.2'/%3E%3Ccircle cx='60' cy='7' r='1.6' fill='%23E9BA71'/%3E%3C/svg%3E");
}

/* ── Base ── */
html, body { background: var(--vt-night); }
body { font-family: var(--vt-sans); color: var(--vt-ivory); font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, h5, h6, .elementor-heading-title {
  font-family: var(--vt-serif); font-weight: 600; letter-spacing: 0; color: var(--vt-ivory);
}
a { color: var(--vt-orange-lt); text-decoration: none; transition: color .3s, opacity .3s; }
a:hover { color: var(--vt-ivory); }
::selection { background: var(--vt-orange); color: var(--vt-ink); }
:focus-visible { outline: 2px solid var(--vt-orange); outline-offset: 3px; }
.elementor-widget-text-editor { color: inherit; }
hr { border-color: var(--vt-line); }

/* ── Buttons: square, orange, dark text (white on orange is only 2.2:1) ── */
.elementor-button, .vt-btn {
  font-family: var(--vt-sans); font-weight: 600; text-transform: none; letter-spacing: 0;
  box-shadow: none; text-decoration: none !important;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, background-color .3s, color .3s;
}
/* Primary buttons: ลอยขึ้น 3px + เงาอ่อน (แทน float 8px ของ Elementor) */
.elementor-button:hover, .vt-btn:hover, .elementor-button.elementor-animation-float:hover {
  transform: translateY(-3px) !important; box-shadow: 0 10px 24px rgba(12, 36, 44, .35);
}
.vt-shadow .elementor-button { box-shadow: none; }
.vt-link-btn .elementor-button { text-decoration: none !important; }
.vt-btn { display: inline-block; padding: 15px 28px; background: var(--vt-orange); color: var(--vt-ink);
  text-decoration: none; line-height: 1.2; text-align: center; border-radius: 40px; }
.vt-btn:hover { background: var(--vt-gold-light); color: var(--vt-ink); }
.vt-btn--ghost, .vt-btn-ghost .elementor-button {
  background: transparent !important; border: 1px solid var(--vt-orange) !important; color: var(--vt-orange-lt) !important;
}
.vt-btn--ghost:hover, .vt-btn-ghost .elementor-button:hover { background: rgba(233, 186, 113, .12) !important; color: var(--vt-ivory) !important; }
.vt-btn--block { display: block; width: 100%; }
.vt-btn--block + .vt-btn--block { margin-top: 10px; }

/* ── Kanok ornament above section titles: add CSS class "vt-kanok" to a Heading widget ── */
.vt-kanok .elementor-heading-title::before, .vt-kanok-title::before {
  content: ""; display: block; width: 120px; height: 14px; margin-bottom: 16px; background: var(--vt-kanok) no-repeat;
}

/* ── Header (template 849: .vtx-announce + .vt-nav) ── */
/* announcement bar เลื่อนหายไปกับหน้า, .vt-nav เป็น fixed เอง — #masthead จึงต้องไม่ sticky
   (ถ้า sticky แถบประกาศจะค้างทับ nav ตอนเลื่อน) */
body.ehf-header #masthead, #masthead { position: relative !important; top: auto !important; }
#masthead .vtx-announce { background-color: var(--vt-night) !important; }
#masthead .hfe-nav-menu a.hfe-menu-item { color: var(--vt-ivory) !important; text-decoration: none !important;
  transition: color .3s, opacity .3s, letter-spacing .3s; }
#masthead .hfe-nav-menu .current-menu-item > a.hfe-menu-item,
#masthead .hfe-nav-menu a.hfe-menu-item:hover { color: var(--vt-orange-lt) !important; }
#masthead .hfe-nav-menu a.hfe-menu-item:hover { opacity: .85; letter-spacing: .02em; }
#masthead .hfe-nav-menu .menu-item a.hfe-menu-item::before,
#masthead .hfe-nav-menu .menu-item a.hfe-menu-item::after { display: none !important; }
#masthead nav.hfe-dropdown, #masthead nav.hfe-dropdown .menu-item a.hfe-menu-item { background-color: var(--vt-night) !important; }
#masthead nav.hfe-dropdown .menu-item a.hfe-menu-item { border-bottom: 1px solid var(--vt-line); }
#masthead nav.hfe-dropdown .menu-item a.hfe-menu-item:hover { background-color: var(--vt-deep) !important; }
#masthead .hfe-nav-menu__toggle, #masthead .hfe-nav-menu__toggle svg { color: var(--vt-ivory); fill: var(--vt-ivory); }
/* Nav CTA: Soft gold → Light gold */
#masthead .elementor-widget-button .elementor-button { background: var(--vt-orange) !important; border: 0 !important;
  color: var(--vt-ink) !important; border-radius: 40px !important; padding: 9px 22px; font-size: 15px; }
#masthead .elementor-widget-button .elementor-button:hover { background: var(--vt-gold-light) !important; }

/* ── Footer ── */
#colophon .vt-footer { background-color: var(--vt-footer) !important; border-top: 1px solid var(--vt-line); }
#colophon .vt-footer, #colophon .vt-footer p { color: var(--vt-mist); }
#colophon .vt-footer .elementor-heading-title { color: var(--vt-ivory) !important; }
#colophon .vt-footer a { color: var(--vt-ivory); text-decoration: none !important; }
#colophon .vt-footer a:hover { color: var(--vt-orange-lt); opacity: .85; }
.vt-bottom-bar { background: rgba(13, 40, 50, .94) !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--vt-line) !important; box-shadow: 0 -8px 24px rgba(12, 36, 44, .35) !important; }
.vt-bottom-bar a { color: var(--vt-mist) !important; text-decoration: none !important; }
.vt-bottom-bar a:hover { color: var(--vt-orange-lt) !important; }
.vt-bottom-bar a:last-child { color: var(--vt-orange) !important; }

/* ── Home hero (container classes: vt-hero vt-hero--b) ── */
.vt-hero.vt-hero--b { padding: 56px !important; }
.vt-hero--b::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(16,44,54,.92) 0%, rgba(16,44,54,.55) 42%, rgba(16,44,54,0) 70%); }
.vt-hero--b::before { content: ""; position: absolute; inset: 20px; z-index: 2; border: 1px solid rgba(233,186,113,.6); pointer-events: none; }
.vt-hero--b .vt-hero__card { z-index: 3; }
.vt-hero--b .vt-hero__bg img { object-position: 70% 40%; }
.vt-open { font-size: 14px; color: var(--vt-mist); }
.vt-open.is-open { color: var(--vt-orange-lt); }
@media (max-width: 767px) {
  .vt-hero.vt-hero--b { padding: 24px !important; }
  .vt-hero--b::before { display: none; }
  .vt-hero--b::after { background: linear-gradient(180deg, rgba(16,44,54,0) 25%, rgba(16,44,54,.95) 78%); }
  .vt-hero--b .vt-hero__bg img { object-position: 30% 40%; }
}

/* ── Picker: [vt_picker] ── */
.vt-picker__needs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.vt-picker__needs button { font: 400 15px/1.2 var(--vt-sans); padding: 12px 20px; background: transparent; color: var(--vt-ivory);
  border: 1px solid rgba(233,186,113,.35); border-radius: 0; cursor: pointer; transition: background .15s, color .15s; }
.vt-picker__needs button:hover { border-color: var(--vt-orange); }
.vt-picker__needs button[aria-checked="true"] { background: var(--vt-orange); border-color: var(--vt-orange); color: var(--vt-ink); font-weight: 600; }
.vt-picker__panel:not([hidden]) { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.vt-picker__card { background: var(--vt-deep); padding: 32px; }
.vt-picker__card h3 { font-size: 44px; margin: 4px 0 12px; line-height: 1.05; }
.vt-picker__card p { color: var(--vt-mist); max-width: 52ch; }
.vt-picker__eyebrow { color: var(--vt-orange) !important; font-size: 14px; margin: 0; }
.vt-picker__price { margin: 20px 0; }
.vt-picker__price strong { font: 600 40px/1 var(--vt-serif); color: var(--vt-orange-lt); margin-right: 8px; }
.vt-picker__alts > p { color: var(--vt-mist); font-size: 14px; margin: 0 0 8px; }
.vt-picker__alts ul { list-style: none; margin: 0; padding: 0; }
.vt-picker__alts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--vt-line); }
.vt-picker__alts strong { display: block; font: 600 24px/1.2 var(--vt-serif); color: var(--vt-ivory); }
.vt-picker__alts span { color: var(--vt-mist); font-size: 14px; }
.vt-picker__alts em { font-style: normal; color: var(--vt-orange-lt); white-space: nowrap; }
@media (max-width: 1024px) { .vt-picker__panel:not([hidden]) { grid-template-columns: 1fr; gap: 32px; } .vt-picker__card h3 { font-size: 34px; } }

/* ── Gallery + quote ── */
.vt-cover img { width: 100%; height: 100%; object-fit: cover; }
.vt-quote-b { font: 600 26px/1.3 var(--vt-serif); color: var(--vt-ivory); }

/* ── Post cards: [vt_recent_posts] and [vt_blog] ── */
.vt-cards { display: grid; gap: 40px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vt-cards--cols-1 { grid-template-columns: 1fr; }
.vt-cards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vt-card[hidden] { display: none !important; }
.vt-card__img { display: block; overflow: hidden; }
.vt-card__img img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; transition: transform .4s; }
.vt-card:hover .vt-card__img img { transform: scale(1.03); }
.vt-card__body { padding-top: 16px; }
.vt-card__topic { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--vt-orange); }
.vt-card__title { font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.vt-card__title a { color: var(--vt-ivory); text-decoration: none; }
.vt-card__title a:hover { color: var(--vt-orange-lt); }
.vt-card__excerpt { color: var(--vt-mist); font-size: 15px; line-height: 1.5; margin: 0 0 10px; }
.vt-card__meta { color: var(--vt-mist); font-size: 13px; margin: 0; }
.vt-card--featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.vt-card--featured .vt-card__img img { aspect-ratio: 16 / 9; }
.vt-card--featured .vt-card__body { padding-top: 0; }
.vt-card--featured .vt-card__title { font-size: 34px; }
.vt-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.vt-chips button { font: 400 15px/1.2 var(--vt-sans); padding: 10px 18px; background: transparent; color: var(--vt-ivory);
  border: 1px solid rgba(233,186,113,.35); border-radius: 999px; cursor: pointer; }
.vt-chips button[aria-pressed="true"] { background: var(--vt-orange); border-color: var(--vt-orange); color: var(--vt-ink); font-weight: 600; }
@media (max-width: 1024px) { .vt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vt-card--featured { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 767px) { .vt-cards, .vt-cards--cols-2 { grid-template-columns: 1fr; } .vt-card--featured .vt-card__title { font-size: 26px; } }

/* ── Single post (single.php) ── */
.vt-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.vt-single__head { max-width: 1200px; margin: 0 auto; padding: 56px 24px 0; }
.vt-single__back { font-size: 14px; font-weight: 600; color: var(--vt-orange); text-decoration: none; }
.vt-single__title { font-size: 50px; line-height: 1.1; max-width: 22ch; margin: 16px 0 12px; }
.vt-single__meta { font-size: 14px; color: var(--vt-mist); margin: 0; }
.vt-single__figure { max-width: 1200px; margin: 32px auto 0; padding: 0 24px; }
.vt-single__figure img { width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; display: block; }
.vt-single__wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 96px; }
.vt-single__content { font-size: 18px; line-height: 1.75; max-width: 68ch; }
.vt-single__aside { position: relative; }
.vt-bookcard { position: sticky; top: 120px; background: var(--vt-deep); padding: 24px; }
.vt-bookcard p { margin: 0; }
.vt-bookcard__eyebrow { font-size: 14px; color: var(--vt-mist); }
.vt-bookcard__name { font: 600 26px/1.2 var(--vt-serif); margin: 4px 0 !important; }
.vt-bookcard__price { color: var(--vt-mist); font-size: 15px; margin-bottom: 16px !important; }
.vt-single__more { border-top: 1px solid var(--vt-line); padding: 48px 0 96px; }
.vt-single__more h2 { font-size: 30px; margin: 0 0 32px; }
@media (max-width: 1024px) { .vt-single__wrap { grid-template-columns: 1fr; gap: 32px; } .vt-bookcard { position: static; } }
@media (max-width: 767px) { .vt-single__title { font-size: 32px; } .vt-single__figure { padding: 0; } .vt-single__figure img { aspect-ratio: 4 / 3; } }

/* ── Converted inner pages + post content on dark ── */
.vt-fs, .vt-fs p, .vt-fs li { color: inherit; }
.vt-fs h1, .vt-fs h2, .vt-fs h3, .vt-fs h4, .vt-fs h5, .vt-fs h6 { color: var(--vt-ivory); }
.vt-fs a { color: var(--vt-orange-lt); }
.vt-fs li.bullet-arrow, .vt-fs li.bullet-checkmark, .vt-fs li.bullet-star { border-bottom-color: rgba(235, 236, 227, .17); }
.vt-fs li.bullet-arrow::before, .vt-checklist li::before { color: var(--vt-orange); }
.vt-checklist li { border-bottom-color: rgba(235, 236, 227, .17); }
.vt-acc, .vt-acc:last-of-type { border-color: rgba(235, 236, 227, .17); }
.vt-acc summary { color: var(--vt-ivory); }
.vt-acc summary::before { color: var(--vt-orange); }
.vt-acc[open] summary { color: var(--vt-orange-lt); background: rgba(246,242,233,.03); }
.is-divider { background-color: var(--vt-orange) !important; opacity: .6; }
.vt-fs blockquote, .vt-flatsome blockquote, .vt-quote { border-left-color: var(--vt-orange); }
.vt-fs a.button, .vt-single a.button { background: var(--vt-orange); color: var(--vt-night); border-radius: 0; text-transform: none; }
.vt-flatsome .banner { background: var(--vt-deep); }
.vt-flatsome [data-text-color="primary"] { color: var(--vt-orange-lt); }
.vt-stars { color: var(--vt-orange); }

/* ── Inner-page heroes (banners converted from Flatsome): Concept B layout ──
   Text sits bottom-left over a left-to-right gradient, like the home hero. Elementor sets flex/width
   through custom properties, so they are overridden at the variable level. */
.e-con.vt-hero--page { --justify-content: flex-end !important; --align-items: flex-start !important;
  padding: 56px max(24px, calc((100% - 1152px) / 2)) !important; }
.vt-hero--page::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(16,44,54,.92) 0%, rgba(16,44,54,.55) 45%, rgba(16,44,54,.1) 75%) !important; }
.vt-hero--page > .vt-hero__card { --width: min(640px, 100%) !important; text-align: left; }
.vt-hero--page .vt-hero__card .elementor-widget-text-editor { text-align: left !important; }
.vt-hero--page h1 { color: var(--vt-ivory) !important; font-size: clamp(40px, 5vw, 64px) !important; line-height: 1.05 !important;
  text-transform: none !important; letter-spacing: 0 !important; margin: 0 0 .3em; }
.vt-hero--page h1 span { color: inherit !important; }
.vt-hero--page .elementor-widget-text-editor p { color: var(--vt-mist); }
@media (max-width: 767px) {
  .e-con.vt-hero--page { padding: 24px !important; }
  .vt-hero--page::after { background: linear-gradient(180deg, rgba(16,44,54,0) 20%, rgba(16,44,54,.92) 80%) !important; }
}

/* Stacked buttons (e.g. Contact "Book online" + "Call") must never overlap each other's click area. */
.elementor-widget-button + .elementor-widget-button { margin-top: 12px; }
.elementor-widget-button .elementor-button { position: relative; z-index: 1; }