/* หน้าแรก (section-1.php) + ปุ่มโทร/LINE (widget-btn-contact.php) */

/* ---------- intro ---------- */
.hm-intro {
	padding: 40px 0 32px;
	background:
		radial-gradient(circle at 0 0, rgba(21, 125, 83, 0.07) 0, transparent 40%),
		#fff;
}
.hm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(21, 125, 83, 0.1);
	color: #157d53;
	font-size: 14px;
	font-weight: 700;
}
.hm-title {
	margin: 0 0 16px;
	color: #1d2939;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.55;
}
.hm-desc {
	margin: 0 0 24px !important;
	color: #475467 !important;
	font-size: 16px;
	line-height: 1.85 !important;
}
.hm-gallery-sticky { position: sticky; top: 110px; margin-bottom: 24px; }
@media (max-width: 991.98px) { .hm-gallery-sticky { position: static; } }
.hm-gallery {
	padding: 10px;
	border: 1px solid #e4e7ec;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(16, 24, 40, 0.1);
}

/* ---------- features ---------- */
.hm-features-head {
	margin: 24px 0 20px;
	text-align: center;
}
.hm-subtitle {
	margin: 0;
	color: #1d2939;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
}
.hm-features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}
.hm-feature {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid #e4e7ec;
	border-radius: 18px;
	background: #fff;
	color: #475467;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.hm-feature:hover {
	transform: translateY(-4px);
	border-color: rgba(21, 125, 83, 0.35);
	box-shadow: 0 16px 36px rgba(16, 24, 40, 0.1);
	color: #475467;
	text-decoration: none;
}
.hm-feature-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 6px;
	border-radius: 14px;
	background: linear-gradient(135deg, #1f9d6b, #005f39);
	color: #fff;
	font-size: 19px;
}
.hm-feature strong { color: #1d2939; font-size: 17px; font-weight: 700; line-height: 1.4; }
.hm-feature span:last-child { font-size: 14px; line-height: 1.65; }

/* ---------- ปุ่มโทร / LINE ---------- */
.cbtns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}
.cbtns-compact { grid-template-columns: repeat(2, 1fr); }
.cbtns-compact .cbtn { padding-right: 30px; }
.cbtns-compact .cbtn::after { right: 12px; }
.cbtns-compact .cbtn-text strong { font-size: 17px; }
.cbtn {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 40px 10px 10px;
	border-radius: 16px;
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}
.cbtn:hover { transform: translateY(-3px); color: #fff; text-decoration: none; }
.cbtn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }
.cbtn:focus-visible { outline: 3px solid rgba(21, 125, 83, 0.5); outline-offset: 3px; }

/* แสงวิ่งผ่านปุ่ม (วิ่งเองทุก ๆ 4 วินาที และวิ่งทันทีเมื่อ hover) */
.cbtn::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	z-index: -1;
	width: 45%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	transform: skewX(-20deg);
	animation: cbtn-shine 4s ease-in-out infinite;
}
.cbtn:nth-child(2)::before { animation-delay: 0.4s; }
.cbtn:nth-child(3)::before { animation-delay: 0.8s; }
.cbtn:nth-child(4)::before { animation-delay: 1.2s; }
.cbtn:hover::before { animation: cbtn-shine-hover 0.7s ease-out; }

/* ลูกศรเลื่อนเข้ามาเมื่อ hover */
.cbtn::after {
	content: "\f061";
	position: absolute;
	right: 16px;
	top: 50%;
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 14px;
	opacity: 0.6;
	transform: translate(-6px, -50%);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.cbtn:hover::after { opacity: 1; transform: translate(0, -50%); }
.cbtn-tel {
	background: linear-gradient(135deg, #ff9a2e, #f26b00);
	box-shadow: 0 8px 20px rgba(242, 107, 0, 0.28);
}
.cbtn-tel:hover { box-shadow: 0 12px 26px rgba(242, 107, 0, 0.38); }
.cbtn-line {
	background: #06c755;
	box-shadow: 0 8px 20px rgba(6, 199, 85, 0.25);
}
.cbtn-line:hover { box-shadow: 0 12px 26px rgba(6, 199, 85, 0.35); }
.cbtn-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.2);
	font-size: 18px;
}
.cbtn-line .cbtn-icon { font-size: 24px; }
.cbtn-icon { position: relative; }

