/* Tokyo Core: shared styles for every Tokyo Automotive microsite */

:root {
	--tk-red: #C8102E;
	--tk-red-dark: #9E0C24;
	--tk-ink: #1E2127;
	--tk-asphalt: #3A3F47;
	--tk-stucco: #F1F1EE;
	--tk-white: #FFFFFF;
	--tk-line: #D8D9D4;
	--tk-muted: #D6D7D2;
	--tk-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--tk-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
	--tk-wrap: 1312px;
	--tk-pad: clamp(20px, 4.4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--tk-stucco);
	color: var(--tk-ink);
	font-family: var(--tk-body);
	font-size: 17px;
	line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tk-red); }
a:hover { color: var(--tk-red-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
	outline: 3px solid var(--tk-ink);
	outline-offset: 3px;
}
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.tk-wrap { max-width: calc(var(--tk-wrap) + 2 * var(--tk-pad)); margin: 0 auto; padding: 0 var(--tk-pad); }

.tk-skip { position: absolute; left: -9999px; top: 0; background: var(--tk-ink); color: #fff; padding: 12px 16px; z-index: 100; }
.tk-skip:focus { left: 12px; top: 12px; }

/* Buttons */
.tk-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 12px 24px; border-radius: 4px;
	font-weight: 600; text-decoration: none; text-align: center; line-height: 1.25;
}
.tk-btn--red { background: var(--tk-red); color: #fff; }
.tk-btn--red:hover { background: var(--tk-red-dark); color: #fff; }
.tk-btn--dark { background: var(--tk-ink); color: #fff; }
.tk-btn--dark:hover { background: #000; color: #fff; }
.tk-btn--white { background: #fff; color: var(--tk-red); font-weight: 700; }
.tk-btn--white:hover { background: var(--tk-stucco); color: var(--tk-red-dark); }

/* Utility bar */
.tk-utility { background: var(--tk-ink); color: #E9E9E5; font-size: 14px; }
.tk-utility__inner { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.tk-utility__phones { display: flex; gap: 28px; flex-wrap: wrap; }
.tk-utility a { color: #fff; font-weight: 600; text-decoration: none; }
.tk-utility a:hover { text-decoration: underline; color: #fff; }

/* Header */
.tk-header { background: #fff; border-bottom: 1px solid var(--tk-line); position: relative; z-index: 20; }
.tk-header__inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tk-header__logo img { height: 64px; width: auto; }
.tk-nav { display: flex; gap: 28px; font-weight: 500; }
.tk-nav a { color: var(--tk-ink); text-decoration: none; }
.tk-nav a:hover { color: var(--tk-red); }
.tk-mnav { display: none; }

/* Footer */
.tk-footer { background: var(--tk-ink); color: var(--tk-muted); font-size: 15px; padding: 64px 0 120px; }
.tk-footer__grid { display: grid; grid-template-columns: 320px repeat(3, minmax(0, 1fr)); gap: 48px; }
.tk-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.tk-footer__brand img { height: 72px; width: auto; }
.tk-footer__col { display: flex; flex-direction: column; gap: 10px; }
.tk-footer h2 { font-family: var(--tk-body); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.tk-footer a { color: var(--tk-muted); }
.tk-footer a:hover { color: #fff; }
.tk-footer__gap { margin-top: 8px; }
.tk-footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #3A3F47; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }

/* Sticky Call / Book bar on phones */
.tk-mobilebar { display: none; }

/* Simple pages (404, fallback) */
.tk-simple { background: #fff; }
.tk-simple__inner { padding-top: 96px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.tk-simple h1 { font-family: var(--tk-display); font-weight: 700; font-size: clamp(40px, 6vw, 56px); line-height: 1; }
.tk-simple__links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.tk-prose p + p { margin-top: 1em; }

/* Private preview password screen */
.tk-gate-body { background: var(--tk-ink); }
.tk-gate { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; }
.tk-gate__stripe { position: absolute; left: 0; right: 0; top: 43%; height: 14px; background: var(--tk-red); }
.tk-gate__card {
	position: relative; width: 100%; max-width: 560px; background: #F7F7F7; border-radius: 6px;
	padding: 48px clamp(24px, 6vw, 56px) 44px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.tk-gate__logo { width: 210px; height: auto; }
.tk-gate__title { font-family: var(--tk-display); font-weight: 700; font-size: clamp(34px, 5vw, 44px); line-height: 1.02; }
.tk-gate__text { color: var(--tk-asphalt); }
.tk-gate__error { color: var(--tk-red-dark); font-weight: 600; }
.tk-gate__form { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.tk-gate__form label { font-weight: 600; font-size: 15px; }
.tk-gate__form input { height: 52px; padding: 0 16px; font: inherit; border: 2px solid #C9CAC4; border-radius: 4px; background: #fff; color: var(--tk-ink); }
.tk-gate__form button { height: 54px; margin-top: 6px; border: 0; border-radius: 4px; background: var(--tk-red); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tk-gate__form button:hover { background: var(--tk-red-dark); }
.tk-gate__note { font-size: 14px; color: var(--tk-asphalt); }

/* Tablet */
@media (max-width: 1100px) {
	.tk-nav { display: none; }
	.tk-mnav { display: block; position: relative; }
	.tk-mnav__toggle {
		list-style: none; cursor: pointer; min-height: 44px; padding: 10px 16px; border: 2px solid var(--tk-ink); border-radius: 4px; font-weight: 600;
	}
	.tk-mnav__toggle::-webkit-details-marker { display: none; }
	.tk-mnav__links {
		position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: #fff; border: 1px solid var(--tk-line); border-radius: 4px;
		display: flex; flex-direction: column; padding: 8px 0; box-shadow: 0 12px 28px rgba(30, 33, 39, 0.16);
	}
	.tk-mnav__links a { padding: 12px 20px; color: var(--tk-ink); text-decoration: none; font-weight: 500; }
	.tk-mnav__links a:hover { background: var(--tk-stucco); }
	.tk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 720px) {
	body { font-size: 16px; }
	.tk-utility__hours { display: none; }
	.tk-utility__phones { gap: 16px; }
	.tk-header__inner { min-height: 72px; }
	.tk-header__logo img { height: 48px; }
	.tk-header__book { display: none; }
	.tk-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.tk-mobilebar {
		display: grid; grid-template-columns: 1.3fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		background: var(--tk-ink); border-top: 3px solid var(--tk-red); padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	.tk-mobilebar a {
		min-height: 56px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px 8px;
		color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.2; border-left: 1px solid #3A3F47;
	}
	.tk-mobilebar a:first-child { border-left: 0; }
	.tk-mobilebar__book { background: var(--tk-red); }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
