/* =========================================================
   Mitsubishi Thái Lan - main.css
   Toàn bộ site dùng chung 1 file này. Mỗi page template chỉ
   chứa HTML, không viết CSS riêng -> không trùng lặp style.
   Đặt tên class theo kiểu "c-" (component) để tránh đụng
   class của plugin khác.
   ========================================================= */

/* Màu/typography lấy đúng từ Figma (get_design_context trên Header/Hero/Card/CTA/Footer). */
:root {
	--color-primary: #ed1c24;
	--color-primary-dark: #c8171e;
	--color-dark: #0e141b;
	--color-text: #111820;
	--color-muted: #667085;
	--color-muted-dark: #c7cdd4;
	--color-border: #e6e8ec;
	--color-bg-muted: #f2f3f5;
	--color-white: #ffffff;

	--font-base: 'Inter', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

	--container-width: 1296px;
	--radius-sm: 4px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--shadow-card: 0 10px 30px rgba(16, 20, 28, 0.06);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-text);
	background: var(--color-white);
	font-size: 16px;
	line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.c-container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: 24px;
}
.c-container--narrow { max-width: 820px; }

.c-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 8px;
}

.c-section { padding: 64px 0; }
.c-section--muted { background: var(--color-bg-muted); }
.c-section__desc { color: var(--color-muted); margin-top: 12px; max-width: 620px; }

.c-section-title { max-width: 720px; margin-bottom: 40px; }
.c-section-title h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.2; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 22px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
	border: 1px solid transparent;
	white-space: nowrap;
}
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--outline { background: var(--color-white); border-color: var(--color-border); color: var(--color-text); }
.btn--outline:hover { background: var(--color-bg-muted); }
.btn--sm { padding: 10px 16px; font-size: 13px; }

/* ---------- Header ---------- */
.c-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-border); }
.c-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.c-brand { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.c-brand__name { font-weight: 700; font-size: 22px; letter-spacing: 0; }
.c-brand__tagline { font-size: 9px; color: var(--color-muted); text-transform: uppercase; letter-spacing: .03em; }
.c-nav__list { display: flex; gap: 28px; }
.c-nav__list a { font-weight: 600; font-size: 15px; }
.c-nav__list a:hover { color: var(--color-primary); }
.c-header__actions { display: flex; align-items: center; gap: 16px; }
.c-nav__toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; }
.c-nav__toggle span { width: 22px; height: 2px; background: var(--color-dark); display: block; }

/* ---------- Hero ---------- */
.c-hero { padding: 72px 0; background: var(--color-bg-muted); }
.c-hero__grid { display: grid; grid-template-columns: 1.07fr 1fr; gap: 48px; align-items: center; }
.c-hero__heading { font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; line-height: 1.2; margin-bottom: 18px; color: var(--color-text); }
.c-hero__desc { color: var(--color-muted); font-size: 18px; max-width: 560px; margin-bottom: 24px; }
.c-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.c-hero__media img, .c-hero__media-placeholder { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 580/356; object-fit: cover; background: #e8eaf0; }

/* ---------- Card grid ---------- */
.c-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.c-card-grid--plain { grid-template-columns: repeat(4, 1fr); }
.c-card {
	display: block;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 18px;
	transition: transform .15s ease, box-shadow .15s ease;
}
a.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.c-card__media { aspect-ratio: 264/120; border-radius: 8px; overflow: hidden; background: var(--color-bg-muted); margin-bottom: 12px; }
.c-card__media img { width: 100%; height: 100%; object-fit: cover; }
.c-card__title { font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--color-text); }
.c-card__desc { color: var(--color-muted); font-size: 13px; }
.c-card--plain { padding: 18px 18px 22px; }

