/* Noto Sans Thai (variable 300-800), self-hosted, SIL Open Font License */
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fonts/noto-sans-thai-thai.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fonts/noto-sans-thai-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fonts/noto-sans-thai-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #262a73;        /* Parker mark */
  --navy-deep: #12153d;
  --ink: #161a33;
  --steel: #eef0f5;
  --line: #d9dde8;
  --muted: #5d6378;
  --heat: #ff6b1a;        /* furnace glow */
  --heat-deep: #e2500a;
  --radius: 14px;
  --wrap: 1200px;
  --font: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 400 16px/1.7 var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--heat); outline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--heat-deep); margin-bottom: .7em; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--heat); }
.eyebrow-light { color: #ffb37f; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 44em; }
.section-head { max-width: 760px; margin-bottom: 36px; }

/* buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .85em 1.6em; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--navy); transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-1px); }
.btn-heat { background: var(--heat); border-color: var(--heat); }
.btn-heat:hover { background: var(--heat-deep); border-color: var(--heat-deep); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--steel); color: var(--navy-deep); }
.btn-sm { padding: .45em 1.1em; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 210px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.site-nav a:hover { color: var(--heat-deep); }
.site-nav .btn { color: #fff; }
.site-nav .lang { border: 1px solid var(--line); border-radius: 6px; padding: .1em .65em; font-size: .86rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s, opacity .2s; }
@media (max-width: 960px) {
  .brand img { width: 170px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .lang { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; font-size: .97rem; }
  .site-nav .btn { margin-top: 12px; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-steel { background: var(--steel); }
.section-navy { background: var(--navy-deep); color: #fff; }

/* hero: the furnace photo is the signature */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--navy-deep); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; transform: scale(1.04); animation: hero-in 1.6s ease-out both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,21,61,.94) 0%, rgba(18,21,61,.78) 38%, rgba(18,21,61,.2) 72%, rgba(18,21,61,.05) 100%),
              linear-gradient(0deg, rgba(18,21,61,.9) 0%, transparent 35%); }
.hero-inner { width: 100%; padding-top: 96px; padding-bottom: 48px; }
.hero h1 { max-width: 15em; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: #fff; background: linear-gradient(transparent 72%, var(--heat) 72%, var(--heat) 90%, transparent 90%); }
.hero-lead { font-size: 1.15rem; max-width: 34em; color: rgba(255,255,255,.86); }
.facts { list-style: none; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 0; padding-bottom: 28px; }
.facts li { border-top: 1px solid rgba(255,255,255,.28); padding: 14px 16px 0 0; font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.9); }
.facts li::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 12px var(--heat); margin-bottom: 10px; }
@keyframes hero-in { from { transform: scale(1.12); opacity: .4; } to { transform: scale(1.04); opacity: 1; } }
@media (max-width: 760px) {
  .hero { min-height: 640px; }
  .hero::before { background: linear-gradient(0deg, rgba(18,21,61,.96) 0%, rgba(18,21,61,.82) 55%, rgba(18,21,61,.45) 100%); }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 16px; }
}

/* business: three photo tiles */
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.biz-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: var(--navy-deep); }
.biz-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.biz-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18,21,61,.95) 0%, rgba(18,21,61,.75) 45%, rgba(18,21,61,.1) 100%); transition: opacity .3s; }
.biz-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--heat); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.biz-body { display: block; padding: 28px; }
.biz-body h3 { font-size: 1.45rem; margin-bottom: .4em; }
.biz-body p { color: rgba(255,255,255,.82); font-size: .96rem; margin-bottom: 1em; }
.biz-more { font-weight: 700; color: #ffb37f; }
.biz-tile:hover img { transform: scale(1.06); }
.biz-tile:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .biz { grid-template-columns: 1fr; } .biz-tile { min-height: 360px; } }

/* processes: photo mosaic */
.procs { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.proc { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; display: flex; align-items: flex-end; background: var(--navy); }
.proc-wide { grid-column: span 2; grid-row: span 2; }
.proc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.proc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18,21,61,.92) 0%, rgba(18,21,61,.25) 60%, transparent 100%); }
.proc span { padding: 18px 20px; display: flex; flex-direction: column; }
.proc b { font-size: 1.12rem; }
.proc-wide b { font-size: 1.6rem; }
.proc small { color: rgba(255,255,255,.8); font-size: .86rem; line-height: 1.5; }
.proc:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .procs { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; } }
@media (max-width: 560px) { .procs { grid-template-columns: 1fr; } .proc-wide { grid-column: auto; grid-row: span 1; } }

