/* Henric site shell (header/footer/homepage) + floating LINE button.
   Mobile first. Brand colours match landing.css. */

:root {
	--hs-navy: #17346b;
	--hs-navy-2: #0f2550;
	--hs-gold: #f2b705;
	--hs-line: #06c755;
	--hs-text: #1d2433;
	--hs-muted: #5b6577;
	--hs-bg-alt: #f2f5fa;
	--hs-border: #dbe2ec;
	--hs-radius: 14px;
}

/* Floating LINE button — loads on every page, theme or not */
.henric-line-float {
	position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 9998;
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--hs-line); color: #fff !important; text-decoration: none !important;
	font: 700 15px/1 "Noto Sans Thai", Tahoma, sans-serif;
	padding: 12px 16px 12px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.henric-line-float:hover { filter: brightness(1.06); }
.henric-line-float:focus-visible { outline: 3px solid var(--hs-navy); outline-offset: 2px; }

/* Themes (Astra on henrices.com) set their own Latin-only font on headings,
   inputs etc. and scale the root font size, so the Henric pages pin the Thai
   font explicitly and use px sizes instead of rem. */
body.henric-site :is(h1, h2, h3, h4, h5, h6, p, a, li, button, input, select, textarea, label, figcaption, blockquote, th, td, small, strong, span) {
	font-family: "Noto Sans Thai", "Sukhumvit Set", "Leelawadee UI", Tahoma, sans-serif;
}

