/* Aluminium Veneer editorial layout, used on both the Thai and English product page. */
:is(.locale-th, .locale-en):has(> main .veneer-layout) > header.sticky.top-0 {
  position: sticky;
}

.veneer-layout {
  --veneer-ink: #2b2c2d;
  --veneer-muted: #565858;
  --veneer-gold: #886235;
  --veneer-rule: #dbc4a1;
  --veneer-border: #e5e7e8;
  --veneer-gutter: max(5.65vw, calc((100vw - 1440px) / 2));
  --veneer-header: 4.25rem;
  --veneer-nav-height: clamp(3rem, 6vw, 4.25rem);
  color: var(--veneer-ink);
  background: #fafafb;
}

.veneer-layout img { display: block; width: 100%; object-fit: cover; }
.veneer-shell { margin-inline: var(--veneer-gutter); }
.veneer-layout section[id] { scroll-margin-top: calc(var(--veneer-header) + var(--veneer-nav-height)); }

.veneer-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(17.1rem, 34vw, 33rem);
  overflow: hidden;
  background: #edf1f4;
}

.veneer-hero__image,
.veneer-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.veneer-hero__image { z-index: -2; object-position: 66% 52%; }
.veneer-hero::after {
  content: "";
  z-index: -1;
  /* Wide enough to stay under the English copy too: EN runs ~30% longer than TH for the same meaning. */
  background: linear-gradient(90deg, #f6f6f6 0%, #f6f6f6f5 32%, #f6f6f6c8 50%, #f6f6f655 66%, transparent 80%);
}

.veneer-hero__copy { padding-block: clamp(1.25rem, 2.6vw, 2.7rem) 2.5rem; }
.veneer-breadcrumb {
  color: #545656;
  font-size: clamp(.7rem, 1vw, .85rem);
}
.veneer-breadcrumb ol, .veneer-breadcrumb li { display: flex; align-items: center; flex-wrap: wrap; gap: .75em; }
.veneer-breadcrumb li + li::before {
  content: "";
  width: .35em;
  height: .35em;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.veneer-breadcrumb a:hover { color: var(--veneer-gold); text-decoration: underline; text-underline-offset: .2em; }

.veneer-hero p.veneer-hero__label {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-block: clamp(1.2rem, 3.1vw, 3rem) clamp(.55rem, 1.4vw, 1.1rem);
  color: var(--veneer-gold);
  font-size: clamp(.72rem, 1.15vw, .9rem);
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.3;
}

.veneer-hero__label::after,
.veneer-layout h2::after { content: ""; display: block; height: 2px; background: var(--veneer-rule); }
.veneer-hero__label::after { width: clamp(2rem, 5vw, 4.5rem); }

.veneer-layout .veneer-hero h1 {
  font-size: clamp(2.125rem, 4.25vw, 4.175rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.047em;
}

.veneer-hero p.veneer-hero__subtitle {
  margin-top: .23em;
  max-width: 38ch;
  font-size: clamp(1.125rem, 2.55vw, 2.25rem);
  font-weight: 600;
  line-height: 1.35;
}
.veneer-hero p.veneer-hero__description {
  max-width: 42ch;
  margin-top: .9em;
  color: #484b4d;
  font-size: clamp(.84rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.veneer-nav {
  position: sticky;
  top: var(--veneer-header);
  z-index: 10;
  background: #fafbfc;
  border-bottom: 1px solid var(--veneer-border);
}
.veneer-nav__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: var(--veneer-nav-height); }
.veneer-nav a {
  position: relative;
  display: grid;
  place-items: center;
  padding: .45em .25em;
  color: #4c4e50;
  font-size: clamp(.86rem, 1.52vw, 1.1rem);
  text-align: center;
}
.veneer-nav a + a::before { position: absolute; inset: 28% auto 28% 0; width: 1px; background: #d9dcde; content: ""; }
.veneer-nav a:hover { color: var(--veneer-gold); }
.veneer-nav a::after {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: clamp(2.5rem, 10vw, 8rem);
  height: 3px;
  transform: translateX(-50%);
  background: #b28b50;
  opacity: 0;
  content: "";
}
.veneer-layout:not(:has(#v5-types:target, #v5-applications:target)) a[href="#v5-overview"],
.veneer-layout:has(#v5-types:target) a[href="#v5-types"],
.veneer-layout:has(#v5-applications:target) a[href="#v5-applications"] {
  color: #252729;
  font-weight: 700;
}
.veneer-layout:not(:has(#v5-types:target, #v5-applications:target)) a[href="#v5-overview"]::after,
.veneer-layout:has(#v5-types:target) a[href="#v5-types"]::after,
.veneer-layout:has(#v5-applications:target) a[href="#v5-applications"]::after { opacity: 1; }

.veneer-overview {
  display: grid;
  grid-template-columns: minmax(0, 31fr) minmax(0, 69fr);
  gap: clamp(.5rem, 1.65vw, 1.65rem);
  align-items: stretch;
  padding: clamp(1rem, 1.95vw, 2rem) 0 clamp(.6rem, 1vw, 1.25rem) var(--veneer-gutter);
  background: #fcfcfd;
}
.veneer-overview__body { padding-block: clamp(.3rem, 2vw, 2.5rem); }
.veneer-layout h2 { font-size: clamp(1.35rem, 2.75vw, 2.75rem); letter-spacing: -.025em; font-weight: 700; line-height: 1.28; }
.veneer-layout .veneer-overview h2 { font-size: clamp(1.55rem, 3.35vw, 3.2rem); }
.veneer-layout h2::after { width: clamp(1.9rem, 4vw, 3.75rem); margin-block: .32em .62em; }
.veneer-overview__body > p { max-width: 44ch; color: #454749; font-size: clamp(.82rem, 1.42vw, 1.2rem); line-height: 1.7; }
.veneer-overview__body > p + p { margin-top: .6em; }
.veneer-overview__body > #v5-features { display: none; }
.veneer-overview__image { height: 100%; min-height: 0; aspect-ratio: 2.5; }

.veneer-panels, .veneer-applications {
  padding-block: clamp(1rem, 2vw, 2rem) clamp(1.35rem, 2.6vw, 2.8rem);
  border-top: 1px solid var(--veneer-border);
}
.veneer-applications { background: linear-gradient(125deg, #f5f6f7, #eef0f3); }
.veneer-applications p.veneer-applications__intro {
  margin: -.25em 0 1em;
  color: var(--veneer-muted);
  font-size: clamp(.83rem, 1.25vw, 1.05rem);
}
.veneer-cards { display: grid; gap: clamp(.5rem, 1vw, 1rem); }
.veneer-panels__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.veneer-panels__grid img { aspect-ratio: 4 / 3; height: auto; }
.veneer-panels__grid figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(.35rem, 1.2vw, 1rem);
  margin-top: .43rem;
}
.veneer-card-number { font-size: clamp(.87rem, 1.75vw, 1.45rem); line-height: 1.3; color: var(--veneer-gold); }
.veneer-cards h3 { font-size: clamp(.73rem, 1.33vw, 1.14rem); font-weight: 700; line-height: 1.4; }
.veneer-cards p { margin-top: .16em; color: var(--veneer-muted); font-size: clamp(.69rem, 1.14vw, 1rem); line-height: 1.48; }
.veneer-applications__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.veneer-applications__grid img { aspect-ratio: 2.2; height: auto; object-position: center 52%; }
.veneer-applications__grid article:first-child img { object-position: center 62%; }
.veneer-applications__grid article:nth-child(2) img { object-position: center 62%; }
.veneer-applications__grid h3 { margin-top: .5em; font-size: clamp(.85rem, 1.6vw, 1.35rem); }

@media (max-width: 1023px) {
  .veneer-panels__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
}
@media (max-width: 767px) {
  .veneer-layout { --veneer-header: 4rem; }
}
@media (max-width: 639px) {
  .veneer-hero { min-height: 25rem; }
  .veneer-hero__image { object-position: 69% 65%; }
  .veneer-hero::after { background: linear-gradient(180deg, #f6f6f6 0%, #f6f6f6f5 30%, #f6f6f6cf 48%, #f6f6f630 67%, transparent 83%); }
  .veneer-hero__copy { padding-bottom: 8rem; }
  .veneer-layout .veneer-hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.8rem); }
  .veneer-hero p.veneer-hero__description { max-width: 36ch; }
  .veneer-overview { grid-template-columns: 1fr; gap: .85rem; padding: 1.4rem var(--veneer-gutter); }
  .veneer-overview__image { aspect-ratio: 1.85; height: auto; }
  .veneer-panels, .veneer-applications { padding-block: 1.4rem 1.65rem; }
  .veneer-panels__grid { gap: 24px 14px; }
  .veneer-applications__grid { grid-template-columns: 1fr; gap: 1.05rem; }
  .veneer-cards h3 { font-size: .85rem; }
  .veneer-cards p { font-size: .78rem; }
  .veneer-applications__grid h3 { font-size: .98rem; }
}

/* Panel previews use the same native dialog and visual language as the door and window previews. */
.veneer-panel-card { display: block; }
.veneer-panel-card:is(:hover, :focus-visible) h3 { color: var(--veneer-gold); }
html:has(.veneer-panel-preview[open]) { overflow: hidden; }

.nesta-preview.veneer-panel-preview { width: min(960px, calc(100% - 48px)); }
.veneer-panel-preview .nesta-preview__close { font-size: 1.7rem; line-height: 1; }
.nesta-preview.veneer-panel-preview .nesta-preview__layout {
  grid-template-columns: 44% minmax(0, 1fr);
  min-height: 0;
}
.nesta-preview.veneer-panel-preview .nesta-preview__media {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 1.5rem 1.25rem 2.5rem;
  background: #efeee9;
}
.nesta-preview.veneer-panel-preview .nesta-preview__media img {
  position: static;
  max-height: 390px;
  height: auto;
  object-fit: contain;
}
.veneer-panel-preview .nesta-preview__media::after,
.veneer-panel-preview h2::after { display: none; }
.nesta-preview.veneer-panel-preview .nesta-preview__media figcaption {
  bottom: .75rem;
  left: 1.25rem;
  color: #565858;
  letter-spacing: normal;
}
.nesta-preview.veneer-panel-preview .nesta-preview__content { padding: 2.1rem 2rem; }
.veneer-panel-preview .veneer-preview-english {
  margin-top: .22rem;
  color: #565858;
  font-size: .85rem;
}
.veneer-preview-details > div { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #dedfd9; }
.veneer-preview-details dt { font-size: .91rem; font-weight: 600; }
.veneer-preview-details dd { margin-top: .15rem; color: #565858; font-size: .86rem; }

@media (max-width: 800px) {
  .nesta-preview.veneer-panel-preview { width: calc(100% - 24px); }
  .nesta-preview.veneer-panel-preview .nesta-preview__media { height: 205px; min-height: 0; padding: 1rem 1rem 1.75rem; }
  .nesta-preview.veneer-panel-preview .nesta-preview__media img { max-height: 170px; }
  .nesta-preview.veneer-panel-preview .nesta-preview__content { padding: 1.25rem; }
}

.product-consultation {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(17rem, 22vw, 22rem);
  scroll-margin-top: 4.25rem;
  border-top: 1px solid #ddd6ca;
  color: #282725;
}

#main-content .product-consultation { background: #f6f3ed; }

.product-consultation::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, #f6f3ed 0%, #f6f3edf8 19%, #f6f3edef 37%, #f6f3edc2 50%, #f6f3ed40 65%, transparent 78%);
}

.product-consultation__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 54%;
  padding-block: clamp(1.75rem, 3vw, 3rem);
  padding-inline: max(5.65vw, calc((100vw - 1440px) / 2)) clamp(1.5rem, 3vw, 3rem);
}

section.product-consultation .product-consultation__label {
  margin: 0 0 .6rem;
  color: #73512b;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
}

section.product-consultation h2 {
  margin: 0;
  color: #282725;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -.025em;
}

section.product-consultation h2:lang(th) { letter-spacing: 0; }
section.product-consultation h2::after { content: none; }

section.product-consultation .product-consultation__description {
  max-width: 48ch;
  margin: .7rem 0 0;
  color: #47443d;
  font-size: clamp(.94rem, 1.18vw, 1.0625rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.product-consultation .product-consultation__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 48px;
  max-width: 100%;
  margin-top: 1.3rem;
  padding: .7rem 1.25rem;
  color: #fff;
  background: #32312c;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-consultation .product-consultation__action:hover { background: #614b34; }
.product-consultation .product-consultation__action:focus-visible { outline: 2px solid #846038; outline-offset: 3px; }
.product-consultation__action > span { flex: none; }

.product-consultation__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
}

.product-consultation .product-consultation__media img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 52%;
}

@media (max-width: 767px) {
  .product-consultation { display: block; padding-bottom: clamp(8.5rem, 38vw, 11.5rem); }
  .product-consultation::before { content: none; }
  .product-consultation__copy {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding-inline: max(20px, 5.65vw);
  }
  .product-consultation__copy::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 -5rem;
    content: '';
    background: linear-gradient(180deg, #f6f3edf9, #f6f3edea calc(100% - 5rem), transparent);
  }
  .product-consultation .product-consultation__media img { object-position: 75% 52%; }
}

/* Use the Veneer cover and card styles with the optional Honeycomb-style features section. */
.facade-product-layout .veneer-hero h1 { max-width: min(18ch, 70%); text-wrap: balance; }
.facade-product-layout .veneer-hero__description { text-wrap: pretty; }
.facade-product-layout .facade-nav--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facade-product-layout .veneer-nav a { padding-inline: .2rem; }

.facade-product-layout:has(#v5-features:target) .veneer-nav a[href="#v5-overview"] {
  color: #4c4e50;
  font-weight: 400;
}
.facade-product-layout:has(#v5-features:target) .veneer-nav a[href="#v5-overview"]::after { opacity: 0; }
.facade-product-layout:has(#v5-features:target) .veneer-nav a[href="#v5-features"] {
  color: #252729;
  font-weight: 700;
}
.facade-product-layout:has(#v5-features:target) .veneer-nav a[href="#v5-features"]::after { opacity: 1; }

.facade-product-layout .veneer-overview { grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); }
.facade-product-layout .veneer-overview__body { align-self: center; }
.facade-product-layout .veneer-overview__image { object-position: 50% 57%; }

.facade-features {
  padding-block: clamp(1.8rem, 3.2vw, 3.5rem);
  border-top: 1px solid var(--veneer-border);
  background: #f6f6f4;
}
.facade-feature-list,
.facade-material-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 3rem);
}
.facade-feature-list > li,
.facade-material-specs > div,
.facade-material-text,
.facade-application-text {
  padding-top: 1rem;
  border-top: 1px solid #bda381;
}
.facade-feature-list h3,
.facade-material-text h3,
.facade-material-specs dt,
.facade-product-layout .veneer-applications h3 {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.4;
  font-weight: 700;
}
.facade-feature-list p,
.facade-material-specs dd,
.facade-material-text p {
  margin-top: .35rem;
  color: var(--veneer-muted);
  font-size: clamp(.88rem, 1.15vw, 1rem);
  line-height: 1.6;
}
.facade-material-specs dd { font-variant-numeric: tabular-nums; }

.facade-product-layout .veneer-panels { background: #fff; }
.facade-product-layout .facade-material-grid figcaption { display: block; }
.facade-material-grid li { min-width: 0; }
.facade-material-grid a img { background: #f0efec; }
[data-v5-product="perforated-panel"] .facade-material-grid a img {
  padding: .45rem;
  object-fit: contain;
}
.facade-material-grid:has(.facade-material-text) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.facade-subheading { margin-block: 1.65rem .85rem; font-weight: 700; }
.facade-product-layout .v5-library-link { display: inline-flex; margin-top: 1rem; color: var(--veneer-gold); }
.facade-product-layout .v5-library-link:hover { text-decoration: underline; }

.facade-product-layout .nesta-preview__description { margin-top: .6rem; }
.facade-product-layout :is(a, button):focus-visible { outline: 2px solid #846038; outline-offset: 3px; }

/* The site suppresses legacy standalone enquiry bands. This is the template's consultation. */
#main-content .facade-product-layout .product-consultation { display: flex !important; }

@media (max-width: 767px) {
  .facade-product-layout .veneer-hero h1 { max-width: 84%; }
  .facade-product-layout .veneer-nav a { font-size: clamp(.73rem, 2.5vw, .95rem); }
  #main-content .facade-product-layout .product-consultation { display: block !important; }
}

@media (max-width: 639px) {
  .facade-product-layout .veneer-hero h1 { max-width: 100%; }
  .facade-product-layout .veneer-hero::after {
    background: linear-gradient(180deg, #f6f6f6 0%, #f6f6f6f5 38%, #f6f6f6c9 58%, transparent 88%);
  }
  .facade-product-layout .veneer-overview,
  .facade-feature-list,
  .facade-material-specs,
  .facade-material-grid:has(.facade-material-text) { grid-template-columns: minmax(0, 1fr); }
}