/* วงแหวนกระพริบรอบไอคอนโทร + ไอคอนสั่นเป็นจังหวะ */
.cbtn-tel .cbtn-icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
	animation: cbtn-ring 2s ease-out infinite;
}
.cbtn-tel .cbtn-icon i { animation: cbtn-shake 2.4s ease-in-out infinite; }
.cbtn-tel:nth-child(2) .cbtn-icon i, .cbtn-tel:nth-child(2) .cbtn-icon::after { animation-delay: 0.6s; }
.cbtn-tel:nth-child(3) .cbtn-icon i, .cbtn-tel:nth-child(3) .cbtn-icon::after { animation-delay: 1.2s; }
.cbtn-line:hover .cbtn-icon i { animation: cbtn-bounce 0.6s ease; }
.cbtn-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cbtn-text small { font-size: 12px; opacity: 0.9; }
.cbtn-text strong {
	overflow: hidden;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 991.98px) {
	.hm-title { font-size: 22px; }
	.hm-subtitle { font-size: 24px; }
}
@media (max-width: 575.98px) {
	.hm-intro { padding-top: 24px; }
	.hm-title { font-size: 20px; }
	.hm-features { grid-template-columns: 1fr; }
	.cbtns, .cbtns-compact { grid-template-columns: 1fr 1fr; gap: 8px; }
	.cbtns .cbtn { padding: 8px 10px 8px 8px; gap: 8px; border-radius: 14px; }
	.cbtns .cbtn::after { display: none; }
	.cbtn-icon { width: 34px; height: 34px; font-size: 15px; }
	.cbtn-text strong, .cbtns-compact .cbtn-text strong { font-size: 15px; }
}
@keyframes cbtn-shine {
	0%, 70% { left: -60%; }
	100% { left: 130%; }
}
@keyframes cbtn-shine-hover {
	from { left: -60%; }
	to { left: 130%; }
}
@keyframes cbtn-ring {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
	70%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}
@keyframes cbtn-shake {
	0%, 40%, 100% { transform: rotate(0); }
	5%, 15%, 25% { transform: rotate(-15deg); }
	10%, 20%, 30% { transform: rotate(15deg); }
}
@keyframes cbtn-bounce {
	0%, 100% { transform: translateY(0); }
	40% { transform: translateY(-5px); }
	70% { transform: translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
	.hm-feature, .cbtn { transition: none; }
	.cbtn::before, .cbtn-tel .cbtn-icon::after, .cbtn-tel .cbtn-icon i, .cbtn-line:hover .cbtn-icon i { animation: none; }
}

/* ---------- ข้อมูลสรุป + คำถามที่พบบ่อย (section-faq.php) ---------- */
.faq {
	padding: 56px 0 40px;
	background: #f4f6f5;
}
.faq-head { margin-bottom: 24px; text-align: center; }
.faq-facts {
	position: sticky;
	top: 110px;
	padding: 24px;
	border-radius: 20px;
	background: linear-gradient(160deg, #008c45 0%, #005f39 100%);
	color: #fff;
	box-shadow: 0 18px 40px rgba(0, 95, 57, 0.25);
}
.faq-facts h3 { margin: 0 0 14px; color: #fff; font-size: 20px; font-weight: 700; }
.faq-facts h3 i { color: #7ee2a8; margin-right: 6px; }
.faq-facts dl { margin: 0; }
.faq-facts dt {
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	font-weight: 600;
}
.faq-facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.faq-facts a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
	border: 1px solid #e4e7ec;
	border-radius: 16px;
	background: #fff;
	transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item[open] { border-color: rgba(21, 125, 83, 0.35); box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08); }
.faq-item summary {
	position: relative;
	padding: 18px 56px 18px 22px;
	color: #1d2939;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	list-style: none;
	cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border-radius: 50%;
	background: rgba(21, 125, 83, 0.1);
	color: #157d53;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: 3px solid rgba(21, 125, 83, 0.4); outline-offset: -3px; border-radius: 16px; }
.faq-item p {
	margin: -4px 0 0 !important;
	padding: 0 22px 20px;
	color: #475467 !important;
	font-size: 16px;
	line-height: 1.8 !important;
}
.hm-h1-look { font-size: 34px; font-weight: 400; line-height: 41px; }
@media (max-width: 991.98px) {
	.faq-facts { position: static; }
}
@media (max-width: 575.98px) {
	.faq { padding-top: 40px; }
	.faq-item summary { font-size: 16px; padding: 16px 50px 16px 18px; }
	.faq-item p { padding: 0 18px 18px; font-size: 15px; }
	.hm-h1-look { font-size: 26px; line-height: 34px; }
}
