/* ==========================================================================
   Tom's Famous Long Hot Dogs — site styles
   ========================================================================== */

:root {
	--red: #e20a16;
	--red-dark: #b8070f;
	--yellow: #feee67;
	--gold: #f6cf09;
	--navy: #142c52;
	--brown: #4f2516;
	--brown-pill: #793722;
	--cream: #f6f3c0;
	--charcoal: #383637;
	--black: #171717;
	--ink: #252525;
	--rule: rgba(121, 54, 33, 0.52);

	--font-display: 'Boogaloo', 'Arial Rounded MT Bold', sans-serif;
	--font-label: 'Fjalla One', 'Arial Narrow', sans-serif;
	--font-nav: 'Oswald', 'Arial Narrow', sans-serif;
	--font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;

	--wrap: 1140px;
	--gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font: 15px/1.6 var(--font-body);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

a[href^="tel"] { color: inherit; text-decoration: none; white-space: nowrap; }

h1, h2, h3 { margin: 0; font-weight: normal; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 8px; top: -60px;
	z-index: 100;
	padding: 8px 14px;
	background: var(--yellow);
	color: var(--navy);
	font-weight: 600;
	border-radius: 4px;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Page title used on inner pages */
.page-title {
	font: 80px/1.05 var(--font-display);
	color: var(--red);
	text-align: center;
	text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.38);
}


/* ---- Inner-page header ------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	min-height: 84px;
}

.site-header__logo img { width: 104px; height: auto; }

.site-nav ul {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 6px 14px;
	font: 20px/1.4 var(--font-label);
	color: var(--ink);
	text-decoration: none;
	text-transform: uppercase;
	border-radius: 4px;
}
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { background: var(--red); color: #fff; }

.nav-toggle {
	display: none;
	width: 46px; height: 46px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--red);
	color: #fff;
	cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; display: block; margin: auto; }

@media (max-width: 700px) {
	.site-header .wrap { justify-content: space-between; min-height: 64px; }
	.site-header__logo img { width: 84px; }
	.nav-toggle { display: block; }
	.site-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: #fff;
		box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 14px; }
	.site-nav a { padding: 10px 12px; border-bottom: 1px solid #eee; border-radius: 0; }
	.site-nav a[aria-current="page"] { border-radius: 4px; }
}


/* ---- Home: hero -------------------------------------------------------- */

.hero {
	position: relative;
	min-height: clamp(560px, 88vh, 780px);
	color: #fff;
	overflow: hidden;
	background: var(--brown);
}

.hero__slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }

.hero__slides li {
	position: absolute;
	inset: 0;
	background: center / cover no-repeat;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.hero__slides li.is-active { opacity: 1; }

.hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 10px 30px 0;
}

.hero__side { display: flex; flex-direction: column; align-items: stretch; }

.hero__logo-link { display: block; }
.hero__logo { width: 200px; margin: 0 auto 6px; }

.home-menu { margin: 0; padding: 0; list-style: none; }
.home-menu li { margin: 10px 0; }
.home-menu a {
	display: block;
	width: 100%;
	background: #e20916;
	color: #fff;
	font: 500 26px/1.5 var(--font-nav);
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
}
.home-menu a:hover, .home-menu a:focus-visible { background: var(--gold); color: #142d53; }

.hero__badge {
	margin-top: 10px;
	padding: 10px;
	background: var(--red);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.hero__badge img { width: 100%; }

.hero__title {
	align-self: start;
	font: 100px/1 var(--font-display);
	color: var(--yellow);
	text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.38), 0 0 18px rgba(0, 0, 0, 0.35);
	text-align: center;
	padding-top: 6px;
}

.hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px; height: 44px;
	margin-top: -22px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
}
.hero__arrow svg { width: 20px; height: 20px; display: block; margin: auto; }
.hero__arrow:hover { background: rgba(0, 0, 0, 0.7); }
.hero__arrow--prev { left: 14px; }
.hero__arrow--next { right: 14px; }

