/* =========================================================================
   E2 App — design system + landing styles
   Palette: black & white (monochrome) with gradients at the emphasis points.
   ========================================================================= */

:root {
	--ink: #0a0a0b;
	--ink-soft: #2c2c31;
	--muted: #6c6c74;
	--bg: #ffffff;
	--soft: #f5f5f6;
	--line: #e7e7ea;

	/* Gradients — the only "colour" in the theme is light → dark. */
	--grad-btn: linear-gradient(135deg, #2a2a2e 0%, #0a0a0b 72%);
	--grad-ink: linear-gradient(120deg, #0a0a0b 0%, #54545d 100%);   /* text/marks on light */
	--grad-metal: linear-gradient(180deg, #ffffff 0%, #a7a7b0 128%); /* text on dark (metallic) */
	--grad-soft: linear-gradient(135deg, #f7f7f8, #ececee);

	--radius: 16px;
	--radius-sm: 10px;
	--container: 1140px;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .08);
	--shadow-lg: 0 22px 50px -22px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.022em; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #000; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.muted { color: var(--muted); }

/* Emoji rendered as clean black silhouettes so the palette stays monochrome. */
.card__icon, .contact__list li > span[aria-hidden], .contact__map-pin { filter: brightness(0); }

/* ------- Buttons ------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .72em 1.3em; border-radius: var(--radius-sm);
	background: var(--grad-btn); color: #fff; font-weight: 600; font-size: .98rem;
	border: 1px solid transparent; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
	box-shadow: var(--shadow-sm);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); opacity: .94; }
.btn--lg { padding: .92em 1.7em; font-size: 1.05rem; }
.btn--sm { padding: .55em 1.05em; font-size: .9rem; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--soft); color: #000; border-color: #cfcfd4; opacity: 1; }

/* ------- Header ------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .45); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

.brand { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; color: var(--ink); }
.brand__mark { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__name { color: var(--ink); }
.brand--footer { font-size: 1.3rem; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.nav > a:hover { color: #000; }
.nav > a.btn { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.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); }

/* ------- Hero (black, with gradient glows) ------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 440px at 80% -12%, rgba(255, 255, 255, .14), transparent 60%),
		radial-gradient(720px 380px at 4% 4%, rgba(255, 255, 255, .07), transparent 55%),
		#0a0a0b;
	padding: clamp(70px, 11vw, 138px) 0 clamp(60px, 8vw, 100px);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); }
.hero__inner { max-width: 840px; position: relative; }
.eyebrow { display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: #e7e7ea; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); padding: .42em .95em; border-radius: 999px; margin-bottom: 20px; }
.hero__title { font-size: clamp(2.1rem, 5.6vw, 3.7rem); margin-bottom: .35em; }
.grad { background: var(--grad-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255, 255, 255, .72); max-width: 650px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
/* Invert buttons against the black hero. */
.hero .btn { background: #fff; color: var(--ink); }
.hero .btn:hover { background: #ececef; color: #000; }
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; border-color: rgba(255, 255, 255, .6); }

/* ------- Sections ------- */
.section { padding: clamp(58px, 9vw, 104px) 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

/* ------- Service cards ------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
	position: relative; display: block; padding: 30px 28px; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-ink); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d3d3d8; color: var(--ink); }
.card:hover::before { transform: scaleX(1); }
.card__icon { display: inline-block; font-size: 2rem; line-height: 1; margin-bottom: 16px; }
.card h3 { font-size: 1.22rem; margin-bottom: .3em; }
.card p { color: var(--muted); margin: 0; }
.card__arrow { position: absolute; top: 28px; right: 26px; color: var(--ink); font-weight: 700; opacity: 0; transform: translateX(-6px); transition: opacity .18s ease, transform .18s ease; }
.card:hover .card__arrow { opacity: 1; transform: translateX(0); }

/* ------- Why / features ------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature__no { display: inline-grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: #fff; background: var(--grad-btn); width: 42px; height: 42px; border-radius: 11px; margin-bottom: 14px; }
.feature h3 { font-size: 1.18rem; }
.feature p { color: var(--muted); margin: 0; }

/* ------- Contact ------- */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.contact h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.contact__list { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 12px; }
.contact__list li { color: var(--ink-soft); }
.contact__list li > span { margin-right: 6px; font-size: .95em; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.contact__map {
	display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
	min-height: 230px; padding: 36px; background: var(--grad-soft);
	border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
	transition: transform .18s ease, box-shadow .18s ease;
}
.contact__map:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.contact__map-pin { font-size: 2.4rem; }
.contact__map strong { font-size: 1.15rem; }

/* ------- Footer (black) ------- */
.site-footer { position: relative; background: #0a0a0b; color: #c2c2cb; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; padding: 56px 22px 40px; }
.site-footer .brand__mark { background: var(--grad-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer .brand__name { color: #f3f3f6; }
.site-footer__co { font-weight: 600; color: #f3f3f6; margin: 14px 0 4px; }
.site-footer .muted { color: #86868f; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__contact a { color: #c2c2cb; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; color: #86868f; }
.site-footer__bar .container { padding-block: 18px; }

/* ------- Responsive ------- */
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
		background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 22px;
		box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .5);
		transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease;
	}
	.nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
	.nav > a { padding: 12px 6px; border-radius: 8px; }
	.nav > a.btn { margin-top: 6px; justify-content: center; }
	.contact { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.cards { grid-template-columns: 1fr; }
	.features { grid-template-columns: 1fr; }
	.hero__cta .btn, .contact__cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn, .card, .card::before, .contact__map { transition: none; }
}