/* ---------- Split (image + copy) ---------- */
.c-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.c-split--right { direction: rtl; }
.c-split--right > * { direction: ltr; }
.c-split__media img, .c-split__media-placeholder { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 560/380; object-fit: cover; background: #e8eaf0; }
.c-split__desc { color: var(--color-muted); margin: 16px 0; }
.c-bullets { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.c-bullets li { position: relative; padding-left: 24px; font-weight: 600; }
.c-bullets li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }

/* ---------- Stats ---------- */
.c-stats { background: var(--color-dark); color: var(--color-white); padding: 40px 0; }
.c-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.c-stats__item { display: flex; flex-direction: column; gap: 8px; }
.c-stats__number { font-size: 34px; font-weight: 700; }
.c-stats__label { color: var(--color-muted-dark); font-size: 14px; }

/* ---------- Timeline ---------- */
.c-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.c-timeline__step { background: var(--color-bg-muted); border-radius: var(--radius-md); padding: 24px; }
.c-timeline__index { display: block; font-weight: 800; color: var(--color-primary); font-size: 14px; margin-bottom: 8px; }
.c-timeline__step h3 { font-size: 16px; margin-bottom: 8px; }
.c-timeline__step p { color: var(--color-muted); font-size: 14px; }

/* ---------- Row list ---------- */
.c-row-list__row { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.c-row-list__row dt { font-weight: 700; white-space: nowrap; }
.c-row-list__row dd { flex: 1; margin: 0; padding-bottom: 2px; border-bottom: 1px dotted var(--color-border); }
.c-row-list__row dd:last-child { border: none; }

/* ---------- FAQ ---------- */
.c-faq__item { border-bottom: 1px solid var(--color-border); }
.c-faq__question { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; padding: 20px 0; text-align: left; font-weight: 700; font-size: 16px; }
.c-faq__icon { font-size: 20px; color: var(--color-primary); transition: transform .15s ease; }
.c-faq__question[aria-expanded="true"] .c-faq__icon { transform: rotate(45deg); }
.c-faq__answer { padding: 0 0 20px; color: var(--color-muted); }

/* ---------- CTA band ---------- */
.c-cta { background: var(--color-dark); color: var(--color-white); padding: 54px 0; }
.c-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.c-cta h2 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.c-cta p { color: var(--color-muted-dark); font-size: 15px; }

/* ---------- Contact form ---------- */
.c-contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.c-form__field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.c-form__field label { font-weight: 600; font-size: 14px; }
.c-form__field input, .c-form__field textarea {
	border: 1px solid var(--color-border);
	border-radius: 10px;
	padding: 13px 16px;
	font: inherit;
	width: 100%;
}
.c-form__field input:focus, .c-form__field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.c-form__status { margin-top: 12px; font-weight: 600; }
.c-form__status[data-state="error"] { color: var(--color-primary); }
.c-form__status[data-state="success"] { color: #1a8a4a; }

/* ---------- Footer ---------- */
.c-footer { background: var(--color-dark); color: var(--color-muted-dark); padding: 52px 0 48px; }
.c-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; }
.c-footer .c-brand__name { color: var(--color-white); font-size: 20px; }
.c-footer__brand p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.c-footer h4 { color: var(--color-white); font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: 10px; }
.c-footer__list { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.c-footer__list a:hover { color: var(--color-white); }
.c-footer__col p { font-size: 13px; margin-bottom: 10px; }
.c-footer__col p:first-of-type { color: var(--color-white); font-weight: 500; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.c-card-grid { grid-template-columns: repeat(2, 1fr); }
	.c-timeline { grid-template-columns: repeat(2, 1fr); }
	.c-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.c-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
	.c-hero__grid, .c-split, .c-contact__grid { grid-template-columns: 1fr; }
	.c-split--right { direction: ltr; }
	.c-split__media { order: -1; }
}
@media (max-width: 720px) {
	.c-nav { position: fixed; inset: 88px 0 auto 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 16px 24px; transform: translateY(-110%); transition: transform .2s ease; }
	.c-nav.is-open { transform: translateY(0); }
	.c-nav__list { flex-direction: column; gap: 16px; }
	.c-nav__toggle { display: flex; }
	.c-card-grid, .c-card-grid--plain { grid-template-columns: 1fr; }
	.c-timeline { grid-template-columns: 1fr; }
	.c-stats__grid { grid-template-columns: 1fr 1fr; }
	.c-footer__grid { grid-template-columns: 1fr; }
}