.info-box {
	position: absolute;
	z-index: 2;
	left: 50%; bottom: 0;
	width: min(720px, calc(100% - 40px));
	transform: translateX(-50%);
	padding: 16px 24px 18px;
	background: var(--red);
	border-radius: 10px 10px 0 0;
	text-align: center;
	color: #fff;
}
.info-box__address { margin: 0; font: 20px/1.4 var(--font-label); }
.info-box__hours { margin: 4px 0 0; font-size: 16px; }


/* ---- Home: intro band -------------------------------------------------- */

/* Three columns: stripes | text | stripes. The stripes are centred on the
   whole text block (paragraph + icons), so they line up at any width. */
.intro {
	display: grid;
	grid-template-columns: minmax(48px, 1fr) minmax(0, 860px) minmax(48px, 1fr);
	align-items: center;
	column-gap: 36px;
	padding: 40px 0;
	background: var(--brown);
}

.intro::before,
.intro::after {
	content: "";
	height: 75px; /* four 3px stripes, 24px apart */
	background: repeating-linear-gradient(to bottom, var(--cream) 0 3px, transparent 3px 24px);
}
/* Stripes fade out toward the text, like the original band */
.intro::before { -webkit-mask-image: linear-gradient(to right, #000 70%, transparent); mask-image: linear-gradient(to right, #000 70%, transparent); }
.intro::after  { -webkit-mask-image: linear-gradient(to left, #000 70%, transparent);  mask-image: linear-gradient(to left, #000 70%, transparent); }

.intro__text {
	color: var(--cream);
	text-align: center;
	font-size: 16px;
	line-height: 180%;
}
.intro__text p { margin: 0; }
.intro__text strong { color: #fff; }

@font-face {
	font-family: 'Font Awesome 6 Brands';
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/fa-brands-400.woff2) format('woff2');
}
.icon { font: normal 400 30px/1 'Font Awesome 6 Brands'; font-style: normal; }
.icon-facebook::before { content: "\f082"; }
.icon-instagram::before { content: "\f16d"; }

.social { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.social a {
	display: block;
	line-height: 1;
	color: var(--cream);
	text-decoration: none;
	transition: color 0.2s ease;
}
.social a:hover { color: #fff; }


/* ---- Home: food tiles -------------------------------------------------- */

.tiles { background: var(--charcoal); padding: 44px 0 50px; }

.tiles__title {
	font: 60px/1.1 var(--font-display);
	color: var(--yellow);
	text-align: center;
	margin-bottom: 30px;
}

.tiles__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tile {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--red);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.tile h3 {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 1;
	padding: 6px 12px 10px;
	font: 24px/1.2 var(--font-label);
	color: #fff;
	text-shadow: 2px 2px 3px #000;
}


/* ---- Home: location ---------------------------------------------------- */

.location { background: var(--cream); padding: 55px 0 45px; text-align: center; }

.location h2 {
	font: 60px/1.1 var(--font-display);
	color: var(--red);
	text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.25);
}
.location__address { margin: 6px 0 24px; }

.map {
	border: 2px solid var(--red);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	background: #fff;
}
.map iframe { display: block; width: 100%; height: 450px; border: 0; }


/* ---- Inner pages ------------------------------------------------------- */

.page { background: var(--cream); padding: 50px 0 60px; }

.subhead {
	max-width: 900px;
	margin: 10px auto 34px;
	padding-top: 10px;
	border-top: 1px solid #e20816;
	font: 28px/1.3 var(--font-label);
	color: var(--navy);
	text-align: center;
}


/* ---- Menu -------------------------------------------------------------- */

.menu-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr) 0.85fr;
	gap: 24px;
	align-items: start;
}

.menu-col { display: grid; gap: 24px; }

.menu-card {
	background: #fff;
	border: 2px solid var(--red);
	border-radius: 8px;
	padding: 12px 14px 16px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.menu-card h2,
.toppings h2 {
	margin: 0 0 12px;
	background: var(--brown-pill);
	border-radius: 6px;
	color: #fff;
	font: 22px/200% var(--font-label);
	text-align: center;
}

.menu-card h3 {
	margin: 14px 0 8px;
	font: 18px/1.35 var(--font-body);
	font-weight: 600;
	color: var(--ink);
}

.menu-card p { margin: 0 0 12px; }
.menu-card em { color: #444; }
.menu-card hr { border: 0; border-top: 1px solid var(--rule); margin: 14px 0; }
.menu-card .note { font-size: 13.5px; }

.toppings ul { margin: 0; padding: 0; list-style: none; }
.toppings li {
	padding: 6px 0;
	border-top: 1px solid var(--rule);
	font-weight: bold;
	color: var(--navy);
	text-align: center;
}

@media (max-width: 1000px) {
	.menu-grid { grid-template-columns: repeat(2, 1fr); }
	.toppings ul { columns: 2; column-gap: 20px; }
	.toppings { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.menu-grid { grid-template-columns: 1fr; }
}


/* ---- Gallery ----------------------------------------------------------- */

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	max-width: 960px;
	margin: 34px auto 0;
	padding: 0;
	list-style: none;
}
.gallery a { display: block; overflow: hidden; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s ease; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox {
	width: min(1100px, 94vw);
	max-height: 94vh;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox figcaption { margin-top: 10px; color: #fff; text-align: center; }
.lightbox button {
	position: absolute;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 26px;
	line-height: 44px;
	cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__close { top: -8px; right: -8px; }
.lightbox__prev { left: -6px; top: 42%; }
.lightbox__next { right: -6px; top: 42%; }


/* ---- History ----------------------------------------------------------- */

.article { max-width: 900px; margin: 34px auto 0; color: #000; font-size: 18px; line-height: 27px; }
.article p { margin: 0 0 18px; }
.article figure { margin: 6px 0 26px; }
.article figcaption { margin-top: 8px; font-size: 16px; color: #333; }


/* ---- Footer ------------------------------------------------------------ */

.site-footer {
	background: var(--black);
	color: #fff;
	text-align: center;
	padding: 30px 0 26px;
	font-size: 14px;
}
.site-footer__name { margin: 0; font: 22px/1.3 var(--font-label); color: var(--yellow); }
.site-footer p { margin: 4px 0; }
.site-footer .small { margin-top: 14px; color: #aaa; font-size: 12.5px; }


/* ---- Home: responsive -------------------------------------------------- */

@media (max-width: 1000px) {
	.hero__inner { grid-template-columns: 190px 1fr; padding: 10px 20px 0; }
	.hero__logo { width: 170px; }
	.hero__title { font-size: 72px; }
	.tiles__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	.page-title { font-size: 50px; }
	.hero { min-height: 0; padding-bottom: 0; }
	.hero__slides { height: 300px; bottom: auto; }
	.hero__inner { display: flex; flex-direction: column; align-items: center; padding: 14px 20px 0; min-height: 300px; }
	.hero__side { width: 100%; max-width: 320px; }
	.hero__logo { width: 180px; }
	.home-menu { display: none; }
	.hero__badge { display: none; }
	.hero__title { font-size: 56px; line-height: 1.05; padding: 10px 0 18px; }
	.hero__arrow { top: 150px; }
	.info-box {
		position: static;
		transform: none;
		width: auto;
		border-radius: 0;
		padding: 18px 20px;
	}
	.intro { grid-template-columns: 1fr; padding: 32px 20px; }
	.intro::before, .intro::after { display: none; }
	.tiles__title, .location h2 { font-size: 44px; }
	.tiles__grid { grid-template-columns: 1fr; }
	.map iframe { height: 340px; }
	.gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.subhead { font-size: 22px; }
	.article { font-size: 17px; }
}

/* Phone menu bar on the home page */
.home-bar { display: none; }
@media (max-width: 700px) {
	.home-bar {
		display: block;
		position: sticky;
		top: 0;
		z-index: 50;
		background: var(--red);
	}
	.home-bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
	.home-bar__logo img { width: 72px; }
	.home-bar .nav-toggle { display: block; background: transparent; }
	.home-bar .site-nav a { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* Footer credit link */
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--yellow); }

/* Location line under the home headline */
.hero__tagline {
	display: block;
	margin-top: 10px;
	font: 26px/1.3 var(--font-label);
	color: #fff;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5);
}
@media (max-width: 700px) {
	.hero__tagline { font-size: 19px; margin-top: 6px; }
}