/* about */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about-photo::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 40%; height: 40%; border-left: 4px solid var(--heat); border-bottom: 4px solid var(--heat); border-radius: 0 0 0 var(--radius); z-index: -1; }
.about-photo figcaption { font-size: .82rem; color: var(--muted); margin-top: 22px; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 28px 0 22px; border-top: 1px solid var(--line); }
.figures div { padding: 16px 12px 0 0; }
.figures dt { font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.figures dd { margin: 4px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 44px; } }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); row-gap: 28px; }
.timeline li { position: relative; padding: 24px 20px 0 0; border-top: 2px solid rgba(255,255,255,.18); }
@media (max-width: 1060px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .timeline { grid-template-columns: 1fr 1fr; } }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 4px var(--navy-deep), 0 0 14px var(--heat); }
.timeline b { display: block; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline span { color: rgba(255,255,255,.72); font-size: .93rem; }

/* contact */
.sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
.site { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; border-top: 4px solid var(--navy); }
.site:first-child { border-top-color: var(--heat); }
.site h3 { font-size: 1.02rem; line-height: 1.45; margin-bottom: .3em; }
.site-tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--heat-deep); margin-bottom: .4em; }
.site-estate { font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: .6em; }
.site .muted { flex: 1; }
.phones { display: flex; flex-direction: column; font-weight: 700; font-size: 1.12rem; margin-bottom: .6em; }
.phones a { text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.phones a:hover { color: var(--heat-deep); }
@media (max-width: 1060px) { .sites { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sites { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 48px; }
.footer-brand img { display: block; width: 220px; height: auto; box-sizing: content-box; background: #fff; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.footer-brand b { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links li { margin-bottom: 8px; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin: 8px 0 0; }
@media (max-width: 760px) { .footer-row { grid-template-columns: 1fr; } }

/* status */
.status { max-width: 760px; text-align: center; }
.status .actions { justify-content: center; }
.status .eyebrow { justify-content: center; font-size: 1rem; }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 6px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- legacy content (migrated from old PHP pages) ---- */
.legacy { padding-bottom: 64px; }
.legacy > section, .legacy section { padding: 24px max(20px, calc((100% - var(--wrap)) / 2 + 20px)); }
.legacy section section { padding-left: 0; padding-right: 0; }
.legacy .content, .legacy .container, .legacy .ma-content { max-width: var(--wrap); margin: 0 auto; padding: 0; }
.legacy h1, .legacy .txt-title { margin: 8px 0 20px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--navy-deep); }
.legacy h2, .legacy .text-brif-product-hrad { font-size: 1.5rem; color: var(--navy-deep); }
.legacy h3, .legacy .subtitle-blue { color: var(--navy); font-size: 1.2rem; }
.legacy .text-brif-product { font-size: 1.1rem; color: var(--muted); }
.legacy .bg-gray-find, .legacy .bg-gray { background: var(--steel); }
.legacy img { border-radius: 8px; }
.legacy ul { padding-left: 1.3em; }
.legacy li { margin-bottom: .35em; }
.legacy table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.legacy th, .legacy td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.legacy th { background: var(--steel); }
.legacy .video { position: relative; aspect-ratio: 16 / 9; max-width: 860px; margin: 1em auto; }
.legacy .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.legacy .banner-in { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); }
.legacy .banner-in-1 img { display: block; width: 100%; border-radius: 0; }
.legacy .banner-in-2 { display: none; }
.legacy .banner-in-3 { position: static; }
.legacy [class*="text-banner"] { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 24px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(18,21,61,.85)); }
.legacy #banner-mb { display: none; }
@media (max-width: 760px) { .legacy #banner-pc { display: none; } .legacy #banner-mb { display: block; } }
.legacy .card { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.legacy .card-header { background: var(--steel); padding: 12px 16px; font-weight: 600; }
.legacy .card-body { padding: 12px 16px; }
.legacy .with-50 { width: 50%; } .legacy .with-100 { width: 100%; }

/* minimal bootstrap-compatible grid/utilities used by the migrated markup */
.legacy .row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.legacy .row > [class*="col"] { padding: 0 12px; width: 100%; }
.legacy .col { flex: 1 0 0; }
@media (min-width: 576px) {
  .legacy .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 768px) {
  .legacy .col-md-3 { flex: 0 0 25%; max-width: 25%; } .legacy .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .legacy .col-md-5 { flex: 0 0 41.667%; max-width: 41.667%; } .legacy .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .legacy .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; } .legacy .col-md-8 { flex: 0 0 66.667%; max-width: 66.667%; }
  .legacy .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  .legacy .order-md-12 { order: 12; } .legacy .order-md-1 { order: 1; }
}
@media (min-width: 992px) {
  .legacy .col-lg-3 { flex: 0 0 25%; max-width: 25%; } .legacy .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .legacy .col-lg-5 { flex: 0 0 41.667%; max-width: 41.667%; } .legacy .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .legacy .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; } .legacy .col-lg-8 { flex: 0 0 66.667%; max-width: 66.667%; }
  .legacy .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}
.legacy .order-1 { order: 1; } .legacy .order-2 { order: 2; }
.legacy .list-feature { margin-bottom: 24px; }
.legacy .list-feature img { margin-bottom: 16px; }
.legacy .text-center { text-align: center; } .legacy .text-left { text-align: left; }
.legacy .mt-3 { margin-top: 1rem; } .legacy .mt-4 { margin-top: 1.5rem; } .legacy .mt-5 { margin-top: 3rem; }
.legacy .mb-0 { margin-bottom: 0; } .legacy .mb-3 { margin-bottom: 1rem; } .legacy .mb-4 { margin-bottom: 1.5rem; } .legacy .mb-5 { margin-bottom: 3rem; }
.legacy .pt-3 { padding-top: 1rem; } .legacy .pt-4 { padding-top: 1.5rem; }
.legacy .pb-3 { padding-bottom: 1rem; } .legacy .pb-4 { padding-bottom: 1.5rem; }
.legacy .d-none { display: none; }
@media (min-width: 768px) { .legacy .d-md-block { display: block; } }

/* old-site decorations and JS-only widgets that do not work without the old CSS/JS */
.legacy .shape, .legacy .box-contact-img, .legacy .banner-csr-2, .legacy .box-icon-red, .legacy .box-icon-blue,
.legacy .point, .legacy .bg-map, .legacy .box-btn-link, .legacy [id^="mile-"], .legacy .exam-onstop-mb,
.legacy img[src*="-hover"], .legacy #show-mb { display: none; }
@media (max-width: 767px) { .legacy #show-pc { display: none; } .legacy #show-mb { display: block; } }
.legacy .row > a { display: contents; color: inherit; }
.legacy .imgpro { max-width: 560px; margin-bottom: 16px; }
.legacy .corporate-policy-mb { align-items: center; margin-bottom: 32px; }
.legacy .corporate-policy-title { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: .4em; }
.legacy .read-more a { font-weight: 600; }
.legacy .box-icon-white img { width: 52px; height: auto; }
.legacy .box-icon-white { display: inline-block; vertical-align: middle; }
/* contact page */
.legacy .box-set { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.legacy .box-set a[id^="box-contect"] { color: var(--navy); text-decoration: none; font-weight: 700; }
.legacy .line-set { border-top: 1px solid var(--line); margin: 12px 0; }
.legacy .icon-tel-contact img { width: 22px; vertical-align: middle; margin: 0 6px 0 0; border-radius: 0; }
.legacy .icon-tel-contact a { margin-right: 14px; font-weight: 700; }
.legacy .map { display: inline-block; margin-right: 18px; text-align: center; font-size: .82rem; }
/* one stop service example */
.legacy .exam-onstop { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.legacy .exam-onstop-list { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; }
.legacy .exam-onstop-list .imgpro { margin: 0; }
.legacy .ex-arrow img { width: 22px; border-radius: 0; }
.legacy .banner-csr { position: relative; border-radius: var(--radius); overflow: hidden; }
.legacy .banner-csr-1 img { display: block; width: 100%; border-radius: 0; }
.legacy .banner-csr-3 { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px; color: #fff; background: linear-gradient(transparent, rgba(18,21,61,.85)); }
.legacy .banner-csr-3 a { color: #fff; }
/* removed contact form leftovers (form popup, "contact in Japanese" button) */
.legacy #fancybox, .legacy .div-none, .legacy section:has(.btn-jp) { display: none; }
/* one stop: desktop shows the step list, mobile shows the summary image */
.legacy img[src*="exam-onstop-mb"] { display: none; }
@media (max-width: 767px) { .legacy .exam-onstop-pc { display: none; } .legacy img[src*="exam-onstop-mb"] { display: block; } }

/* ================= inner pages ================= */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-deep); overflow: hidden; padding: 28px 0 56px; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,21,61,.94) 0%, rgba(18,21,61,.72) 45%, rgba(18,21,61,.25) 100%); }
.page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 120px; background: var(--heat); }
.page-hero-plain { min-height: 220px; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.page-hero-plain::before { display: none; }
.page-hero .crumbs { padding: 0 0 28px; color: rgba(255,255,255,.7); }
.page-hero .crumbs a { color: rgba(255,255,255,.8); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(1.8rem, 3.8vw, 3rem); max-width: 22em; margin-bottom: .3em; }
.page-hero-text { max-width: 42em; color: rgba(255,255,255,.86); font-size: 1.08rem; margin: 0; }
@media (max-width: 760px) { .page-hero { min-height: 280px; padding-bottom: 40px; } .page-hero::before { background: rgba(18,21,61,.78); } }

.cta-band { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff; padding: 48px 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-row h2 { margin-bottom: .2em; }
.cta-row p { color: rgba(255,255,255,.78); margin: 0; }
.cta-row .actions { margin-top: 0; }

/* profile */
.profile-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.profile-lead { font-size: 1.18rem; line-height: 1.85; color: var(--ink); }
.fact-sheet { margin: 0; border: 1px solid var(--line); border-top: 4px solid var(--heat); border-radius: var(--radius); padding: 8px 24px; }
.fact-sheet div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact-sheet div:last-child { border-bottom: 0; }
.fact-sheet dt { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact-sheet dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 700; color: var(--navy-deep); line-height: 1.5; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.estates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.estate { background: #fff; border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--navy); }
.estate h3 { color: var(--navy-deep); }
.estate ul { list-style: none; padding: 0; margin: 0; }
.estate li { padding: 8px 0 8px 22px; border-top: 1px solid var(--line); position: relative; }
.estate li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--heat); }
@media (max-width: 900px) { .profile-intro, .estates { grid-template-columns: 1fr; gap: 28px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.contact-card { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.contact-card:first-child { border-top-color: var(--heat); }
.contact-card h3 { font-size: 1.15rem; margin-bottom: .2em; }
.chips-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips-list li { background: var(--steel); border-radius: 999px; padding: .15em .8em; font-size: .85rem; }
.contact-card .phones { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; font-size: 1.25rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- legacy content in the new template ---- */
.legacy { padding: clamp(40px, 6vw, 72px) 0 72px; font-size: 1.02rem; }
.legacy > section, .legacy section { padding-top: 28px; padding-bottom: 28px; }
.legacy p { line-height: 1.85; }
.legacy h2, .legacy .text-brif-product-hrad { font-size: clamp(1.35rem, 2.4vw, 1.8rem); color: var(--navy-deep); margin-top: .6em; }
.legacy h2::before, .legacy .text-brif-product-hrad::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--heat); margin-bottom: 14px; }
.legacy .text-center::before { margin-left: auto; margin-right: auto; }
.legacy .text-brif-product, .legacy .text-brif { font-size: 1.12rem; line-height: 1.9; color: var(--ink); max-width: 60em; }
.legacy .bg-gray-find, .legacy .bg-gray { background: var(--steel); }
.legacy .corporate-policy ul, .legacy .content > ul { padding-left: 0; list-style: none; }
.legacy .corporate-policy li { position: relative; padding-left: 22px; }
.legacy .corporate-policy li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--heat); }
.legacy .corporate-policy li li::before { background: var(--navy); }

/* process / feature rows -> media cards */
.legacy .product-detail.list-feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 22px; }
.legacy .product-detail.list-feature .row { align-items: center; }
.legacy .product-detail.list-feature img { margin: 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 10px; }
.legacy .pd-type-detail h3 { font-size: 1.3rem; margin: 12px 0 .5em; }

/* policy hub cards */
.legacy .corporate-policy-mb { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 20px; }
.legacy .corporate-policy-mb .imgpro { margin: 0; max-width: none; }
.legacy .corporate-policy-mb .imgpro img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.legacy .read-more a { display: inline-block; margin-top: 8px; font-weight: 700; text-decoration: none; }
.legacy .read-more a::after { content: " \2192"; }

/* FAQ accordion */
.legacy .faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.legacy .faq-item summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--navy-deep); position: relative; }
.legacy .faq-item summary::-webkit-details-marker { display: none; }
.legacy .faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--heat-deep); }
.legacy .faq-item[open] summary { background: var(--steel); }
.legacy .faq-item[open] summary::after { content: "\2212"; }
.legacy .faq-a { padding: 14px 20px 6px; }

/* group companies */
.legacy .tab-relate { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--heat-deep); border-top: 2px solid var(--navy); padding-top: 12px; margin: 36px 0 8px; }
.legacy .relate-country h3 { margin: 18px 0 8px; font-size: 1.05rem; color: var(--navy-deep); }
.legacy .relate-country .hide-h3 { visibility: hidden; }
@media (max-width: 767px) { .legacy .relate-country .hide-h3 { display: none; } }
.legacy .relate-country ul { list-style: none; padding: 0; margin: 0; }
.legacy .relate-country li { padding: 7px 0; border-bottom: 1px solid var(--line); margin: 0; }
.legacy .relate-country a { color: var(--ink); text-decoration: none; pointer-events: none; }
/* page hero: keep the content aligned with the page grid */
.page-hero > .wrap { width: 100%; }