/* Shell base */
body.henric-site {
	margin: 0; background: #fff; color: var(--hs-text);
	font-family: "Noto Sans Thai", "Sukhumvit Set", "Leelawadee UI", Tahoma, sans-serif;
	font-size: 17px; line-height: 1.65; -webkit-text-size-adjust: 100%;
}
.henric-site *, .henric-site *::before, .henric-site *::after { box-sizing: border-box; }
.henric-site img { max-width: 100%; height: auto; }
.henric-site a { color: #1b5fb0; }
.henric-site h1, .henric-site h2, .henric-site h3 { color: var(--hs-navy); line-height: 1.3; font-weight: 700; margin: 0 0 .6em; }
.hs-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.hs-skip { position: absolute; left: -9999px; }
.hs-skip:focus { left: 16px; top: 8px; z-index: 10000; background: #fff; padding: 8px 12px; }

/* Buttons */
.hs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 12px; font-weight: 700; text-decoration: none !important; border: 2px solid transparent; line-height: 1.3; text-align: center; cursor: pointer; font-family: inherit; font-size: 16px; }
.hs-btn-sm { min-height: 40px; padding: 6px 14px; font-size: 14.7px; border-radius: 10px; }
.hs-btn-gold { background: var(--hs-gold); color: var(--hs-navy-2) !important; }
.hs-btn-line { background: var(--hs-line); color: #fff !important; }
.hs-btn-navy { background: var(--hs-navy); color: #fff !important; }
.hs-btn-outline { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.hs-btn:hover { filter: brightness(1.06); }
.hs-btn:focus-visible, .hs-menu a:focus-visible, .hs-menu-toggle:focus-visible { outline: 3px solid #2a7de1; outline-offset: 2px; }

/* Header */
.hs-header { position: sticky; top: 0; z-index: 9990; background: #fff; border-bottom: 3px solid var(--hs-gold); }
.admin-bar .hs-header { top: 46px; }
.hs-header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.hs-logo { flex: 0 0 auto; display: block; }
.hs-logo img { width: 120px; display: block; }
.hs-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hs-menu-toggle { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; padding: 0; }
.hs-menu-toggle span { display: block; width: 24px; height: 3px; background: var(--hs-navy); border-radius: 2px; }
.hs-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px solid var(--hs-gold); box-shadow: 0 10px 20px rgba(0,0,0,.08); padding: 8px 16px 16px; }
.hs-nav.is-open { display: block; }
.hs-menu { list-style: none; margin: 0; padding: 0; }
.hs-menu a { display: block; padding: 12px 4px; color: var(--hs-navy) !important; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--hs-border); }
.hs-nav-call { display: block; margin-top: 12px; text-align: center; background: var(--hs-navy); color: #fff !important; padding: 12px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.hs-hide-mobile { display: none !important; }

/* Generic page (catalog, quote cart…) */
.hs-main { min-height: 50vh; }
.hs-page-head { padding-top: 24px; }
.hs-page-head h1 { font-size: 25.6px; }
.hs-page-body { padding-bottom: 56px; }

/* Footer */
.hs-footer { background: var(--hs-navy-2); color: #cfd8e8; font-size: 14.7px; padding: 32px 0 calc(84px + env(safe-area-inset-bottom)); }
.hs-footer a { color: #fff; }
.hs-footer strong { color: #fff; }
.hs-footer-grid { display: grid; gap: 20px; }
.hs-footer-logo { width: 140px; background: #fff; border-radius: 8px; padding: 6px 8px; }
.hs-footer-h { color: #fff !important; font-size: 16px !important; }
.hs-footer-qr { background: #fff; padding: 8px; border-radius: 8px; width: 140px; }
.hs-footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.15); margin-top: 20px; padding-top: 14px; color: #9fb0cc; font-size: 13.1px; }

/* Homepage */
.hh-hero { position: relative; color: #fff; background: var(--hs-navy-2) var(--hh-hero-img) center / cover no-repeat; }
.hh-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,55,.78) 0%, rgba(10,25,55,.88) 100%); }
.hh-hero-inner { position: relative; padding-top: 48px; padding-bottom: 28px; }
.hh-eyebrow { display: inline-block; background: var(--hs-gold); color: var(--hs-navy-2); font-weight: 700; font-size: 13.1px; padding: 3px 12px; border-radius: 999px; margin: 0 0 14px; }
.henric-home .hh-hero h1 { color: #fff; font-size: 26px; }
.hh-hero-sub { font-size: 16.8px; color: #e3e9f5; max-width: 640px; }
.hh-hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 20px 0 30px; }
.hh-hero-caption { font-size: 12.5px; color: #b8c4dc; margin: 0; }

.hh-section { padding: 48px 0; }
.henric-home [id] { scroll-margin-top: 80px; }
.hh-alt { background: var(--hs-bg-alt); }
.henric-home .hh-h2 { font-size: 24.8px; }
.hh-lead { color: var(--hs-muted); margin-top: -6px; }

.hh-offers { display: grid; gap: 14px; }
.hh-search { margin: 0 0 18px; padding: 14px; background: var(--hs-bg-alt); border: 1px solid var(--hs-border); border-radius: var(--hs-radius); }
.hh-search-label { display: block; font-weight: 700; color: var(--hs-navy); margin-bottom: 8px; font-size: 15.5px; }
.hh-search-row { display: flex; gap: 8px; }
.hh-search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; font: inherit; font-size: 16px; border: 1px solid #c9d4e3; border-radius: 10px; background: #fff; color: inherit; }
.hh-search input:focus { outline: 2px solid var(--hs-navy); outline-offset: 1px; border-color: var(--hs-navy); }
.hh-search button { height: 46px; padding: 0 20px; font: inherit; font-weight: 700; color: #fff; background: var(--hs-navy); border: 0; border-radius: 10px; cursor: pointer; }
.hh-search button:hover { filter: brightness(1.15); }
@media (min-width: 768px) { .hh-search { display: flex; align-items: center; gap: 16px; padding: 14px 18px; } .hh-search-label { margin: 0; white-space: nowrap; } .hh-search-row { flex: 1; } }
.hh-offer { display: grid; grid-template-columns: 112px 1fr; gap: 14px; background: #fff; border: 1px solid var(--hs-border); border-radius: var(--hs-radius); padding: 12px; }
.hh-offer-img { background: var(--hs-bg-alt); border-radius: 10px; overflow: hidden; display: grid; place-items: center; aspect-ratio: 1; }
.hh-offer-img img { width: 100%; height: 100%; object-fit: cover; }
.hh-offer-icon { width: 46%; height: auto; color: var(--hs-navy); }
.hh-offer h3 { font-size: 16.3px; margin-bottom: 4px; }
.hh-offer p { margin: 0 0 6px; font-size: 14.7px; color: var(--hs-muted); line-height: 1.5; }
.hh-price strong { color: var(--hs-navy); font-size: 16px; }
.hh-price span { display: block; color: #c4541c; font-size: 12.8px; font-weight: 600; }
.hh-offer-cta { font-weight: 700; text-decoration: none; font-size: 15.2px; }
/* Whole card is tappable: the CTA link stretches over the card. */
.hh-offer { position: relative; transition: box-shadow .2s, transform .2s, border-color .2s; }
.hh-offer-cta::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hh-offer:hover { box-shadow: 0 10px 28px rgba(16, 37, 66, .14); transform: translateY(-3px); border-color: #c9d4e3; }
.hh-offer-img img { transition: transform .35s; }
.hh-offer:hover .hh-offer-img img { transform: scale(1.04); }
.hh-offer:hover .hh-offer-cta { text-decoration: underline; }
.hh-offer:focus-within { outline: 2px solid var(--hs-navy); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hh-offer, .hh-offer-img img { transition: none; } .hh-offer:hover { transform: none; } .hh-offer:hover .hh-offer-img img { transform: none; } }

.hh-services { display: grid; gap: 16px; }
.hh-service { background: #fff; border-radius: var(--hs-radius); overflow: hidden; border: 1px solid var(--hs-border); }
.hh-service img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hh-service-body { padding: 16px; }
.hh-service h3 { font-size: 17.6px; }
.hh-service ul { margin: 0; padding-left: 1.2em; }
.hh-service li { margin-bottom: 4px; }

.hh-works-h { font-size: 17px !important; margin: 26px 0 10px !important; padding-left: 10px; border-left: 4px solid var(--hs-gold); }
/* Portfolio: a grid on every screen (2 columns on phones) so all photos show at once. */
.hh-works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hh-works figure { scroll-snap-align: start; }
.hh-works-more { margin-top: 24px; }
.hh-works figure { margin: 0; }
.hh-works img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.hh-works figcaption { font-size: 13.6px; padding-top: 6px; line-height: 1.4; }

/* YouTube Shorts: swipe row on mobile, tap-to-load player */
/* Clips in a grid on every screen (2 per row on phones, 3 on tablets) — no sideways swiping. */
.hh-videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 20px; }
@media (min-width: 600px) { .hh-videos { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.hh-videos figure { margin: 0; scroll-snap-align: start; }
.hh-videos figcaption { font-size: 13.4px; padding-top: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hh-video { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.hh-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hh-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.6); }
.hh-play::after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent #fff; }
.hh-video:focus-visible { outline: 3px solid #2a7de1; outline-offset: 2px; }

.hh-about { display: grid; gap: 24px; }
.hh-why { background: var(--hs-navy); color: #fff; border-radius: var(--hs-radius); padding: 20px; }
.henric-home .hh-why h3 { color: var(--hs-gold); }
.hh-why ul { padding-left: 1.2em; margin: 0 0 14px; }
.hh-why blockquote { margin: 0; font-weight: 600; border-left: 4px solid var(--hs-gold); padding-left: 12px; }

.hh-contact { background: var(--hs-navy); color: #fff; }
.henric-home .hh-contact .hh-h2 { color: #fff; }
.hh-contact-btns { display: grid; gap: 10px; margin: 16px 0; }
.hh-address { color: #cfd8e8; font-size: 14.7px; }
.hh-qr { text-align: center; }
.hh-qr img { background: #fff; padding: 10px; border-radius: 12px; }

@media (min-width: 600px) {
	.hh-works { grid-template-columns: repeat(4, 1fr); gap: 10px; }
	.hh-services { grid-template-columns: 1fr 1fr; }
	.hh-contact-btns { grid-template-columns: 1fr 1fr; max-width: 560px; }
}

@media (min-width: 1000px) {
	.hs-logo img { width: 150px; }
	.hs-hide-mobile { display: revert !important; }
	.hs-footer { padding-bottom: 32px; }
	.hs-footer-grid { grid-template-columns: 1.4fr 1.2fr .8fr; }
	.hh-hero-inner { padding-top: 96px; padding-bottom: 40px; }
	.henric-home .hh-hero h1 { font-size: 43.2px; }
	.hh-section { padding: 72px 0; }
	.henric-home .hh-h2 { font-size: 32px; }
	.hh-offers { grid-template-columns: repeat(3, 1fr); gap: 18px; }
	.hh-offer { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
	.hh-offer-img { border-radius: 0; aspect-ratio: 4 / 3; }
	.hh-offer-body { padding: 4px 16px 18px; }
	.hh-services { grid-template-columns: repeat(4, 1fr); }
	.hh-works { grid-template-columns: repeat(4, 1fr); }
	.hh-works img { aspect-ratio: 4 / 3; }
	.hh-videos { grid-template-columns: repeat(6, 1fr); margin: 0 0 24px; }
	.hh-about { grid-template-columns: 1.5fr 1fr; align-items: start; }
	.hh-contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
	.henric-line-float { right: 24px; bottom: 24px; }
}

/* Full menu bar only where all seven links fit on one line; narrower
   screens keep the hamburger menu (which also carries the call button). */
.hs-header .hs-wrap { max-width: 1360px; }
.hs-header .hs-btn { white-space: nowrap; }
@media (min-width: 1280px) {
	.hs-menu-toggle { display: none; }
	.hs-header-actions { margin-left: 0; }
	.hs-nav { display: block; position: static; box-shadow: none; border: 0; padding: 0; margin-left: auto; background: transparent; }
	.hs-menu { display: flex; gap: 2px; }
	.hs-menu a { border: 0; padding: 8px 9px; font-size: 15.2px; border-radius: 8px; white-space: nowrap; }
	.hs-menu a:hover, .hs-menu .current-menu-item a { background: var(--hs-bg-alt); }
	.hs-nav-call { display: none; }
}
@media (min-width: 1000px) and (max-width: 1399px) {
	.hs-header .hs-hide-mobile { display: none !important; }
}

/* Astra's "back to top" button collides with the landing call/LINE bar and
   the floating LINE button on phones. */
body.henric-landing-blank #ast-scroll-top { display: none !important; }
@media (max-width: 999px) {
	body.henric-site #ast-scroll-top { display: none !important; }
}

/* Legal pages (นโยบายความเป็นส่วนตัว): comfortable reading width and sizes. */
.hs-legal { max-width: 780px; font-size: 16px; line-height: 1.75; color: var(--hs-text); }
.hs-legal h2 { font-size: 19px; line-height: 1.4; margin: 30px 0 10px; color: var(--hs-navy); }
.hs-legal p { margin: 0 0 12px; }
.hs-legal ul { margin: 0 0 14px; padding-left: 22px; }
.hs-legal li { margin-bottom: 8px; }
.hs-legal strong { color: var(--hs-navy); }
@media (max-width: 600px) {
	.hs-legal { font-size: 15px; }
	.hs-legal h2 { font-size: 17.5px; margin-top: 24px; }
}
