/* ICR (Thailand) Limited — static site. Colours from the original "icr" theme. */
:root {
  --navy: #211646;
  --orange: #f38b00;
  --orange-dark: #c96f00;
  --slate: #4f6577;
  --slate-2: #6d8498;
  --mist: #b9c8d3;
  --line: #b7c7d5;
  --bg: #e3e8ed;
  --paper: #ffffff;
  --text: #333b44;
  --muted: #5e6a75;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; font: 16px/1.6 Arial, "Helvetica Neue", Helvetica, sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; font-weight: normal; }
h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); margin: 0 0 .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 #fff; }
h2 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; }
p { margin: 0 0 1rem; }
address { font-style: normal; }
main { flex: 1 0 auto; }
.wrap { width: 100%; 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); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--navy); }

/* header */
.brand-bar { background: linear-gradient(180deg, #fff 0%, #f1f4f7 100%); }
.brand-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 96px; height: auto; }
.brand-name { color: var(--slate); letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; }
.brand-phone { color: var(--slate); font-weight: bold; text-decoration: none; white-space: nowrap; }
.main-nav { background: linear-gradient(180deg, var(--slate-2), var(--slate)); border-bottom: 3px solid var(--orange); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav a { display: block; padding: 13px 16px; color: #e8eef3; font-weight: bold; font-size: .95rem; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--orange); background: rgba(0,0,0,.12); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .brand-name { display: none; }
  .brand img { width: 78px; }
  .nav-toggle { display: block; margin: 8px 0; background: none; border: 1px solid #e8eef3; color: #fff; font: bold .95rem Arial, sans-serif; padding: 8px 14px; border-radius: 4px; cursor: pointer; }
  .main-nav ul { display: none; flex-direction: column; padding-bottom: 8px; }
  .main-nav.open ul { display: flex; }
  .main-nav a { padding: 10px 4px; border-top: 1px solid rgba(255,255,255,.15); }
  html:not(.js) .main-nav ul { display: flex; }
  html:not(.js) .nav-toggle { display: none; }
}

/* hero */
.hero { position: relative; background: var(--navy); aspect-ratio: 2000 / 768; max-height: 560px; width: 100%; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.86); padding: 18px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); color: var(--navy); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.slide q { font-size: clamp(1rem, .85rem + .8vw, 1.5rem); line-height: 1.35; flex: 1 1 520px; quotes: "“" "”"; }
.speaker { font-size: .9rem; color: var(--slate); }
.hero-dots { position: absolute; z-index: 2; top: 12px; right: max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); display: flex; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.dot.is-active { background: var(--orange); border-color: var(--orange); }
@media (max-width: 760px) {
  .hero { aspect-ratio: auto; height: auto; max-height: none; }
  .slide { position: relative; display: none; opacity: 1; transition: none; }
  .slide.is-active { display: block; }
  .slide picture, .slide img { height: 190px; }
  .slide figcaption { position: static; background: var(--paper); }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* home */
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 36px 0 56px; }
.home-box h2 { margin-top: 0; padding-bottom: .5rem; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 #fff; }
.home-box h2 a { text-decoration: none; }
.kb-title { font-weight: bold; margin-bottom: .2rem; }
.kb-date { color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.tel { font-weight: bold; }
.more { font-weight: bold; text-decoration: none; padding-left: 18px; position: relative; }
.more::before { content: ""; position: absolute; left: 0; top: .45em; border: 5px solid transparent; border-left: 7px solid var(--orange); }
.home-grid-2 { grid-template-columns: 3fr 2fr; gap: 48px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; gap: 20px; } }

/* content pages */
.page { padding-top: 30px; padding-bottom: 60px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; gap: 24px; } }
.prose { max-width: 720px; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .35rem; }
.prose h2 { padding-top: .4rem; }
.prose.narrow { max-width: 760px; }
.side-img { border: 4px solid #fff; box-shadow: 0 2px 12px rgba(33,22,70,.12); width: 100%; }
.pull { margin: 18px 0 0; border-left: 3px solid var(--orange); padding-left: 14px; font-size: 1.05rem; line-height: 1.55; font-style: italic; color: var(--navy); }
.side-note { margin-top: 18px; border-left: 3px solid var(--orange); padding-left: 14px; }
.side-note h2 { margin-top: 0; font-size: 1.1rem; }
.kb-empty { margin-top: 18px; }
.kb-empty h2 { margin-top: 0; }

/* knowledge base list */
.kb-list { list-style: none; margin: 18px 0 0; padding: 0; }
.kb-item { background: var(--paper); padding: 18px 20px; margin-bottom: 14px; border-left: 3px solid var(--line); }
.kb-item:hover { border-left-color: var(--orange); }
.kb-item h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.kb-item h2 a { text-decoration: none; }
.kb-item p:last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: var(--bg); color: var(--slate); padding: 1px 7px; border-radius: 3px; margin-left: 6px; }

/* article: document style */
.crumbs { margin-bottom: 12px; font-size: .9rem; }
.crumbs a::before { content: "‹ "; }
.doc { background: var(--paper); max-width: 820px; margin: 0 auto; padding: clamp(22px, 5vw, 56px); box-shadow: 0 2px 18px rgba(33,22,70,.10); font-family: Georgia, "Times New Roman", serif; }
.letterhead img { width: 64px; height: auto; }
.letterhead { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 2px solid var(--navy); font-family: Arial, sans-serif; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.doc h1 { border: 0; box-shadow: none; padding: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.doc-meta, .doc-source { font-family: Arial, sans-serif; color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.doc-body { margin-top: 22px; font-size: 1.08rem; line-height: 1.7; }
.doc-note { font-family: Arial, sans-serif; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 26px; }
.request { font-family: Arial, sans-serif; background: var(--bg); padding: 22px; margin-top: 24px; }
.request h2 { margin-top: 0; }
.discuss { font-family: Arial, sans-serif; margin: 22px 0 0; }

/* forms */
form label { display: block; font-weight: bold; color: var(--navy); font-size: .92rem; margin-bottom: 14px; }
form input[type=text], form input[type=email], form select, form textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: 1rem Arial, sans-serif; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--text); }
form textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.req { font-weight: normal; color: var(--muted); font-size: .82rem; }
label.check { font-weight: normal; display: flex; gap: 10px; align-items: flex-start; }
label.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 6px 0 14px; min-height: 65px; }
.btn { display: inline-block; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: bold 1rem Arial, sans-serif; padding: 11px 26px; cursor: pointer; text-decoration: none; margin: 0 6px 8px 0; }
.btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); }
.form-status { font-weight: bold; min-height: 1.4em; margin: 6px 0; }
.form-status.ok { color: #1d6b2f; }
.form-status.err { color: #a12020; }
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; margin-top: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.card { background: var(--paper); padding: 24px; }
.card h2 { margin-top: 0; }

/* footer */
.site-footer { background: linear-gradient(180deg, var(--slate), #3b4e5d); color: var(--mist); padding: 26px 0 18px; font-size: .88rem; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-nav { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.copyright { margin: 14px 0 0; font-size: .78rem; color: #93a6b4; }

.wechat-qr { width: 140px; height: 140px; background: #fff; padding: 6px; margin: 4px 0 12px; }

/* back to top (owner's request, 24 Oct 2026): appears after scrolling; always shown without JavaScript */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; box-shadow: 0 2px 10px rgba(33,22,70,.3); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top::before { content: ""; position: absolute; left: 50%; top: 54%; width: 12px; height: 12px; border-left: 3px solid #fff; border-top: 3px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.to-top:hover, .to-top:focus-visible { background: var(--orange); }
.to-top.is-visible, html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

@media print {
  .site-header, .site-footer, .request, .discuss, .crumbs, .hero-dots, .to-top { display: none !important; }
  body { background: #fff; }
  .doc { box-shadow: none; padding: 0; }
}
